FindBugs 3.0.1 RC1 发布,此版本更新内容如下: 新的 Bug 模式:CAA_COVARIANT_ARRAY_FIELD, CAA_COVARIANT_ARRAY_RETURN, CAA_COVARIANT_ARRAY_LOCAL, CAA_COVARIANT_ARRAY_ELEMENT_STORE, CO_COMPARETO_INCORRECT_FLOATING, DC_PARTIALLY_CONSTRUCTED, DM_BOXED_PRIMITIVE_FOR_COMPARE, DM_INVALID_MIN_MAX, IIL_PREPARE_STATEMENT_IN_LOOP, IIL_PATTERN_COMPILE_IN_LOOP, IIL_PATTERN_COMPILE_IN_LOOP_INDIRECT, IIL_ELEMENTS_GET_LENGTH_IN_LOOP, ME_MUTABLE_ENUM_FIELD, ME_ENUM_FIELD_SETTER, MS_MUTABLE_COLLECTION, MS_MUTABLE_COLLECTION_PKGPROTECT, RANGE_ARRAY_INDEX, RANGE_ARRAY_OFFSET, RANGE_ARRAY_LENGTH, RANGE_STRING_INDEX, RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT, UC_USELESS_CONDITION, UC_USELESS_CONDITION_TYPE, UC_USELESS_OBJECT, UC_USELESS_OBJECT_STACK, UC_USELESS_VOID_METHOD 改进的 Bug 模式:INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE, RpC_REPEATED_CONDITIONAL_TEST, WMI_WRONG_MAP_ITERATOR, DMI_HARDCODED_ABSOLUTE_FILENAME, DMI_EMPTY_DB_PASSWORD, DMI_CONSTANT_DB_PASSWORD, PT_ABSOLUTE_PATH_TRAVERSAL, PT_RELATIVE_PATH_TRAVERSAL, IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD, SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE, SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING 各种 bug 修复,还有一些社区上的分支,谢谢所有贡献者! FindBugs是一个能静态分析源代码中可能会出现Bug的Eclipse插件工具。 FindBugs 3.0.1 RC1 发布,Java 代码 Bug 分析插件下载地址