Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Unified Diff: sdk/lib/io/http_impl.dart

Issue 1393033002: Move super initializers to end of list (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/convert/json.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 880d771a6af82c11f95d3160ce67e8236d8d43ed..2b2bb8675ef4e948d3d9f04c7b3caa9e5bc0753f 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -431,15 +431,15 @@ abstract class _HttpOutboundMessage<T> extends _IOSinkImpl {
String protocolVersion,
_HttpOutgoing outgoing,
{_HttpHeaders initialHeaders})
- : super(outgoing, null),
- _uri = uri,
+ : _uri = uri,
headers = new _HttpHeaders(
protocolVersion,
defaultPortForScheme: uri.scheme == 'https' ?
HttpClient.DEFAULT_HTTPS_PORT :
HttpClient.DEFAULT_HTTP_PORT,
initialHeaders: initialHeaders),
- _outgoing = outgoing {
+ _outgoing = outgoing,
+ super(outgoing, null) {
_outgoing.outbound = this;
_encodingMutable = false;
}
@@ -718,8 +718,8 @@ class _HttpClientRequest extends _HttpOutboundMessage<HttpClientResponse>
_HttpClientRequest(_HttpOutgoing outgoing, Uri uri, this.method, this._proxy,
this._httpClient, this._httpClientConnection)
- : super(uri, "1.1", outgoing),
- uri = uri {
+ : uri = uri,
+ super(uri, "1.1", outgoing) {
// GET and HEAD have 'content-length: 0' by default.
if (method == "GET" || method == "HEAD") {
contentLength = 0;
« no previous file with comments | « sdk/lib/convert/json.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698