Adapt init to Gerrit 2.14 readEnum() interface In Gerrit 2.14 the readEnum() needs the full list of allowed values and does not rely anymore on reflection. Change-Id: I9a0aaca831a3de78cce10510c03f44851b834695
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/base/its/InitIts.java b/src/main/java/com/googlesource/gerrit/plugins/its/base/its/InitIts.java index 1867a10..ac0136c 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/its/base/its/InitIts.java +++ b/src/main/java/com/googlesource/gerrit/plugins/its/base/its/InitIts.java
@@ -26,6 +26,7 @@ import org.eclipse.jgit.lib.Config; import java.io.IOException; +import java.util.EnumSet; public class InitIts implements InitStep { @@ -76,6 +77,7 @@ } itsintegration = ui.readEnum(itsintegration, + EnumSet.allOf(ItsIntegration.class), "Issue tracker integration for all projects?"); switch (itsintegration) { case ENFORCED: