REM:
1. 修正一些FindBugs问题
This commit is contained in:
HuangXin 2020-10-19 08:36:50 +08:00
parent 89048bd1d9
commit bc14fc7989
9 changed files with 59 additions and 2 deletions

View File

@ -41,4 +41,9 @@ public class AuthConfigValue {
* The constant AUTH_WHITE_LIST_CHECK. * The constant AUTH_WHITE_LIST_CHECK.
*/ */
public static volatile boolean AUTH_WHITE_LIST_CHECK = true; public static volatile boolean AUTH_WHITE_LIST_CHECK = true;
/**
* Instantiates a new Auth config value.
*/
private AuthConfigValue() {}
} }

View File

@ -100,4 +100,8 @@ public class ConstValue {
return ConstValue.IP_ADDR_SEGMENT_REG; return ConstValue.IP_ADDR_SEGMENT_REG;
} }
/**
* Instantiates a new Const value.
*/
private ConstValue() {}
} }

View File

@ -7,6 +7,11 @@ package com.dispose.common;
*/ */
public class DisposeConfigValue { public class DisposeConfigValue {
/**
* Instantiates a new Dispose config value.
*/
private DisposeConfigValue() {}
/** /**
* The constant CHECK_PROTO_REQUEST_TIMEOUT. * The constant CHECK_PROTO_REQUEST_TIMEOUT.
*/ */
@ -47,5 +52,8 @@ public class DisposeConfigValue {
*/ */
public static volatile int MIN_SPLIT_PAGE_SIZE = 10; public static volatile int MIN_SPLIT_PAGE_SIZE = 10;
/**
* The constant ENABLE_UTEST_MOCK.
*/
public static volatile boolean ENABLE_UTEST_MOCK = false; public static volatile boolean ENABLE_UTEST_MOCK = false;
} }

View File

@ -7,11 +7,16 @@ package com.dispose.common;
*/ */
public class DpTechConfigValue { public class DpTechConfigValue {
/** /**
* The constant SOAP_CONNECT_TIMEOUT. * Instantiates a new Dp tech config value.
*/
private DpTechConfigValue () {}
/**
* The constant SOAP_CONNECT_TIMEOUT_SECOND.
*/ */
public static volatile long SOAP_CONNECT_TIMEOUT_SECOND = 60; public static volatile long SOAP_CONNECT_TIMEOUT_SECOND = 60;
/** /**
* The constant SOAP_RECEIVE_TIMEOUT. * The constant SOAP_RECEIVE_TIMEOUT_SECOND.
*/ */
public static volatile long SOAP_RECEIVE_TIMEOUT_SECOND = 60; public static volatile long SOAP_RECEIVE_TIMEOUT_SECOND = 60;
} }

View File

@ -23,6 +23,11 @@ import java.util.stream.Collectors;
*/ */
public class Helper { public class Helper {
/**
* Instantiates a new Helper.
*/
private Helper () {}
/** /**
* Gets current datetime. * Gets current datetime.
* *

View File

@ -10,6 +10,12 @@ import inet.ipaddr.IPAddressString;
* @author <huangxin@cmhi.chinamoblie.com> * @author <huangxin@cmhi.chinamoblie.com>
*/ */
public class PrivacyHelper { public class PrivacyHelper {
/**
* Instantiates a new Privacy helper.
*/
private PrivacyHelper() {}
/** /**
* Ip address privacy string. * Ip address privacy string.
* *

View File

@ -6,6 +6,12 @@ package com.dispose.common;
* @author <huangxin@cmhi.chinamoblie.com> * @author <huangxin@cmhi.chinamoblie.com>
*/ */
public class SecurityConfigValue { public class SecurityConfigValue {
/**
* Instantiates a new Security config value.
*/
private SecurityConfigValue() {}
/** /**
* The constant AES_KEY. * The constant AES_KEY.
*/ */

View File

@ -22,12 +22,25 @@ import java.util.Map;
*/ */
@Slf4j @Slf4j
public class RestfulInterface { public class RestfulInterface {
/**
* Instantiates a new Restful interface.
*/
private RestfulInterface () {}
/**
* The constant timeOutValue.
*/
private static int timeOutValue = 1000; private static int timeOutValue = 1000;
/** /**
* The constant OBJECT_MAPPER. * The constant OBJECT_MAPPER.
*/ */
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
/**
* Init env.
*
* @param timeout the timeout
*/
public static void initEnv(int timeout) { public static void initEnv(int timeout) {
RestfulInterface.timeOutValue = timeout; RestfulInterface.timeOutValue = timeout;
} }

View File

@ -23,6 +23,11 @@ import java.security.SecureRandom;
@Slf4j @Slf4j
public class CryptoHelper { public class CryptoHelper {
/**
* Instantiates a new Crypto helper.
*/
private CryptoHelper() {}
/** /**
* The constant AES_ALGORITHM_STR. * The constant AES_ALGORITHM_STR.
*/ */