Skip to content

Commit

Permalink
Fixing sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
asolimando committed Jun 2, 2024
1 parent 8a2a130 commit 71def85
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class PsTableFunction {
Pattern.compile("([0-9]+):([0-9]+):([0-9]+)");
private static final Pattern HOUR_MINUTE_SECOND_PATTERN =
Pattern.compile("([0-9]+):([0-9]+)\\.([0-9]+)");
private static final Pattern NUMERIC_PATTERN = Pattern.compile("([0-9]+)");
private static final Pattern NUMERIC_PATTERN = Pattern.compile("(\\d+)");

// it acts as a partial mapping, missing entries are the identity (e.g., "user" -> "user")
private static final ImmutableMap<String, String> UNIX_TO_MAC_PS_FIELDS =
Expand Down Expand Up @@ -140,7 +140,6 @@ protected static class LineParser implements Function1<String, Object[]> {
}

private Object field(String field, String value) {
System.out.println(field + " " + value);
switch (field) {
case "pid":
case "ppid":
Expand Down

0 comments on commit 71def85

Please sign in to comment.