Enable CollectionIncompatibleType

Also suppress two false positives.
This commit is contained in:
Andrew Gaul 2016-01-29 08:50:09 -08:00
parent 4be8a2eb72
commit eb6f16e2f9
3 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import com.google.common.collect.Iterables;
public class BaseServiceIntegrationTest extends BaseBlobStoreIntegrationTest {
@SuppressWarnings("CollectionIncompatibleType")
@Test(groups = { "integration", "live" })
void containerDoesntExist() {
Set<? extends StorageMetadata> list = view.getBlobStore().list();

View File

@ -271,6 +271,7 @@ public class NamingStrategies {
return tryFind(constructors(token), hasMarker).orNull();
}
@SuppressWarnings("CollectionIncompatibleType")
@VisibleForTesting
<T> String translateName(Invokable<T, T> c, int index) {
String name = null;

View File

@ -748,6 +748,7 @@
<compilerArg>-Xlint:-serial</compilerArg>
<compilerArg>-Xlint:-unchecked</compilerArg>
<compilerArg>-Xep:ClassCanBeStatic:ERROR</compilerArg>
<compilerArg>-Xep:CollectionIncompatibleType:ERROR</compilerArg>
<compilerArg>-Xep:EqualsHashCode:ERROR</compilerArg>
<compilerArg>-Xep:GuiceAssistedInjectScoping:OFF</compilerArg>
<compilerArg>-Xep:LongLiteralLowerCaseSuffix:OFF</compilerArg>