optimize modifier access
Signed-off-by: slievrly <slievrly@163.com>
This commit is contained in:
parent
cca2ca9752
commit
21bf279532
@ -24,5 +24,5 @@ public interface CredentialListener {
|
||||
/**
|
||||
* update Credential
|
||||
*/
|
||||
public void onUpdateCredential();
|
||||
void onUpdateCredential();
|
||||
}
|
||||
|
@ -26,12 +26,12 @@ public interface SpasCredential {
|
||||
*
|
||||
* @return AccessKey
|
||||
*/
|
||||
public String getAccessKey();
|
||||
String getAccessKey();
|
||||
|
||||
/**
|
||||
* get SecretKey
|
||||
*
|
||||
* @return SecretKey
|
||||
*/
|
||||
public String getSecretKey();
|
||||
String getSecretKey();
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public class CollectionUtils {
|
||||
return (coll == null || coll.isEmpty());
|
||||
}
|
||||
|
||||
private static final int getFreq(final Object obj, final Map freqMap) {
|
||||
private static int getFreq(final Object obj, final Map freqMap) {
|
||||
Integer count = (Integer)freqMap.get(obj);
|
||||
if (count != null) {
|
||||
return count.intValue();
|
||||
|
@ -37,7 +37,7 @@ public class InitUtils {
|
||||
* @param properties
|
||||
* @return
|
||||
*/
|
||||
public static final String initNamespaceForNaming(Properties properties) {
|
||||
public static String initNamespaceForNaming(Properties properties) {
|
||||
String tmpNamespace = null;
|
||||
|
||||
|
||||
@ -90,7 +90,7 @@ public class InitUtils {
|
||||
return tmpNamespace;
|
||||
}
|
||||
|
||||
public static final void initWebRootContext() {
|
||||
public static void initWebRootContext() {
|
||||
// support the web context with ali-yun if the app deploy by EDAS
|
||||
final String webContext = System.getProperty(SystemPropertyKeyConst.NAMING_WEB_CONTEXT);
|
||||
TemplateUtils.stringNotEmptyAndThenExecute(webContext, new Runnable() {
|
||||
@ -105,7 +105,7 @@ public class InitUtils {
|
||||
});
|
||||
}
|
||||
|
||||
public static final String initEndpoint(final Properties properties) {
|
||||
public static String initEndpoint(final Properties properties) {
|
||||
if (properties == null) {
|
||||
|
||||
return "";
|
||||
|
@ -23,7 +23,7 @@ import java.util.concurrent.Callable;
|
||||
*/
|
||||
public class TemplateUtils {
|
||||
|
||||
public static final void stringNotEmptyAndThenExecute(String source, Runnable runnable) {
|
||||
public static void stringNotEmptyAndThenExecute(String source, Runnable runnable) {
|
||||
|
||||
if (StringUtils.isNotEmpty(source)) {
|
||||
|
||||
@ -35,7 +35,7 @@ public class TemplateUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static final String stringEmptyAndThenExecute(String source, Callable<String> callable) {
|
||||
public static String stringEmptyAndThenExecute(String source, Callable<String> callable) {
|
||||
|
||||
if (StringUtils.isEmpty(source)) {
|
||||
|
||||
@ -49,7 +49,7 @@ public class TemplateUtils {
|
||||
return source.trim();
|
||||
}
|
||||
|
||||
public static final String stringBlankAndThenExecute(String source, Callable<String> callable) {
|
||||
public static String stringBlankAndThenExecute(String source, Callable<String> callable) {
|
||||
|
||||
if (StringUtils.isBlank(source)) {
|
||||
|
||||
|
@ -443,8 +443,6 @@ public class PersistService {
|
||||
}
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
static final class TenantInfoRowMapper implements RowMapper<TenantInfo> {
|
||||
@Override
|
||||
public TenantInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
|
||||
|
@ -113,7 +113,7 @@ public class EventDispatcher {
|
||||
|
||||
static final CopyOnWriteArrayList<Entry> LISTENER_HUB = new CopyOnWriteArrayList<Entry>();
|
||||
|
||||
static public interface Event {
|
||||
public interface Event {
|
||||
}
|
||||
|
||||
static public abstract class AbstractEventListener {
|
||||
|
@ -35,8 +35,6 @@ public class NamespaceAllInfo extends Namespace {
|
||||
public NamespaceAllInfo() {
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
public NamespaceAllInfo(String namespace, String namespaceShowName, int quota, int configCount, int type,
|
||||
String namespaceDesc) {
|
||||
super(namespace, namespaceShowName, quota, configCount, type);
|
||||
|
@ -144,7 +144,7 @@ public class ClientInfo {
|
||||
/**
|
||||
* Unknown client type
|
||||
*/
|
||||
UNKNOWN;
|
||||
UNKNOWN
|
||||
}
|
||||
|
||||
public static class ClientTypeDescription {
|
||||
|
@ -38,7 +38,6 @@ public class RandomUtils {
|
||||
public static long getLongMoreThanZero() {
|
||||
long res;
|
||||
for(res = rd.nextLong(); res <= 0L; res = rd.nextLong()) {
|
||||
;
|
||||
}
|
||||
|
||||
return res;
|
||||
@ -52,7 +51,6 @@ public class RandomUtils {
|
||||
public static long getLongMoreThanZeroLessThan(long n) {
|
||||
long res;
|
||||
for(res = getLongLessThan(n); res <= 0L; res = getLongLessThan(n)) {
|
||||
;
|
||||
}
|
||||
|
||||
return res;
|
||||
@ -74,7 +72,6 @@ public class RandomUtils {
|
||||
public static int getIntegerMoreThanZero() {
|
||||
int res;
|
||||
for(res = rd.nextInt(); res <= 0; res = rd.nextInt()) {
|
||||
;
|
||||
}
|
||||
|
||||
return res;
|
||||
@ -88,7 +85,6 @@ public class RandomUtils {
|
||||
public static int getIntegerMoreThanZeroLessThan(int n) {
|
||||
int res;
|
||||
for(res = rd.nextInt(n); res == 0; res = rd.nextInt(n)) {
|
||||
;
|
||||
}
|
||||
|
||||
return res;
|
||||
@ -273,7 +269,6 @@ public class RandomUtils {
|
||||
int[] source = new int[len];
|
||||
|
||||
for(int i = min; i < min + len; source[i - min] = i++) {
|
||||
;
|
||||
}
|
||||
|
||||
int[] result = new int[n];
|
||||
|
Loading…
Reference in New Issue
Block a user