aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-01-11 07:18:38 +0100
committerBananeweizen <bananeweizen@gmx.de>2014-01-11 07:18:38 +0100
commit57b38dca04df6d97efcb21f2c80b4d417dd8969f (patch)
tree35070df39dc2511a00125d2dfa98c00ce2d5fae1
parentda3fb185f8d96a20df1cecbb0ee4a2be123a09df (diff)
downloadcgeo-57b38dca04df6d97efcb21f2c80b4d417dd8969f.zip
cgeo-57b38dca04df6d97efcb21f2c80b4d417dd8969f.tar.gz
cgeo-57b38dca04df6d97efcb21f2c80b4d417dd8969f.tar.bz2
refactoring: typo, imports, stringutils
-rw-r--r--main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapView.java2
-rw-r--r--main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java6
-rw-r--r--main/src/cgeo/geocaching/sorting/GeocodeComparator.java6
3 files changed, 6 insertions, 8 deletions
diff --git a/main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapView.java b/main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapView.java
index 78aa47d..ac77f8e 100644
--- a/main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapView.java
+++ b/main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapView.java
@@ -229,7 +229,7 @@ public class MapsforgeMapView extends MapView implements MapViewImpl {
@Override
public void setMapTheme() {
String customRenderTheme = Settings.getCustomRenderThemeFilePath();
- if (!StringUtils.isEmpty(customRenderTheme)) {
+ if (StringUtils.isNotEmpty(customRenderTheme)) {
try {
setRenderTheme(new File(customRenderTheme));
} catch (FileNotFoundException e) {
diff --git a/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java b/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java
index 6515ce5..2b171b4 100644
--- a/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java
+++ b/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java
@@ -34,9 +34,9 @@ public abstract class AbstractCacheComparator implements CacheComparator {
/**
* Check necessary preconditions (like missing fields) before running the comparison itself.
* Caches not filling the conditions will be placed last, sorted by Geocode.
- *
- * The default returns <code>true</code> and can be overriden if needed in child classes.
- *
+ *
+ * The default returns <code>true</code> and can be overridden if needed in child classes.
+ *
* @param cache
* @return <code>true</code> if the cache holds the necessary data to be compared meaningfully
*/
diff --git a/main/src/cgeo/geocaching/sorting/GeocodeComparator.java b/main/src/cgeo/geocaching/sorting/GeocodeComparator.java
index 60c25ad..e700f13 100644
--- a/main/src/cgeo/geocaching/sorting/GeocodeComparator.java
+++ b/main/src/cgeo/geocaching/sorting/GeocodeComparator.java
@@ -2,17 +2,15 @@ package cgeo.geocaching.sorting;
import cgeo.geocaching.Geocache;
-import org.apache.commons.lang3.StringUtils;
-
/**
* sorts caches by geo code, therefore effectively sorting by cache age
- *
+ *
*/
public class GeocodeComparator extends AbstractCacheComparator {
@Override
protected boolean canCompare(final Geocache cache) {
- // This will fallback to geocode comparisons.
+ // This will fall back to geocode comparisons.
return false;
}