代码优化
This commit is contained in:
@@ -41,7 +41,7 @@ public class PropertiesUtils {
|
||||
"file:bootstrap.yml", "file:config/bootstrap.yml",
|
||||
};
|
||||
|
||||
private static Logger logger = PropertiesUtils.initLogger();
|
||||
private static final Logger logger = PropertiesUtils.initLogger();
|
||||
private final Set<String> configSet = SetUtils.newLinkedHashSet();
|
||||
private final Properties properties = new Properties();
|
||||
private static Environment environment;
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||
*/
|
||||
public class ObjectUtils extends org.apache.commons.lang3.ObjectUtils {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(ObjectUtils.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(ObjectUtils.class);
|
||||
private static final boolean isJavaSerialize;
|
||||
|
||||
static {
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.jeesite.common.io.PropertiesUtils;
|
||||
*/
|
||||
public class EmailUtils {
|
||||
|
||||
private final static Logger logger = LoggerFactory.getLogger(EmailUtils.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(EmailUtils.class);
|
||||
|
||||
/**
|
||||
* 发送邮件
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.slf4j.LoggerFactory;
|
||||
*/
|
||||
public class SmsUtils {
|
||||
|
||||
private final static Logger logger = LoggerFactory.getLogger(SmsUtils.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(SmsUtils.class);
|
||||
|
||||
/**
|
||||
* 模拟发送短信
|
||||
|
||||
@@ -230,7 +230,7 @@ public class ReflectUtilsTest {
|
||||
*/
|
||||
class ReflectUtils2 {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(ReflectUtils2.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(ReflectUtils2.class);
|
||||
private static final String SETTER_PREFIX = "set";
|
||||
private static final String GETTER_PREFIX = "get";
|
||||
private static Class baseEntityClass = null;
|
||||
|
||||
Reference in New Issue
Block a user