aboutsummaryrefslogtreecommitdiff
path: root/third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java
diff options
context:
space:
mode:
authorAng Li <angli@google.com>2017-03-13 13:40:11 -0700
committerGitHub <noreply@github.com>2017-03-13 13:40:11 -0700
commit3797ad61618f23003445805a0545cf8d2bc08e94 (patch)
tree784740b8118d2cd351ce57d13a6247b67996497d /third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java
parentfaac43080b9f1c4d7d33943b4c38c9387012b7eb (diff)
downloadmobly-snippet-lib-3797ad61618f23003445805a0545cf8d2bc08e94.tar.gz
Fix lint for multiple files. (#53)
Purely cosmetic changes by AOSP linter.
Diffstat (limited to 'third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java')
-rw-r--r--third_party/sl4a/src/main/java/com/google/android/mobly/snippet/util/Log.java9
1 files changed, 5 insertions, 4 deletions
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.");
}
}