Changeset 3622 in osm for applications/editors/josm/plugins/validator/src
- Timestamp:
- 2007-07-19T10:54:34+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/SpellCheck.java
r3440 r3622 115 115 public static void initialize(OSMValidatorPlugin plugin) throws Exception 116 116 { 117 initializeSpellCheck( plugin);118 initializePresets( plugin);117 initializeSpellCheck(); 118 initializePresets(); 119 119 } 120 120 … … 126 126 * by the nearest + word before this. 127 127 * 128 * @param plugin The validator plugin129 128 * @throws FileNotFoundException 130 129 * @throws IOException 131 130 */ 132 private static void initializeSpellCheck( OSMValidatorPlugin plugin) throws FileNotFoundException, IOException131 private static void initializeSpellCheck() throws FileNotFoundException, IOException 133 132 { 134 133 spellCheckKeyData = new HashMap<String, String>(); … … 187 186 * @throws Exception 188 187 */ 189 public static void initializePresets( @SuppressWarnings("unused") OSMValidatorPlugin plugin) throws Exception188 public static void initializePresets() throws Exception 190 189 { 191 190 if( !Main.pref.getBoolean(PREF_CHECK_VALUES) ) … … 532 531 } 533 532 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); 535 539 } 536 540
Note:
See TracChangeset
for help on using the changeset viewer.