Skip to content

Commit

Permalink
[SIGAR-232] change ProcUtil.getJavaMainClass to check Character.isJav…
Browse files Browse the repository at this point in the history
…aIdentifierPart
  • Loading branch information
dougm committed Jul 18, 2011
1 parent 012dcef commit d832846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/java/src/org/hyperic/sigar/ProcUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static boolean isClassName(String name) {

for (int i=0; i<len; i++) {
char c = name.charAt(i);
if (!((c == '.') || Character.isLetter(c))) {
if (!((c == '.') || Character.isJavaIdentifierPart(c))) {
return false;
}
}
Expand Down

0 comments on commit d832846

Please sign in to comment.