You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2015/08/14 00:18:53 UTC

svn commit: r1695792 - in /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6: generic/Type.java util/ClassPath.java verifier/VerifierFactory.java verifier/structurals/OperandStack.java

Author: ggregory
Date: Thu Aug 13 22:18:53 2015
New Revision: 1695792

URL: http://svn.apache.org/r1695792
Log:
Remove redundant specification of type arguments (Java 7).

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/Type.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/VerifierFactory.java
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/Type.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/Type.java?rev=1695792&r1=1695791&r2=1695792&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/Type.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/Type.java Thu Aug 13 22:18:53 2015
@@ -244,7 +244,7 @@ public abstract class Type implements ja
      * @return array of argument types
      */
     public static Type[] getArgumentTypes( String signature ) {
-        List<Type> vec = new ArrayList<Type>();
+        List<Type> vec = new ArrayList<>();
         int index;
         Type[] types;
         try { // Read all declarations between for `(' and `)'

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java?rev=1695792&r1=1695791&r2=1695792&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/ClassPath.java Thu Aug 13 22:18:53 2015
@@ -234,7 +234,7 @@ public class ClassPath implements Serial
      * empty Enumeration if no resource with that name.
      */
     public Enumeration<URL> getResources(String name) {
-        Vector<URL> results = new Vector<URL>();
+        Vector<URL> results = new Vector<>();
         for (PathEntry path : paths) {
             URL url;
             if ((url = path.getResource(name)) != null) {

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/VerifierFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/VerifierFactory.java?rev=1695792&r1=1695791&r2=1695792&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/VerifierFactory.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/VerifierFactory.java Thu Aug 13 22:18:53 2015
@@ -40,7 +40,7 @@ public class VerifierFactory {
     /**
      * The VerifierFactoryObserver instances that observe the VerifierFactory.
      */
-    private static final List<VerifierFactoryObserver> observers = new Vector<VerifierFactoryObserver>();
+    private static final List<VerifierFactoryObserver> observers = new Vector<>();
 
 
     /**

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java?rev=1695792&r1=1695791&r2=1695792&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/OperandStack.java Thu Aug 13 22:18:53 2015
@@ -74,7 +74,7 @@ public class OperandStack{
      * Clears the stack.
      */
     public void clear(){
-        stack = new ArrayList<Type>();
+        stack = new ArrayList<>();
     }
 
     /** @return a hash code value for the object.