Add more warnings source to 1.6) and fix warnings
[jvcard.git] / src / be / nikiroo / jvcard / tui / MainWindow.java
index 39560a4c7a57d7ea766f47df05cb9a81abaed1ce..617d8a521eb692e17f103f56ddb9bf9f6ba0ab4f 100644 (file)
@@ -460,19 +460,16 @@ public class MainWindow extends BasicWindow {
                                UiColors.themeLabel(ColorOption.TITLE_VARIABLE, lblTitle);
                        }
 
-                       Label lblCount = null;
-                       if (countStr != null) {
-                               lblCount = new Label(countStr);
-                               UiColors.themeLabel(ColorOption.TITLE_COUNT, lblCount);
-                       }
+                       Label lblCount = new Label(countStr);
+                       UiColors.themeLabel(ColorOption.TITLE_COUNT, lblCount);
 
                        titlePanel.removeAllComponents();
 
                        titlePanel.addComponent(lblPrefix, BorderLayout.Location.LEFT);
-                       if (lblTitle != null)
+                       if (lblTitle != null) {
                                titlePanel.addComponent(lblTitle, BorderLayout.Location.CENTER);
-                       if (lblCount != null)
-                               titlePanel.addComponent(lblCount, BorderLayout.Location.RIGHT);
+                       }
+                       titlePanel.addComponent(lblCount, BorderLayout.Location.RIGHT);
                }
        }