Author: ggregory
Date: Tue Sep 20 05:43:24 2016
New Revision: 1761521

URL: http://svn.apache.org/viewvc?rev=1761521&view=rev
Log:
Remove redundant type arguments.

Modified:
    
commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
    
commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeAttributesMap.java
    
commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileObject.java

Modified: 
commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
URL: 
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java?rev=1761521&r1=1761520&r2=1761521&view=diff
==============================================================================
--- 
commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
 (original)
+++ 
commons/proper/vfs/trunk/examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
 Tue Sep 20 05:43:24 2016
@@ -163,8 +163,8 @@ public final class Shell
             System.out.println("Default manager: \"" + 
mgr.getClass().getName() + "\" " +
                                    "version " + getVersion(mgr.getClass()));
             String[] schemes = mgr.getSchemes();
-            List<String> virtual = new ArrayList<String>();
-            List<String> physical = new ArrayList<String>();
+            List<String> virtual = new ArrayList<>();
+            List<String> physical = new ArrayList<>();
             for (int i = 0; i < schemes.length; i++)
             {
                 Collection<Capability> caps = 
mgr.getProviderCapabilities(schemes[i]);
@@ -417,7 +417,7 @@ public final class Shell
         {
             return null;
         }
-        final ArrayList<String> cmd = new ArrayList<String>();
+        final ArrayList<String> cmd = new ArrayList<>();
         final StringTokenizer tokens = new StringTokenizer(line);
         while (tokens.hasMoreTokens())
         {

Modified: 
commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeAttributesMap.java
URL: 
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeAttributesMap.java?rev=1761521&r1=1761520&r2=1761521&view=diff
==============================================================================
--- 
commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeAttributesMap.java
 (original)
+++ 
commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeAttributesMap.java
 Tue Sep 20 05:43:24 2016
@@ -47,7 +47,7 @@ public class MimeAttributesMap implement
 
     private final Log log = LogFactory.getLog(MimeAttributesMap.class);
     private final Part part;
-    private final Map<String, Method> mimeMessageGetters = new TreeMap<String, 
Method>();
+    private final Map<String, Method> mimeMessageGetters = new TreeMap<>();
 
     private Map<String, Object> backingMap;
 
@@ -96,7 +96,7 @@ public class MimeAttributesMap implement
     private Map<String, Object> createMap()
     {
         // Object is either a String, or a List of Strings
-        final Map<String, Object> ret = new TreeMap<String, Object>();
+        final Map<String, Object> ret = new TreeMap<>();
 
         Enumeration<Header> headers;
         try
@@ -125,7 +125,7 @@ public class MimeAttributesMap implement
             }
             else if (values instanceof String)
             {
-                final ArrayList<String> newValues = new ArrayList<String>();
+                final ArrayList<String> newValues = new ArrayList<>();
                 newValues.add((String) values);
                 newValues.add(header.getValue());
                 ret.put(headerName, newValues);

Modified: 
commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileObject.java
URL: 
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileObject.java?rev=1761521&r1=1761520&r2=1761521&view=diff
==============================================================================
--- 
commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileObject.java
 (original)
+++ 
commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileObject.java
 Tue Sep 20 05:43:24 2016
@@ -157,7 +157,7 @@ public class MimeFileObject
             return null;
         }
 
-        final List<MimeFileObject> vfs = new ArrayList<MimeFileObject>();
+        final List<MimeFileObject> vfs = new ArrayList<>();
         if (isMultipart())
         {
             final Object container = part.getContent();


Reply via email to