commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1746386 - in /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util: ClassLoader.java ClassVector.java
Date Wed, 01 Jun 2016 05:14:03 GMT
Author: ggregory
Date: Wed Jun  1 05:14:02 2016
New Revision: 1746386

URL: http://svn.apache.org/viewvc?rev=1746386&view=rev
Log:
Use the Java 7 diamond notation.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassLoader.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassVector.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassLoader.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassLoader.java?rev=1746386&r1=1746385&r2=1746386&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassLoader.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassLoader.java
Wed Jun  1 05:14:02 2016
@@ -62,7 +62,7 @@ public class ClassLoader extends java.la
             "java.", "javax.", "sun."
     };
 
-    private final Hashtable<String, Class<?>> classes = new Hashtable<String,
Class<?>>();
+    private final Hashtable<String, Class<?>> classes = new Hashtable<>();
     // Hashtable is synchronized thus thread-safe
     private final String[] ignored_packages;
     private Repository repository = SyntheticRepository.getInstance();

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassVector.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassVector.java?rev=1746386&r1=1746385&r2=1746386&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassVector.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassVector.java
Wed Jun  1 05:14:02 2016
@@ -35,7 +35,7 @@ public class ClassVector implements java
 
     private static final long serialVersionUID = 5600397075672780806L;
     @Deprecated
-    protected List<JavaClass> vec = new ArrayList<JavaClass>();
+    protected List<JavaClass> vec = new ArrayList<>();
 
 
     public void addElement( final JavaClass clazz ) {



Mime
View raw message