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

Back to the top