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 2024/09/12 12:59:31 UTC
(commons-imaging) 08/22: Remove redundant keyword
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-imaging.git
commit eb0f5e8a1cb3119ed47c35ca1a69b36dea231b72
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 12 08:57:36 2024 -0400
Remove redundant keyword
---
.../commons/imaging/formats/jpeg/decoder/JpegInputStream.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java b/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
index 1bf6c404..96e94ce0 100644
--- a/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
+++ b/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
@@ -45,13 +45,13 @@ final class JpegInputStream {
public int nextBit() throws ImagingException {
if (cnt == 0) {
- b = this.read();
+ b = read();
if (b < 0) {
throw new ImagingException("Premature End of File");
}
cnt = 8;
if (b == 0xff) {
- final int b2 = this.read();
+ final int b2 = read();
if (b2 < 0) {
throw new ImagingException("Premature End of File");
}
@@ -76,7 +76,7 @@ final class JpegInputStream {
* @throws IllegalStateException if the stream hasn't any other value.
*/
int read() {
- if (!this.hasNext()) {
+ if (!hasNext()) {
throw new IllegalStateException("This stream hasn't any other value, all values were already read.");
}
final int value = this.interval[nextPos];