Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ShortValueImpl.java')
-rw-r--r--org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ShortValueImpl.java27
1 files changed, 15 insertions, 12 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ShortValueImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ShortValueImpl.java
index a93a603dd..31aa5a70c 100644
--- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ShortValueImpl.java
+++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ShortValueImpl.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jdi.internal;
-
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
@@ -21,10 +20,9 @@ import com.sun.jdi.ShortValue;
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 ShortValueImpl extends PrimitiveValueImpl implements ShortValue {
/** JDWP Tag. */
@@ -36,17 +34,19 @@ public class ShortValueImpl extends PrimitiveValueImpl implements ShortValue {
public ShortValueImpl(VirtualMachineImpl vmImpl, Short value) {
super("ShortValue", vmImpl, value); //$NON-NLS-1$
}
-
+
/**
* @returns tag.
*/
+ @Override
public byte getTag() {
return tag;
}
/**
* @returns type of value.
- */
+ */
+ @Override
public Type type() {
return virtualMachineImpl().getShortType();
}
@@ -57,20 +57,23 @@ public class ShortValueImpl extends PrimitiveValueImpl implements ShortValue {
public short value() {
return shortValue();
}
-
+
/**
* @return Reads and returns new instance.
*/
- public static ShortValueImpl read(MirrorImpl target, DataInputStream in) throws IOException {
+ public static ShortValueImpl read(MirrorImpl target, DataInputStream in)
+ throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
short value = target.readShort("shortValue", in); //$NON-NLS-1$
return new ShortValueImpl(vmImpl, new Short(value));
}
-
+
/**
* Writes value without value tag.
*/
- public void write(MirrorImpl target, DataOutputStream out) throws IOException {
- target.writeShort(((Short)fValue).shortValue(), "shortValue", out); //$NON-NLS-1$
+ @Override
+ public void write(MirrorImpl target, DataOutputStream out)
+ throws IOException {
+ target.writeShort(((Short) fValue).shortValue(), "shortValue", out); //$NON-NLS-1$
}
}

Back to the top