From 3797ad61618f23003445805a0545cf8d2bc08e94 Mon Sep 17 00:00:00 2001 From: Ang Li Date: Mon, 13 Mar 2017 13:40:11 -0700 Subject: Fix lint for multiple files. (#53) Purely cosmetic changes by AOSP linter. --- .../src/main/java/com/google/android/mobly/snippet/util/Log.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java') diff --git a/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java b/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java index 23c898c..c68631a 100644 --- a/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java +++ b/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java @@ -27,7 +27,7 @@ public final class Log { private Log() {} - public synchronized static void initLogTag(Context context) { + public static synchronized void initLogTag(Context context) { if (APK_LOG_TAG != null) { throw new IllegalStateException("Logger should not be re-initialized"); } @@ -38,14 +38,15 @@ public final class Log { appInfo = packageManager.getApplicationInfo(packageName, PackageManager.GET_META_DATA); } catch (NameNotFoundException e) { throw new IllegalStateException( - "Failed to find ApplicationInfo with package name: " + packageName); + "Failed to find ApplicationInfo with package name: " + packageName); } Bundle bundle = appInfo.metaData; APK_LOG_TAG = bundle.getString("mobly-log-tag"); if (APK_LOG_TAG == null) { APK_LOG_TAG = packageName; - w("AndroidManifest.xml does not contain metadata field named \"mobly-log-tag\". " - + "Using package name for logging instead."); + w( + "AndroidManifest.xml does not contain metadata field named \"mobly-log-tag\". " + + "Using package name for logging instead."); } } -- cgit v1.2.3