Add more unit tests for client.result, and more small code tweaks.
[zxing.git] / androidtest / src / com / google / zxing / client / androidtest / BenchmarkItem.java
index 1827e70..4cb418c 100644 (file)
@@ -21,7 +21,7 @@ import com.google.zxing.BarcodeFormat;
 public final class BenchmarkItem {
 
   private final String mPath;
-  private int[] mTimes;
+  private final int[] mTimes;
   private int mPosition;
   private boolean mDecoded;
   private BarcodeFormat mFormat;
@@ -50,7 +50,7 @@ public final class BenchmarkItem {
 
   @Override
   public String toString() {
-    StringBuffer result = new StringBuffer();
+    StringBuilder result = new StringBuilder();
     result.append(mDecoded ? ("DECODED " + mFormat.toString() + ": ") : "FAILED: ");
     result.append(mPath);
     result.append(" (");