Commit 6a134982 authored by tempiaa's avatar tempiaa

Translated String strip to trim for java 8 compatibility

parent 4af9c8c5
......@@ -139,8 +139,8 @@ public class AvatarExpressionSolver {
operator = expression.charAt(index);
//split and recur
String leftExpression = expression.substring(0, index).strip();
String rightExpression = expression.substring(index + 1, expression.length()).strip();
String leftExpression = expression.substring(0, index).trim();
String rightExpression = expression.substring(index + 1, expression.length()).trim();
left = new AvatarExpressionSolver(leftExpression);
right = new AvatarExpressionSolver(rightExpression);
......@@ -200,8 +200,8 @@ public class AvatarExpressionSolver {
operator = expression.charAt(index);
//split and recur
String leftExpression = expression.substring(0, index).strip();
String rightExpression = expression.substring(index + 1, expression.length()).strip();
String leftExpression = expression.substring(0, index).trim();
String rightExpression = expression.substring(index + 1, expression.length()).trim();
left = new AvatarExpressionSolver(leftExpression);
right = new AvatarExpressionSolver(rightExpression);
......@@ -268,8 +268,8 @@ public class AvatarExpressionSolver {
operator = expression.charAt(index);
//split and recur
String leftExpression = expression.substring(0, index).strip();
String rightExpression = expression.substring(index + 1, expression.length()).strip();
String leftExpression = expression.substring(0, index).trim();
String rightExpression = expression.substring(index + 1, expression.length()).trim();
left = new AvatarExpressionSolver(leftExpression);
right = new AvatarExpressionSolver(rightExpression);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment