You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/01/07 09:59:33 UTC
[lucene-solr] branch master updated: LUCENE-9652: follow-up code
reformatting (tidy).
This is an automated email from the ASF dual-hosted git repository.
dweiss pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new 96aaf54 LUCENE-9652: follow-up code reformatting (tidy).
96aaf54 is described below
commit 96aaf543afb0ac894e2527253db8472ac68938a5
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));
}
}
}