kinow commented on a change in pull request #47: IMAGING-134: Fix JPEG handling
for files encoded with RST markers
URL: https://github.com/apache/commons-imaging/pull/47#discussion_r291792959
##########
File path:
src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
##########
@@ -57,4 +65,19 @@ public int nextBit() throws IOException, ImageReadException
{
b <<= 1;
return bit;
}
+
+ /**
+ * Returns the value from current field (as {@code InputStream.read()}
would do)
+ * and set the position of the pointer to the next field to read.
+ * @return
+ * @throws IllegalStateException if the stream hasn't any other value.
+ */
+ int read() {
+ if (this.hasNext() == false) {
Review comment:
`if (!this.hasNext())`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services