You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2021/01/15 21:45:15 UTC
[lucene-solr] 04/38: LUCENE-9652: follow-up code reformatting
(tidy).
This is an automated email from the ASF dual-hosted git repository.
ctargett pushed a commit to branch jira/solr-13105-toMerge
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit bf107a42b638e0c36144ef3542f0fb6af0a028b8
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Thu Jan 7 10:59:21 2021 +0100
LUCENE-9652: follow-up code reformatting (tidy).
---
.../src/java/org/apache/lucene/store/BaseDirectoryTestCase.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java
index fe36545..175042f 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java
@@ -281,14 +281,14 @@ public abstract class BaseDirectoryTestCase extends LuceneTestCase {
final int offset = random().nextInt(4);
final int length = TestUtil.nextInt(random(), 1, 16);
try (IndexOutput out = dir.createOutput("Floats", newIOContext(random()))) {
- byte[] b = new byte[offset + length * Float.BYTES - TestUtil.nextInt(random(), 1, Float.BYTES)];
+ byte[] b =
+ new byte[offset + length * Float.BYTES - TestUtil.nextInt(random(), 1, Float.BYTES)];
random().nextBytes(b);
out.writeBytes(b, b.length);
}
try (IndexInput input = dir.openInput("Floats", newIOContext(random()))) {
input.seek(offset);
- expectThrows(EOFException.class,
- () -> input.readLEFloats(new float[length], 0, length));
+ expectThrows(EOFException.class, () -> input.readLEFloats(new float[length], 0, length));
}
}
}