< prev index next >

src/java.base/unix/classes/sun/security/provider/NativePRNG.java

Print this page

        

@@ -123,11 +123,11 @@
     /**
      * Create a RandomIO object for all I/O of this Variant type.
      */
     private static RandomIO initIO(final Variant v) {
         return AccessController.doPrivileged(
-            new PrivilegedAction<RandomIO>() {
+            new PrivilegedAction<>() {
                 @Override
                 public RandomIO run() {
 
                     File seedFile;
                     File nextFile;

@@ -438,11 +438,11 @@
         private void implSetSeed(byte[] seed) {
             synchronized (LOCK_SET_SEED) {
                 if (seedOutInitialized == false) {
                     seedOutInitialized = true;
                     seedOut = AccessController.doPrivileged(
-                            new PrivilegedAction<OutputStream>() {
+                            new PrivilegedAction<>() {
                         @Override
                         public OutputStream run() {
                             try {
                                 return new FileOutputStream(seedFile, true);
                             } catch (Exception e) {
< prev index next >