aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-02-22 17:43:09 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-02-22 17:43:09 -0800
commit43abeeb1dad9e15681d87b299752d057914ae29e (patch)
treed97a2fd21c64616a0551ea4658fb80f148d43726
parent8d6e45331cb4ba86faaabfe7d1f9e7ccfd6e824d (diff)
downloadtraccar-server-43abeeb1dad9e15681d87b299752d057914ae29e.tar.gz
traccar-server-43abeeb1dad9e15681d87b299752d057914ae29e.tar.bz2
traccar-server-43abeeb1dad9e15681d87b299752d057914ae29e.zip
Fix style check
-rw-r--r--gradle/checkstyle.xml4
-rw-r--r--src/main/java/org/traccar/api/HealthCheckService.java3
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);
}
}