You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2016/10/23 19:08:07 UTC

jclouds git commit: Enable more error-prone checks

Repository: jclouds
Updated Branches:
  refs/heads/master d1508b2d2 -> 1b6cd0854


Enable more error-prone checks


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/1b6cd085
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/1b6cd085
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/1b6cd085

Branch: refs/heads/master
Commit: 1b6cd085459e359b09b5eac001cb78b6056b8f36
Parents: d1508b2
Author: Andrew Gaul <ga...@apache.org>
Authored: Sun Dec 13 04:00:04 2015 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Sun Oct 23 12:06:43 2016 -0700

----------------------------------------------------------------------
 project/pom.xml | 120 +++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 112 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/1b6cd085/project/pom.xml
----------------------------------------------------------------------
diff --git a/project/pom.xml b/project/pom.xml
index 95b8ea8..c33acfc 100644
--- a/project/pom.xml
+++ b/project/pom.xml
@@ -752,17 +752,121 @@
               <compilerArg>-Xlint:-rawtypes</compilerArg>
               <compilerArg>-Xlint:-serial</compilerArg>
               <compilerArg>-Xlint:-unchecked</compilerArg>
-              <compilerArg>-Xep:ClassCanBeStatic:ERROR</compilerArg>
-              <compilerArg>-Xep:CollectionIncompatibleType:ERROR</compilerArg>
+
+              <!-- on by default: warning -->
+              <compilerArg>-Xep:CannotMockFinalClass:ERROR</compilerArg>
+              <compilerArg>-Xep:ElementsCountedInLoop:ERROR</compilerArg>
               <compilerArg>-Xep:EqualsHashCode:ERROR</compilerArg>
-              <compilerArg>-Xep:GuiceAssistedInjectScoping:OFF</compilerArg>
-              <compilerArg>-Xep:LongLiteralLowerCaseSuffix:OFF</compilerArg>
-              <compilerArg>-Xep:MalformedFormatString:ERROR</compilerArg>
-              <compilerArg>-Xep:NonAtomicVolatileUpdate:OFF</compilerArg>
-              <compilerArg>-Xep:NullablePrimitive:ERROR</compilerArg>
+              <compilerArg>-Xep:Finally:ERROR</compilerArg>
+              <compilerArg>-Xep:IncompatibleModifiers:ERROR</compilerArg>
+              <compilerArg>-Xep:JUnitAmbiguousTestClass:ERROR</compilerArg>
+              <compilerArg>-Xep:NonAtomicVolatileUpdate:OFF</compilerArg>  <!-- noisy -->
+              <compilerArg>-Xep:NonCanonicalStaticMemberImport:ERROR</compilerArg>
+              <compilerArg>-Xep:NonOverridingEquals:ERROR</compilerArg>
+              <compilerArg>-Xep:PreconditionsInvalidPlaceholder:ERROR</compilerArg>
+              <compilerArg>-Xep:ProtoFieldPreconditionsCheckNotNull:ERROR</compilerArg>
+              <compilerArg>-Xep:RequiredModifiers:ERROR</compilerArg>
+              <compilerArg>-Xep:StaticAccessedFromInstance:ERROR</compilerArg>
               <compilerArg>-Xep:StringEquality:ERROR</compilerArg>
-              <compilerArg>-Xep:TypeParameterUnusedInFormals:OFF</compilerArg>
+              <compilerArg>-Xep:SynchronizeOnNonFinalField:ERROR</compilerArg>
+              <compilerArg>-Xep:TypeParameterUnusedInFormals:OFF</compilerArg>  <!-- noisy -->
               <compilerArg>-Xep:UnnecessaryStaticImport:ERROR</compilerArg>
