diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-05-06 23:42:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-06 23:42:20 +0000 |
commit | 4f8a999682fdb8b38ee5671b8a8f527569ebb5ff (patch) | |
tree | 00f468dad6b6766793f18bc81fd093fe72d4af3a /tools/layoutlib | |
parent | 92e798682b5e45a05bffecb40a9b9f473420ea79 (diff) | |
parent | eca0b3d9ec1cff4ee1d1a0dc41ef4c0f482033f8 (diff) | |
download | frameworks_base-4f8a999682fdb8b38ee5671b8a8f527569ebb5ff.zip frameworks_base-4f8a999682fdb8b38ee5671b8a8f527569ebb5ff.tar.gz frameworks_base-4f8a999682fdb8b38ee5671b8a8f527569ebb5ff.tar.bz2 |
Merge "Nullity annotations to some tests." into lmp-mr1-dev
Diffstat (limited to 'tools/layoutlib')
-rw-r--r-- | tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java b/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java index ac23564..1ddc83e 100644 --- a/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java +++ b/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/Main.java @@ -261,7 +261,7 @@ public class Main { new ResourceRepository(new FolderWrapper(TEST_RES_DIR + APP_TEST_RES), false) { @NonNull @Override - protected ResourceItem createResourceItem(String name) { + protected ResourceItem createResourceItem(@NonNull String name) { return new ResourceItem(name); } }; @@ -381,17 +381,17 @@ public class Main { } @Override - public void warning(String msgFormat, Object... args) { + public void warning(@NonNull String msgFormat, Object... args) { failWithMsg(msgFormat, args); } @Override - public void info(String msgFormat, Object... args) { + public void info(@NonNull String msgFormat, Object... args) { // pass. } @Override - public void verbose(String msgFormat, Object... args) { + public void verbose(@NonNull String msgFormat, Object... args) { // pass. } }; @@ -399,7 +399,7 @@ public class Main { return mLogger; } - private static void failWithMsg(String msgFormat, Object... args) { - fail(msgFormat == null || args == null ? "" : String.format(msgFormat, args)); + private static void failWithMsg(@NonNull String msgFormat, Object... args) { + fail(args == null ? "" : String.format(msgFormat, args)); } } |