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

Unified Diff: lib/src/protobuf/field_type.dart

Issue 1844293003: Add generic types for strong mode (Closed) Base URL: git@github.com:dart-lang/dart-protobuf.git@master
Patch Set: oops, change all callers to use fi._createRepeatedField Created 4 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
Index: lib/src/protobuf/field_type.dart
diff --git a/lib/src/protobuf/field_type.dart b/lib/src/protobuf/field_type.dart
index adf67ab3631fe83c1c4e85dd8d5ce07394a1c723..9f761483e18b167af93c4b1d4157b18d4a67d3fe 100644
--- a/lib/src/protobuf/field_type.dart
+++ b/lib/src/protobuf/field_type.dart
@@ -16,7 +16,6 @@ bool _isGroupOrMessage(int fieldType) =>
/// Defines constants and functions for dealing with fieldType bits.
class PbFieldType {
-
/// Returns the base field type without any of the required, repeated
/// and packed bits.
static int _baseType(int fieldType) =>
@@ -66,7 +65,7 @@ class PbFieldType {
// Closures commonly used by initializers.
static String _STRING_EMPTY() => '';
- static List<int> _BYTES_EMPTY() => new PbList(check: _checkInt);
+ static List<int> _BYTES_EMPTY() => new PbList<int>(check: _checkInt);
static bool _BOOL_FALSE() => false;
static int _INT_ZERO() => 0;
static double _DOUBLE_ZERO() => 0.0;

Powered by Google App Engine
This is Rietveld 408576698