Skip to content

Commit

Permalink
Fix snapshotBwcVersions
Browse files Browse the repository at this point in the history
mark-vieira committed Jun 30, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 26e24ac commit aee549b
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .ci/snapshotBwcVersions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
BWC_VERSION:
- "6.8.24"
Original file line number Diff line number Diff line change
@@ -361,6 +361,10 @@ public void withIndexCompatiple(Predicate<Version> filter, BiConsumer<Version, S
}

public List<Version> getWireCompatible() {
return unmodifiableList(filterSupportedVersions(getAllWireCompatible()));
}

public List<Version> getAllWireCompatible() {
List<Version> wireCompat = new ArrayList<>();
List<Version> prevMajors = groupByMajor.get(currentVersion.getMajor() - 1);
int minor = prevMajors.get(prevMajors.size() - 1).getMinor();
@@ -371,7 +375,7 @@ public List<Version> getWireCompatible() {
wireCompat.remove(currentVersion);
wireCompat.sort(Version::compareTo);

return unmodifiableList(filterSupportedVersions(wireCompat));
return unmodifiableList(wireCompat);
}

public void withWireCompatiple(BiConsumer<Version, String> versionAction) {
@@ -397,13 +401,13 @@ private List<Version> filterSupportedVersions(List<Version> wireCompat) {
}

public List<Version> getUnreleasedIndexCompatible() {
List<Version> unreleasedIndexCompatible = new ArrayList<>(getIndexCompatible());
List<Version> unreleasedIndexCompatible = new ArrayList<>(getAllIndexCompatible());
unreleasedIndexCompatible.retainAll(getUnreleased());
return unmodifiableList(unreleasedIndexCompatible);
}

public List<Version> getUnreleasedWireCompatible() {
List<Version> unreleasedWireCompatible = new ArrayList<>(getWireCompatible());
List<Version> unreleasedWireCompatible = new ArrayList<>(getAllWireCompatible());
unreleasedWireCompatible.retainAll(getUnreleased());
return unmodifiableList(unreleasedWireCompatible);
}

0 comments on commit aee549b

Please sign in to comment.