diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-05-07 00:21:03 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-07 00:21:03 +0000 |
commit | 9c9bcd3486d9f7557329dea90b3c5fa1bdace91c (patch) | |
tree | 77335d411d6872770a283c48df63187c9a264af8 /tools/layoutlib | |
parent | b2951490eabf71e14c8fc5d50397adf869a2a291 (diff) | |
parent | cae76a70bfca9f37a10f34582cddbe0792625f26 (diff) | |
download | frameworks_base-9c9bcd3486d9f7557329dea90b3c5fa1bdace91c.zip frameworks_base-9c9bcd3486d9f7557329dea90b3c5fa1bdace91c.tar.gz frameworks_base-9c9bcd3486d9f7557329dea90b3c5fa1bdace91c.tar.bz2 |
am cae76a70: am 46241071: am 4f8a9996: Merge "Nullity annotations to some tests." into lmp-mr1-dev
* commit 'cae76a70bfca9f37a10f34582cddbe0792625f26':
Nullity annotations to some tests.
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)); } } |