summaryrefslogtreecommitdiff
path: root/gnu/classpath
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2006-02-17 14:49:05 +0000
committerKeith Seitz <keiths@redhat.com>2006-02-17 14:49:05 +0000
commit4a37fdc622f0ceb85f62b3c4c5ff87672878c23e (patch)
tree6e38764171bb529ff2e854793f0bd898b35753b2 /gnu/classpath
parentffdf83dbf5f1d0a5a64555896454fbdc1734a1ad (diff)
downloadclasspath-4a37fdc622f0ceb85f62b3c4c5ff87672878c23e.tar.gz
* gnu/classpath/jdwp/id/JdwpId.java (size): Remove.
(SIZE): New constant. * gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java (executeIDsizes): Use SIZE constant. * vm/reference/gnu/classpath/jdwp/VMFrame.java (size): Remove. (SIZE): New constant.
Diffstat (limited to 'gnu/classpath')
-rw-r--r--gnu/classpath/jdwp/id/JdwpId.java14
-rw-r--r--gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java12
2 files changed, 10 insertions, 16 deletions
diff --git a/gnu/classpath/jdwp/id/JdwpId.java b/gnu/classpath/jdwp/id/JdwpId.java
index 6e1688bd0..472650de8 100644
--- a/gnu/classpath/jdwp/id/JdwpId.java
+++ b/gnu/classpath/jdwp/id/JdwpId.java
@@ -51,6 +51,11 @@ import java.lang.ref.SoftReference;
public abstract class JdwpId
{
/**
+ * The size of an ID. The default is 8 bytes (a long).
+ */
+ public static final int SIZE = 8;
+
+ /**
* ID assigned to this object
*/
protected long _id;
@@ -122,15 +127,6 @@ public abstract class JdwpId
}
/**
- * Returns size of this type (used by IDSizes). Default sizes
- * for all IDs are 8 bytes (long).
- */
- public static int size ()
- {
- return 8;
- }
-
- /**
* Writes the contents of this type to the <code>DataOutputStream</code>
* @param outStream the <code>DataOutputStream</code> to use
* @throws IOException when an error occurs on the <code>OutputStream</code>
diff --git a/gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java b/gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
index d878066ff..a7edb287a 100644
--- a/gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
+++ b/gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
@@ -40,9 +40,7 @@ exception statement from your version. */
package gnu.classpath.jdwp.processor;
import gnu.classpath.jdwp.JdwpConstants;
-//import gnu.classpath.jdwp.VMField;
import gnu.classpath.jdwp.VMFrame;
-//import gnu.classpath.jdwp.VMMethod;
import gnu.classpath.jdwp.VMVirtualMachine;
import gnu.classpath.jdwp.exception.JdwpException;
import gnu.classpath.jdwp.exception.JdwpInternalErrorException;
@@ -301,11 +299,11 @@ public class VirtualMachineCommandSet
private void executeIDsizes(ByteBuffer bb, DataOutputStream os)
throws JdwpException, IOException
{
- os.writeInt(ObjectId.size ()); // fieldId FIXME
- os.writeInt(ObjectId.size ()); // methodId FIXME
- os.writeInt(ObjectId.size ()); // objectId
- os.writeInt(ReferenceTypeId.size ()); // referenceTypeId
- os.writeInt(VMFrame.size ()); // frameId
+ os.writeInt(ObjectId.SIZE); // fieldId FIXME
+ os.writeInt(ObjectId.SIZE); // methodId FIXME
+ os.writeInt(ObjectId.SIZE); // objectId
+ os.writeInt(ReferenceTypeId.SIZE); // referenceTypeId
+ os.writeInt(VMFrame.SIZE); // frameId
}
private void executeSuspend(ByteBuffer bb, DataOutputStream os)