diff options
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/DoubleValueImpl.java')
-rw-r--r-- | org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/DoubleValueImpl.java | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/DoubleValueImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/DoubleValueImpl.java index 0512cb5fe..7f1aac693 100644 --- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/DoubleValueImpl.java +++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/DoubleValueImpl.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.DoubleValue; 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 DoubleValueImpl extends PrimitiveValueImpl implements DoubleValue { /** JDWP Tag. */ @@ -36,17 +34,19 @@ public class DoubleValueImpl extends PrimitiveValueImpl implements DoubleValue { public DoubleValueImpl(VirtualMachineImpl vmImpl, Double value) { super("DoubleValue", vmImpl, value); //$NON-NLS-1$ } - + /** * @returns tag. */ + @Override public byte getTag() { return tag; } /** * @returns type of value. - */ + */ + @Override public Type type() { return virtualMachineImpl().getDoubleType(); } @@ -57,20 +57,23 @@ public class DoubleValueImpl extends PrimitiveValueImpl implements DoubleValue { public double value() { return doubleValue(); } - + /** * @return Reads and returns new instance. */ - public static DoubleValueImpl read(MirrorImpl target, DataInputStream in) throws IOException { + public static DoubleValueImpl read(MirrorImpl target, DataInputStream in) + throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); double value = target.readDouble("doubleValue", in); //$NON-NLS-1$ return new DoubleValueImpl(vmImpl, new Double(value)); } - + /** * Writes value without value tag. */ - public void write(MirrorImpl target, DataOutputStream out) throws IOException { - target.writeDouble(((Double)fValue).doubleValue(), "doubleValue", out); //$NON-NLS-1$ + @Override + public void write(MirrorImpl target, DataOutputStream out) + throws IOException { + target.writeDouble(((Double) fValue).doubleValue(), "doubleValue", out); //$NON-NLS-1$ } } |