Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FindBugs config file.
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<Match>
<Bug pattern="BC_IMPOSSIBLE_DOWNCAST"/>
</Match>
<Match>
<Bug pattern="BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY"/>
</Match>
<Match>
<Bug pattern="EC_INCOMPATIBLE_ARRAY_COMPARE"/>
</Match>
<Match>
<Bug pattern="NP_CLOSING_NULL"/>
</Match>
<Match>
<Bug pattern="RC_REF_COMPARISON_BAD_PRACTICE"/>
</Match>
<Match>
<Bug pattern="RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN"/>
</Match>
<Match>
<Bug pattern="UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED"/>
</Match>
<Match>
<Bug pattern="NP_UNWRITTEN_FIELD"/>
</Match>
<Match>
<Bug pattern="UWF_UNWRITTEN_FIELD"/>
</Match>
<Match>
<Bug pattern="DMI_VACUOUS_CALL_TO_EASYMOCK_METHOD"/>
</Match>
<Match>
<Bug pattern="DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS"/>
</Match>
<Match>
<Bug pattern="DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR"/>
</Match>
<Match>
<Bug pattern="IL_INFINITE_LOOP"/>
</Match>
<Match>
<Bug pattern="IL_INFINITE_RECURSIVE_LOOP"/>
</Match>
<Match>
<Bug pattern="IL_CONTAINER_ADDED_TO_ITSELF"/>
</Match>
<Match>
<Bug pattern="UI_INHERITANCE_UNSAFE_GETRESOURCE"/>
</Match>
<Match>
<Bug pattern="NP_BOOLEAN_RETURN_NULL"/>
</Match>
<Match>
<Bug pattern="RpC_REPEATED_CONDITIONAL_TEST"/>
</Match>
<Match>
<Bug pattern="DE_MIGHT_DROP"/>
</Match>
<Match>
<Bug pattern="DE_MIGHT_IGNORE"/>
</Match>
<Match>
<Bug pattern="DMI_COLLECTION_OF_URLS"/>
</Match>
<Match>
<Bug pattern="DMI_BLOCKING_METHODS_ON_URL"/>
</Match>
<Match>
<Bug pattern="DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION"/>
</Match>
<Match>
<Bug pattern="DM_EXIT"/>
</Match>
<Match>
<Bug pattern="DM_RUN_FINALIZERS_ON_EXIT"/>
</Match>
<Match>
<Bug pattern="DM_GC"/>
</Match>
<Match>
<Bug pattern="DM_CONVERT_CASE"/>
</Match>
<Match>
<Bug pattern="BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR"/>
</Match>
<Match>
<Bug pattern="BX_BOXING_IMMEDIATELY_UNBOXED"/>
</Match>
<Match>
<Bug pattern="BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION"/>
</Match>
<Match>
<Bug pattern="DM_BOXED_PRIMITIVE_TOSTRING"/>
</Match>
<Match>
<Bug pattern="DM_NEW_FOR_GETCLASS"/>
</Match>
<Match>
<Bug pattern="RV_01_TO_INT"/>
</Match>
<Match>
<Bug pattern="DM_NEXTINT_VIA_NEXTDOUBLE"/>
</Match>
<Match>
<Bug pattern="EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS"/>
</Match>
<Match>
<Bug pattern="EQ_DONT_DEFINE_EQUALS_FOR_ENUM"/>
</Match>
<Match>
<Bug pattern="EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC"/>
</Match>
<Match>
<Bug pattern="EQ_GETCLASS_AND_CLASS_CONSTANT"/>
</Match>
<Match>
<Bug pattern="EQ_COMPARING_CLASS_NAMES"/>
</Match>
<Match>
<Bug pattern="EQ_ALWAYS_TRUE"/>
</Match>
<Match>
<Bug pattern="EQ_ALWAYS_FALSE"/>
</Match>
<Match>
<Bug pattern="HSC_HUGE_SHARED_STRING_CONSTANT"/>
</Match>
<Match>
<Bug pattern="NP_ARGUMENT_MIGHT_BE_NULL"/>
</Match>
<Match>
<Bug pattern="NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT"/>
</Match>
<Match>
<Bug pattern="CO_SELF_NO_OBJECT"/>
</Match>
<Match>
<Bug pattern="HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS"/>
</Match>
<Match>
<Bug pattern="HE_USE_OF_UNHASHABLE_CLASS"/>
</Match>
<Match>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
</Match>
<Match>
<Bug pattern="CO_ABSTRACT_SELF"/>
</Match>
<Match>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>
<Match>
<Bug pattern="NS_DANGEROUS_NON_SHORT_CIRCUIT"/>
</Match>
<Match>
<Bug pattern="NS_NON_SHORT_CIRCUIT"/>
</Match>
<Match>
<Bug pattern="UR_UNINIT_READ"/>
</Match>
<Match>
<Bug pattern="IC_INIT_CIRCULARITY"/>
</Match>
<Match>
<Bug pattern="IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION"/>
</Match>
<Match>
<Bug pattern="IT_NO_SUCH_ELEMENT"/>
</Match>
<Match>
<Bug pattern="IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD"/>
</Match>
<Match>
<Bug pattern="NM_VERY_CONFUSING"/>
</Match>
<Match>
<Bug pattern="NM_WRONG_PACKAGE"/>
</Match>
<Match>
<Bug pattern="NM_METHOD_CONSTRUCTOR_CONFUSION"/>
</Match>
<Match>
<Bug pattern="SE_READ_RESOLVE_IS_STATIC"/>
</Match>
<Match>
<Bug pattern="SE_PRIVATE_READ_RESOLVE_NOT_INHERITED"/>
</Match>
<Match>
<Bug pattern="SE_READ_RESOLVE_MUST_RETURN_OBJECT"/>
</Match>
<Match>
<Bug pattern="SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS"/>
</Match>
<Match>
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED"/>
</Match>
<Match>
<Bug pattern="SE_METHOD_MUST_BE_PRIVATE"/>
</Match>
<Match>
<Bug pattern="SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION"/>
</Match>
<Match>
<Bug pattern="SE_NO_SUITABLE_CONSTRUCTOR"/>
</Match>
<Match>
<Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE"/>
</Match>
<Match>
<Bug pattern="SE_BAD_FIELD_INNER_CLASS"/>
</Match>
<Match>
<Bug pattern="SE_INNER_CLASS"/>
</Match>
<Match>
<Bug pattern="SE_BAD_FIELD_STORE"/>
</Match>
<Match>
<Bug pattern="SS_SHOULD_BE_STATIC"/>
</Match>
<Match>
<Bug pattern="UUF_UNUSED_FIELD"/>
</Match>
<Match>
<Bug pattern="URF_UNREAD_FIELD"/>
</Match>
<Match>
<Bug pattern="QF_QUESTIONABLE_FOR_LOOP"/>
</Match>
<Match>
<Bug pattern="UWF_NULL_FIELD"/>
</Match>
<Match>
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
</Match>
<Match>
<Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE"/>
</Match>
<Match>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC"/>
</Match>
<Match>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
</Match>
<Match>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS"/>
</Match>
<Match>
<Bug pattern="RV_RETURN_VALUE_IGNORED"/>
</Match>
<Match>
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/>
</Match>
<Match>
<Bug pattern="RV_EXCEPTION_NOT_THROWN"/>
</Match>
<Match>
<Bug pattern="NP_ALWAYS_NULL"/>
</Match>
<Match>
<Bug pattern="NP_STORE_INTO_NONNULL_FIELD"/>
</Match>
<Match>
<Bug pattern="NP_ALWAYS_NULL_EXCEPTION"/>
</Match>
<Match>
<Bug pattern="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE"/>
</Match>
<Match>
<Bug pattern="NP_NULL_ON_SOME_PATH"/>
</Match>
<Match>
<Bug pattern="NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE"/>
</Match>
<Match>
<Bug pattern="NP_NULL_ON_SOME_PATH_EXCEPTION"/>
</Match>
<Match>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
</Match>
<Match>
<Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL"/>
</Match>
<Match>
<Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS"/>
</Match>
<Match>
<Bug pattern="NP_NULL_PARAM_DEREF"/>
</Match>
<Match>
<Bug pattern="NP_NONNULL_PARAM_VIOLATION"/>
</Match>
<Match>
<Bug pattern="NP_NONNULL_RETURN_VIOLATION"/>
</Match>
<Match>
<Bug pattern="NP_TOSTRING_COULD_RETURN_NULL"/>
</Match>
<Match>
<Bug pattern="NP_GUARANTEED_DEREF"/>
</Match>
<Match>
<Bug pattern="NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH"/>
</Match>
<Match>
<Bug pattern="SI_INSTANCE_BEFORE_FINALS_ASSIGNED"/>
</Match>
<Match>
<Bug pattern="UCF_USELESS_CONTROL_FLOW"/>
</Match>
<Match>
<Bug pattern="UCF_USELESS_CONTROL_FLOW_NEXT_LINE"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE"/>
</Match>
<Match>
<Bug pattern="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY"/>
</Match>
<Match>
<Bug pattern="EC_UNRELATED_TYPES"/>
</Match>
<Match>
<Bug pattern="EC_UNRELATED_INTERFACES"/>
</Match>
<Match>
<Bug pattern="EC_UNRELATED_CLASS_AND_INTERFACE"/>
</Match>
<Match>
<Bug pattern="EC_NULL_ARG"/>
</Match>
<Match>
<Bug pattern="SA_LOCAL_SELF_ASSIGNMENT"/>
</Match>
<Match>
<Bug pattern="SA_FIELD_SELF_ASSIGNMENT"/>
</Match>
<Match>
<Bug pattern="SA_FIELD_DOUBLE_ASSIGNMENT"/>
</Match>
<Match>
<Bug pattern="SA_LOCAL_DOUBLE_ASSIGNMENT"/>
</Match>
<Match>
<Bug pattern="SA_FIELD_SELF_COMPUTATION"/>
</Match>
<Match>
<Bug pattern="SA_LOCAL_SELF_COMPUTATION"/>
</Match>
<Match>
<Bug pattern="SA_FIELD_SELF_COMPARISON"/>
</Match>
<Match>
<Bug pattern="DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT"/>
</Match>
<Match>
<Bug pattern="DMI_RANDOM_USED_ONLY_ONCE"/>
</Match>
<Match>
<Bug pattern="RV_ABSOLUTE_VALUE_OF_RANDOM_INT"/>
</Match>
<Match>
<Bug pattern="RV_ABSOLUTE_VALUE_OF_HASHCODE"/>
</Match>
<Match>
<Bug pattern="INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE"/>
</Match>
<Match>
<Bug pattern="INT_BAD_COMPARISON_WITH_SIGNED_BYTE"/>
</Match>
<Match>
<Bug pattern="INT_VACUOUS_COMPARISON"/>
</Match>
<Match>
<Bug pattern="INT_BAD_REM_BY_1"/>
</Match>
<Match>
<Bug pattern="UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS"/>
</Match>
<Match>
<Bug pattern="ITA_INEFFICIENT_TO_ARRAY"/>
</Match>
<Match>
<Bug pattern="SIO_SUPERFLUOUS_INSTANCEOF"/>
</Match>
<Match>
<Bug pattern="EC_ARRAY_AND_NONARRAY"/>
</Match>
<Match>
<Bug pattern="EC_BAD_ARRAY_COMPARE"/>
</Match>
<Match>
<Bug pattern="DLS_DEAD_STORE_OF_CLASS_LITERAL"/>
</Match>
<Match>
<Bug pattern="WMI_WRONG_MAP_ITERATOR"/>
</Match>
<Match>
<Bug pattern="ISC_INSTANTIATE_STATIC_CLASS"/>
</Match>
<Match>
<Bug pattern="FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER"/>
</Match>
<Match>
<Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
</Match>
<Match>
<Bug pattern="UM_UNNECESSARY_MATH"/>
</Match>
<Match>
<Bug pattern="RI_REDUNDANT_INTERFACES"/>
</Match>
<Match>
<Bug pattern="ICAST_INTEGER_MULTIPLY_CAST_TO_LONG"/>
</Match>
<Match>
<Bug pattern="ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND"/>
</Match>
<Match>
<Bug pattern="ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL"/>
</Match>
<Match>
<Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_BAD_CONVERSION"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_ILLEGAL"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_MISSING_ARGUMENT"/>
</Match>
<Match>
<Bug pattern="VA_FORMAT_STRING_BAD_ARGUMENT"/>
</Match>
<Match>
<Bug pattern="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG"/>
</Match>
<Match>
<Bug pattern="BC_BAD_CAST_TO_ABSTRACT_COLLECTION"/>
</Match>
<Match>
<Bug pattern="BC_IMPOSSIBLE_CAST"/>
</Match>
<Match>
<Bug pattern="NP_NULL_INSTANCEOF"/>
</Match>
<Match>
<Bug pattern="BC_IMPOSSIBLE_INSTANCEOF"/>
</Match>
<Match>
<Bug pattern="BC_VACUOUS_INSTANCEOF"/>
</Match>
<Match>
<Bug pattern="BC_UNCONFIRMED_CAST"/>
</Match>
<Match>
<Bug pattern="BC_BAD_CAST_TO_CONCRETE_COLLECTION"/>
</Match>
<Match>
<Bug pattern="RE_POSSIBLE_UNINTENDED_PATTERN"/>
</Match>
<Match>
<Bug pattern="RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION"/>
</Match>
<Match>
<Bug pattern="RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION"/>
</Match>
<Match>
<Bug pattern="DLS_OVERWRITTEN_INCREMENT"/>
</Match>
<Match>
<Bug pattern="IM_MULTIPLYING_RESULT_OF_IREM"/>
</Match>
<Match>
<Bug pattern="DMI_INVOKING_HASHCODE_ON_ARRAY"/>
</Match>
<Match>
<Bug pattern="DMI_INVOKING_TOSTRING_ON_ARRAY"/>
</Match>
<Match>
<Bug pattern="DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY"/>
</Match>
<Match>
<Bug pattern="IM_AVERAGE_COMPUTATION_COULD_OVERFLOW"/>
</Match>
<Match>
<Bug pattern="IM_BAD_CHECK_FOR_ODD"/>
</Match>
<Match>
<Bug pattern="DMI_BAD_MONTH"/>
</Match>
<Match>
<Bug pattern="DMI_CALLING_NEXT_FROM_HASNEXT"/>
</Match>
<Match>
<Bug pattern="DB_DUPLICATE_BRANCHES"/>
</Match>
<Match>
<Bug pattern="DB_DUPLICATE_SWITCH_CLAUSES"/>
</Match>
<Match>
<Bug pattern="QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT"/>
</Match>
<Match>
<Bug pattern="GC_UNCHECKED_TYPE_IN_GENERIC_CALL"/>
</Match>
<Match>
<Bug pattern="GC_UNRELATED_TYPES"/>
</Match>
<Match>
<Bug pattern="DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES"/>
</Match>
<Match>
<Bug pattern="DMI_VACUOUS_SELF_COLLECTION_CALL"/>
</Match>
<Match>
<Bug pattern="DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION"/>
</Match>
</FindBugsFilter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment