< prev index next >

src/java.base/share/classes/sun/security/tools/keytool/Main.java

Print this page

        

*** 25,35 **** package sun.security.tools.keytool; import java.io.*; import java.nio.file.Files; ! import java.nio.file.Paths; import java.security.CodeSigner; import java.security.CryptoPrimitive; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.MessageDigest; --- 25,35 ---- package sun.security.tools.keytool; import java.io.*; import java.nio.file.Files; ! import java.nio.file.Path; import java.security.CodeSigner; import java.security.CryptoPrimitive; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.MessageDigest;
*** 2187,2197 **** // The keystore is not rewritten yet now. for (int n = 1; /* forever */; n++) { inplaceBackupName = srcksfname + ".old" + (n == 1 ? "" : n); File bkFile = new File(inplaceBackupName); if (!bkFile.exists()) { ! Files.copy(Paths.get(srcksfname), bkFile.toPath()); break; } } } --- 2187,2197 ---- // The keystore is not rewritten yet now. for (int n = 1; /* forever */; n++) { inplaceBackupName = srcksfname + ".old" + (n == 1 ? "" : n); File bkFile = new File(inplaceBackupName); if (!bkFile.exists()) { ! Files.copy(Path.get(srcksfname), bkFile.toPath()); break; } } }
< prev index next >