REM:
1. 禁止实例化工具类
This commit is contained in:
HuangXin 2020-10-19 09:01:11 +08:00
parent bc14fc7989
commit 770d40df8a
9 changed files with 27 additions and 9 deletions

View File

@ -45,5 +45,7 @@ public class AuthConfigValue {
/**
* Instantiates a new Auth config value.
*/
private AuthConfigValue() {}
private AuthConfigValue() {
throw new AssertionError("Instantiating utility class.");
}
}

View File

@ -103,5 +103,7 @@ public class ConstValue {
/**
* Instantiates a new Const value.
*/
private ConstValue() {}
private ConstValue() {
throw new AssertionError("Instantiating utility class.");
}
}

View File

@ -10,7 +10,9 @@ public class DisposeConfigValue {
/**
* Instantiates a new Dispose config value.
*/
private DisposeConfigValue() {}
private DisposeConfigValue() {
throw new AssertionError("Instantiating utility class.");
}
/**
* The constant CHECK_PROTO_REQUEST_TIMEOUT.

View File

@ -9,7 +9,9 @@ public class DpTechConfigValue {
/**
* Instantiates a new Dp tech config value.
*/
private DpTechConfigValue () {}
private DpTechConfigValue () {
throw new AssertionError("Instantiating utility class.");
}
/**
* The constant SOAP_CONNECT_TIMEOUT_SECOND.

View File

@ -26,7 +26,9 @@ public class Helper {
/**
* Instantiates a new Helper.
*/
private Helper () {}
private Helper () {
throw new AssertionError("Instantiating utility class.");
}
/**
* Gets current datetime.

View File

@ -14,7 +14,9 @@ public class PrivacyHelper {
/**
* Instantiates a new Privacy helper.
*/
private PrivacyHelper() {}
private PrivacyHelper() {
throw new AssertionError("Instantiating utility class.");
}
/**
* Ip address privacy string.

View File

@ -10,7 +10,9 @@ public class SecurityConfigValue {
/**
* Instantiates a new Security config value.
*/
private SecurityConfigValue() {}
private SecurityConfigValue() {
throw new AssertionError("Instantiating utility class.");
}
/**
* The constant AES_KEY.

View File

@ -25,7 +25,9 @@ public class RestfulInterface {
/**
* Instantiates a new Restful interface.
*/
private RestfulInterface () {}
private RestfulInterface () {
throw new AssertionError("Instantiating utility class.");
}
/**
* The constant timeOutValue.

View File

@ -26,7 +26,9 @@ public class CryptoHelper {
/**
* Instantiates a new Crypto helper.
*/
private CryptoHelper() {}
private CryptoHelper() {
throw new AssertionError("Instantiating utility class.");
}
/**
* The constant AES_ALGORITHM_STR.