commit | 34de41e4db57dfd91261976f24840f2298cfca9f | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Wed Apr 26 16:59:50 2017 +0200 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Wed Apr 26 16:59:50 2017 +0200 |
tree | 59cd49a063299adc37a1e0cc9c731c5e37664de6 | |
parent | 8fead1efdf9b95939aef8af78b5e6f80fd9dabf0 [diff] |
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: