commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1152325 - /commons/proper/bcel/trunk/src/examples/Mini/MiniC.java
Date Fri, 29 Jul 2011 17:47:45 GMT
Author: sebb
Date: Fri Jul 29 17:47:45 2011
New Revision: 1152325

URL: http://svn.apache.org/viewvc?rev=1152325&view=rev
Log:
Generics

Modified:
    commons/proper/bcel/trunk/src/examples/Mini/MiniC.java

Modified: commons/proper/bcel/trunk/src/examples/Mini/MiniC.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/examples/Mini/MiniC.java?rev=1152325&r1=1152324&r2=1152325&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/examples/Mini/MiniC.java (original)
+++ commons/proper/bcel/trunk/src/examples/Mini/MiniC.java Fri Jul 29 17:47:45 2011
@@ -25,8 +25,8 @@ import org.apache.bcel.generic.ClassGen;
 import org.apache.bcel.generic.ConstantPoolGen;
 
 public class MiniC implements org.apache.bcel.Constants {
-  private static Vector errors   = null;
-  private static Vector warnings = null;
+  private static Vector<String> errors   = null;
+  private static Vector<String> warnings = null;
   private static String file     = null;
   private static int   pass      = 0;
         
@@ -60,8 +60,8 @@ public class MiniC implements org.apache
     }
 
       for(int j=0; j < files; j++) {
-        errors   = new Vector();
-        warnings = new Vector();
+        errors   = new Vector<String>();
+        warnings = new Vector<String>();
         pass     = 0;
 
         if(j == 0) {



Mime
View raw message