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

fix(HttpConfig): Remove the optional argument to the default ctor #1285

Closed
wants to merge 1 commit into from

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Jul 31, 2014

Because this is not currently supported by the Dependency injection.
A new HttpConfig.withOptions() ctor has been added.

This PR fix a warning reported by the analyzer because of the code generated by the DI transformers.

@jbdeboer
Copy link
Contributor

LGTM

I though @antingshen had fixed DI to make this possible, though.
(Edit: I see, di/dart's dart-archive/di.dart#153 is not merged yet)

@vicb
Copy link
Contributor Author

vicb commented Jul 31, 2014

@jbdeboer can I merge this one into master ?

I've linked di/153 in the PR above but it would not make that possible IIUC (possibly because of a dart2js bug)

Because this is not currently supported by the Dependency injection.
A new HttpConfig.withOptions() ctor has been added.
vicb added a commit that referenced this pull request Aug 1, 2014
Because this is not currently supported by the Dependency injection.
A new HttpConfig.withOptions() ctor has been added.

Closes #1285
@vicb vicb added this to the vicb-0.14 milestone Aug 13, 2014
@rkirov
Copy link
Contributor

rkirov commented Aug 14, 2014

LGTM, let's make sure we merge this before 0.14, the warnings are really annoying.

@@ -755,5 +755,7 @@ class Http {
class HttpConfig {
final Duration coalesceDuration;

HttpConfig({this.coalesceDuration});
HttpConfig(): coalesceDuration = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Uninitialized variables have an initial value of null." from the dart spec, but no downside to be extra explicit.

vicb added a commit that referenced this pull request Aug 15, 2014
Because this is not currently supported by the Dependency injection.
A new HttpConfig.withOptions() ctor has been added.

Closes #1285
@vicb vicb closed this in a84c0b8 Aug 15, 2014
dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this pull request Aug 16, 2014
Because this is not currently supported by the Dependency injection.
A new HttpConfig.withOptions() ctor has been added.

Closes dart-archive#1285
vicb added a commit that referenced this pull request Aug 19, 2014
Because this is not currently supported by the Dependency injection.
A new HttpConfig.withOptions() ctor has been added.

Closes #1285
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

4 participants