Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/IntegerValueImpl.java')
-rw-r--r--org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/IntegerValueImpl.java30
1 files changed, 17 insertions, 13 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/IntegerValueImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/IntegerValueImpl.java
index 450f2594b..3cec79483 100644
--- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/IntegerValueImpl.java
+++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/IntegerValueImpl.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jdi.internal;
-
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
@@ -21,12 +20,12 @@ import com.sun.jdi.IntegerValue;
import com.sun.jdi.Type;
/**
- * this class implements the corresponding interfaces
- * declared by the JDI specification. See the com.sun.jdi package
- * for more information.
- *
+ * this class implements the corresponding interfaces declared by the JDI
+ * specification. See the com.sun.jdi package for more information.
+ *
*/
-public class IntegerValueImpl extends PrimitiveValueImpl implements IntegerValue {
+public class IntegerValueImpl extends PrimitiveValueImpl implements
+ IntegerValue {
/** JDWP Tag. */
public static final byte tag = JdwpID.INT_TAG;
@@ -36,17 +35,19 @@ public class IntegerValueImpl extends PrimitiveValueImpl implements IntegerValue
public IntegerValueImpl(VirtualMachineImpl vmImpl, Integer value) {
super("IntegerValue", vmImpl, value); //$NON-NLS-1$
}
-
+
/**
* @returns tag.
*/
+ @Override
public byte getTag() {
return tag;
}
/**
* @returns type of value.
- */
+ */
+ @Override
public Type type() {
return virtualMachineImpl().getIntegerType();
}
@@ -57,20 +58,23 @@ public class IntegerValueImpl extends PrimitiveValueImpl implements IntegerValue
public int value() {
return intValue();
}
-
+
/**
* @return Reads and returns new instance.
*/
- public static IntegerValueImpl read(MirrorImpl target, DataInputStream in) throws IOException {
+ public static IntegerValueImpl read(MirrorImpl target, DataInputStream in)
+ throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
int value = target.readInt("integerValue", in); //$NON-NLS-1$
return new IntegerValueImpl(vmImpl, new Integer(value));
}
-
+
/**
* Writes value without value tag.
*/
- public void write(MirrorImpl target, DataOutputStream out) throws IOException {
- target.writeInt(((Integer)fValue).intValue(), "intValue", out); //$NON-NLS-1$
+ @Override
+ public void write(MirrorImpl target, DataOutputStream out)
+ throws IOException {
+ target.writeInt(((Integer) fValue).intValue(), "intValue", out); //$NON-NLS-1$
}
}

Back to the top