aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJae Yong Sung <jysung@google.com>2010-07-28 12:01:07 -0700
committerJae Yong Sung <jysung@google.com>2010-07-28 12:01:07 -0700
commit4d2d459cd0137c352c4e3c9ce313dc4a8b63f7d7 (patch)
tree78ac334bd2e16d149daa7d197f07e1de3b3d2c31
parent80aa14fd432cf7d2c67f2fcfcc57c80f29f8eb64 (diff)
downloadlatinime-4d2d459cd0137c352c4e3c9ce313dc4a8b63f7d7.tar.gz
latinime-4d2d459cd0137c352c4e3c9ce313dc4a8b63f7d7.tar.xz
latinime-4d2d459cd0137c352c4e3c9ce313dc4a8b63f7d7.zip
Fix for build breakage
Change-Id: Ie7ec03bf10ec9c9ce1290942a47cb538eeef6169
-rw-r--r--tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java b/tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java
index e3e995a23..107f04c7c 100644
--- a/tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java
+++ b/tests/src/com/android/inputmethod/latin/tests/SuggestHelper.java
@@ -36,10 +36,11 @@ public class SuggestHelper {
public SuggestHelper(String tag, Context context, int[] resId) {
TAG = tag;
+ InputStream[] res = null;
try {
// merging separated dictionary into one if dictionary is separated
int total = 0;
- InputStream[] res = new InputStream[resId.length];
+ res = new InputStream[resId.length];
for (int i = 0; i < resId.length; i++) {
res[i] = context.getResources().openRawResource(resId[i]);
total += res[i].available();
@@ -61,7 +62,7 @@ public class SuggestHelper {
Log.w(TAG, "No available memory for binary dictionary");
} finally {
try {
- for (int i = 0;i < is.length; i++) {
+ for (int i = 0;i < res.length; i++) {
res[i].close();
}
} catch (IOException e) {