Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
fix(cache): Make UnboundedCache extend Cache
Browse files Browse the repository at this point in the history
Closes #1174
  • Loading branch information
vicb authored and jbdeboer committed Jul 8, 2014
1 parent e5859a5 commit 08e7305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/cache/cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract class Cache<K, V> {
/**
* An unbounded cache.
*/
class UnboundedCache<K, V> implements Cache<K, V> {
class UnboundedCache<K, V> extends Cache<K, V> {
Map<K, V> _entries = new HashMap<K, V>();
int _hits = 0;
int _misses = 0;
Expand Down
5 changes: 2 additions & 3 deletions test/core_dom/http_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ var VALUE = 'val';
var CACHED_VALUE = 'cached_value';

class FakeCache extends UnboundedCache<String, HttpResponse> {
get(x) => x == 'f' ? new HttpResponse(200, CACHED_VALUE) : null;
put(_,__) => null;

HttpResponse get(x) => x == 'f' ? new HttpResponse(200, CACHED_VALUE) : null;
HttpResponse put(_,__) => null;
}

class SubstringRewriter extends UrlRewriter {
Expand Down

0 comments on commit 08e7305

Please sign in to comment.