Made the data members of BitArray public so they will be inlined. This saves about...
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 29 Oct 2008 21:16:46 +0000 (21:16 +0000)
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 29 Oct 2008 21:16:46 +0000 (21:16 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@653 59b500cc-1b3d-0410-9834-0bbf25fbcc57

core/src/com/google/zxing/common/BitArray.java

index 7d419ab..0c6c31f 100644 (file)
@@ -23,8 +23,12 @@ package com.google.zxing.common;
  */\r
 public final class BitArray {\r
 \r
-  private int[] bits;\r
-  private final int size;\r
+  // TODO: I have changed these members to be public so ProGuard can inline get() and set(). Ideally\r
+  // they'd be private and we'd use the -allowaccessmodification flag, but Dalvik rejects the\r
+  // resulting binary at runtime on Android. If we find a solution to this, these should be changed\r
+  // back to private.\r
+  public int[] bits;\r
+  public final int size;\r
 \r
   public BitArray(int size) {\r
     if (size < 1) {\r