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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceFileEdit.java

Issue 475673002: Generate public static EMPTY_ARRAY fields for each object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: review 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: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceFileEdit.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceFileEdit.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceFileEdit.java
index d01566084d1e0cc20b28440d78882b59763829bc..64cd190091b00f746dc8d2bb94ea1124c1fe6edf 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceFileEdit.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceFileEdit.java
@@ -31,9 +31,9 @@ import org.apache.commons.lang3.StringUtils;
public class SourceFileEdit {
/**
- * A list of the edits used to effect the change.
+ * An empty array of {@link SourceFileEdit}s.
*/
- private final List<SourceEdit> edits;
+ public static final SourceFileEdit[] EMPTY_ARRAY = new SourceFileEdit[0];
/**
* The file containing the code to be modified.
@@ -41,6 +41,11 @@ public class SourceFileEdit {
private final String file;
/**
+ * A list of the edits used to effect the change.
+ */
+ private final List<SourceEdit> edits;
+
+ /**
* Constructor for {@link SourceFileEdit}.
*/
public SourceFileEdit(String file, List<SourceEdit> edits) {

Powered by Google App Engine
This is Rietveld 408576698