Merge "fix AlmostFullTest: prevent reinitializing ref-counter" into jb-mr2-dev
diff --git a/suite/pts/deviceTests/filesystemperf/src/com/android/pts/filesystemperf/AlmostFullTest.java b/suite/pts/deviceTests/filesystemperf/src/com/android/pts/filesystemperf/AlmostFullTest.java
index 5161697..75b443d 100644
--- a/suite/pts/deviceTests/filesystemperf/src/com/android/pts/filesystemperf/AlmostFullTest.java
+++ b/suite/pts/deviceTests/filesystemperf/src/com/android/pts/filesystemperf/AlmostFullTest.java
@@ -37,8 +37,9 @@
// test runner creates multiple instances at the begging.
// use that to fill disk only once.
- private static AtomicInteger mRefCounter = new AtomicInteger(0);
- private static AtomicBoolean mDiskFilled = new AtomicBoolean(false);
+ // set as final to initialize it only once
+ private static final AtomicInteger mRefCounter = new AtomicInteger(0);
+ private static final AtomicBoolean mDiskFilled = new AtomicBoolean(false);
public AlmostFullTest() {
int currentCounter = mRefCounter.incrementAndGet();