aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-01-02 23:34:59 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-01-02 23:34:59 +0100
commit9a58eff9c778ff6ccead71f38c3bb530fc4a1f7f (patch)
tree5553e998ee3601de086d1710dddf9bd3bc84668f /tests/src/cgeo/geocaching/test
parent20c01477343609313e6df30b1c43ff4ec88e8b74 (diff)
downloadcgeo-9a58eff9c778ff6ccead71f38c3bb530fc4a1f7f.zip
cgeo-9a58eff9c778ff6ccead71f38c3bb530fc4a1f7f.tar.gz
cgeo-9a58eff9c778ff6ccead71f38c3bb530fc4a1f7f.tar.bz2
refactoring: remove unused methods, add null annotations
Diffstat (limited to 'tests/src/cgeo/geocaching/test')
-rw-r--r--tests/src/cgeo/geocaching/test/mock/MockedCache.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/test/mock/MockedCache.java b/tests/src/cgeo/geocaching/test/mock/MockedCache.java
index 14d8d70..1981283 100644
--- a/tests/src/cgeo/geocaching/test/mock/MockedCache.java
+++ b/tests/src/cgeo/geocaching/test/mock/MockedCache.java
@@ -10,16 +10,18 @@ import cgeo.geocaching.location.Geopoint;
import cgeo.geocaching.utils.TextUtils;
import org.apache.commons.lang3.StringUtils;
+import org.eclipse.jdt.annotation.NonNull;
import org.mapsforge.core.IOUtils;
-import junit.framework.Assert;
-
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
+import java.util.Collections;
import java.util.List;
+import junit.framework.Assert;
+
public abstract class MockedCache extends Geocache {
final protected Geopoint coords;
@@ -141,8 +143,9 @@ public abstract class MockedCache extends Geocache {
}
@Override
+ @NonNull
public List<Image> getSpoilers() {
- return null;
+ return Collections.emptyList();
}
@Override