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){
37
37
this .oracle_home = oracle_home ;
38
38
patches_home = Paths .get (oracle_home , "inventory" , "patches" ).toString ();
39
39
}
40
+
40
41
public XPathUtil () {
41
42
// for testing only
42
43
}
44
+
43
45
private static XPathFactory factory = null ;
44
46
45
47
private static synchronized XPathFactory factory () {
@@ -66,8 +68,7 @@ public String getPSU() {
66
68
String descrip = description (doc , "//@description" );
67
69
LOGGER .fine ("Description {0}" , descrip );
68
70
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 );
71
72
list .add (psu );
72
73
Collections .sort (list );
73
74
return list .get (list .size () -1 );
@@ -85,6 +86,7 @@ public String extractPsu(String descrip) {
85
86
return descrip .substring (idx , endIdx +1 );
86
87
}
87
88
89
+
88
90
/**
89
91
* Locate the patch files in the Oracle home
90
92
* @return list of patch file names.
You can’t perform that action at this time.
0 commit comments