git://git.nikiroo.be
/
jvcard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more warnings source to 1.6) and fix warnings
[jvcard.git]
/
src
/
be
/
nikiroo
/
jvcard
/
tui
/
MainWindow.java
diff --git
a/src/be/nikiroo/jvcard/tui/MainWindow.java
b/src/be/nikiroo/jvcard/tui/MainWindow.java
index 39560a4c7a57d7ea766f47df05cb9a81abaed1ce..617d8a521eb692e17f103f56ddb9bf9f6ba0ab4f 100644
(file)
--- a/
src/be/nikiroo/jvcard/tui/MainWindow.java
+++ b/
src/be/nikiroo/jvcard/tui/MainWindow.java
@@
-460,19
+460,16
@@
public class MainWindow extends BasicWindow {
UiColors.themeLabel(ColorOption.TITLE_VARIABLE, lblTitle);
}
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);
titlePanel.removeAllComponents();
titlePanel.addComponent(lblPrefix, BorderLayout.Location.LEFT);
- if (lblTitle != null)
+ if (lblTitle != null)
{
titlePanel.addComponent(lblTitle, BorderLayout.Location.CENTER);
titlePanel.addComponent(lblTitle, BorderLayout.Location.CENTER);
- if (lblCount != null)
-
titlePanel.addComponent(lblCount, BorderLayout.Location.RIGHT);
+ }
+ titlePanel.addComponent(lblCount, BorderLayout.Location.RIGHT);
}
}
}
}