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

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Jun 24, 2014

The Cache implements concrete methods then we should extends it, not implements it

This fix an analyzer warning

Warning: 'FakeCache' doesn't implement 'Cache<String, HttpResponse> clear inherited from Cache<String, HttpResponse>' declared in 'Cache<String, HttpResponse>'.
Try adding an implementation of 'clear' or declaring 'FakeCache' to be 'abstract'.
class FakeCache extends UnboundedCache<String, HttpResponse> {
^^^^^
packages/angular/cache/cache.dart:42:8:
Info: The method 'clear' is declared here in class 'Cache'.
  void clear() => removeAll();
       ^^^^^
base/test/core_dom/http_spec.dart:10:1:
Warning: 'FakeCache' doesn't implement the getter 'length' declared in 'Cache<String, HttpResponse>'.
Try adding an implementation of 'length' or declaring 'FakeCache' to be 'abstract'.
class FakeCache extends UnboundedCache<String, HttpResponse> {
^^^^^
packages/angular/cache/cache.dart:43:11:
Info: The getter 'length' is declared here in class 'Cache'.
  int get length => size;

/cc @jbdeboer

@vicb vicb changed the title fix(cache): Make UnboundedCache implement Cache fix(cache): Make UnboundedCache extend Cache Jun 24, 2014
@vicb vicb added cla: yes and removed cla: no labels Jun 24, 2014
@jbdeboer
Copy link
Contributor

Looks good to me, I will merge this today.

vicb added a commit that referenced this pull request Jun 25, 2014
@jbdeboer
Copy link
Contributor

This PR doesn't apply to the g3v1x at the moment.

https://travis-ci.org/angular/angular.dart/jobs/28451827

@jbdeboer
Copy link
Contributor

jbdeboer commented Jul 2, 2014

That is due to missing 9651c87 in g3v1x. I will merge that in tomorrow which should unblock this change

@jbdeboer jbdeboer self-assigned this Jul 2, 2014
@jbdeboer
Copy link
Contributor

jbdeboer commented Jul 3, 2014

@vicb: This should be good to merge to master now.

@vicb
Copy link
Contributor Author

vicb commented Jul 3, 2014

Thanks. Can you handle that ?

On July 3, 2014 6:18:01 PM CEST, James deBoer notifications@github.com wrote:

@vicb: This should be good to merge to master now.


Reply to this email directly or view it on GitHub:
#1174 (comment)

vicb added a commit that referenced this pull request Jul 7, 2014
@vicb vicb closed this in 08e7305 Jul 8, 2014
vicb added a commit that referenced this pull request Jul 8, 2014
dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this pull request Jul 16, 2014
@vicb vicb deleted the 0624-cache branch July 20, 2014 10:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants