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

Unified Diff: pkg/dart_messages/bin/message_id.dart

Issue 2916023004: Make pkg/dart_messages strong. (Closed)
Patch Set: Created 3 years, 7 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 | « pkg/dart_messages/analysis_options.yaml ('k') | pkg/dart_messages/bin/publish.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dart_messages/bin/message_id.dart
diff --git a/pkg/dart_messages/bin/message_id.dart b/pkg/dart_messages/bin/message_id.dart
index 7d59fbd18a1da98f0ec1feb6970a8a65c6c6f08c..a708e60a51f1bffee8461e9b6e862e57a7649600 100644
--- a/pkg/dart_messages/bin/message_id.dart
+++ b/pkg/dart_messages/bin/message_id.dart
@@ -4,7 +4,7 @@
import 'dart:math' as math;
-import '../lib/shared_messages.dart' as shared_messages;
+import 'package:dart_messages/shared_messages.dart' as shared_messages;
math.Random random = new math.Random();
@@ -13,7 +13,7 @@ final $A = "A".codeUnitAt(0);
final $Z = "Z".codeUnitAt(0);
String computeId() {
- List charCodes = [];
+ List<int> charCodes = [];
for (int i = 0; i < idLength; i++) {
charCodes.add($A + random.nextInt($Z - $A));
}
« no previous file with comments | « pkg/dart_messages/analysis_options.yaml ('k') | pkg/dart_messages/bin/publish.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698