Skip to content

Commit

Permalink
Fix error messages in ComparisonBytecodeExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk authored and martint committed Aug 8, 2016
1 parent 3b671ea commit b80c9e1
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -105,7 +105,7 @@ else if (type == double.class) {
noMatchJumpInstruction = IFLE;
}
else {
throw new IllegalArgumentException("Less than does not support " + type);
throw new IllegalArgumentException("Greater than does not support " + type);
}
return new ComparisonBytecodeExpression(">", comparisonInstruction, noMatchJumpInstruction, left, right);
}
Expand Down Expand Up @@ -135,7 +135,7 @@ else if (type == double.class) {
noMatchJumpInstruction = IFGT;
}
else {
throw new IllegalArgumentException("Less than does not support " + type);
throw new IllegalArgumentException("Less than or equal does not support " + type);
}
return new ComparisonBytecodeExpression("<=", comparisonInstruction, noMatchJumpInstruction, left, right);
}
Expand Down Expand Up @@ -165,7 +165,7 @@ else if (type == double.class) {
noMatchJumpInstruction = IFLT;
}
else {
throw new IllegalArgumentException("Less than does not support " + type);
throw new IllegalArgumentException("Greater than or equal does not support " + type);
}
return new ComparisonBytecodeExpression(">=", comparisonInstruction, noMatchJumpInstruction, left, right);
}
Expand Down Expand Up @@ -201,7 +201,7 @@ else if (type == null) {
noMatchJumpInstruction = IF_ACMPNE;
}
else {
throw new IllegalArgumentException("Less than does not support " + type);
throw new IllegalArgumentException("Equal does not support " + type);
}
return new ComparisonBytecodeExpression("==", comparisonInstruction, noMatchJumpInstruction, left, right);
}
Expand Down Expand Up @@ -237,7 +237,7 @@ else if (type == null) {
noMatchJumpInstruction = IF_ACMPEQ;
}
else {
throw new IllegalArgumentException("Less than does not support " + type);
throw new IllegalArgumentException("Not equal than does not support " + type);
}
return new ComparisonBytecodeExpression("!=", comparisonInstruction, noMatchJumpInstruction, left, right);
}
Expand Down

0 comments on commit b80c9e1

Please sign in to comment.