summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/math
diff options
context:
space:
mode:
authorBen Culkin <scorpress@gmail.com>2020-04-06 22:05:28 -0400
committerBen Culkin <scorpress@gmail.com>2020-04-06 22:05:28 -0400
commite578fe2beb5a38f1c221348dfd33b8d6ef48c080 (patch)
tree6e81973aea14d1dcc86c78233036103efa367640 /base/src/main/java/bjc/utils/math
parentfded830f3d1aff4df4a639b6e5701c3668a61809 (diff)
Cleanup warnings
Cleanup some warnings
Diffstat (limited to 'base/src/main/java/bjc/utils/math')
-rw-r--r--base/src/main/java/bjc/utils/math/DualExprParser.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/base/src/main/java/bjc/utils/math/DualExprParser.java b/base/src/main/java/bjc/utils/math/DualExprParser.java
index 71d62c7..0288702 100644
--- a/base/src/main/java/bjc/utils/math/DualExprParser.java
+++ b/base/src/main/java/bjc/utils/math/DualExprParser.java
@@ -33,9 +33,8 @@ public class DualExprParser {
/**
* Parses a dual expression from a postfix expression string.
*
- * @param expr The string to parse the dual expression from.
- *
- * @param preVars Any pre-existing variables to use.
+ * @param expr
+ * The string to parse the dual expression from.
*
* @return Both the parsed expression, and a map of all the variables used
*/
@@ -46,13 +45,16 @@ public class DualExprParser {
/**
* Parses a dual expression from a postfix expression string.
*
- * @param expr The string to parse the dual expression from.
+ * @param expr
+ * The string to parse the dual expression from.
*
- * @param preVars Any pre-existing variables to use.
+ * @param preVars
+ * Any pre-existing variables to use.
*
* @return Both the parsed expression, and a map of all the variables used
*
- * @throws StackUnderflowException If the expression is not properly formatted.
+ * @throws StackUnderflowException
+ * If the expression is not properly formatted.
*/
public static Result parseExpression(String expr, Map<String, DualExpr> preVars) {
Result res = new Result();
@@ -157,7 +159,8 @@ public class DualExprParser {
DualExpr dual = exprStack.pop();
DualExpr real = exprStack.pop();
- exprStack.push(new DualExpr(new Dual(real.evaluate().real, dual.evaluate().real)));
+ exprStack.push(new DualExpr(
+ new Dual(real.evaluate().real, dual.evaluate().real)));
break;
}
default: