commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1432213 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java
Date Fri, 11 Jan 2013 18:29:33 GMT
Author: ggregory
Date: Fri Jan 11 18:29:32 2013
New Revision: 1432213

URL: http://svn.apache.org/viewvc?rev=1432213&view=rev
Log:
Convert control statement bodies to block.

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java?rev=1432213&r1=1432212&r2=1432213&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java
Fri Jan 11 18:29:32 2013
@@ -510,8 +510,9 @@ public class TiffImageParser extends Ima
             throws ImageReadException
     {
        
-        if(!params.containsKey(key))
+        if(!params.containsKey(key)) {
             return null;
+        }
         
         Object obj = params.get(key);
         
@@ -535,18 +536,23 @@ public class TiffImageParser extends Ima
                 TiffConstants.PARAM_KEY_SUBIMAGE_WIDTH, params);
         iheight = getIntegerParameter(
                 TiffConstants.PARAM_KEY_SUBIMAGE_HEIGHT, params);
-        if (ix0 == null && iy0 == null && iwidth == null && iheight
== null)
+        if (ix0 == null && iy0 == null && iwidth == null && iheight
== null) {
             return null;
+        }
 
         StringBuilder sb = new StringBuilder();
-        if (ix0 == null)
+        if (ix0 == null) {
             sb.append(" x0,");
-        if (iy0 == null)
+        }
+        if (iy0 == null) {
             sb.append(" y0,");
-        if (iwidth == null)
+        }
+        if (iwidth == null) {
             sb.append(" width,");
-        if (iheight == null)
+        }
+        if (iheight == null) {
             sb.append(" height,");
+        }
         if (sb.length() > 0) {
             sb.setLength(sb.length() - 1);
             throw new ImageReadException(



Mime
View raw message