This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new 303f89d Fix local var names in test.
303f89d is described below
commit 303f89da69c69a77360950afe94814d0180193ce
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jan 25 09:20:21 2021 -0500
Fix local var names in test.
---
.../io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java
b/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java
index b33bd81..971ca37 100644
---
a/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java
+++
b/src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java
@@ -215,9 +215,9 @@ public class IOUtilsContentEqualsInputStreamsBenchmark {
public void testStringPr118(final Blackhole blackhole) throws IOException {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
- try (InputStream inputReader1 =
IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);
- InputStream inputReader2 =
IOUtils.toInputStream(STRINGS[j], DEFAULT_CHARSET)) {
- blackhole.consume(contentEqualsPr118(inputReader1,
inputReader2));
+ try (InputStream inputStream1 =
IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);
+ InputStream inputStream2 =
IOUtils.toInputStream(STRINGS[j], DEFAULT_CHARSET)) {
+ blackhole.consume(contentEqualsPr118(inputStream1,
inputStream2));
}
}
}
@@ -227,9 +227,9 @@ public class IOUtilsContentEqualsInputStreamsBenchmark {
public void testStringRelease_2_8_0(final Blackhole blackhole) throws
IOException {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
- try (InputStream inputReader1 =
IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);
- InputStream inputReader2 =
IOUtils.toInputStream(STRINGS[j], DEFAULT_CHARSET)) {
-
blackhole.consume(contentEquals_release_2_8_0(inputReader1, inputReader2));
+ try (InputStream inputStream1 =
IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);
+ InputStream inputStream2 =
IOUtils.toInputStream(STRINGS[j], DEFAULT_CHARSET)) {
+
blackhole.consume(contentEquals_release_2_8_0(inputStream1, inputStream2));
}
}
}