Skip to content

Commit

Permalink
Adds @OverRide
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Aug 6, 2015
1 parent 3759fb0 commit 67c5e84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class OpenTypeController implements IndexesChangeListener {
selectLocationController = new SelectLocationController(swing, configuration, api)
// Create result cache
cache = new LinkedHashMap<String, Collection<Container.Entry>>(CACHE_MAX_ENTRIES*3/2, 0.7f, true) {
@Override
protected boolean removeEldestEntry(Map.Entry<String, Collection<Container.Entry>> eldest) {
return size() > CACHE_MAX_ENTRIES
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class SearchInConstantPoolsController implements IndexesChangeListener {
)
// Create result cache
this.cache = new LinkedHashMap<String, Collection<Container.Entry>>(CACHE_MAX_ENTRIES*3/2, 0.7f, true) {
@Override
protected boolean removeEldestEntry(Map.Entry<String, Collection<Container.Entry>> eldest) {
return size() > CACHE_MAX_ENTRIES
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ public Cache() {
super(CACHE_MAX_ENTRIES*3/2, 0.7f, true);
}

@Override
protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
return size() > CACHE_MAX_ENTRIES;
}
Expand Down

0 comments on commit 67c5e84

Please sign in to comment.