diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-09-07 17:46:02 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-09-07 17:46:02 +0200 |
| commit | 815ee250714b2cfb7effbd02880fd688f30778b9 (patch) | |
| tree | bec7540923ce25f2fdad2fe1c32ce29d28d86817 /main/src/cgeo/geocaching/Intents.java | |
| parent | 8cd0f9d353cc4800deeb6c17375ed27090b71de6 (diff) | |
| download | cgeo-815ee250714b2cfb7effbd02880fd688f30778b9.zip cgeo-815ee250714b2cfb7effbd02880fd688f30778b9.tar.gz cgeo-815ee250714b2cfb7effbd02880fd688f30778b9.tar.bz2 | |
fix some findbugs issues
Diffstat (limited to 'main/src/cgeo/geocaching/Intents.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Intents.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/Intents.java b/main/src/cgeo/geocaching/Intents.java index a2b9dee..5ed2719 100644 --- a/main/src/cgeo/geocaching/Intents.java +++ b/main/src/cgeo/geocaching/Intents.java @@ -89,12 +89,10 @@ public class Intents { if (StringUtils.isBlank(typeName)) { return CacheListType.OFFLINE; } - CacheListType listType; try { - listType = CacheListType.valueOf(typeName); + return CacheListType.valueOf(typeName); } catch (final IllegalArgumentException e) { return CacheListType.OFFLINE; } - return (listType != null) ? listType : CacheListType.OFFLINE; } } |
