Browse Source

REPORT-28368 死锁问题 常量不需要每次读取

feature/big-screen
hades 5 years ago
parent
commit
2f42c6c52a
  1. 12
      designer-base/src/main/java/com/fr/design/mainframe/loghandler/DesignerLogHandler.java

12
designer-base/src/main/java/com/fr/design/mainframe/loghandler/DesignerLogHandler.java

@ -53,6 +53,12 @@ public class DesignerLogHandler {
private static final int SERVER_GAP_Y = -20;
private static final String ERROR_MARK = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Alert") + ":";
private static final String WARN_MARK = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Seriously") + ":";
private static final String NORMAL_MARK = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Normal") + ":";
public static DesignerLogHandler getInstance() {
return HOLDER.singleton;
@ -310,11 +316,11 @@ public class DesignerLogHandler {
private String appendLocaleMark(String str, int style) {
if (style == DesignerLogger.ERROR_INT) {
str = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Alert") + ":" + str + "\n";
str = ERROR_MARK + str + "\n";
} else if (style == DesignerLogger.WARN_INT) {
str = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Seriously") + ":" + str + "\n";
str = WARN_MARK + str + "\n";
} else {
str = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Normal") + ":" + str + "\n";
str = NORMAL_MARK + str + "\n";
}
return str;
}

Loading…
Cancel
Save