Ref: add new static analyser rule: design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal

This commit is contained in:
Laurent Clouet
2024-06-06 03:15:23 +02:00
parent 4eff00bb6b
commit b0c4d68e0b
3 changed files with 3 additions and 2 deletions

View File

@@ -32,6 +32,7 @@
<rule ref="category/java/codestyle.xml/UselessQualifiedThis" /> <rule ref="category/java/codestyle.xml/UselessQualifiedThis" />
<rule ref="category/java/design.xml/SimplifiedTernary" /> <rule ref="category/java/design.xml/SimplifiedTernary" />
<rule ref="category/java/design.xml/UselessOverridingMethod" /> <rule ref="category/java/design.xml/UselessOverridingMethod" />
<rule ref="category/java/design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal" />
<rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" /> <rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" />
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" /> <rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" />
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" /> <rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" />

View File

@@ -32,7 +32,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
public class Log { public final class Log {
private final String LEVEL_DEBUG = "debug"; private final String LEVEL_DEBUG = "debug";
private final String LEVEL_INFO = "info"; private final String LEVEL_INFO = "info";
private final String LEVEL_ERROR = "error"; private final String LEVEL_ERROR = "error";

View File

@@ -33,7 +33,7 @@ package com.sheepit.client.hardware.gpu.nvidia;
* <br /> * <br />
* Most comments are taken from the CUDA reference manual. * Most comments are taken from the CUDA reference manual.
*/ */
public class CUresult { public final class CUresult {
/** /**
* The API call returned with no errors. In the case of query calls, this * The API call returned with no errors. In the case of query calls, this
* can also mean that the operation being queried is complete (see * can also mean that the operation being queried is complete (see