Merge branch 'pmd/new-rule4' into 'master'

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

See merge request sheepitrenderfarm/client!317
This commit is contained in:
Laurent Clouet
2024-06-06 01:20:39 +00:00
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/design.xml/SimplifiedTernary" />
<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/AvoidDecimalLiteralsInBigDecimalConstructor" />
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" />

View File

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

View File

@@ -33,7 +33,7 @@ package com.sheepit.client.hardware.gpu.nvidia;
* <br />
* 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
* can also mean that the operation being queried is complete (see