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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisError.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/AnalysisError.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisError.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisError.java
index 6c3e163ef40f51a9cd54d373b388a91c9acef3dc..2cfc763b3d410751e1ba9ed219d1c6860ac07ba4 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisError.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisError.java
@@ -31,11 +31,19 @@ import org.apache.commons.lang3.StringUtils;
public class AnalysisError {
/**
- * The correction message to be displayed for this error. The correction message should indicate
- * how the user can fix the error. The field is omitted if there is no correction message
- * associated with the error code.
+ * An empty array of {@link AnalysisError}s.
*/
- private final String correction;
+ public static final AnalysisError[] EMPTY_ARRAY = new AnalysisError[0];
+
+ /**
+ * The severity of the error.
+ */
+ private final String severity;
+
+ /**
+ * The type of the error.
+ */
+ private final String type;
/**
* The location associated with the error.
@@ -49,14 +57,11 @@ public class AnalysisError {
private final String message;
/**
- * The severity of the error.
- */
- private final String severity;
-
- /**
- * The type of the error.
+ * The correction message to be displayed for this error. The correction message should indicate
+ * how the user can fix the error. The field is omitted if there is no correction message
+ * associated with the error code.
*/
- private final String type;
+ private final String correction;
/**
* Constructor for {@link AnalysisError}.

Powered by Google App Engine
This is Rietveld 408576698