Skip to content

Commit 116872c

Browse files
committed
asdf
1 parent c6cbbc3 commit 116872c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core/src/main/groovy/noe/common/newcmd/ListProcessData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,12 @@ public int compare(final Map<PsCmdFormat, String> left, final Map<PsCmdFormat, S
341341
boolean long1error = false;
342342
Long long1 = null, long2 = null;
343343
try {
344-
long1 = Long.parseLong(str1);
344+
long1 = Long.valueOf(str1);
345345
} catch (NumberFormatException nfe) {
346346
long1error = true;
347347
}
348348
try {
349-
long2 = Long.parseLong(str2);
349+
long2 = Long.valueOf(str2);
350350
} catch (NumberFormatException nfe) {
351351
// if string from left is not possible to convert to long
352352
// then in case of right is not possible to convert do string comparison

core/src/main/groovy/noe/common/utils/Cmd.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public class Cmd {
465465
}
466466
String o = t.nextElement()
467467
// expects format pid ....
468-
return Long.parseLong(o)
468+
return Long.valueOf(o)
469469
}
470470
}
471471

core/src/main/groovy/noe/ews/server/tomcat/TomcatSolaris.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class TomcatSolaris extends Tomcat {
104104
Long extractPid() {
105105
try {
106106
String pidFromFile = JBFile.read(pidFile).trim().replaceAll('"', '')
107-
pid = Long.parseLong(pidFromFile)
107+
pid = Long.valueOf(pidFromFile)
108108
} catch (e) {
109109
pid = super.extractPid()
110110
}

core/src/main/groovy/noe/rhel/server/tomcat/TomcatRpm.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class TomcatRpm extends Tomcat {
113113
def pidAsStr = pidFile.text
114114
pidAsStr = pidAsStr.trim()
115115
pidAsStr = pidAsStr.replaceAll('"', '')
116-
pid = Long.parseLong(pidAsStr)
116+
pid = Long.valueOf(pidAsStr)
117117
}
118118
catch (e) {
119119
log.debug("PID file is not accessible. But continuing ...")

0 commit comments

Comments
 (0)