[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-dev
Subject:    svn commit: r1149462 -
From:       dbrosius () apache ! org
Date:       2011-07-22 4:49:14
Message-ID: 20110722044915.0AB72238896F () eris ! apache ! org
[Download RAW message or body]

Author: dbrosius
Date: Fri Jul 22 04:49:14 2011
New Revision: 1149462

URL: http://svn.apache.org/viewvc?rev=1149462&view=rev
Log:
difficult to determine what the type of key/values in the attributes map, looks like \
Object->Object so use that

Modified:
    jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionHandle.java

Modified: jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionHandle.java
                
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionHandle.java?rev=1149462&r1=1149461&r2=1149462&view=diff
 ==============================================================================
--- jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionHandle.java \
                (original)
+++ jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionHandle.java \
Fri Jul 22 04:49:14 2011 @@ -49,7 +49,7 @@ public class InstructionHandle implement
     Instruction instruction;
     protected int i_position = -1; // byte code offset of instruction
     private Set<InstructionTargeter> targeters;
-    private Map attributes;
+    private Map<Object, Object> attributes;
 
 
     public final InstructionHandle getNext() {
@@ -197,7 +197,7 @@ public class InstructionHandle implement
      */
     public void addTargeter( InstructionTargeter t ) {
         if (targeters == null) {
-            targeters = new HashSet();
+            targeters = new HashSet<InstructionTargeter>();
         }
         //if(!targeters.contains(t))
         targeters.add(t);
@@ -243,7 +243,7 @@ public class InstructionHandle implement
      */
     public void addAttribute( Object key, Object attr ) {
         if (attributes == null) {
-            attributes = new HashMap(3);
+            attributes = new HashMap<Object, Object>(3);
         }
         attributes.put(key, attr);
     }
@@ -274,9 +274,9 @@ public class InstructionHandle implement
 
     /** @return all attributes associated with this handle
      */
-    public Collection getAttributes() {
+    public Collection<Object> getAttributes() {
         if (attributes == null) {
-            attributes = new HashMap(3);
+            attributes = new HashMap<Object, Object>(3);
         }
         return attributes.values();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic