diff options
-rw-r--r-- | gradle/checkstyle.xml | 4 | ||||
-rw-r--r-- | src/main/java/org/traccar/api/HealthCheckService.java | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gradle/checkstyle.xml b/gradle/checkstyle.xml index 72950c7bd..e4df54d8c 100644 --- a/gradle/checkstyle.xml +++ b/gradle/checkstyle.xml @@ -5,6 +5,8 @@ <module name="Checker"> + <module name="SuppressWarningsFilter"/> + <module name="SuppressionSingleFilter"> <property name="files" value="[/\\]protobuf[/\\]"/> <property name="checks" value=".*"/> @@ -51,6 +53,8 @@ <module name="TreeWalker"> + <module name="SuppressWarningsHolder"/> + <!-- Checks for Naming Conventions. --> <!-- See http://checkstyle.sf.net/config_naming.html --> <module name="ConstantName"/> diff --git a/src/main/java/org/traccar/api/HealthCheckService.java b/src/main/java/org/traccar/api/HealthCheckService.java index cd2856dfa..1e8f0d731 100644 --- a/src/main/java/org/traccar/api/HealthCheckService.java +++ b/src/main/java/org/traccar/api/HealthCheckService.java @@ -84,7 +84,8 @@ public class HealthCheckService { } interface SystemD extends Library { - int sd_notify(int unset_environment, String state); + @SuppressWarnings("checkstyle:MethodName") + int sd_notify(@SuppressWarnings("checkstyle:ParameterName") int unset_environment, String state); } } |