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/UnaryPlusOperator.java')
-rw-r--r--org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryPlusOperator.java36
1 files changed, 19 insertions, 17 deletions
diff --git a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryPlusOperator.java b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryPlusOperator.java
index b70d45251..a9ed5b97e 100644
--- a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryPlusOperator.java
+++ b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnaryPlusOperator.java
@@ -22,29 +22,31 @@ public class UnaryPlusOperator 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;
}
}
+ @Override
public String toString() {
- return InstructionsEvaluationMessages.UnaryPlusOperator_unary_plus_operator_1;
+ return InstructionsEvaluationMessages.UnaryPlusOperator_unary_plus_operator_1;
}
}

Back to the top