Various code tweaks and refactorings suggested by IntelliJ
[zxing.git] / core / src / com / google / zxing / qrcode / decoder / Version.java
index 6f221af..d30fdeb 100755 (executable)
@@ -181,8 +181,8 @@ public final class Version {
    * will be the same across all blocks within one version.</p>\r
    */\r
   static final class ECBlocks {\r
-    private int ecCodewords;\r
-    private ECB[] ecBlocks;\r
+    private final int ecCodewords;\r
+    private final ECB[] ecBlocks;\r
 \r
     private ECBlocks(int ecCodewords, ECB ecBlocks) {\r
       this.ecCodewords = ecCodewords;\r
@@ -209,8 +209,8 @@ public final class Version {
    * parameters is used consecutively in the QR code version's format.</p>\r
    */\r
   static final class ECB {\r
-    private int count;\r
-    private int dataCodewords;\r
+    private final int count;\r
+    private final int dataCodewords;\r
 \r
     private ECB(int count, int dataCodewords) {\r
       this.count = count;\r