Changeset 8404 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2015-05-21T01:18:35+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r8390 r8404 28 28 import java.util.LinkedList; 29 29 import java.util.List; 30 import java.util.Locale; 30 31 import java.util.Map; 31 32 import java.util.Map.Entry; … … 380 381 // check whether automatic update at startup was disabled 381 382 // 382 String policy = Main.pref.get(togglePreferenceKey, "ask").trim().toLowerCase( );383 String policy = Main.pref.get(togglePreferenceKey, "ask").trim().toLowerCase(Locale.ENGLISH); 383 384 switch(policy) { 384 385 case "never": … … 1408 1409 public void initDontShowAgain(String preferencesKey) { 1409 1410 String policy = Main.pref.get(preferencesKey, "ask"); 1410 policy = policy.trim().toLowerCase( );1411 policy = policy.trim().toLowerCase(Locale.ENGLISH); 1411 1412 cbDontShowAgain.setSelected(!"ask".equals(policy)); 1412 1413 } -
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r8395 r8404 19 19 import java.util.LinkedList; 20 20 import java.util.List; 21 import java.util.Locale; 21 22 import java.util.Map; 22 23 import java.util.TreeMap; … … 458 459 if (filter == null) return true; 459 460 if (value == null) return false; 460 return value.toLowerCase( ).contains(filter.toLowerCase());461 return value.toLowerCase(Locale.ENGLISH).contains(filter.toLowerCase(Locale.ENGLISH)); 461 462 } 462 463
Note:
See TracChangeset
for help on using the changeset viewer.