mirror of https://github.com/apache/jclouds.git
Enable CollectionIncompatibleType
Also suppress two false positives.
This commit is contained in:
parent
4be8a2eb72
commit
eb6f16e2f9
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue