aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Gregory <garydgregory@gmail.com>2023-10-21 10:33:40 -0400
committerGary Gregory <garydgregory@gmail.com>2023-10-21 10:33:40 -0400
commita4b936dc98f8d7e44d18493d7ddb5931bbc801fd (patch)
treeaffc0d32f6dc2988f8c0259f13debae4e567ad19
parentddda75a71a61e6a281932be816292b3449e423af (diff)
downloadapache-commons-io-a4b936dc98f8d7e44d18493d7ddb5931bbc801fd.tar.gz
Remove useless parens
-rw-r--r--src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java b/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java
index bbcf0ee6..b33a1187 100644
--- a/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java
@@ -412,7 +412,7 @@ public final class UnsynchronizedBufferedInputStream extends UnsynchronizedFilte
if (count - pos >= amount - read) {
// (int count - int pos) here is always an int so (amount - read) is also in the int range if the above test is true.
// We can safely cast to int and avoid static analysis warnings.
- pos += ((int) amount) - read;
+ pos += (int) amount - read;
return amount;
}
// Couldn't get all the bytes, skip what we read