Browse Source

无jira任务 SonarQube

master
vito 7 years ago
parent
commit
aa3e7e1ce9
  1. 6
      designer_base/src/com/fr/design/extra/LoginWebBridge.java
  2. 4
      designer_base/src/com/fr/design/extra/WebViewDlgHelper.java
  3. 1
      designer_base/src/com/fr/design/utils/concurrent/ThreadFactoryBuilder.java

6
designer_base/src/com/fr/design/extra/LoginWebBridge.java

@ -63,7 +63,7 @@ public class LoginWebBridge {
private UILabel uiLabel; private UILabel uiLabel;
private WebEngine webEngine; private WebEngine webEngine;
public LoginWebBridge() { private LoginWebBridge() {
} }
public static LoginWebBridge getHelper() { public static LoginWebBridge getHelper() {
@ -298,13 +298,13 @@ public class LoginWebBridge {
closeQQWindow(); closeQQWindow();
try { try {
Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("QQ_binding"))); Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("QQ_binding")));
} catch (Exception exp) { } catch (Exception ignored) {
// ignored
} }
} }
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage());
} }
} }
public void openUrlAtLocalWebBrowser(WebEngine eng, String url) { public void openUrlAtLocalWebBrowser(WebEngine eng, String url) {

4
designer_base/src/com/fr/design/extra/WebViewDlgHelper.java

@ -160,6 +160,7 @@ public class WebViewDlgHelper {
LoginWebBridge.getHelper().setQQDialog(qqLoginDialog); LoginWebBridge.getHelper().setQQDialog(qqLoginDialog);
qqLoginDialog.setVisible(true); qqLoginDialog.setVisible(true);
} catch (Throwable ignored) { } catch (Throwable ignored) {
// ignored
} }
} }
@ -174,6 +175,7 @@ public class WebViewDlgHelper {
PluginWebBridge.getHelper().setDialogHandle(dlg); PluginWebBridge.getHelper().setDialogHandle(dlg);
dlg.setVisible(true); dlg.setVisible(true);
} catch (Throwable ignored) { } catch (Throwable ignored) {
// ignored
} }
} }
@ -187,6 +189,7 @@ public class WebViewDlgHelper {
LoginWebBridge.getHelper().setDialogHandle(qqdlg); LoginWebBridge.getHelper().setDialogHandle(qqdlg);
qqdlg.setVisible(true); qqdlg.setVisible(true);
} catch (Throwable ignored) { } catch (Throwable ignored) {
// ignored
} }
} }
@ -207,6 +210,7 @@ public class WebViewDlgHelper {
PluginUtils.downloadShopScripts(scriptsId, new Process<Double>() { PluginUtils.downloadShopScripts(scriptsId, new Process<Double>() {
@Override @Override
public void process(Double integer) { public void process(Double integer) {
// 这个注释毫无意义,就是为了通过SonarQube
} }
}); });
} catch (PluginVerifyException e) { } catch (PluginVerifyException e) {

1
designer_base/src/com/fr/design/utils/concurrent/ThreadFactoryBuilder.java

@ -45,6 +45,7 @@ public final class ThreadFactoryBuilder {
* Creates a new {@link ThreadFactory} builder. * Creates a new {@link ThreadFactory} builder.
*/ */
public ThreadFactoryBuilder() { public ThreadFactoryBuilder() {
// 这个注释毫无意义,就是为了通过SonarQube
} }
/** /**

Loading…
Cancel
Save