You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/10/21 14:35:11 UTC
[commons-io] 05/09: Remove useless parens
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
commit ab617a06226c650b131cb17e646c48858849d714
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Oct 21 10:32:54 2023 -0400
Remove useless parens
---
src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java b/src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java
index 9db0d67b..a492d397 100644
--- a/src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java
+++ b/src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java
@@ -87,7 +87,7 @@ public class IOUtilsMultithreadedSkipTest {
try (final InputStream inputStream = getClass().getResourceAsStream(FIXTURE)) {
bytes = IOUtils.toByteArray(inputStream);
}
- final int numSkips = (random.nextInt(bytes.length) / 100) + 1;
+ final int numSkips = random.nextInt(bytes.length) / 100 + 1;
final int[] skips = generateSkips(bytes, numSkips, random);
final int[] expected;