Ref: add new static analyser rule: design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal
This commit is contained in:
@@ -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" />
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user