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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Error.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/Error.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Error.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Error.java
index 937cd6ba6fcff110c8fa088a44025871ced923ac..9bff613e081741cae271f041bd13c2786d493385 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Error.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Error.java
@@ -32,15 +32,14 @@ import org.apache.commons.lang3.StringUtils;
public class Error {
/**
- * A code that uniquely identifies the error that occurred.
+ * An empty array of {@link Error}s.
*/
- private final String code;
+ public static final Error[] EMPTY_ARRAY = new Error[0];
/**
- * Additional data related to the error. This field is omitted if there is no additional data
- * available.
+ * A code that uniquely identifies the error that occurred.
*/
- private final Object data;
+ private final String code;
/**
* A short description of the error.
@@ -48,6 +47,12 @@ public class Error {
private final String message;
/**
+ * Additional data related to the error. This field is omitted if there is no additional data
+ * available.
+ */
+ private final Object data;
+
+ /**
* Constructor for {@link Error}.
*/
public Error(String code, String message, Object data) {

Powered by Google App Engine
This is Rietveld 408576698