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

Unified Diff: utils/pub/version_solver.dart

Issue 12382031: Make pub warning-clean. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « utils/pub/validator/name.dart ('k') | utils/tests/pub/command_line_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/version_solver.dart
diff --git a/utils/pub/version_solver.dart b/utils/pub/version_solver.dart
index a45af911e1632894716748725d9262fce93729d1..45d47e8aa75a4c1eb87381501461c64254a56ef0 100644
--- a/utils/pub/version_solver.dart
+++ b/utils/pub/version_solver.dart
@@ -601,14 +601,14 @@ class NoVersionException implements Exception {
String toString() {
var buffer = new StringBuffer();
- buffer.add("Package '$package' has no versions that match $constraint "
+ buffer.write("Package '$package' has no versions that match $constraint "
"derived from:\n");
var keys = new List.from(_dependencies.keys);
keys.sort();
for (var key in keys) {
- buffer.add("- '$key' depends on version "
+ buffer.write("- '$key' depends on version "
"${_dependencies[key].constraint}\n");
}
@@ -641,13 +641,13 @@ class DisjointConstraintException implements Exception {
String toString() {
var buffer = new StringBuffer();
- buffer.add("Incompatible version constraints on '$package':\n");
+ buffer.write("Incompatible version constraints on '$package':\n");
var keys = new List.from(_dependencies.keys);
keys.sort();
for (var key in keys) {
- buffer.add("- '$key' depends on version "
+ buffer.write("- '$key' depends on version "
"${_dependencies[key].constraint}\n");
}
« no previous file with comments | « utils/pub/validator/name.dart ('k') | utils/tests/pub/command_line_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698