From b6d19eeea75e255c40756b59e1c977988082589f Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Mon, 24 Oct 2011 23:13:37 +0200 Subject: Do not use an extra indirection for storing search results What is called search result (or cgSearch) in c:geo is a collection of caches that can or cannot come from a real search. Remove the indirection and the ever-growing hash map that was previously used. This will save memory, especially when using live maps. See discussion in issue #707. --- tests/src/cgeo/geocaching/cgeoApplicationTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/src') diff --git a/tests/src/cgeo/geocaching/cgeoApplicationTest.java b/tests/src/cgeo/geocaching/cgeoApplicationTest.java index 20743f1..9c63261 100644 --- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java +++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java @@ -9,7 +9,6 @@ import android.test.suitebuilder.annotation.SmallTest; import java.util.Date; import java.util.HashMap; -import java.util.UUID; import junit.framework.Assert; @@ -54,8 +53,8 @@ public class cgeoApplicationTest extends ApplicationTestCase { */ @MediumTest public void testSearchByGeocode() { - final UUID id = base.searchByGeocode("GC1RMM2", null, 0, true, null); - Assert.assertNotNull(id); + final cgSearch search = base.searchByGeocode("GC1RMM2", null, 0, true, null); + Assert.assertNotNull(search); } /** -- cgit v1.1