harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r627726 - in /harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework: DebuggeeRegister.java jdwp/PacketDispatcher.java jdwp/VmMirror.java
Date Thu, 14 Feb 2008 12:48:57 GMT
Author: odeakin
Date: Thu Feb 14 04:48:56 2008
New Revision: 627726

URL: http://svn.apache.org/viewvc?rev=627726&view=rev
Log:
Clean up some more compiler warnings.

Modified:
    harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/DebuggeeRegister.java
    harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/PacketDispatcher.java
    harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/VmMirror.java

Modified: harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/DebuggeeRegister.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/DebuggeeRegister.java?rev=627726&r1=627725&r2=627726&view=diff
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/DebuggeeRegister.java
(original)
+++ harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/DebuggeeRegister.java
Thu Feb 14 04:48:56 2008
@@ -46,7 +46,7 @@
  */
 public class DebuggeeRegister {
 
-    LinkedList registered = new LinkedList();
+    LinkedList<DebuggeeWrapper> registered = new LinkedList<DebuggeeWrapper>();
     
     /**
      * Registers started debuggee.

Modified: harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/PacketDispatcher.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/PacketDispatcher.java?rev=627726&r1=627725&r2=627726&view=diff
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/PacketDispatcher.java
(original)
+++ harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/PacketDispatcher.java
Thu Feb 14 04:48:56 2008
@@ -88,14 +88,14 @@
         /**
          * List of received events.
          */
-        private List eventQueue;
+        private List<EventPacket> eventQueue;
 
         /**
          * A default constructor.
          */
         EventsSynchronyzer() {
             // initialize eventQueue
-            eventQueue = new ArrayList();
+            eventQueue = new ArrayList<EventPacket>();
         }
 
         /**
@@ -193,16 +193,16 @@
 
         private int commandId;
 
-        private Hashtable commands;
+        private Hashtable<Integer, CommandPacket> commands;
 
-        private Hashtable replies;
+        private Hashtable<Integer, ReplyPacket> replies;
 
         /**
          * A default constructor.
          */
         CommandsSynchronyzer() {
-            commands = new Hashtable();
-            replies = new Hashtable();
+            commands = new Hashtable<Integer, CommandPacket>();
+            replies = new Hashtable<Integer, ReplyPacket>();
 
             // set first command id to 1
             commandId = 1;

Modified: harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/VmMirror.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/VmMirror.java?rev=627726&r1=627725&r2=627726&view=diff
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/VmMirror.java
(original)
+++ harmony/enhanced/jdktools/trunk/modules/jpda/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/VmMirror.java
Thu Feb 14 04:48:56 2008
@@ -1825,7 +1825,7 @@
             return new ArrayList(0);
         }
 
-        ArrayList frames = new ArrayList(framesCount);
+        ArrayList<Frame> frames = new ArrayList<Frame>(framesCount);
         for (int i = 0; i < framesCount; i++) {
             Frame frame = new Frame();
             frame.setThreadID(threadID);
@@ -1891,7 +1891,7 @@
             return null;
         }
 
-        ArrayList vars = new ArrayList(slots);
+        ArrayList<Variable> vars = new ArrayList<Variable>(slots);
         for (int i = 0; i < slots; i++) {
             Variable var = new Frame().new Variable();
             var.setCodeIndex(reply.getNextValueAsLong());
@@ -2113,13 +2113,13 @@
      * @return A list of Field objects representing each field of the class
      */
     public final List getAllFields(long classID) {
-        ArrayList fields = new ArrayList(0);
+        ArrayList<Field> fields = new ArrayList<Field>(0);
 
         long superID = getSuperclassId(classID);
         if (superID != 0) {
             List superClassFields = getAllFields(superID);
             for (int i = 0; i < superClassFields.size(); i++) {
-                fields.add(superClassFields.toArray()[i]);
+                fields.add((Field)superClassFields.toArray()[i]);
             }
         }
 



Mime
View raw message