Ignore:
Timestamp:
2007-07-19T10:54:34+02:00 (17 years ago)
Author:
frsantos
Message:

Fix OOBE while fixing am error when the it was manually fixed
Removed unused param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/SpellCheck.java

    r3440 r3622  
    115115        public static void initialize(OSMValidatorPlugin plugin) throws Exception
    116116        {
    117                 initializeSpellCheck(plugin);
    118                 initializePresets(plugin);
     117                initializeSpellCheck();
     118                initializePresets();
    119119        }
    120120
     
    126126         * by the nearest + word before this.
    127127         *
    128          * @param plugin The validator plugin
    129128         * @throws FileNotFoundException
    130129         * @throws IOException
    131130         */
    132         private static void initializeSpellCheck(OSMValidatorPlugin plugin) throws FileNotFoundException, IOException
     131        private static void initializeSpellCheck() throws FileNotFoundException, IOException
    133132        {
    134133                spellCheckKeyData = new HashMap<String, String>();
     
    187186         * @throws Exception
    188187         */
    189         public static void initializePresets(@SuppressWarnings("unused") OSMValidatorPlugin plugin) throws Exception
     188        public static void initializePresets() throws Exception
    190189        {
    191190                if( !Main.pref.getBoolean(PREF_CHECK_VALUES) )
     
    532531                }
    533532               
    534                 return commands.size() > 1 ? new SequenceCommand("Fix properties", commands) : commands.get(0);
     533        if( commands.size() == 0 )
     534            return null;
     535        else if( commands.size() == 1 )
     536            return commands.get(0);
     537        else
     538            return new SequenceCommand("Fix properties", commands);
    535539        }
    536540       
Note: See TracChangeset for help on using the changeset viewer.