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 2013/01/11 19:29:33 UTC

svn commit: r1432213 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java

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(