From aa3e7e1ce9e4dbbfc96e208ee8e67afefdad3c5f Mon Sep 17 00:00:00 2001 From: vito Date: Fri, 10 Nov 2017 15:04:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20SonarQube?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_base/src/com/fr/design/extra/LoginWebBridge.java | 6 +++--- designer_base/src/com/fr/design/extra/WebViewDlgHelper.java | 4 ++++ .../fr/design/utils/concurrent/ThreadFactoryBuilder.java | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/designer_base/src/com/fr/design/extra/LoginWebBridge.java b/designer_base/src/com/fr/design/extra/LoginWebBridge.java index 7d002572c3..f946a7cc60 100644 --- a/designer_base/src/com/fr/design/extra/LoginWebBridge.java +++ b/designer_base/src/com/fr/design/extra/LoginWebBridge.java @@ -63,7 +63,7 @@ public class LoginWebBridge { private UILabel uiLabel; private WebEngine webEngine; - public LoginWebBridge() { + private LoginWebBridge() { } public static LoginWebBridge getHelper() { @@ -298,13 +298,13 @@ public class LoginWebBridge { closeQQWindow(); try { Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("QQ_binding"))); - } catch (Exception exp) { + } catch (Exception ignored) { + // ignored } } } catch (Exception e) { FRContext.getLogger().error(e.getMessage()); } - } public void openUrlAtLocalWebBrowser(WebEngine eng, String url) { diff --git a/designer_base/src/com/fr/design/extra/WebViewDlgHelper.java b/designer_base/src/com/fr/design/extra/WebViewDlgHelper.java index 30de87974b..16eb611921 100644 --- a/designer_base/src/com/fr/design/extra/WebViewDlgHelper.java +++ b/designer_base/src/com/fr/design/extra/WebViewDlgHelper.java @@ -160,6 +160,7 @@ public class WebViewDlgHelper { LoginWebBridge.getHelper().setQQDialog(qqLoginDialog); qqLoginDialog.setVisible(true); } catch (Throwable ignored) { + // ignored } } @@ -174,6 +175,7 @@ public class WebViewDlgHelper { PluginWebBridge.getHelper().setDialogHandle(dlg); dlg.setVisible(true); } catch (Throwable ignored) { + // ignored } } @@ -187,6 +189,7 @@ public class WebViewDlgHelper { LoginWebBridge.getHelper().setDialogHandle(qqdlg); qqdlg.setVisible(true); } catch (Throwable ignored) { + // ignored } } @@ -207,6 +210,7 @@ public class WebViewDlgHelper { PluginUtils.downloadShopScripts(scriptsId, new Process() { @Override public void process(Double integer) { + // 这个注释毫无意义,就是为了通过SonarQube } }); } catch (PluginVerifyException e) { diff --git a/designer_base/src/com/fr/design/utils/concurrent/ThreadFactoryBuilder.java b/designer_base/src/com/fr/design/utils/concurrent/ThreadFactoryBuilder.java index d7d2393e84..3af213ac9e 100644 --- a/designer_base/src/com/fr/design/utils/concurrent/ThreadFactoryBuilder.java +++ b/designer_base/src/com/fr/design/utils/concurrent/ThreadFactoryBuilder.java @@ -45,6 +45,7 @@ public final class ThreadFactoryBuilder { * Creates a new {@link ThreadFactory} builder. */ public ThreadFactoryBuilder() { + // 这个注释毫无意义,就是为了通过SonarQube } /**