未验证 提交 7dd126da 编写于 作者: T t1mon 提交者: GitHub

Optimize PropertyUtils instantiation. (#2199)

* Optimize PropertyUtils instantiation.

* Fix info error.
上级 c5e1c55c
......@@ -43,13 +43,11 @@ public class PropertyUtils {
private static final Properties properties = new Properties();
private static final PropertyUtils propertyUtils = new PropertyUtils();
private PropertyUtils(){
init();
private PropertyUtils() {
throw new IllegalStateException("PropertyUtils class");
}
private void init(){
static {
String[] propertyFiles = new String[]{COMMON_PROPERTIES_PATH};
for (String fileName : propertyFiles) {
InputStream fis = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册