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

Commit fc28e6b

Browse files
vicbjbdeboer
authored andcommitted
fix(cache): Make UnboundedCache extend Cache
Closes #1174
1 parent 05e2c57 commit fc28e6b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/cache/cache.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract class Cache<K, V> {
4747
/**
4848
* An unbounded cache.
4949
*/
50-
class UnboundedCache<K, V> implements Cache<K, V> {
50+
class UnboundedCache<K, V> extends Cache<K, V> {
5151
Map<K, V> _entries = new HashMap<K, V>();
5252
int _hits = 0;
5353
int _misses = 0;

test/core_dom/http_spec.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ var VALUE = 'val';
88
var CACHED_VALUE = 'cached_value';
99

1010
class FakeCache extends UnboundedCache<String, HttpResponse> {
11-
get(x) => x == 'f' ? new HttpResponse(200, CACHED_VALUE) : null;
12-
put(_,__) => null;
13-
11+
HttpResponse get(x) => x == 'f' ? new HttpResponse(200, CACHED_VALUE) : null;
12+
HttpResponse put(_,__) => null;
1413
}
1514

1615
class SubstringRewriter extends UrlRewriter {

0 commit comments

Comments
 (0)