code cleanup
authorSergey Ignatov <sergey.ignatov@jetbrains.com>
Sat, 8 Nov 2014 13:43:57 +0000 (16:43 +0300)
committerSergey Ignatov <sergey.ignatov@jetbrains.com>
Sat, 8 Nov 2014 13:46:51 +0000 (16:46 +0300)
platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/TrafficLightRenderer.java

index d45a319fb451c209a3c7812fcfda65402714700f..a29e93f5cb7c5ed47d335fa2bcfdeb7a23c71e1b 100644 (file)
@@ -323,7 +323,7 @@ public class TrafficLightRenderer implements ErrorStripeRenderer, Disposable {
     progressBarsEnabled = false;
     progressBarsCompleted = null;
     statistics = "";
     progressBarsEnabled = false;
     progressBarsCompleted = null;
     statistics = "";
-    passStatusesVisible = (false);
+    passStatusesVisible = false;
     statusLabel = null;
     statusExtraLine = null;
 
     statusLabel = null;
     statusExtraLine = null;
 
@@ -343,7 +343,7 @@ public class TrafficLightRenderer implements ErrorStripeRenderer, Disposable {
     if (status.reasonWhyDisabled != null) {
       statusLabel = "No analysis has been performed";
       statusExtraLine = "(" + status.reasonWhyDisabled + ")";
     if (status.reasonWhyDisabled != null) {
       statusLabel = "No analysis has been performed";
       statusExtraLine = "(" + status.reasonWhyDisabled + ")";
-      passStatusesVisible = (true);
+      passStatusesVisible = true;
       progressBarsCompleted = Boolean.FALSE;
       icon = AllIcons.General.NoAnalysis;
       return result;
       progressBarsCompleted = Boolean.FALSE;
       icon = AllIcons.General.NoAnalysis;
       return result;
@@ -351,7 +351,7 @@ public class TrafficLightRenderer implements ErrorStripeRenderer, Disposable {
     if (status.reasonWhySuspended != null) {
       statusLabel = "Code analysis has been suspended";
       statusExtraLine = "(" + status.reasonWhySuspended + ")";
     if (status.reasonWhySuspended != null) {
       statusLabel = "Code analysis has been suspended";
       statusExtraLine = "(" + status.reasonWhySuspended + ")";
-      passStatusesVisible = (true);
+      passStatusesVisible = true;
       progressBarsCompleted = Boolean.FALSE;
       icon = AllIcons.Actions.Pause;
       return result;
       progressBarsCompleted = Boolean.FALSE;
       icon = AllIcons.Actions.Pause;
       return result;
@@ -413,7 +413,7 @@ public class TrafficLightRenderer implements ErrorStripeRenderer, Disposable {
     passes.clear();
     for (ProgressableTextEditorHighlightingPass pass : status.passStati) {
       JProgressBar progressBar = new JProgressBar(0, MAX);
     passes.clear();
     for (ProgressableTextEditorHighlightingPass pass : status.passStati) {
       JProgressBar progressBar = new JProgressBar(0, MAX);
-      progressBar.setMaximum(TrafficLightRenderer.MAX);
+      progressBar.setMaximum(MAX);
       progressBar.putClientProperty("JComponent.sizeVariant", "mini");
       JLabel percLabel = new JLabel();
       percLabel.setText(TrafficProgressPanel.MAX_TEXT);
       progressBar.putClientProperty("JComponent.sizeVariant", "mini");
       JLabel percLabel = new JLabel();
       percLabel.setText(TrafficProgressPanel.MAX_TEXT);