forked from hunterhacker/jdom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add findbugs configuration, and fix a few of the simpler problems
- Loading branch information
Showing
8 changed files
with
162 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
#FindBugs User Preferences | ||
#Tue Sep 20 20:18:08 EDT 2011 | ||
detectorAppendingToAnObjectOutputStream=AppendingToAnObjectOutputStream|true | ||
detectorBadAppletConstructor=BadAppletConstructor|false | ||
detectorBadResultSetAccess=BadResultSetAccess|true | ||
detectorBadSyntaxForRegularExpression=BadSyntaxForRegularExpression|true | ||
detectorBadUseOfReturnValue=BadUseOfReturnValue|true | ||
detectorBadlyOverriddenAdapter=BadlyOverriddenAdapter|true | ||
detectorBooleanReturnNull=BooleanReturnNull|true | ||
detectorCallToUnsupportedMethod=CallToUnsupportedMethod|false | ||
detectorCheckImmutableAnnotation=CheckImmutableAnnotation|true | ||
detectorCheckTypeQualifiers=CheckTypeQualifiers|true | ||
detectorCloneIdiom=CloneIdiom|true | ||
detectorComparatorIdiom=ComparatorIdiom|true | ||
detectorConfusedInheritance=ConfusedInheritance|true | ||
detectorConfusionBetweenInheritedAndOuterMethod=ConfusionBetweenInheritedAndOuterMethod|true | ||
detectorCrossSiteScripting=CrossSiteScripting|true | ||
detectorDoInsideDoPrivileged=DoInsideDoPrivileged|true | ||
detectorDontCatchIllegalMonitorStateException=DontCatchIllegalMonitorStateException|true | ||
detectorDontIgnoreResultOfPutIfAbsent=DontIgnoreResultOfPutIfAbsent|true | ||
detectorDontUseEnum=DontUseEnum|true | ||
detectorDroppedException=DroppedException|true | ||
detectorDumbMethodInvocations=DumbMethodInvocations|true | ||
detectorDumbMethods=DumbMethods|true | ||
detectorDuplicateBranches=DuplicateBranches|true | ||
detectorEmptyZipFileEntry=EmptyZipFileEntry|true | ||
detectorEqualsOperandShouldHaveClassCompatibleWithThis=EqualsOperandShouldHaveClassCompatibleWithThis|true | ||
detectorFinalizerNullsFields=FinalizerNullsFields|true | ||
detectorFindBadCast2=FindBadCast2|true | ||
detectorFindBadForLoop=FindBadForLoop|true | ||
detectorFindCircularDependencies=FindCircularDependencies|false | ||
detectorFindDeadLocalStores=FindDeadLocalStores|true | ||
detectorFindDoubleCheck=FindDoubleCheck|true | ||
detectorFindEmptySynchronizedBlock=FindEmptySynchronizedBlock|true | ||
detectorFindFieldSelfAssignment=FindFieldSelfAssignment|true | ||
detectorFindFinalizeInvocations=FindFinalizeInvocations|true | ||
detectorFindFloatEquality=FindFloatEquality|true | ||
detectorFindHEmismatch=FindHEmismatch|true | ||
detectorFindInconsistentSync2=FindInconsistentSync2|true | ||
detectorFindJSR166LockMonitorenter=FindJSR166LockMonitorenter|true | ||
detectorFindLocalSelfAssignment2=FindLocalSelfAssignment2|true | ||
detectorFindMaskedFields=FindMaskedFields|true | ||
detectorFindMismatchedWaitOrNotify=FindMismatchedWaitOrNotify|true | ||
detectorFindNakedNotify=FindNakedNotify|true | ||
detectorFindNonSerializableStoreIntoSession=FindNonSerializableStoreIntoSession|true | ||
detectorFindNonSerializableValuePassedToWriteObject=FindNonSerializableValuePassedToWriteObject|true | ||
detectorFindNonShortCircuit=FindNonShortCircuit|true | ||
detectorFindNullDeref=FindNullDeref|true | ||
detectorFindNullDerefsInvolvingNonShortCircuitEvaluation=FindNullDerefsInvolvingNonShortCircuitEvaluation|true | ||
detectorFindOpenStream=FindOpenStream|true | ||
detectorFindPuzzlers=FindPuzzlers|true | ||
detectorFindRefComparison=FindRefComparison|true | ||
detectorFindReturnRef=FindReturnRef|true | ||
detectorFindRunInvocations=FindRunInvocations|true | ||
detectorFindSelfComparison=FindSelfComparison|true | ||
detectorFindSelfComparison2=FindSelfComparison2|true | ||
detectorFindSleepWithLockHeld=FindSleepWithLockHeld|true | ||
detectorFindSpinLoop=FindSpinLoop|true | ||
detectorFindSqlInjection=FindSqlInjection|true | ||
detectorFindTwoLockWait=FindTwoLockWait|true | ||
detectorFindUncalledPrivateMethods=FindUncalledPrivateMethods|true | ||
detectorFindUnconditionalWait=FindUnconditionalWait|true | ||
detectorFindUninitializedGet=FindUninitializedGet|true | ||
detectorFindUnrelatedTypesInGenericContainer=FindUnrelatedTypesInGenericContainer|true | ||
detectorFindUnreleasedLock=FindUnreleasedLock|true | ||
detectorFindUnsatisfiedObligation=FindUnsatisfiedObligation|true | ||
detectorFindUnsyncGet=FindUnsyncGet|true | ||
detectorFindUselessControlFlow=FindUselessControlFlow|true | ||
detectorFormatStringChecker=FormatStringChecker|true | ||
detectorHugeSharedStringConstants=HugeSharedStringConstants|true | ||
detectorIDivResultCastToDouble=IDivResultCastToDouble|true | ||
detectorIncompatMask=IncompatMask|true | ||
detectorInconsistentAnnotations=InconsistentAnnotations|true | ||
detectorInefficientMemberAccess=InefficientMemberAccess|false | ||
detectorInefficientToArray=InefficientToArray|true | ||
detectorInfiniteLoop=InfiniteLoop|true | ||
detectorInfiniteRecursiveLoop=InfiniteRecursiveLoop|true | ||
detectorInfiniteRecursiveLoop2=InfiniteRecursiveLoop2|false | ||
detectorInheritanceUnsafeGetResource=InheritanceUnsafeGetResource|true | ||
detectorInitializationChain=InitializationChain|true | ||
detectorInstantiateStaticClass=InstantiateStaticClass|true | ||
detectorInvalidJUnitTest=InvalidJUnitTest|true | ||
detectorIteratorIdioms=IteratorIdioms|true | ||
detectorLazyInit=LazyInit|true | ||
detectorLoadOfKnownNullValue=LoadOfKnownNullValue|true | ||
detectorLostLoggerDueToWeakReference=LostLoggerDueToWeakReference|true | ||
detectorMethodReturnCheck=MethodReturnCheck|true | ||
detectorMultithreadedInstanceAccess=MultithreadedInstanceAccess|true | ||
detectorMutableLock=MutableLock|true | ||
detectorMutableStaticFields=MutableStaticFields|true | ||
detectorNaming=Naming|true | ||
detectorNumberConstructor=NumberConstructor|true | ||
detectorOverridingEqualsNotSymmetrical=OverridingEqualsNotSymmetrical|true | ||
detectorPreferZeroLengthArrays=PreferZeroLengthArrays|true | ||
detectorPublicSemaphores=PublicSemaphores|false | ||
detectorQuestionableBooleanAssignment=QuestionableBooleanAssignment|true | ||
detectorReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass=ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass|true | ||
detectorReadReturnShouldBeChecked=ReadReturnShouldBeChecked|true | ||
detectorRedundantInterfaces=RedundantInterfaces|true | ||
detectorRepeatedConditionals=RepeatedConditionals|true | ||
detectorRuntimeExceptionCapture=RuntimeExceptionCapture|true | ||
detectorSerializableIdiom=SerializableIdiom|true | ||
detectorStartInConstructor=StartInConstructor|true | ||
detectorStaticCalendarDetector=StaticCalendarDetector|true | ||
detectorStringConcatenation=StringConcatenation|true | ||
detectorSuperfluousInstanceOf=SuperfluousInstanceOf|true | ||
detectorSuspiciousThreadInterrupted=SuspiciousThreadInterrupted|true | ||
detectorSwitchFallthrough=SwitchFallthrough|true | ||
detectorSynchronizeAndNullCheckField=SynchronizeAndNullCheckField|true | ||
detectorSynchronizeOnClassLiteralNotGetClass=SynchronizeOnClassLiteralNotGetClass|true | ||
detectorSynchronizingOnContentsOfFieldToProtectField=SynchronizingOnContentsOfFieldToProtectField|true | ||
detectorURLProblems=URLProblems|true | ||
detectorUncallableMethodOfAnonymousClass=UncallableMethodOfAnonymousClass|true | ||
detectorUnnecessaryMath=UnnecessaryMath|true | ||
detectorUnreadFields=UnreadFields|true | ||
detectorUseObjectEquals=UseObjectEquals|false | ||
detectorUselessSubclassMethod=UselessSubclassMethod|false | ||
detectorVarArgsProblems=VarArgsProblems|true | ||
detectorVolatileUsage=VolatileUsage|true | ||
detectorWaitInLoop=WaitInLoop|true | ||
detectorWrongMapIterator=WrongMapIterator|true | ||
detectorXMLFactoryBypass=XMLFactoryBypass|true | ||
detector_threshold=2 | ||
effort=default | ||
excludefilter0=FindBugsExcludeFilter.xml | ||
filter_settings=Medium|BAD_PRACTICE,CORRECTNESS,MT_CORRECTNESS,PERFORMANCE,STYLE|false | ||
filter_settings_neg=MALICIOUS_CODE,NOISE,I18N,SECURITY,EXPERIMENTAL| | ||
includefilter0=FindBugsIncludeFilter.xml | ||
run_at_full_build=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<FindBugsFilter> | ||
|
||
<Match> | ||
<Package name="~org\.jdom2\.test\..*" /> | ||
</Match> | ||
<Match> | ||
<Class name="~Test.*" /> | ||
</Match> | ||
<Match> | ||
<Package name="~.*\.contrib\..*" /> | ||
</Match> | ||
|
||
</FindBugsFilter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<FindBugsFilter> | ||
|
||
<Match> | ||
<Package name="org.jdom2" /> | ||
</Match> | ||
<Match> | ||
<Package name="~org\.jdom2\..*" /> | ||
</Match> | ||
|
||
|
||
</FindBugsFilter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters