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

Unified Diff: sdk/lib/convert/json.dart

Issue 2529393002: Make core libraries use generic method syntax. (Closed)
Patch Set: Change chunked conversion back. Created 4 years 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
Index: sdk/lib/convert/json.dart
diff --git a/sdk/lib/convert/json.dart b/sdk/lib/convert/json.dart
index 3d5ee82989be0b8ca3028b3a3c08c0dd7b463ed7..822bbbb2ec9183f447488ddb2ee901a89ca95a03 100644
--- a/sdk/lib/convert/json.dart
+++ b/sdk/lib/convert/json.dart
@@ -268,13 +268,13 @@ class JsonEncoder extends Converter<Object, String>
// Override the base class's bind, to provide a better type.
Stream<String> bind(Stream<Object> stream) => super.bind(stream);
- Converter<Object, dynamic/*=T*/> fuse/*<T>*/(
- Converter<String, dynamic/*=T*/> other) {
+ Converter<Object, T> fuse<T>(
floitsch 2016/12/19 19:14:45 should fit on the same line.
Lasse Reichstein Nielsen 2017/01/03 10:33:20 Done.
+ Converter<String, T> other) {
if (other is Utf8Encoder) {
return new JsonUtf8Encoder(indent, _toEncodable)
as dynamic/*=Converter<Object, T>*/;
}
- return super.fuse/*<T>*/(other);
+ return super.fuse<T>(other);
}
}

Powered by Google App Engine
This is Rietveld 408576698