+              <compilerArg>-Xep:WaitNotInLoop:ERROR</compilerArg>
+
+              <!-- on by default: error -->
+              <compilerArg>-Xep:ArrayEquals:ERROR</compilerArg>
+              <compilerArg>-Xep:ArrayHashCode:ERROR</compilerArg>
+              <compilerArg>-Xep:ArrayToString:ERROR</compilerArg>
+              <compilerArg>-Xep:ArrayToStringCompoundAssignment:ERROR</compilerArg>
+              <compilerArg>-Xep:ArrayToStringConcatenation:ERROR</compilerArg>
+              <compilerArg>-Xep:AsyncFunctionReturnsNull:ERROR</compilerArg>
+              <compilerArg>-Xep:BadShiftAmount:ERROR</compilerArg>
+              <compilerArg>-Xep:ChainingConstructorIgnoresParameter:ERROR</compilerArg>
+              <compilerArg>-Xep:CheckReturnValue:ERROR</compilerArg>
+              <compilerArg>-Xep:ClassName:ERROR</compilerArg>
+              <compilerArg>-Xep:ComparisonOutOfRange:ERROR</compilerArg>
+              <compilerArg>-Xep:CompileTimeConstant:ERROR</compilerArg>
+              <compilerArg>-Xep:DeadException:ERROR</compilerArg>
+              <compilerArg>-Xep:DepAnn:ERROR</compilerArg>
+              <compilerArg>-Xep:DoubleCheckedLocking:ERROR</compilerArg>
+              <compilerArg>-Xep:EqualsNaN:ERROR</compilerArg>
+              <compilerArg>-Xep:ForOverride:ERROR</compilerArg>
+              <compilerArg>-Xep:GetClassOnClass:ERROR</compilerArg>
+              <compilerArg>-Xep:GuardedByChecker:ERROR</compilerArg>
+              <compilerArg>-Xep:GuiceAssistedInjectScoping:ERROR</compilerArg>
+              <compilerArg>-Xep:HashtableContains:ERROR</compilerArg>
+              <compilerArg>-Xep:InvalidPatternSyntax:ERROR</compilerArg>
+              <compilerArg>-Xep:IsInstanceOfClass:ERROR</compilerArg>
+              <compilerArg>-Xep:JUnit3TestNotRun:ERROR</compilerArg>
+              <compilerArg>-Xep:JUnit4SetUpNotRun:ERROR</compilerArg>
+              <compilerArg>-Xep:JUnit4TearDownNotRun:ERROR</compilerArg>
+              <compilerArg>-Xep:JUnit4TestNotRun:ERROR</compilerArg>
+              <compilerArg>-Xep:LongLiteralLowerCaseSuffix:OFF</compilerArg>  <!-- noisy -->
+              <compilerArg>-Xep:MisusedWeekYear:ERROR</compilerArg>
+              <compilerArg>-Xep:NarrowingCompoundAssignment:ERROR</compilerArg>
+              <compilerArg>-Xep:NonCanonicalStaticImport:ERROR</compilerArg>
+              <compilerArg>-Xep:NonFinalCompileTimeConstant:ERROR</compilerArg>
+              <compilerArg>-Xep:Overrides:ERROR</compilerArg>
+              <compilerArg>-Xep:PackageLocation:ERROR</compilerArg>
+              <compilerArg>-Xep:PreconditionsCheckNotNull:ERROR</compilerArg>
+              <compilerArg>-Xep:PreconditionsCheckNotNullPrimitive:ERROR</compilerArg>
+              <compilerArg>-Xep:ProtoFieldNullComparison:ERROR</compilerArg>
+              <compilerArg>-Xep:ReturnValueIgnored:ERROR</compilerArg>
+              <compilerArg>-Xep:SelfAssignment:ERROR</compilerArg>
+              <compilerArg>-Xep:SelfEquals:ERROR</compilerArg>
+              <compilerArg>-Xep:SizeGreaterThanOrEqualsZero:ERROR</compilerArg>
+              <compilerArg>-Xep:StringBuilderInitWithChar:ERROR</compilerArg>
+              <compilerArg>-Xep:SuppressWarningsDeprecated:ERROR</compilerArg>
+              <compilerArg>-Xep:TryFailThrowable:ERROR</compilerArg>
+              <compilerArg>-Xep:UnnecessaryTypeArgument:ERROR</compilerArg>
+              <compilerArg>-Xep:UnusedAnonymousClass:ERROR</compilerArg>
+
+              <!-- experimental: warning -->
+              <compilerArg>-Xep:AssertFalse:ERROR</compilerArg>
+              <compilerArg>-Xep:AssistedInjectAndInjectOnConstructors:ERROR</compilerArg>
+              <compilerArg>-Xep:CollectionIncompatibleType:ERROR</compilerArg>
+              <compilerArg>-Xep:GuiceInjectOnFinalField:OFF</compilerArg>  <!-- noisy -->
+              <compilerArg>-Xep:MissingFail:ERROR</compilerArg>
+              <compilerArg>-Xep:NullablePrimitive:ERROR</compilerArg>
+              <compilerArg>-Xep:OverridesGuiceInjectableMethod:OFF</compilerArg>  <!-- internal error with 2.0.5 -->
+              <compilerArg>-Xep:PreconditionsErrorMessageEagerEvaluation:OFF</compilerArg>  <!-- internal error with 2.0.5 -->
+              <compilerArg>-Xep:PrimitiveArrayPassedToVarargsMethod:ERROR</compilerArg>
+
+              <!-- experimental: not a problem -->
+              <compilerArg>-Xep:FallthroughSuppression</compilerArg>
+
+              <!-- experimental: error -->
+              <compilerArg>-Xep:ArraysAsListPrimitiveArray:ERROR</compilerArg>
+              <compilerArg>-Xep:AssistedInjectAndInjectOnSameConstructor:ERROR</compilerArg>
+              <compilerArg>-Xep:ClassCanBeStatic:ERROR</compilerArg>
+              <compilerArg>-Xep:DivZero:ERROR</compilerArg>
+              <compilerArg>-Xep:EmptyIf:ERROR</compilerArg>
+              <compilerArg>-Xep:GuardedByValidator:ERROR</compilerArg>
+              <compilerArg>-Xep:GuiceAssistedParameters:ERROR</compilerArg>
+              <compilerArg>-Xep:InjectInvalidTargetingOnScopingAnnotation:ERROR</compilerArg>
+              <compilerArg>-Xep:InjectMoreThanOneQualifier:OFF</compilerArg>  <!-- noisy -->
+              <compilerArg>-Xep:InjectMoreThanOneScopeAnnotationOnClass:ERROR</compilerArg>
+              <compilerArg>-Xep:InjectScopeAnnotationOnInterfaceOrAbstractClass:ERROR</compilerArg>
+              <compilerArg>-Xep:InjectScopeOrQualifierAnnotationRetention:ERROR</compilerArg>
+              <compilerArg>-Xep:InjectedConstructorAnnotations:ERROR</compilerArg>
+              <compilerArg>-Xep:JMockTestWithoutRunWithOrRuleAnnotation:ERROR</compilerArg>
+              <compilerArg>-Xep:JavaxInjectOnAbstractMethod:ERROR</compilerArg>
+              <compilerArg>-Xep:JavaxInjectOnFinalField:ERROR</compilerArg>
+              <compilerArg>-Xep:LockMethodChecker:ERROR</compilerArg>
+              <compilerArg>-Xep:MalformedFormatString:ERROR</compilerArg>
+              <compilerArg>-Xep:MissingCasesInEnumSwitch:OFF</compilerArg>  <!-- noisy -->
+              <compilerArg>-Xep:ModifyingCollectionWithItself:ERROR</compilerArg>
+              <compilerArg>-Xep:MoreThanOneInjectableConstructor:OFF</compilerArg>  <!-- internal error with 2.0.5 -->
+              <compilerArg>-Xep:NoAllocation:ERROR</compilerArg>
+              <compilerArg>-Xep:NonRuntimeAnnotation:ERROR</compilerArg>
+              <compilerArg>-Xep:NumericEquality:ERROR</compilerArg>
+              <compilerArg>-Xep:OverlappingQualifierAndScopeAnnotation:ERROR</compilerArg>
+              <compilerArg>-Xep:OverridesJavaxInjectableMethod:OFF</compilerArg>  <!-- internal error with 2.0.5 -->
+              <compilerArg>-Xep:ParameterPackage:OFF</compilerArg>  <!-- internal error with 2.0.5 -->
+              <compilerArg>-Xep:ProtoStringFieldReferenceEquality:ERROR</compilerArg>
+              <compilerArg>-Xep:SelfEquality:ERROR</compilerArg>
+              <compilerArg>-Xep:UnlockMethod:ERROR</compilerArg>
+              <compilerArg>-Xep:WildcardImport:ERROR</compilerArg>
             </compilerArgs>
         </configuration>
         <dependencies>