From 71def8514d6eeb831c1d755cf94049d5b249325f Mon Sep 17 00:00:00 2001 From: Alessandro Solimando Date: Sun, 2 Jun 2024 16:52:52 +0200 Subject: [PATCH] Fixing sonar warnings --- .../java/org/apache/calcite/adapter/os/PsTableFunction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plus/src/main/java/org/apache/calcite/adapter/os/PsTableFunction.java b/plus/src/main/java/org/apache/calcite/adapter/os/PsTableFunction.java index 34d0ca7319ef..1f81f69ac447 100644 --- a/plus/src/main/java/org/apache/calcite/adapter/os/PsTableFunction.java +++ b/plus/src/main/java/org/apache/calcite/adapter/os/PsTableFunction.java @@ -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 UNIX_TO_MAC_PS_FIELDS = @@ -140,7 +140,6 @@ protected static class LineParser implements Function1 { } private Object field(String field, String value) { - System.out.println(field + " " + value); switch (field) { case "pid": case "ppid":