Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jasontedor committed Sep 3, 2018
1 parent ffd8db7 commit 635da8b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions server/src/main/java/org/elasticsearch/Version.java
Expand Up @@ -477,11 +477,10 @@ public static List<Version> getDeclaredVersions(final Class<?> versionClass) {
if (field.getType() != Version.class) {
continue;
}
if ("CURRENT".equals(field.getName())) {
continue;
}
if ("V_EMPTY".equals(field.getName())) {
continue;
switch (field.getName()) {
case "CURRENT":
case "V_EMPTY":
continue;
}
assert field.getName().matches("V(_\\d+)+(_(alpha|beta|rc)\\d+)?") : field.getName();
try {
Expand Down

0 comments on commit 635da8b

Please sign in to comment.