Miscellaneous changes from FindBugs analysis
[zxing.git] / core / src / com / google / zxing / datamatrix / detector / Detector.java
index 8467b88..f140aff 100644 (file)
@@ -42,7 +42,7 @@ public final class Detector {
   // Trick to avoid creating new Integer objects below -- a sort of crude copy of
   // the Integer.valueOf(int) optimization added in Java 5, not in J2ME
   private static final Integer[] INTEGERS =
-      { new Integer(0), new Integer(1), new Integer(2), new Integer(3), new Integer(4) };
+      { Integer.valueOf(0), Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3), Integer.valueOf(4) };
 
   private final BitMatrix image;
   private final MonochromeRectangleDetector rectangleDetector;