Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryMinusOperator.java')
-rw-r--r--org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryMinusOperator.java36
1 files changed, 19 insertions, 17 deletions
diff --git a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryMinusOperator.java b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryMinusOperator.java
index f9ebe5913..34a23bc24 100644
--- a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryMinusOperator.java
+++ b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryMinusOperator.java
@@ -22,32 +22,34 @@ public class UnaryMinusOperator extends UnaryOperator {
/*
* @see Instruction#execute()
*/
+ @Override
public void execute() throws CoreException {
- IJavaPrimitiveValue value= (IJavaPrimitiveValue)popValue();
+ IJavaPrimitiveValue value = (IJavaPrimitiveValue) popValue();
switch (fExpressionTypeId) {
- case T_double:
- pushNewValue(-value.getDoubleValue());
- break;
- case T_float:
- pushNewValue(-value.getFloatValue());
- break;
- case T_long:
- pushNewValue(-value.getLongValue());
- break;
- case T_byte:
- case T_short:
- case T_int:
- case T_char:
- pushNewValue(-value.getIntValue());
- break;
+ case T_double:
+ pushNewValue(-value.getDoubleValue());
+ break;
+ case T_float:
+ pushNewValue(-value.getFloatValue());
+ break;
+ case T_long:
+ pushNewValue(-value.getLongValue());
+ break;
+ case T_byte:
+ case T_short:
+ case T_int:
+ case T_char:
+ pushNewValue(-value.getIntValue());
+ break;
}
}
/*
* @see Object#toString()
*/
+ @Override
public String toString() {
- return InstructionsEvaluationMessages.UnaryMinusOperator_unary_minus_operator_1;
+ return InstructionsEvaluationMessages.UnaryMinusOperator_unary_minus_operator_1;
}
}

Back to the top