File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
core/src/main/java/oracle/weblogic/deploy/util Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ public XPathUtil(String oracle_home){
3737 this .oracle_home = oracle_home ;
3838 patches_home = Paths .get (oracle_home , "inventory" , "patches" ).toString ();
3939 }
40+
4041 public XPathUtil () {
4142 // for testing only
4243 }
44+
4345 private static XPathFactory factory = null ;
4446
4547 private static synchronized XPathFactory factory () {
@@ -66,8 +68,7 @@ public String getPSU() {
6668 String descrip = description (doc , "//@description" );
6769 LOGGER .fine ("Description {0}" , descrip );
6870 if (descrip != null && descrip .startsWith ("WLS PATCH SET UPDATE" )) {
69- int idx = descrip .lastIndexOf ('.' );
70- String psu = descrip .substring (idx +1 ).split ("[\\ d]+" )[0 ];
71+ String psu = extractPsu (descrip );
7172 list .add (psu );
7273 Collections .sort (list );
7374 return list .get (list .size () -1 );
@@ -85,6 +86,7 @@ public String extractPsu(String descrip) {
8586 return descrip .substring (idx , endIdx +1 );
8687 }
8788
89+
8890 /**
8991 * Locate the patch files in the Oracle home
9092 * @return list of patch file names.
You can’t perform that action at this time.
0 commit comments