diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-05-12 10:04:12 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-05-12 10:04:12 +0200 |
| commit | d6f51e67c3d812b3642a4f6dd7293fc0182ed724 (patch) | |
| tree | b6607036b7a5bb38e2748fb6ac25d332e37790b8 /main/src/cgeo/geocaching/enumerations | |
| parent | 8e89bf354adc00fe40bed12b68a10fa21a3465a4 (diff) | |
| download | cgeo-d6f51e67c3d812b3642a4f6dd7293fc0182ed724.zip cgeo-d6f51e67c3d812b3642a4f6dd7293fc0182ed724.tar.gz cgeo-d6f51e67c3d812b3642a4f6dd7293fc0182ed724.tar.bz2 | |
fix new type parsing bug
* introduced in e4978ecfbdd755d585470cc963141e65966fe433
* added tests to avoid further similar issues
Diffstat (limited to 'main/src/cgeo/geocaching/enumerations')
| -rw-r--r-- | main/src/cgeo/geocaching/enumerations/CacheType.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/CacheType.java b/main/src/cgeo/geocaching/enumerations/CacheType.java index 5db45fe..86ff2c6 100644 --- a/main/src/cgeo/geocaching/enumerations/CacheType.java +++ b/main/src/cgeo/geocaching/enumerations/CacheType.java @@ -54,7 +54,7 @@ public enum CacheType { final HashMap<String, CacheType> mappingPattern = new HashMap<String, CacheType>(); for (CacheType ct : values()) { mappingId.put(ct.id, ct); - mappingPattern.put(ct.pattern, ct); + mappingPattern.put(ct.pattern.toLowerCase(), ct); } FIND_BY_ID = Collections.unmodifiableMap(mappingId); FIND_BY_PATTERN = Collections.unmodifiableMap(mappingPattern); |
