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

Unified Diff: runtime/bin/input_stream.dart

Issue 9662002: Prevent creation of additional FileMode and Encoding objects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « runtime/bin/file.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/input_stream.dart
diff --git a/runtime/bin/input_stream.dart b/runtime/bin/input_stream.dart
index 026ddc13d0aeb0396e5bb11e93c65fdc980db532..c1ca3270d14585885dabf969c165a3f69bde96d2 100644
--- a/runtime/bin/input_stream.dart
+++ b/runtime/bin/input_stream.dart
@@ -104,10 +104,10 @@ interface InputStream {
* [StringOutputStream].
*/
class Encoding {
- static final Encoding UTF_8 = const Encoding("UTF-8");
- static final Encoding ISO_8859_1 = const Encoding("ISO-8859-1");
- static final Encoding ASCII = const Encoding("ASCII");
- const Encoding(String this.name);
+ static final Encoding UTF_8 = const Encoding._internal("UTF-8");
+ static final Encoding ISO_8859_1 = const Encoding._internal("ISO-8859-1");
+ static final Encoding ASCII = const Encoding._internal("ASCII");
+ const Encoding._internal(String this.name);
final String name;
}
« no previous file with comments | « runtime/bin/file.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698