diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-27 17:36:13 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-27 17:36:13 +0200 |
| commit | f179614934705d4a5880f16a9cedee8b486d69c1 (patch) | |
| tree | 129c2f114a994c514981c0c4686b603d3b153f67 /tests/src | |
| parent | dda85545ae2e7c457179fd65ba5ae3bc8d309a53 (diff) | |
| download | cgeo-f179614934705d4a5880f16a9cedee8b486d69c1.zip cgeo-f179614934705d4a5880f16a9cedee8b486d69c1.tar.gz cgeo-f179614934705d4a5880f16a9cedee8b486d69c1.tar.bz2 | |
Refactoring: remove redundant local variables
Those variables were immediately returned.
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/cgeo/geocaching/files/GPXParserTest.java | 3 | ||||
| -rw-r--r-- | tests/src/cgeo/geocaching/files/LocParserTest.java | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java index f37f327..47975c9 100644 --- a/tests/src/cgeo/geocaching/files/GPXParserTest.java +++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java @@ -193,9 +193,8 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase { } } - List<cgCache> cacheList = new ArrayList<cgCache>(caches); // TODO: may need to sort by geocode when a test imports more than one cache - return cacheList; + return new ArrayList<cgCache>(caches); } public static void testParseDateWithFractionalSeconds() { diff --git a/tests/src/cgeo/geocaching/files/LocParserTest.java b/tests/src/cgeo/geocaching/files/LocParserTest.java index 6cd6c7b..7e7a1be 100644 --- a/tests/src/cgeo/geocaching/files/LocParserTest.java +++ b/tests/src/cgeo/geocaching/files/LocParserTest.java @@ -25,9 +25,8 @@ public class LocParserTest extends AbstractResourceInstrumentationTestCase { instream.close(); } - List<cgCache> cacheList = new ArrayList<cgCache>(caches); // TODO: may need to sort by geocode when a test imports more than one cache - return cacheList; + return new ArrayList<cgCache>(caches); } public void testOCLoc() throws IOException, ParserException { |
