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

Unified Diff: pkg/analysis_server/lib/src/services/correction/change.dart

Issue 482573004: Change analysis server protocol to omit empty lists when optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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: pkg/analysis_server/lib/src/services/correction/change.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/change.dart b/pkg/analysis_server/lib/src/services/correction/change.dart
index a20c00ec145ab7fd3a4b3cf927affbebddc6e7ac..04480c2834229f66176e22003db22a264120bef4 100644
--- a/pkg/analysis_server/lib/src/services/correction/change.dart
+++ b/pkg/analysis_server/lib/src/services/correction/change.dart
@@ -41,7 +41,7 @@ class Change implements HasToJson {
void addEdit(String file, SourceEdit edit) {
SourceFileEdit fileEdit = getFileEdit(file);
if (fileEdit == null) {
- fileEdit = new SourceFileEdit(file, <SourceEdit>[]);
+ fileEdit = new SourceFileEdit(file);
addFileEdit(fileEdit);
}
fileEdit.add(edit);

Powered by Google App Engine
This is Rietveld 408576698