< prev index next >

src/java.base/unix/classes/java/lang/ProcessEnvironment.java

Print this page

        

@@ -97,11 +97,11 @@
             ((Map<Variable,Value>)(theEnvironment.clone()));
     }
 
     /* Only for use by Runtime.exec(...String[]envp...) */
     static Map<String,String> emptyEnvironment(int capacity) {
-        return new StringEnvironment(new HashMap<Variable,Value>(capacity));
+        return new StringEnvironment(new HashMap<>(capacity));
     }
 
     private static native byte[][] environ();
 
     // This class is not instantiable.
< prev index next >