diff options
author | 2014-10-21 15:10:07 +0000 | |
---|---|---|
committer | 2014-10-21 15:10:07 +0000 | |
commit | d94645097a8aab6c44c6a20553f81954009dbc5b (patch) | |
tree | 8743018b4a2fe61f16943783f5b2331592e3a69d /java/src/com/android/inputmethod/dictionarypack/PrivateLog.java | |
parent | 20ae86172e644b1aae97e0ea22c41433bd7ccc9e (diff) | |
parent | 46a007261fcbfbe887e22ecdf16307f95b1e4024 (diff) | |
download | latinime-d94645097a8aab6c44c6a20553f81954009dbc5b.tar.gz latinime-d94645097a8aab6c44c6a20553f81954009dbc5b.tar.xz latinime-d94645097a8aab6c44c6a20553f81954009dbc5b.zip |
am 46a00726: Merge "Fix some compiler warnings"
* commit '46a007261fcbfbe887e22ecdf16307f95b1e4024':
Fix some compiler warnings
Diffstat (limited to 'java/src/com/android/inputmethod/dictionarypack/PrivateLog.java')
-rw-r--r-- | java/src/com/android/inputmethod/dictionarypack/PrivateLog.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/PrivateLog.java b/java/src/com/android/inputmethod/dictionarypack/PrivateLog.java index 67dd7b9b7..bb64721d5 100644 --- a/java/src/com/android/inputmethod/dictionarypack/PrivateLog.java +++ b/java/src/com/android/inputmethod/dictionarypack/PrivateLog.java @@ -43,8 +43,8 @@ public class PrivateLog { + COLUMN_DATE + " TEXT," + COLUMN_EVENT + " TEXT);"; - private static final SimpleDateFormat sDateFormat = - new SimpleDateFormat("yyyy/MM/dd HH:mm:ss", Locale.US); + static final SimpleDateFormat sDateFormat = new SimpleDateFormat( + "yyyy/MM/dd HH:mm:ss", Locale.ROOT); private static PrivateLog sInstance = new PrivateLog(); private static DebugHelper sDebugHelper = null; @@ -62,9 +62,9 @@ public class PrivateLog { } } - private static class DebugHelper extends SQLiteOpenHelper { + static class DebugHelper extends SQLiteOpenHelper { - private DebugHelper(final Context context) { + DebugHelper(final Context context) { super(context, LOG_DATABASE_NAME, null, LOG_DATABASE_VERSION); } @@ -84,7 +84,7 @@ public class PrivateLog { insert(db, "Upgrade finished"); } - private static void insert(SQLiteDatabase db, String event) { + static void insert(SQLiteDatabase db, String event) { if (!DEBUG) return; final ContentValues c = new ContentValues(2); c.put(COLUMN_DATE, sDateFormat.format(new Date(System.currentTimeMillis()))); |