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

Unified Diff: pkg/http/lib/src/base_request.dart

Issue 133993009: pkg/http: fixed analyzer warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | « no previous file | pkg/http/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/base_request.dart
diff --git a/pkg/http/lib/src/base_request.dart b/pkg/http/lib/src/base_request.dart
index e75ef156f00f2a2b7d35e7b47d9372c8f66c4ce7..6663b25544d34c337fc0ad41829e545ad81e406f 100644
--- a/pkg/http/lib/src/base_request.dart
+++ b/pkg/http/lib/src/base_request.dart
@@ -32,7 +32,7 @@ abstract class BaseRequest {
int _contentLength = -1;
set contentLength(int value) {
- _checkFinalized();
+ _baseCheckFinalized();
_contentLength = value;
}
@@ -42,7 +42,7 @@ abstract class BaseRequest {
bool _persistentConnection = true;
set persistentConnection(bool value) {
- _checkFinalized();
+ _baseCheckFinalized();
_persistentConnection = value;
}
@@ -52,7 +52,7 @@ abstract class BaseRequest {
bool _followRedirects = true;
set followRedirects(bool value) {
- _checkFinalized();
+ _baseCheckFinalized();
_followRedirects = value;
}
@@ -63,7 +63,7 @@ abstract class BaseRequest {
int _maxRedirects = 5;
set maxRedirects(int value) {
- _checkFinalized();
+ _baseCheckFinalized();
_maxRedirects = value;
}
@@ -123,7 +123,7 @@ abstract class BaseRequest {
}
/// Throws an error if this request has been finalized.
- void _checkFinalized() {
+ void _baseCheckFinalized() {
nweiz 2014/01/11 00:02:44 Add a TODO to rename this to checkFinalized when i
if (!finalized) return;
throw new StateError("Can't modify a finalized Request.");
}
« no previous file with comments | « no previous file | pkg/http/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698