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

Unified Diff: lib/uri/uri.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/html/src/dart2js_LocationWrapper.dart ('k') | lib/utf/utf16.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/uri/uri.dart
diff --git a/lib/uri/uri.dart b/lib/uri/uri.dart
index 6cb153967845ade1b5203562c1b749d946ce5f9f..074043e448c05150b9493c3312e75791fcdcb6af 100644
--- a/lib/uri/uri.dart
+++ b/lib/uri/uri.dart
@@ -177,7 +177,7 @@ class Uri {
* For all other schemes throws IllegalArgumentException.
* [origin]: http://www.w3.org/TR/2011/WD-html5-20110405/origin-0.html#origin
*/
- String get origin() {
+ String get origin {
if (scheme == "") {
// TODO(aprelev@gmail.com): Use StateException instead
throw new IllegalArgumentException("Cannot use origin without a scheme");
« no previous file with comments | « lib/html/src/dart2js_LocationWrapper.dart ('k') | lib/utf/utf16.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698