commit | e94a1777d787988fbc8182c0813cc172e43c51fb | [log] [tgz] |
---|---|---|
author | Dawid Weiss <dawid.weiss@carrotsearch.com> | Thu Dec 09 09:29:06 2021 +0100 |
committer | Dawid Weiss <dawid.weiss@carrotsearch.com> | Thu Dec 09 09:29:06 2021 +0100 |
tree | 1bf9c7291e9923ae922e8e84d23bf38a5b53873f | |
parent | 3aadc5cd89b3bf3b491968f6990ce597455a108f [diff] |
Correct code for spotless.
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java index bb10d1b..7ab525c1 100644 --- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java +++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java
@@ -2089,7 +2089,8 @@ final int createdMajor; // No exception when opening with the allowed min version - try (IndexReader reader = StandardDirectoryReader.open(commit, Version.MIN_SUPPORTED_MAJOR, null)) { + try (IndexReader reader = + StandardDirectoryReader.open(commit, Version.MIN_SUPPORTED_MAJOR, null)) { createdMajor = reader.leaves().get(0).reader().getMetaData().getCreatedVersionMajor(); }