Changeset 6335 in josm for trunk/src


Ignore:
Timestamp:
2013-10-27T04:23:57+01:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/Findbugs - Unused Private Fields

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticPropertiesPanel.java

    r6267 r6335  
    99
    1010import javax.swing.BorderFactory;
    11 import javax.swing.JCheckBox;
    1211import javax.swing.JLabel;
    1312import javax.swing.JPanel;
     
    2322    private JosmTextField tfUserName;
    2423    private JosmPasswordField tfPassword;
    25 
    26     private JCheckBox cbWriteMapData;
    27     private JCheckBox cbWriteGpsTraces;
    28     private JCheckBox cbReadGpsTraces;
    29 
    3024
    3125    protected JPanel buildUserNamePasswordPanel() {
  • trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java

    r6317 r6335  
    15001500    abstract public static class SourcePrefHelper {
    15011501
    1502         private final String prefOld;
    15031502        private final String pref;
    15041503
    15051504        public SourcePrefHelper(String pref, String prefOld) {
    15061505            this.pref = pref;
    1507             this.prefOld = prefOld;
    15081506        }
    15091507
  • trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java

    r6316 r6335  
    5757    // table of shortcuts
    5858    private AbstractTableModel model;
    59     // comboboxes of modifier groups, mapping selectedIndex to real data
    60     private static int[] modifInts = new int[]{
    61         -1,
    62         0,
    63         KeyEvent.SHIFT_DOWN_MASK,
    64         KeyEvent.CTRL_DOWN_MASK,
    65         KeyEvent.ALT_DOWN_MASK,
    66         KeyEvent.META_DOWN_MASK,
    67         KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK,
    68         KeyEvent.ALT_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK,
    69         KeyEvent.META_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK,
    70         KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK,
    71         KeyEvent.CTRL_DOWN_MASK | KeyEvent.META_DOWN_MASK,
    72         KeyEvent.ALT_DOWN_MASK | KeyEvent.META_DOWN_MASK,
    73         KeyEvent.CTRL_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK | KeyEvent.ALT_DOWN_MASK,
    74         KeyEvent.META_DOWN_MASK | KeyEvent.SHIFT_DOWN_MASK | KeyEvent.ALT_DOWN_MASK
    75     };
    76     // and here are the texts fro the comboboxes
    77     private static String[] modifList = new String[] {
    78         tr("disabled"),
    79         tr("no modifier"),
    80         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[2]).getModifiers()),
    81         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[3]).getModifiers()),
    82         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[4]).getModifiers()),
    83         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[5]).getModifiers()),
    84         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[6]).getModifiers()),
    85         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[7]).getModifiers()),
    86         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[8]).getModifiers()),
    87         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[9]).getModifiers()),
    88         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[10]).getModifiers()),
    89         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[11]).getModifiers()),
    90         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[12]).getModifiers()),
    91         KeyEvent.getKeyModifiersText(KeyStroke.getKeyStroke(KeyEvent.VK_A, modifInts[13]).getModifiers())
    92     };
    9359    // this are the display(!) texts for the checkboxes. Let the JVM do the i18n for us <g>.
    9460    // Ok, there's a real reason for this: The JVM should know best how the keys are labelled
     
    140106
    141107    /** Creates new form prefJPanel */
    142     // Ain't those auto-generated comments helpful or what? <g>
    143108    public PrefJPanel(AbstractTableModel model) {
    144109        this.model = model;
Note: See TracChangeset for help on using the changeset viewer.