diff options
author | Guang Zhu <guangzhu@google.com> | 2015-12-29 17:02:27 -0500 |
---|---|---|
committer | Guang Zhu <guangzhu@google.com> | 2015-12-29 17:02:27 -0500 |
commit | 411c68a0baab86c090293e772053ce17edadf8aa (patch) | |
tree | a844051066620bab0a6bf086f454f31a1c45bdb6 /tests | |
parent | 8892886436bdbdea4945e4f3277e8be39509e6c9 (diff) | |
download | loganalysis-411c68a0baab86c090293e772053ce17edadf8aa.tar.gz |
fix compiler warnings
Change-Id: Ifd2c923750dc6f2b5f8104aa3993277648fcf7b9
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/loganalysis/util/config/OptionSetterTest.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/src/com/android/loganalysis/util/config/OptionSetterTest.java b/tests/src/com/android/loganalysis/util/config/OptionSetterTest.java index dbac942..ecac1ee 100644 --- a/tests/src/com/android/loganalysis/util/config/OptionSetterTest.java +++ b/tests/src/com/android/loganalysis/util/config/OptionSetterTest.java @@ -33,14 +33,13 @@ public class OptionSetterTest extends TestCase { /** Option source with generic type. */ private static class GenericTypeOptionSource { - @SuppressWarnings("unused") @Option(name = "my_option", shortName = 'o') private Collection<?> mMyOption; } /** Option source with unparameterized type. */ + @SuppressWarnings("rawtypes") private static class CollectionTypeOptionSource { - @SuppressWarnings("unused") @Option(name = "my_option", shortName = 'o') private Collection mMyOption; } @@ -50,18 +49,15 @@ public class OptionSetterTest extends TestCase { /** Option source with unparameterized type. */ private static class NonCollectionGenericTypeOptionSource { - @SuppressWarnings("unused") @Option(name = "my_option", shortName = 'o') private MyGeneric<String> mMyOption; } /** Option source with options with same name. */ private static class DuplicateOptionSource { - @SuppressWarnings("unused") @Option(name = "string", shortName = 's') private String mMyOption; - @SuppressWarnings("unused") @Option(name = "string", shortName = 's') private String mMyDuplicateOption; } @@ -72,11 +68,9 @@ public class OptionSetterTest extends TestCase { @Option(name = "string", shortName = 's') private String mMyOption; - @SuppressWarnings("unused") @Option(name = "enum") private DefaultEnumClass mEnum = null; - @SuppressWarnings("unused") @Option(name = "string_collection") private Collection<String> mStringCollection = new ArrayList<String>(); @@ -93,7 +87,6 @@ public class OptionSetterTest extends TestCase { * Option source with an option with same name as AllTypesOptionSource, but a different type. */ private static class SharedOptionWrongTypeSource { - @SuppressWarnings("unused") @Option(name = "string", shortName = 's') private int mMyOption; } @@ -188,7 +181,6 @@ public class OptionSetterTest extends TestCase { * Option source with invalid option name. */ private static class BadOptionNameSource { - @SuppressWarnings("unused") @Option(name = "bad:string", shortName = 's') private int mMyOption; } |