diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-01-14 12:14:40 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-01-14 12:14:40 +0100 |
| commit | f0db598f7978156a6de8a96bfa316abd76068b41 (patch) | |
| tree | 4eebca1671fcea13a66d4ad5101308b6ae574bef /main/src/cgeo/geocaching/gcvote | |
| parent | a0b1d7ba4a23587a4a44cffb7ac80d4d8b336ae9 (diff) | |
| download | cgeo-f0db598f7978156a6de8a96bfa316abd76068b41.zip cgeo-f0db598f7978156a6de8a96bfa316abd76068b41.tar.gz cgeo-f0db598f7978156a6de8a96bfa316abd76068b41.tar.bz2 | |
refactoring: move and rename LeastRecentlyUsedCache to avoid confusion
Diffstat (limited to 'main/src/cgeo/geocaching/gcvote')
| -rw-r--r-- | main/src/cgeo/geocaching/gcvote/GCVote.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/gcvote/GCVote.java b/main/src/cgeo/geocaching/gcvote/GCVote.java index 0d7f202..377014e 100644 --- a/main/src/cgeo/geocaching/gcvote/GCVote.java +++ b/main/src/cgeo/geocaching/gcvote/GCVote.java @@ -1,10 +1,10 @@ package cgeo.geocaching.gcvote; -import cgeo.geocaching.Cache; import cgeo.geocaching.Parameters; import cgeo.geocaching.Settings; import cgeo.geocaching.cgBase; import cgeo.geocaching.cgCache; +import cgeo.geocaching.utils.LeastRecentlyUsedCache; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.ImmutablePair; @@ -28,7 +28,7 @@ public final class GCVote { private static final Pattern patternVoteElement = Pattern.compile("<vote ([^>]+)>", Pattern.CASE_INSENSITIVE); private static final int MAX_CACHED_RATINGS = 1000; - private static Cache<String, GCVoteRating> ratingsCache = new Cache<String, GCVoteRating>(MAX_CACHED_RATINGS); + private static LeastRecentlyUsedCache<String, GCVoteRating> ratingsCache = new LeastRecentlyUsedCache<String, GCVoteRating>(MAX_CACHED_RATINGS); /** * Get user rating for a given guid or geocode. For a guid first the ratings cache is checked |
