commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1538025 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
Date Fri, 01 Nov 2013 18:46:17 GMT
Author: ggregory
Date: Fri Nov  1 18:46:16 2013
New Revision: 1538025

URL: http://svn.apache.org/r1538025
Log:
Statement unnecessarily nested within else clause.

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java?rev=1538025&r1=1538024&r2=1538025&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStream.java
Fri Nov  1 18:46:16 2013
@@ -46,10 +46,9 @@ public class JpegInputStream {
                 if (b2 != 0) {
                     if (b2 == (0xff & JpegConstants.DNLMarker)) {
                         throw new ImageReadException("DNL not yet supported");
-                    } else {
-                        throw new ImageReadException("Invalid marker found "
-                                + "in entropy data");
                     }
+                    throw new ImageReadException("Invalid marker found "
+                            + "in entropy data");
                 }
             }
         }



Mime
View raw message