Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LongValueImpl.java')
-rw-r--r--org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LongValueImpl.java27
1 files changed, 15 insertions, 12 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LongValueImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LongValueImpl.java
index e30baa700..e11e0746f 100644
--- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LongValueImpl.java
+++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LongValueImpl.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.LongValue;
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 LongValueImpl extends PrimitiveValueImpl implements LongValue {
/** JDWP Tag. */
@@ -36,17 +34,19 @@ public class LongValueImpl extends PrimitiveValueImpl implements LongValue {
public LongValueImpl(VirtualMachineImpl vmImpl, Long value) {
super("LongValue", vmImpl, value); //$NON-NLS-1$
}
-
+
/**
* @returns tag.
*/
+ @Override
public byte getTag() {
return tag;
}
/**
* @returns type of value.
- */
+ */
+ @Override
public Type type() {
return virtualMachineImpl().getLongType();
}
@@ -57,20 +57,23 @@ public class LongValueImpl extends PrimitiveValueImpl implements LongValue {
public long value() {
return longValue();
}
-
+
/**
* @return Reads and returns new instance.
*/
- public static LongValueImpl read(MirrorImpl target, DataInputStream in) throws IOException {
+ public static LongValueImpl read(MirrorImpl target, DataInputStream in)
+ throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
long value = target.readLong("longValue", in); //$NON-NLS-1$
return new LongValueImpl(vmImpl, new Long(value));
}
-
+
/**
* Writes value without value tag.
*/
- public void write(MirrorImpl target, DataOutputStream out) throws IOException {
- target.writeLong(((Long)fValue).longValue(), "longValue", out); //$NON-NLS-1$
+ @Override
+ public void write(MirrorImpl target, DataOutputStream out)
+ throws IOException {
+ target.writeLong(((Long) fValue).longValue(), "longValue", out); //$NON-NLS-1$
}
}

Back to the top