Add more warnings source to 1.6) and fix warnings
[jvcard.git] / src / be / nikiroo / jvcard / tui / panes / MainContentList.java
index 9e5f8ec0e8278108d0aee9d971e6b1d04378f592..f7aaec4373c9c50a03f60e655933310c156d093d 100644 (file)
@@ -4,10 +4,10 @@ import java.util.LinkedList;
 import java.util.List;
 
 import be.nikiroo.jvcard.launcher.Main;
-import be.nikiroo.jvcard.resources.StringUtils;
-import be.nikiroo.jvcard.resources.enums.ColorOption;
-import be.nikiroo.jvcard.resources.enums.StringId;
+import be.nikiroo.jvcard.resources.ColorOption;
+import be.nikiroo.jvcard.resources.StringId;
 import be.nikiroo.jvcard.tui.UiColors;
+import be.nikiroo.utils.StringUtils;
 
 import com.googlecode.lanterna.TextColor;
 import com.googlecode.lanterna.gui2.AbstractListBox.ListItemRenderer;
@@ -88,6 +88,7 @@ abstract public class MainContentList extends MainContent implements Runnable {
                         *            Will be set to {@code true} if the list box currently
                         *            has input focus, otherwise {@code false}
                         */
+                       @Override
                        public void drawItem(TextGUIGraphics graphics,
                                        ActionListBox listBox, int index, Runnable item,
                                        boolean selected, boolean focused) {
@@ -225,7 +226,8 @@ abstract public class MainContentList extends MainContent implements Runnable {
         * 
         * @return the text representation
         */
-       protected List<TextPart> getLabel(int index, int width, boolean selected,
+       protected List<TextPart> getLabel(int index,
+                       @SuppressWarnings("unused") int width, boolean selected,
                        boolean focused) {
                List<TextPart> parts = new LinkedList<TextPart>();