File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
imagetool/src/main/java/com/oracle/weblogic/imagetool Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,6 @@ public CommandResponse call() throws Exception {
60
60
return new CommandResponse (-1 , msg );
61
61
}
62
62
63
- /**
64
- * Validate local patch file's digest against the digest stored in ARU.
65
- *
66
- * @param patchNumber the ARU patch number without the 'p'
67
- * @param password the password to be used for the ARU query (Oracle Support credential)
68
- * @return true if the local file digest matches the digest stored in Oracle ARU
69
- * @throws Exception if the ARU call to get patch details failed
70
- */
71
- private CommandResponse validateAndAddToCache (String patchNumber , String password ) throws Exception {
72
- return addToCache (patchNumber );
73
- }
74
-
75
63
/**
76
64
* Add patch to the cache.
77
65
*
Original file line number Diff line number Diff line change @@ -640,8 +640,7 @@ public static String getCacheDir() throws IOException {
640
640
641
641
public static String getOpatchVersionFromZip (String fileName ) {
642
642
643
- try {
644
- ZipFile zipFile = new ZipFile (fileName );
643
+ try (ZipFile zipFile = new ZipFile (fileName )) {
645
644
646
645
Enumeration <? extends ZipEntry > entries = zipFile .entries ();
647
646
You can’t perform that action at this time.
0 commit comments