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

Unified Diff: plugins/org.chromium.sdk/src/org/chromium/sdk/internal/protocolparser/EnumValueCondition.java

Issue 11833010: Expose liveedit compile error data in SDK (Closed) Base URL: https://chromedevtools.googlecode.com/svn/trunk
Patch Set: fcr Created 7 years, 11 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: plugins/org.chromium.sdk/src/org/chromium/sdk/internal/protocolparser/EnumValueCondition.java
diff --git a/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/protocolparser/EnumValueCondition.java b/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/protocolparser/EnumValueCondition.java
index 95e5fe8f707451a9fc702296579a45aefa07e53f..ff78230b90c15651452ae450db6ef7f9338e4fd4 100644
--- a/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/protocolparser/EnumValueCondition.java
+++ b/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/protocolparser/EnumValueCondition.java
@@ -4,6 +4,7 @@
package org.chromium.sdk.internal.protocolparser;
+import java.util.EnumSet;
import java.util.Set;
/**
@@ -16,6 +17,9 @@ public abstract class EnumValueCondition<T extends Enum<T>> implements JsonValue
protected EnumValueCondition(Set<T> allowedValues) {
this.allowedValues = allowedValues;
}
+ protected EnumValueCondition(T singleAllowedValues) {
+ this.allowedValues = EnumSet.<T>of(singleAllowedValues);
+ }
public boolean conforms(T value) {
return allowedValues.contains(value);

Powered by Google App Engine
This is Rietveld 408576698