Skip to content

Commit e1dbe79

Browse files
missing method call (#1094)
1 parent 1d0de57 commit e1dbe79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/main/java/oracle/weblogic/deploy/util/XPathUtil.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)