From 09416aca4dd2fef74d61f7851cf4fc70a6a959df Mon Sep 17 00:00:00 2001 From: vito Date: Sat, 11 Nov 2017 14:51:18 +0800 Subject: [PATCH] pmd --- designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java b/designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java index e2dfb08667..b313ac1ba5 100644 --- a/designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java +++ b/designer/src/com/fr/design/mainframe/bbs/UserInfoLabel.java @@ -52,6 +52,7 @@ import java.util.concurrent.TimeUnit; */ public class UserInfoLabel extends UILabel { + private static final int VERSION_8 = 8; //默认查询消息时间, 30s private static final long CHECK_MESSAGE_TIME = 30 * 1000L; //默认论坛检测到更新后的弹出延迟时间 @@ -99,7 +100,7 @@ public class UserInfoLabel extends UILabel { this.setHorizontalAlignment(SwingConstants.CENTER); this.setText(userName); - if (StableUtils.getMajorJavaVersion() == 8) { + if (StableUtils.getMajorJavaVersion() == VERSION_8) { LoginWebBridge.getHelper().setUILabel(UserInfoLabel.this); PluginWebBridge.getHelper().setUILabel(UserInfoLabel.this); }