Skip to content

Commit

Permalink
GEODE-8841: Add version ordinals for GEODE_1_12_1 and GEODE_1_13_1 (a…
Browse files Browse the repository at this point in the history
…pache#5914)

Authored-by: Jens Deppe <[email protected]>
  • Loading branch information
jdeppe-pivotal authored Jan 16, 2021
1 parent a921254 commit 3a57b95
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ private static Map<KnownVersion, Map<Integer, Command>> initializeAllCommands()
allCommands.put(KnownVersion.GEODE_1_10_0, geode18Commands);
allCommands.put(KnownVersion.GEODE_1_11_0, geode18Commands);
allCommands.put(KnownVersion.GEODE_1_12_0, geode18Commands);
allCommands.put(KnownVersion.GEODE_1_12_1, geode18Commands);
allCommands.put(KnownVersion.GEODE_1_13_0, geode18Commands);
allCommands.put(KnownVersion.GEODE_1_13_1, geode18Commands);

allCommands.put(KnownVersion.GEODE_1_14_0, geode18Commands);
return Collections.unmodifiableMap(allCommands);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class CommandInitializerJUnitTest {
public void testCommandMapContainsAllVersions() {
for (KnownVersion version : KnownVersion.getAllVersions()) {
org.junit.Assert.assertNotNull(
"Please add a commnd set for " + version + " of Geode to CommandInitializer",
"Please add a command set for " + version + " of Geode to CommandInitializer",
CommandInitializer.getCommands(version));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,27 @@ public class KnownVersion extends AbstractVersion {
new KnownVersion("GEODE", "1.12.0", (byte) 1, (byte) 12, (byte) 0, (byte) 0,
GEODE_1_12_0_ORDINAL);

private static final short GEODE_1_12_1_ORDINAL = 116;

@Immutable
public static final KnownVersion GEODE_1_12_1 =
new KnownVersion("GEODE", "1.12.1", (byte) 1, (byte) 12, (byte) 1, (byte) 0,
GEODE_1_12_1_ORDINAL);

private static final short GEODE_1_13_0_ORDINAL = 120;

@Immutable
public static final KnownVersion GEODE_1_13_0 =
new KnownVersion("GEODE", "1.13.0", (byte) 1, (byte) 13, (byte) 0, (byte) 0,
GEODE_1_13_0_ORDINAL);

private static final short GEODE_1_13_1_ORDINAL = 121;

@Immutable
public static final KnownVersion GEODE_1_13_1 =
new KnownVersion("GEODE", "1.13.1", (byte) 1, (byte) 13, (byte) 1, (byte) 0,
GEODE_1_13_1_ORDINAL);

private static final short GEODE_1_14_0_ORDINAL = 125;

@Immutable
Expand Down

0 comments on commit 3a57b95

Please sign in to comment.