Separated rectangle detection from decoder for reuse
[zxing.git] / javase / src / com / google / zxing / client / j2se / ImageConverter.java
index 9c6bd36..5b5a5a4 100644 (file)
@@ -58,7 +58,9 @@ public final class ImageConverter {
       }
     }
     for (String arg : args) {
-      if (arg.startsWith("-")) continue;
+      if (arg.startsWith("-")) {
+        continue;
+      }
       File inputFile = new File(arg);
       if (inputFile.exists()) {
         if (inputFile.isDirectory()) {
@@ -156,7 +158,7 @@ public final class ImageConverter {
         name = name.substring(0, dotpos);
       }
       String suffix = (sMethod == BlackPointEstimationMethod.ROW_SAMPLING) ? "row" : "2d";
-      result = new File(name + "_converted_" + suffix + "." + FORMAT);
+      result = new File(name + "_converted_" + suffix + '.' + FORMAT);
     }
     return result;
   }