From d36b0758b0094cc728b487b56e27d0cd78c3886d Mon Sep 17 00:00:00 2001 From: Philippe Arteau Date: Fri, 19 Aug 2016 11:20:56 -0400 Subject: [PATCH 1/3] Minor change (mainly cleanup) - Dead code removed - FindBugs suggestions applied - Left over sysout --- pom.xml | 2 +- .../org/sonar/plugins/findbugs/FindbugsConfiguration.java | 5 ++++- .../java/org/sonar/plugins/findbugs/FindbugsSensor.java | 4 +--- .../plugins/findbugs/resource/ByteCodeResourceLocator.java | 6 ++++-- .../plugins/findbugs/resource/DebugExtensionExtractor.java | 2 +- .../sonar/plugins/findbugs/FindbugsConfigurationTest.java | 3 --- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index a2f31357..dd04eb32 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.sonarsource.sonar-findbugs-plugin sonar-findbugs-plugin - 3.4.3 + 3.4.4-SNAPSHOT sonar-plugin SonarQube Findbugs Plugin diff --git a/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java b/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java index 80dc2691..6cf20866 100644 --- a/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java +++ b/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java @@ -188,7 +188,9 @@ public static List scanForAdditionalClasses(File folder) throws IOExceptio Queue dirs = new LinkedList(); dirs.add(folder); while (!dirs.isEmpty()) { - for (File f : dirs.poll().listFiles()) { + File dirPoll = dirs.poll(); + if(dirPoll == null) break; //poll() result could be null if the queue is empty. + for (File f : dirPoll.listFiles()) { if (f.isDirectory()) { dirs.add(f); } else if (f.isFile()&& f.getName().endsWith(".class")) { @@ -248,6 +250,7 @@ public void copyLibs() { /** * Invoked by PicoContainer to remove temporary files. */ + @SuppressWarnings("RV_RETURN_VALUE_IGNORED_BAD_PRACTICE") public void stop() { if (jsr305Lib != null) { jsr305Lib.delete(); diff --git a/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java b/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java index 14ba241b..aed6e0ea 100644 --- a/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java +++ b/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java @@ -94,8 +94,6 @@ public void execute(SensorContext context) { Collection collection = executor.execute(hasActiveFbContribRules(), hasActiveFindSecBugsRules() || hasActiveFindSecBugsJspRules()); - Set locationReported = new HashSet<>(); - for (ReportedBug bugInstance : collection) { try { @@ -165,7 +163,7 @@ public void execute(SensorContext context) { LOG.warn("The class '" + className + "' could not be match to its original source file. It might be a dynamically generated class."); } catch (Exception e) { - String bugInstanceDebug = String.format("[BugInstance type=%s, line=%s]", bugInstance.getType(),bugInstance.getStartLine()); + String bugInstanceDebug = String.format("[BugInstance type=%s, class=%s, line=%s]", bugInstance.getType(), bugInstance.getClassName(), bugInstance.getStartLine()); LOG.warn("An error occurs while processing the bug instance "+bugInstanceDebug,e); //Continue to the bug without aborting the report } diff --git a/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java b/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java index 22952d88..6f1c08c9 100644 --- a/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java +++ b/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java @@ -43,6 +43,8 @@ public class ByteCodeResourceLocator implements BatchExtension { private static final Logger LOG = LoggerFactory.getLogger(ByteCodeResourceLocator.class); + private static final String[] SOURCE_DIRECTORIES = {"src/main/java","src/main/webapp","src/main/resources","src"}; + /** * Find the file system location of a given class name.
* (ie : test.SomeClass -> src/main/java/test/SomeClass.java) @@ -121,8 +123,8 @@ public InputFile findTemplateFile(String className, FileSystem fs) { } public InputFile buildInputFile(String fileName,FileSystem fs) { - for(String sourceDir : Arrays.asList("src/main/java","src/main/webapp","src/main/resources","src")) { - System.out.println("Source file tested : "+sourceDir+"/"+fileName); + for(String sourceDir : SOURCE_DIRECTORIES) { + //System.out.println("Source file tested : "+sourceDir+"/"+fileName); Iterable files = fs.inputFiles(fs.predicates().hasRelativePath(sourceDir+"/"+fileName)); for (InputFile f : files) { return f; diff --git a/src/main/java/org/sonar/plugins/findbugs/resource/DebugExtensionExtractor.java b/src/main/java/org/sonar/plugins/findbugs/resource/DebugExtensionExtractor.java index 92eef37b..6a6d8aeb 100644 --- a/src/main/java/org/sonar/plugins/findbugs/resource/DebugExtensionExtractor.java +++ b/src/main/java/org/sonar/plugins/findbugs/resource/DebugExtensionExtractor.java @@ -52,7 +52,7 @@ public String getDebugSourceFromClass(InputStream classIn) throws IOException { return visitor.source; } - private class AbstractClassVisitor extends ClassVisitor { + private static class AbstractClassVisitor extends ClassVisitor { protected String source; protected String debug; diff --git a/src/test/java/org/sonar/plugins/findbugs/FindbugsConfigurationTest.java b/src/test/java/org/sonar/plugins/findbugs/FindbugsConfigurationTest.java index 1ead66bd..6c619c78 100644 --- a/src/test/java/org/sonar/plugins/findbugs/FindbugsConfigurationTest.java +++ b/src/test/java/org/sonar/plugins/findbugs/FindbugsConfigurationTest.java @@ -44,9 +44,6 @@ public class FindbugsConfigurationTest { @Rule public TemporaryFolder temp = new TemporaryFolder(); - @Rule - public ExpectedException thrown = ExpectedException.none(); - private DefaultFileSystem fs; private Settings settings; private File baseDir; From 1d1c47dc0178d45da3e86881fd509f0d83cba4e2 Mon Sep 17 00:00:00 2001 From: Philippe Arteau Date: Thu, 22 Sep 2016 16:49:19 -0400 Subject: [PATCH 2/3] Add handling for exceptions related to malformed metadata file. Remove the unused description files of FindBugs. --- .../plugins/findbugs/FindbugsSensor.java | 43 +- .../resource/ByteCodeResourceLocator.java | 6 +- .../ClassMetadataLoadingException.java | 8 + .../resource/DebugExtensionExtractor.java | 24 +- .../org/sonar/l10n/findbugs.properties | 442 ------------------ .../AM_CREATES_EMPTY_JAR_FILE_ENTRY.html | 6 - .../AM_CREATES_EMPTY_ZIP_FILE_ENTRY.html | 6 - ...ON_SEQUENCE_ON_CONCURRENT_ABSTRACTION.html | 1 - .../findbugs/BAC_BAD_APPLET_CONSTRUCTOR.html | 5 - .../BC_BAD_CAST_TO_ABSTRACT_COLLECTION.html | 7 - .../BC_BAD_CAST_TO_CONCRETE_COLLECTION.html | 8 - ...LS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS.html | 9 - .../rules/findbugs/BC_IMPOSSIBLE_CAST.html | 3 - .../findbugs/BC_IMPOSSIBLE_DOWNCAST.html | 1 - .../BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY.html | 9 - .../findbugs/BC_IMPOSSIBLE_INSTANCEOF.html | 8 - .../rules/findbugs/BC_UNCONFIRMED_CAST.html | 5 - .../BC_UNCONFIRMED_CAST_OF_RETURN_VALUE.html | 6 - .../rules/findbugs/BC_VACUOUS_INSTANCEOF.html | 11 - .../findbugs/BIT_ADD_OF_SIGNED_BYTE.html | 23 - .../l10n/findbugs/rules/findbugs/BIT_AND.html | 8 - .../findbugs/rules/findbugs/BIT_AND_ZZ.html | 7 - .../l10n/findbugs/rules/findbugs/BIT_IOR.html | 12 - .../findbugs/BIT_IOR_OF_SIGNED_BYTE.html | 23 - .../rules/findbugs/BIT_SIGNED_CHECK.html | 15 - .../findbugs/BIT_SIGNED_CHECK_HIGH_BIT.html | 15 - .../BOA_BADLY_OVERRIDDEN_ADAPTER.html | 3 - .../findbugs/BSHIFT_WRONG_ADD_PRIORITY.html | 5 - .../BX_BOXING_IMMEDIATELY_UNBOXED.html | 8 - ...MEDIATELY_UNBOXED_TO_PERFORM_COERCION.html | 6 - ...OXED_AND_COERCED_FOR_TERNARY_OPERATOR.html | 12 - .../BX_UNBOXING_IMMEDIATELY_REBOXED.html | 5 - .../findbugs/CD_CIRCULAR_DEPENDENCY.html | 9 - .../findbugs/CI_CONFUSED_INHERITANCE.html | 10 - .../findbugs/CNT_ROUGH_CONSTANT_VALUE.html | 1 - .../findbugs/rules/findbugs/CN_IDIOM.html | 7 - .../findbugs/CN_IDIOM_NO_SUPER_CALL.html | 12 - ...CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE.html | 8 - .../rules/findbugs/CO_ABSTRACT_SELF.html | 4 - .../CO_COMPARETO_INCORRECT_FLOATING.html | 5 - .../CO_COMPARETO_RESULTS_MIN_VALUE.html | 9 - .../rules/findbugs/CO_SELF_NO_OBJECT.html | 4 - .../rules/findbugs/DB_DUPLICATE_BRANCHES.html | 8 - .../findbugs/DB_DUPLICATE_SWITCH_CLAUSES.html | 9 - .../rules/findbugs/DC_DOUBLECHECK.html | 5 - .../findbugs/DC_PARTIALLY_CONSTRUCTED.html | 3 - .../rules/findbugs/DE_MIGHT_DROP.html | 7 - .../rules/findbugs/DE_MIGHT_IGNORE.html | 7 - .../DLS_DEAD_LOCAL_INCREMENT_IN_RETURN.html | 10 - .../rules/findbugs/DLS_DEAD_LOCAL_STORE.html | 15 - .../DLS_DEAD_LOCAL_STORE_IN_RETURN.html | 8 - .../DLS_DEAD_LOCAL_STORE_OF_NULL.html | 4 - .../DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD.html | 4 - .../DLS_DEAD_STORE_OF_CLASS_LITERAL.html | 10 - .../findbugs/DLS_OVERWRITTEN_INCREMENT.html | 9 - .../DL_SYNCHRONIZATION_ON_BOOLEAN.html | 19 - ...DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE.html | 17 - ...DL_SYNCHRONIZATION_ON_SHARED_CONSTANT.html | 16 - ...ONIZATION_ON_UNSHARED_BOXED_PRIMITIVE.html | 24 - ...NOTATION_IS_NOT_VISIBLE_TO_REFLECTION.html | 7 - .../findbugs/DMI_ARGUMENTS_WRONG_ORDER.html | 3 - .../rules/findbugs/DMI_BAD_MONTH.html | 8 - ...MI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE.html | 9 - .../findbugs/DMI_BLOCKING_METHODS_ON_URL.html | 9 - .../DMI_CALLING_NEXT_FROM_HASNEXT.html | 9 - ...ECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES.html | 9 - .../findbugs/DMI_COLLECTION_OF_URLS.html | 9 - .../findbugs/DMI_CONSTANT_DB_PASSWORD.html | 7 - .../l10n/findbugs/rules/findbugs/DMI_DOH.html | 1 - .../rules/findbugs/DMI_EMPTY_DB_PASSWORD.html | 2 - ...MI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS.html | 5 - ...IZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR.html | 3 - .../DMI_HARDCODED_ABSOLUTE_FILENAME.html | 3 - .../DMI_INVOKING_HASHCODE_ON_ARRAY.html | 12 - ..._INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY.html | 9 - .../DMI_INVOKING_TOSTRING_ON_ARRAY.html | 9 - ...MI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT.html | 8 - .../DMI_NONSERIALIZABLE_OBJECT_WRITTEN.html | 8 - .../findbugs/DMI_RANDOM_USED_ONLY_ONCE.html | 10 - ..._POOL_EXECUTOR_WITH_ZERO_CORE_THREADS.html | 7 - ...THREAD_PASSED_WHERE_RUNNABLE_EXPECTED.html | 8 - .../findbugs/DMI_UNSUPPORTED_METHOD.html | 2 - .../rules/findbugs/DMI_USELESS_SUBSTRING.html | 3 - ...I_USING_REMOVEALL_TO_CLEAR_COLLECTION.html | 7 - .../DMI_VACUOUS_SELF_COLLECTION_CALL.html | 7 - .../rules/findbugs/DM_BOOLEAN_CTOR.html | 4 - .../DM_BOXED_PRIMITIVE_FOR_COMPARE.html | 5 - .../DM_BOXED_PRIMITIVE_FOR_PARSING.html | 8 - .../findbugs/DM_BOXED_PRIMITIVE_TOSTRING.html | 16 - .../rules/findbugs/DM_CONVERT_CASE.html | 4 - .../rules/findbugs/DM_DEFAULT_ENCODING.html | 8 - .../l10n/findbugs/rules/findbugs/DM_EXIT.html | 8 - .../rules/findbugs/DM_FP_NUMBER_CTOR.html | 9 - .../l10n/findbugs/rules/findbugs/DM_GC.html | 11 - .../rules/findbugs/DM_INVALID_MIN_MAX.html | 1 - .../DM_MONITOR_WAIT_ON_CONDITION.html | 10 - .../rules/findbugs/DM_NEW_FOR_GETCLASS.html | 6 - .../findbugs/DM_NEXTINT_VIA_NEXTDOUBLE.html | 3 - .../rules/findbugs/DM_NUMBER_CTOR.html | 15 - .../findbugs/DM_RUN_FINALIZERS_ON_EXIT.html | 7 - .../rules/findbugs/DM_STRING_CTOR.html | 4 - .../rules/findbugs/DM_STRING_TOSTRING.html | 6 - .../rules/findbugs/DM_STRING_VOID_CTOR.html | 6 - .../rules/findbugs/DM_USELESS_THREAD.html | 7 - ...EATE_CLASSLOADER_INSIDE_DO_PRIVILEGED.html | 3 - .../findbugs/DP_DO_INSIDE_DO_PRIVILEGED.html | 3 - .../rules/findbugs/EC_ARRAY_AND_NONARRAY.html | 12 - .../rules/findbugs/EC_BAD_ARRAY_COMPARE.html | 9 - .../EC_INCOMPATIBLE_ARRAY_COMPARE.html | 5 - .../findbugs/rules/findbugs/EC_NULL_ARG.html | 7 - .../EC_UNRELATED_CLASS_AND_INTERFACE.html | 18 - .../findbugs/EC_UNRELATED_INTERFACES.html | 17 - .../rules/findbugs/EC_UNRELATED_TYPES.html | 16 - ...NRELATED_TYPES_USING_POINTER_EQUALITY.html | 7 - .../rules/findbugs/EI_EXPOSE_REP.html | 11 - .../rules/findbugs/EI_EXPOSE_REP2.html | 11 - .../rules/findbugs/EI_EXPOSE_STATIC_REP2.html | 10 - .../rules/findbugs/EQ_ABSTRACT_SELF.html | 8 - .../rules/findbugs/EQ_ALWAYS_FALSE.html | 8 - .../rules/findbugs/EQ_ALWAYS_TRUE.html | 3 - ..._FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS.html | 21 - .../EQ_COMPARETO_USE_OBJECT_EQUALS.html | 19 - .../findbugs/EQ_COMPARING_CLASS_NAMES.html | 8 - .../findbugs/EQ_DOESNT_OVERRIDE_EQUALS.html | 12 - .../EQ_DONT_DEFINE_EQUALS_FOR_ENUM.html | 11 - .../EQ_GETCLASS_AND_CLASS_CONSTANT.html | 9 - .../rules/findbugs/EQ_OTHER_NO_OBJECT.html | 10 - .../rules/findbugs/EQ_OTHER_USE_OBJECT.html | 9 - .../EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC.html | 11 - .../rules/findbugs/EQ_SELF_NO_OBJECT.html | 8 - .../rules/findbugs/EQ_SELF_USE_OBJECT.html | 9 - .../findbugs/rules/findbugs/EQ_UNUSUAL.html | 4 - ...ES_COMPARING_PARAMETER_STRING_WITH_EQ.html | 9 - .../ES_COMPARING_STRINGS_WITH_EQ.html | 10 - .../rules/findbugs/ESync_EMPTY_SYNC.html | 13 - .../findbugs/FB_MISSING_EXPECTED_WARNING.html | 4 - .../rules/findbugs/FB_UNEXPECTED_WARNING.html | 4 - .../findbugs/FE_FLOATING_POINT_EQUALITY.html | 15 - .../FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER.html | 16 - .../findbugs/rules/findbugs/FI_EMPTY.html | 6 - .../findbugs/FI_EXPLICIT_INVOCATION.html | 11 - .../findbugs/FI_FINALIZER_NULLS_FIELDS.html | 6 - .../FI_FINALIZER_ONLY_NULLS_FIELDS.html | 7 - .../rules/findbugs/FI_MISSING_SUPER_CALL.html | 8 - .../rules/findbugs/FI_NULLIFY_SUPER.html | 8 - .../FI_PUBLIC_SHOULD_BE_PROTECTED.html | 6 - .../findbugs/rules/findbugs/FI_USELESS.html | 7 - .../FL_MATH_USING_FLOAT_PRECISION.html | 8 - .../GC_UNCHECKED_TYPE_IN_GENERIC_CALL.html | 11 - .../rules/findbugs/GC_UNRELATED_TYPES.html | 27 -- .../rules/findbugs/HE_EQUALS_NO_HASHCODE.html | 7 - .../findbugs/HE_EQUALS_USE_HASHCODE.html | 17 - .../rules/findbugs/HE_HASHCODE_NO_EQUALS.html | 7 - .../HE_HASHCODE_USE_OBJECT_EQUALS.html | 18 - .../HE_INHERITS_EQUALS_USE_HASHCODE.html | 11 - ..._DECLARES_HASHING_OF_UNHASHABLE_CLASS.html | 6 - .../findbugs/HE_USE_OF_UNHASHABLE_CLASS.html | 4 - .../HRS_REQUEST_PARAMETER_TO_COOKIE.html | 8 - .../HRS_REQUEST_PARAMETER_TO_HTTP_HEADER.html | 8 - .../HSC_HUGE_SHARED_STRING_CONSTANT.html | 8 - ...VOCATION_OF_INHERITED_OR_OUTER_METHOD.html | 11 - .../findbugs/ICAST_BAD_SHIFT_AMOUNT.html | 11 - .../findbugs/ICAST_IDIV_CAST_TO_DOUBLE.html | 24 - .../ICAST_INTEGER_MULTIPLY_CAST_TO_LONG.html | 25 - .../findbugs/ICAST_INT_2_LONG_AS_INSTANT.html | 24 - ...AST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL.html | 14 - ...AST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND.html | 14 - ...AST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT.html | 6 - .../rules/findbugs/IC_INIT_CIRCULARITY.html | 3 - ...S_USES_SUBCLASS_DURING_INITIALIZATION.html | 13 - .../findbugs/IIO_INEFFICIENT_INDEX_OF.html | 1 - .../IIO_INEFFICIENT_LAST_INDEX_OF.html | 1 - ...ASSERT_METHOD_INVOKED_FROM_RUN_METHOD.html | 10 - .../rules/findbugs/IJU_BAD_SUITE_METHOD.html | 10 - .../findbugs/rules/findbugs/IJU_NO_TESTS.html | 5 - .../rules/findbugs/IJU_SETUP_NO_SUPER.html | 6 - .../rules/findbugs/IJU_SUITE_NOT_STATIC.html | 6 - .../rules/findbugs/IJU_TEARDOWN_NO_SUPER.html | 6 - .../IL_CONTAINER_ADDED_TO_ITSELF.html | 7 - .../rules/findbugs/IL_INFINITE_LOOP.html | 2 - .../findbugs/IL_INFINITE_RECURSIVE_LOOP.html | 2 - .../IMA_INEFFICIENT_MEMBER_ACCESS.html | 6 - .../rules/findbugs/IMSE_DONT_CATCH_IMSE.html | 7 - ...IM_AVERAGE_COMPUTATION_COULD_OVERFLOW.html | 13 - .../rules/findbugs/IM_BAD_CHECK_FOR_ODD.html | 9 - .../IM_MULTIPLYING_RESULT_OF_IREM.html | 9 - .../INT_BAD_COMPARISON_WITH_INT_VALUE.html | 2 - ...BAD_COMPARISON_WITH_NONNEGATIVE_VALUE.html | 2 - .../INT_BAD_COMPARISON_WITH_SIGNED_BYTE.html | 5 - .../rules/findbugs/INT_BAD_REM_BY_1.html | 7 - .../findbugs/INT_VACUOUS_BIT_OPERATION.html | 8 - .../findbugs/INT_VACUOUS_COMPARISON.html | 3 - .../IO_APPENDING_TO_OBJECT_OUTPUT_STREAM.html | 13 - .../IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN.html | 6 - .../rules/findbugs/IS2_INCONSISTENT_SYNC.html | 23 - .../ISC_INSTANTIATE_STATIC_CLASS.html | 6 - .../rules/findbugs/IS_FIELD_NOT_GUARDED.html | 2 - .../rules/findbugs/IS_INCONSISTENT_SYNC.html | 19 - .../findbugs/ITA_INEFFICIENT_TO_ARRAY.html | 7 - .../rules/findbugs/IT_NO_SUCH_ELEMENT.html | 9 - ..._NON_SERIALIZABLE_OBJECT_INTO_SESSION.html | 8 - ...P_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS.html | 3 - .../JLM_JSR166_LOCK_MONITORENTER.html | 8 - ...JSR166_CALLING_WAIT_RATHER_THAN_AWAIT.html | 8 - .../LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE.html | 26 -- .../rules/findbugs/LI_LAZY_INIT_STATIC.html | 12 - .../findbugs/LI_LAZY_INIT_UPDATE_STATIC.html | 11 - .../rules/findbugs/ME_ENUM_FIELD_SETTER.html | 1 - .../rules/findbugs/ME_MUTABLE_ENUM_FIELD.html | 1 - .../rules/findbugs/MF_CLASS_MASKS_FIELD.html | 8 - .../rules/findbugs/MF_METHOD_MASKS_FIELD.html | 4 - ...ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD.html | 25 - .../findbugs/ML_SYNC_ON_UPDATED_FIELD.html | 8 - .../findbugs/MSF_MUTABLE_SERVLET_FIELD.html | 10 - .../rules/findbugs/MS_CANNOT_BE_FINAL.html | 9 - .../rules/findbugs/MS_EXPOSE_REP.html | 9 - .../rules/findbugs/MS_FINAL_PKGPROTECT.html | 10 - .../rules/findbugs/MS_MUTABLE_ARRAY.html | 8 - .../rules/findbugs/MS_MUTABLE_COLLECTION.html | 5 - .../MS_MUTABLE_COLLECTION_PKGPROTECT.html | 5 - .../rules/findbugs/MS_MUTABLE_HASHTABLE.html | 8 - .../rules/findbugs/MS_OOI_PKGPROTECT.html | 15 - .../rules/findbugs/MS_PKGPROTECT.html | 8 - .../rules/findbugs/MS_SHOULD_BE_FINAL.html | 8 - .../MS_SHOULD_BE_REFACTORED_TO_BE_FINAL.html | 12 - .../MTIA_SUSPECT_SERVLET_INSTANCE_FIELD.html | 10 - .../MTIA_SUSPECT_STRUTS_INSTANCE_FIELD.html | 11 - .../rules/findbugs/MWN_MISMATCHED_NOTIFY.html | 7 - .../rules/findbugs/MWN_MISMATCHED_WAIT.html | 7 - .../findbugs/rules/findbugs/NM_BAD_EQUAL.html | 9 - .../findbugs/NM_CLASS_NAMING_CONVENTION.html | 9 - .../findbugs/NM_CLASS_NOT_EXCEPTION.html | 6 - .../findbugs/rules/findbugs/NM_CONFUSING.html | 1 - .../findbugs/NM_FIELD_NAMING_CONVENTION.html | 8 - .../NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER.html | 6 - ...URE_KEYWORD_USED_AS_MEMBER_IDENTIFIER.html | 7 - .../rules/findbugs/NM_LCASE_HASHCODE.html | 9 - .../rules/findbugs/NM_LCASE_TOSTRING.html | 5 - .../NM_METHOD_CONSTRUCTOR_CONFUSION.html | 9 - .../findbugs/NM_METHOD_NAMING_CONVENTION.html | 8 - .../NM_SAME_SIMPLE_NAME_AS_INTERFACE.html | 10 - .../NM_SAME_SIMPLE_NAME_AS_SUPERCLASS.html | 10 - .../rules/findbugs/NM_VERY_CONFUSING.html | 4 - .../NM_VERY_CONFUSING_INTENTIONAL.html | 6 - .../rules/findbugs/NM_WRONG_PACKAGE.html | 22 - .../NM_WRONG_PACKAGE_INTENTIONAL.html | 28 -- .../rules/findbugs/NN_NAKED_NOTIFY.html | 10 - .../findbugs/NO_NOTIFY_NOT_NOTIFYALL.html | 8 - .../rules/findbugs/NP_ALWAYS_NULL.html | 6 - .../findbugs/NP_ALWAYS_NULL_EXCEPTION.html | 11 - .../findbugs/NP_ARGUMENT_MIGHT_BE_NULL.html | 9 - .../findbugs/NP_BOOLEAN_RETURN_NULL.html | 10 - .../findbugs/NP_CLONE_COULD_RETURN_NULL.html | 9 - .../rules/findbugs/NP_CLOSING_NULL.html | 5 - .../NP_DEREFERENCE_OF_READLINE_VALUE.html | 7 - ...NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT.html | 10 - .../rules/findbugs/NP_GUARANTEED_DEREF.html | 10 - ...NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH.html | 11 - .../NP_IMMEDIATE_DEREFERENCE_OF_READLINE.html | 7 - .../findbugs/NP_LOAD_OF_KNOWN_NULL_VALUE.html | 9 - ..._METHOD_PARAMETER_TIGHTENS_ANNOTATION.html | 5 - .../NP_METHOD_RETURN_RELAXING_ANNOTATION.html | 6 - ..._FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html | 5 - .../findbugs/NP_NONNULL_PARAM_VIOLATION.html | 6 - .../findbugs/NP_NONNULL_RETURN_VIOLATION.html | 4 - .../rules/findbugs/NP_NULL_INSTANCEOF.html | 9 - .../rules/findbugs/NP_NULL_ON_SOME_PATH.html | 10 - .../NP_NULL_ON_SOME_PATH_EXCEPTION.html | 12 - ...P_NULL_ON_SOME_PATH_FROM_RETURN_VALUE.html | 33 -- ...NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE.html | 11 - .../rules/findbugs/NP_NULL_PARAM_DEREF.html | 6 - ...ULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS.html | 7 - .../NP_NULL_PARAM_DEREF_NONVIRTUAL.html | 6 - .../findbugs/NP_OPTIONAL_RETURN_NULL.html | 1 - ...UST_BE_NONNULL_BUT_MARKED_AS_NULLABLE.html | 4 - .../findbugs/NP_STORE_INTO_NONNULL_FIELD.html | 1 - .../NP_SYNC_AND_NULL_CHECK_FIELD.html | 8 - .../NP_TOSTRING_COULD_RETURN_NULL.html | 9 - .../rules/findbugs/NP_UNWRITTEN_FIELD.html | 5 - ...P_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html | 7 - .../NS_DANGEROUS_NON_SHORT_CIRCUIT.html | 22 - .../rules/findbugs/NS_NON_SHORT_CIRCUIT.html | 17 - .../findbugs/OBL_UNSATISFIED_OBLIGATION.html | 38 -- ...UNSATISFIED_OBLIGATION_EXCEPTION_EDGE.html | 10 - .../findbugs/ODR_OPEN_DATABASE_RESOURCE.html | 12 - ...OPEN_DATABASE_RESOURCE_EXCEPTION_PATH.html | 11 - .../rules/findbugs/OS_OPEN_STREAM.html | 11 - .../OS_OPEN_STREAM_EXCEPTION_PATH.html | 10 - .../rules/findbugs/PS_PUBLIC_SEMAPHORES.html | 7 - .../findbugs/PT_ABSOLUTE_PATH_TRAVERSAL.html | 13 - .../findbugs/PT_RELATIVE_PATH_TRAVERSAL.html | 12 - .../PZLA_PREFER_ZERO_LENGTH_ARRAYS.html | 14 - ...DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS.html | 4 - .../QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT.html | 9 - .../findbugs/QF_QUESTIONABLE_FOR_LOOP.html | 8 - .../rules/findbugs/RANGE_ARRAY_INDEX.html | 1 - .../rules/findbugs/RANGE_ARRAY_LENGTH.html | 1 - .../rules/findbugs/RANGE_ARRAY_OFFSET.html | 1 - .../rules/findbugs/RANGE_STRING_INDEX.html | 1 - ..._COMPARISON_OF_NULL_AND_NONNULL_VALUE.html | 2 - ..._REDUNDANT_COMPARISON_TWO_NULL_VALUES.html | 2 - ..._REDUNDANT_NULLCHECK_OF_NONNULL_VALUE.html | 2 - ...RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE.html | 2 - ...NDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE.html | 6 - .../rules/findbugs/RC_REF_COMPARISON.html | 8 - .../RC_REF_COMPARISON_BAD_PRACTICE.html | 5 - ...C_REF_COMPARISON_BAD_PRACTICE_BOOLEAN.html | 5 - .../rules/findbugs/REC_CATCH_EXCEPTION.html | 7 - .../RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION.html | 5 - ..._FILE_SEPARATOR_AS_REGULAR_EXPRESSION.html | 9 - .../RE_POSSIBLE_UNINTENDED_PATTERN.html | 7 - .../findbugs/RI_REDUNDANT_INTERFACES.html | 7 - .../rules/findbugs/RR_NOT_CHECKED.html | 11 - .../rules/findbugs/RS_READOBJECT_SYNC.html | 6 - .../rules/findbugs/RU_INVOKE_RUN.html | 8 - .../findbugs/rules/findbugs/RV_01_TO_INT.html | 3 - .../RV_ABSOLUTE_VALUE_OF_HASHCODE.html | 9 - .../RV_ABSOLUTE_VALUE_OF_RANDOM_INT.html | 9 - ...K_COMPARETO_FOR_SPECIFIC_RETURN_VALUE.html | 8 - .../RV_CHECK_FOR_POSITIVE_INDEXOF.html | 8 - .../RV_DONT_JUST_NULL_CHECK_READLINE.html | 7 - .../findbugs/RV_EXCEPTION_NOT_THROWN.html | 19 - .../RV_NEGATING_RESULT_OF_COMPARETO.html | 8 - .../rules/findbugs/RV_REM_OF_HASHCODE.html | 18 - .../rules/findbugs/RV_REM_OF_RANDOM_INT.html | 10 - .../findbugs/RV_RETURN_VALUE_IGNORED.html | 24 - .../findbugs/RV_RETURN_VALUE_IGNORED2.html | 24 - .../RV_RETURN_VALUE_IGNORED_BAD_PRACTICE.html | 8 - .../RV_RETURN_VALUE_IGNORED_INFERRED.html | 12 - ...V_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT.html | 15 - ...V_RETURN_VALUE_OF_PUTIFABSENT_IGNORED.html | 5 - .../RpC_REPEATED_CONDITIONAL_TEST.html | 8 - .../findbugs/SA_FIELD_DOUBLE_ASSIGNMENT.html | 13 - .../findbugs/SA_FIELD_SELF_ASSIGNMENT.html | 13 - .../findbugs/SA_FIELD_SELF_COMPARISON.html | 7 - .../findbugs/SA_FIELD_SELF_COMPUTATION.html | 10 - .../findbugs/SA_LOCAL_DOUBLE_ASSIGNMENT.html | 13 - .../findbugs/SA_LOCAL_SELF_ASSIGNMENT.html | 14 - ...OCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD.html | 13 - .../findbugs/SA_LOCAL_SELF_COMPARISON.html | 7 - .../findbugs/SA_LOCAL_SELF_COMPUTATION.html | 10 - .../SBSC_USE_STRINGBUFFER_CONCATENATION.html | 28 -- .../rules/findbugs/SC_START_IN_CTOR.html | 7 - .../findbugs/rules/findbugs/SE_BAD_FIELD.html | 10 - .../findbugs/SE_BAD_FIELD_INNER_CLASS.html | 12 - .../rules/findbugs/SE_BAD_FIELD_STORE.html | 2 - .../SE_COMPARATOR_SHOULD_BE_SERIALIZABLE.html | 12 - .../rules/findbugs/SE_INNER_CLASS.html | 9 - .../findbugs/SE_METHOD_MUST_BE_PRIVATE.html | 7 - .../findbugs/SE_NONFINAL_SERIALVERSIONID.html | 8 - .../findbugs/SE_NONLONG_SERIALVERSIONID.html | 8 - .../SE_NONSTATIC_SERIALVERSIONID.html | 8 - .../rules/findbugs/SE_NO_SERIALVERSIONID.html | 16 - .../findbugs/SE_NO_SUITABLE_CONSTRUCTOR.html | 10 - ...TABLE_CONSTRUCTOR_FOR_EXTERNALIZATION.html | 5 - ...SE_PRIVATE_READ_RESOLVE_NOT_INHERITED.html | 3 - .../findbugs/SE_READ_RESOLVE_IS_STATIC.html | 7 - .../SE_READ_RESOLVE_MUST_RETURN_OBJECT.html | 7 - .../SE_TRANSIENT_FIELD_NOT_RESTORED.html | 3 - ...NSIENT_FIELD_OF_NONSERIALIZABLE_CLASS.html | 9 - ..._DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH.html | 5 - ...RE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW.html | 4 - .../rules/findbugs/SF_SWITCH_FALLTHROUGH.html | 8 - .../rules/findbugs/SF_SWITCH_NO_DEFAULT.html | 8 - .../findbugs/SIC_INNER_SHOULD_BE_STATIC.html | 10 - .../SIC_INNER_SHOULD_BE_STATIC_ANON.html | 11 - ...SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS.html | 14 - .../SIC_THREADLOCAL_DEADLY_EMBRACE.html | 5 - .../findbugs/SIO_SUPERFLUOUS_INSTANCEOF.html | 6 - .../SI_INSTANCE_BEFORE_FINALS_ASSIGNED.html | 2 - .../rules/findbugs/SKIPPED_CLASS_TOO_BIG.html | 2 - .../rules/findbugs/SP_SPIN_ON_FIELD.html | 4 - .../SQL_BAD_PREPARED_STATEMENT_ACCESS.html | 6 - .../findbugs/SQL_BAD_RESULTSET_ACCESS.html | 6 - ..._NONCONSTANT_STRING_PASSED_TO_EXECUTE.html | 9 - ...ENT_GENERATED_FROM_NONCONSTANT_STRING.html | 8 - .../rules/findbugs/SR_NOT_CHECKED.html | 13 - .../rules/findbugs/SS_SHOULD_BE_STATIC.html | 7 - ...AL_INVOKE_ON_STATIC_CALENDAR_INSTANCE.html | 9 - ...INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE.html | 9 - .../STCAL_STATIC_CALENDAR_INSTANCE.html | 12 - ...AL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE.html | 11 - .../STI_INTERRUPTED_ON_CURRENTTHREAD.html | 8 - .../STI_INTERRUPTED_ON_UNKNOWNTHREAD.html | 9 - ..._WRITE_TO_STATIC_FROM_INSTANCE_METHOD.html | 8 - .../findbugs/SWL_SLEEP_WITH_LOCK_HELD.html | 11 - ...SWING_METHODS_INVOKED_IN_SWING_THREAD.html | 9 - .../rules/findbugs/TLW_TWO_LOCK_WAIT.html | 8 - ...LWAYS_VALUE_USED_WHERE_NEVER_REQUIRED.html | 25 - ...UES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS.html | 22 - ...NOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK.html | 5 - ...KNOWN_SOURCE_VALUE_REACHES_NEVER_SINK.html | 5 - ...AYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK.html | 5 - ...MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK.html | 5 - ...EVER_VALUE_USED_WHERE_ALWAYS_REQUIRED.html | 14 - ...E_USED_WHERE_ALWAYS_STRICTLY_REQUIRED.html | 6 - .../findbugs/UCF_USELESS_CONTROL_FLOW.html | 14 - .../UCF_USELESS_CONTROL_FLOW_NEXT_LINE.html | 13 - .../rules/findbugs/UC_USELESS_CONDITION.html | 5 - .../findbugs/UC_USELESS_CONDITION_TYPE.html | 5 - .../rules/findbugs/UC_USELESS_OBJECT.html | 9 - .../findbugs/UC_USELESS_OBJECT_STACK.html | 1 - .../findbugs/UC_USELESS_VOID_METHOD.html | 8 - .../findbugs/UG_SYNC_SET_UNSYNC_GET.html | 5 - .../UI_INHERITANCE_UNSAFE_GETRESOURCE.html | 3 - .../rules/findbugs/UL_UNRELEASED_LOCK.html | 17 - .../UL_UNRELEASED_LOCK_EXCEPTION_PATH.html | 17 - ..._UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS.html | 7 - .../rules/findbugs/UM_UNNECESSARY_MATH.html | 82 ---- .../rules/findbugs/UOE_USE_OBJECT_EQUALS.html | 10 - .../findbugs/UPM_UNCALLED_PRIVATE_METHOD.html | 9 - .../rules/findbugs/URF_UNREAD_FIELD.html | 5 - .../URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD.html | 2 - .../rules/findbugs/UR_UNINIT_READ.html | 3 - ...IT_READ_CALLED_FROM_SUPER_CONSTRUCTOR.html | 20 - .../findbugs/USM_USELESS_ABSTRACT_METHOD.html | 4 - .../findbugs/USM_USELESS_SUBCLASS_METHOD.html | 8 - .../rules/findbugs/UUF_UNUSED_FIELD.html | 5 - .../UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD.html | 2 - ..._FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html | 1 - .../rules/findbugs/UWF_NULL_FIELD.html | 7 - .../rules/findbugs/UWF_UNWRITTEN_FIELD.html | 5 - ...F_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html | 2 - .../rules/findbugs/UW_UNCOND_WAIT.html | 9 - .../VA_FORMAT_STRING_ARG_MISMATCH.html | 10 - .../VA_FORMAT_STRING_BAD_ARGUMENT.html | 15 - .../VA_FORMAT_STRING_BAD_CONVERSION.html | 10 - ...RMAT_STRING_BAD_CONVERSION_FROM_ARRAY.html | 10 - ...RMAT_STRING_BAD_CONVERSION_TO_BOOLEAN.html | 9 - ...RING_EXPECTED_MESSAGE_FORMAT_SUPPLIED.html | 5 - ..._FORMAT_STRING_EXTRA_ARGUMENTS_PASSED.html | 10 - .../findbugs/VA_FORMAT_STRING_ILLEGAL.html | 9 - .../VA_FORMAT_STRING_MISSING_ARGUMENT.html | 9 - ...VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT.html | 13 - .../VA_FORMAT_STRING_USES_NEWLINE.html | 6 - ...IMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG.html | 4 - .../rules/findbugs/VO_VOLATILE_INCREMENT.html | 2 - .../VO_VOLATILE_REFERENCE_TO_ARRAY.html | 6 - .../rules/findbugs/WA_AWAIT_NOT_IN_LOOP.html | 9 - .../rules/findbugs/WA_NOT_IN_LOOP.html | 8 - ...NG_GETCLASS_RATHER_THAN_CLASS_LITERAL.html | 25 - .../findbugs/WMI_WRONG_MAP_ITERATOR.html | 7 - .../rules/findbugs/WS_WRITEOBJECT_SYNC.html | 2 - .../findbugs/XFB_XML_FACTORY_BYPASS.html | 12 - .../XSS_REQUEST_PARAMETER_TO_JSP_WRITER.html | 8 - .../XSS_REQUEST_PARAMETER_TO_SEND_ERROR.html | 9 - ...S_REQUEST_PARAMETER_TO_SERVLET_WRITER.html | 8 - 447 files changed, 56 insertions(+), 4408 deletions(-) create mode 100644 src/main/java/org/sonar/plugins/findbugs/resource/ClassMetadataLoadingException.java delete mode 100644 src/main/resources/org/sonar/l10n/findbugs.properties delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AM_CREATES_EMPTY_JAR_FILE_ENTRY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AM_CREATES_EMPTY_ZIP_FILE_ENTRY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BAC_BAD_APPLET_CONSTRUCTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_BAD_CAST_TO_ABSTRACT_COLLECTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_BAD_CAST_TO_CONCRETE_COLLECTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_CAST.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_DOWNCAST.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_INSTANCEOF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_UNCONFIRMED_CAST.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_UNCONFIRMED_CAST_OF_RETURN_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_VACUOUS_INSTANCEOF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_ADD_OF_SIGNED_BYTE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_AND.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_AND_ZZ.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_IOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_IOR_OF_SIGNED_BYTE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_SIGNED_CHECK.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_SIGNED_CHECK_HIGH_BIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BOA_BADLY_OVERRIDDEN_ADAPTER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BSHIFT_WRONG_ADD_PRIORITY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_BOXING_IMMEDIATELY_UNBOXED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_UNBOXING_IMMEDIATELY_REBOXED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CD_CIRCULAR_DEPENDENCY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CI_CONFUSED_INHERITANCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CNT_ROUGH_CONSTANT_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IDIOM.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IDIOM_NO_SUPER_CALL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_ABSTRACT_SELF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_COMPARETO_INCORRECT_FLOATING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_COMPARETO_RESULTS_MIN_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_SELF_NO_OBJECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DB_DUPLICATE_BRANCHES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DB_DUPLICATE_SWITCH_CLAUSES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DC_DOUBLECHECK.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DC_PARTIALLY_CONSTRUCTED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DE_MIGHT_DROP.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DE_MIGHT_IGNORE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_INCREMENT_IN_RETURN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_IN_RETURN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_OF_NULL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_STORE_OF_CLASS_LITERAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_OVERWRITTEN_INCREMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_BOOLEAN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_SHARED_CONSTANT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ARGUMENTS_WRONG_ORDER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BAD_MONTH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BLOCKING_METHODS_ON_URL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_CALLING_NEXT_FROM_HASNEXT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_COLLECTION_OF_URLS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_CONSTANT_DB_PASSWORD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_DOH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_EMPTY_DB_PASSWORD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_HARDCODED_ABSOLUTE_FILENAME.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_HASHCODE_ON_ARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_TOSTRING_ON_ARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_NONSERIALIZABLE_OBJECT_WRITTEN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_RANDOM_USED_ONLY_ONCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_UNSUPPORTED_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_USELESS_SUBSTRING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_VACUOUS_SELF_COLLECTION_CALL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOOLEAN_CTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_FOR_COMPARE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_FOR_PARSING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_TOSTRING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_CONVERT_CASE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_DEFAULT_ENCODING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_EXIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_FP_NUMBER_CTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_GC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_INVALID_MIN_MAX.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_MONITOR_WAIT_ON_CONDITION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NEW_FOR_GETCLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NEXTINT_VIA_NEXTDOUBLE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NUMBER_CTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_RUN_FINALIZERS_ON_EXIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_CTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_TOSTRING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_VOID_CTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_USELESS_THREAD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DP_DO_INSIDE_DO_PRIVILEGED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_ARRAY_AND_NONARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_BAD_ARRAY_COMPARE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_INCOMPATIBLE_ARRAY_COMPARE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_NULL_ARG.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_CLASS_AND_INTERFACE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_INTERFACES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_TYPES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_TYPES_USING_POINTER_EQUALITY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_REP.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_REP2.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_STATIC_REP2.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ABSTRACT_SELF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ALWAYS_FALSE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ALWAYS_TRUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_COMPARETO_USE_OBJECT_EQUALS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_COMPARING_CLASS_NAMES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_DOESNT_OVERRIDE_EQUALS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_DONT_DEFINE_EQUALS_FOR_ENUM.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_GETCLASS_AND_CLASS_CONSTANT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OTHER_NO_OBJECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OTHER_USE_OBJECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_SELF_NO_OBJECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_SELF_USE_OBJECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_UNUSUAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ES_COMPARING_PARAMETER_STRING_WITH_EQ.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ES_COMPARING_STRINGS_WITH_EQ.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ESync_EMPTY_SYNC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FB_MISSING_EXPECTED_WARNING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FB_UNEXPECTED_WARNING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FE_FLOATING_POINT_EQUALITY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_EMPTY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_EXPLICIT_INVOCATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_FINALIZER_NULLS_FIELDS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_FINALIZER_ONLY_NULLS_FIELDS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_MISSING_SUPER_CALL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_NULLIFY_SUPER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_PUBLIC_SHOULD_BE_PROTECTED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_USELESS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FL_MATH_USING_FLOAT_PRECISION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/GC_UNCHECKED_TYPE_IN_GENERIC_CALL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/GC_UNRELATED_TYPES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_EQUALS_NO_HASHCODE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_EQUALS_USE_HASHCODE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_HASHCODE_NO_EQUALS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_HASHCODE_USE_OBJECT_EQUALS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_INHERITS_EQUALS_USE_HASHCODE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_USE_OF_UNHASHABLE_CLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HRS_REQUEST_PARAMETER_TO_COOKIE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HRS_REQUEST_PARAMETER_TO_HTTP_HEADER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HSC_HUGE_SHARED_STRING_CONSTANT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_BAD_SHIFT_AMOUNT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_IDIV_CAST_TO_DOUBLE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INTEGER_MULTIPLY_CAST_TO_LONG.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_2_LONG_AS_INSTANT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IC_INIT_CIRCULARITY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IIO_INEFFICIENT_INDEX_OF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IIO_INEFFICIENT_LAST_INDEX_OF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_BAD_SUITE_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_NO_TESTS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_SETUP_NO_SUPER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_SUITE_NOT_STATIC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_TEARDOWN_NO_SUPER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_CONTAINER_ADDED_TO_ITSELF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_INFINITE_LOOP.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_INFINITE_RECURSIVE_LOOP.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IMA_INEFFICIENT_MEMBER_ACCESS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IMSE_DONT_CATCH_IMSE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_AVERAGE_COMPUTATION_COULD_OVERFLOW.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_BAD_CHECK_FOR_ODD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_MULTIPLYING_RESULT_OF_IREM.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_INT_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_SIGNED_BYTE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_REM_BY_1.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_VACUOUS_BIT_OPERATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_VACUOUS_COMPARISON.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IO_APPENDING_TO_OBJECT_OUTPUT_STREAM.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS2_INCONSISTENT_SYNC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ISC_INSTANTIATE_STATIC_CLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS_FIELD_NOT_GUARDED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS_INCONSISTENT_SYNC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ITA_INEFFICIENT_TO_ARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IT_NO_SUCH_ELEMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JLM_JSR166_LOCK_MONITORENTER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LI_LAZY_INIT_STATIC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LI_LAZY_INIT_UPDATE_STATIC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ME_ENUM_FIELD_SETTER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ME_MUTABLE_ENUM_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MF_CLASS_MASKS_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MF_METHOD_MASKS_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ML_SYNC_ON_UPDATED_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MSF_MUTABLE_SERVLET_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_CANNOT_BE_FINAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_EXPOSE_REP.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_FINAL_PKGPROTECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_ARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_COLLECTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_COLLECTION_PKGPROTECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_HASHTABLE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_OOI_PKGPROTECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_PKGPROTECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_SHOULD_BE_FINAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_SHOULD_BE_REFACTORED_TO_BE_FINAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MTIA_SUSPECT_SERVLET_INSTANCE_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MTIA_SUSPECT_STRUTS_INSTANCE_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MWN_MISMATCHED_NOTIFY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MWN_MISMATCHED_WAIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_BAD_EQUAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CLASS_NAMING_CONVENTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CLASS_NOT_EXCEPTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CONFUSING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FIELD_NAMING_CONVENTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_LCASE_HASHCODE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_LCASE_TOSTRING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_METHOD_CONSTRUCTOR_CONFUSION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_METHOD_NAMING_CONVENTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_SAME_SIMPLE_NAME_AS_INTERFACE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_SAME_SIMPLE_NAME_AS_SUPERCLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_VERY_CONFUSING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_VERY_CONFUSING_INTENTIONAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_WRONG_PACKAGE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_WRONG_PACKAGE_INTENTIONAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NN_NAKED_NOTIFY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NO_NOTIFY_NOT_NOTIFYALL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ALWAYS_NULL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ALWAYS_NULL_EXCEPTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ARGUMENT_MIGHT_BE_NULL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_BOOLEAN_RETURN_NULL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_CLONE_COULD_RETURN_NULL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_CLOSING_NULL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_DEREFERENCE_OF_READLINE_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_GUARANTEED_DEREF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_IMMEDIATE_DEREFERENCE_OF_READLINE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_LOAD_OF_KNOWN_NULL_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_METHOD_RETURN_RELAXING_ANNOTATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_PARAM_VIOLATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_RETURN_VIOLATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_INSTANCEOF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_EXCEPTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF_NONVIRTUAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_OPTIONAL_RETURN_NULL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_STORE_INTO_NONNULL_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_SYNC_AND_NULL_CHECK_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_TOSTRING_COULD_RETURN_NULL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_UNWRITTEN_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NS_DANGEROUS_NON_SHORT_CIRCUIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NS_NON_SHORT_CIRCUIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OBL_UNSATISFIED_OBLIGATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ODR_OPEN_DATABASE_RESOURCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OS_OPEN_STREAM.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OS_OPEN_STREAM_EXCEPTION_PATH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PS_PUBLIC_SEMAPHORES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PT_ABSOLUTE_PATH_TRAVERSAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PT_RELATIVE_PATH_TRAVERSAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PZLA_PREFER_ZERO_LENGTH_ARRAYS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/QF_QUESTIONABLE_FOR_LOOP.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_INDEX.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_LENGTH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_OFFSET.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_STRING_INDEX.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON_BAD_PRACTICE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/REC_CATCH_EXCEPTION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_POSSIBLE_UNINTENDED_PATTERN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RI_REDUNDANT_INTERFACES.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RR_NOT_CHECKED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RS_READOBJECT_SYNC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RU_INVOKE_RUN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_01_TO_INT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_ABSOLUTE_VALUE_OF_HASHCODE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_ABSOLUTE_VALUE_OF_RANDOM_INT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_CHECK_FOR_POSITIVE_INDEXOF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_DONT_JUST_NULL_CHECK_READLINE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_EXCEPTION_NOT_THROWN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_NEGATING_RESULT_OF_COMPARETO.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_REM_OF_HASHCODE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_REM_OF_RANDOM_INT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED2.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_BAD_PRACTICE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_INFERRED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RpC_REPEATED_CONDITIONAL_TEST.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_DOUBLE_ASSIGNMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_ASSIGNMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_COMPARISON.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_COMPUTATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_DOUBLE_ASSIGNMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_ASSIGNMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_COMPARISON.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_COMPUTATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SBSC_USE_STRINGBUFFER_CONCATENATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SC_START_IN_CTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD_INNER_CLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD_STORE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_COMPARATOR_SHOULD_BE_SERIALIZABLE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_INNER_CLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_METHOD_MUST_BE_PRIVATE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONFINAL_SERIALVERSIONID.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONLONG_SERIALVERSIONID.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONSTATIC_SERIALVERSIONID.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SERIALVERSIONID.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SUITABLE_CONSTRUCTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_PRIVATE_READ_RESOLVE_NOT_INHERITED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_READ_RESOLVE_IS_STATIC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_READ_RESOLVE_MUST_RETURN_OBJECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_TRANSIENT_FIELD_NOT_RESTORED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_SWITCH_FALLTHROUGH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_SWITCH_NO_DEFAULT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC_ANON.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_THREADLOCAL_DEADLY_EMBRACE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIO_SUPERFLUOUS_INSTANCEOF.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SI_INSTANCE_BEFORE_FINALS_ASSIGNED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SKIPPED_CLASS_TOO_BIG.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SP_SPIN_ON_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_BAD_PREPARED_STATEMENT_ACCESS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_BAD_RESULTSET_ACCESS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SR_NOT_CHECKED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SS_SHOULD_BE_STATIC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_STATIC_CALENDAR_INSTANCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STI_INTERRUPTED_ON_CURRENTTHREAD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STI_INTERRUPTED_ON_UNKNOWNTHREAD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SWL_SLEEP_WITH_LOCK_HELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SW_SWING_METHODS_INVOKED_IN_SWING_THREAD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TLW_TWO_LOCK_WAIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UCF_USELESS_CONTROL_FLOW.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UCF_USELESS_CONTROL_FLOW_NEXT_LINE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_CONDITION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_CONDITION_TYPE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_OBJECT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_OBJECT_STACK.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_VOID_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UG_SYNC_SET_UNSYNC_GET.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UI_INHERITANCE_UNSAFE_GETRESOURCE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UL_UNRELEASED_LOCK.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UL_UNRELEASED_LOCK_EXCEPTION_PATH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UM_UNNECESSARY_MATH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UOE_USE_OBJECT_EQUALS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UPM_UNCALLED_PRIVATE_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/URF_UNREAD_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UR_UNINIT_READ.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/USM_USELESS_ABSTRACT_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/USM_USELESS_SUBCLASS_METHOD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UUF_UNUSED_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_NULL_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_UNWRITTEN_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UW_UNCOND_WAIT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_ARG_MISMATCH.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_ARGUMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_ILLEGAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_MISSING_ARGUMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_USES_NEWLINE.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VO_VOLATILE_INCREMENT.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VO_VOLATILE_REFERENCE_TO_ARRAY.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WA_AWAIT_NOT_IN_LOOP.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WA_NOT_IN_LOOP.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WMI_WRONG_MAP_ITERATOR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WS_WRITEOBJECT_SYNC.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XFB_XML_FACTORY_BYPASS.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_JSP_WRITER.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_SEND_ERROR.html delete mode 100644 src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER.html diff --git a/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java b/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java index aed6e0ea..b8ca2820 100644 --- a/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java +++ b/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java @@ -36,6 +36,7 @@ import org.sonar.api.profiles.RulesProfile; import org.sonar.plugins.findbugs.language.Jsp; import org.sonar.plugins.findbugs.resource.ByteCodeResourceLocator; +import org.sonar.plugins.findbugs.resource.ClassMetadataLoadingException; import org.sonar.plugins.findbugs.resource.SmapParser; import org.sonar.plugins.findbugs.rules.FbContribRulesDefinition; import org.sonar.plugins.findbugs.rules.FindSecurityBugsJspRulesDefinition; @@ -139,28 +140,34 @@ public void execute(SensorContext context) { //More advanced mapping if the original source is not Java files if (classFile != null) { //Attempt to load SMAP debug metadata - SmapParser.SmapLocation location = byteCodeResourceLocator.extractSmapLocation(className, line, classFile); - if (location != null) { - if (!location.isPrimaryFile) //Avoid reporting issue in double when a source file was include inline - continue; - - //SMAP was found - resource = byteCodeResourceLocator.buildInputFile(location.fileInfo.path, fs); - if (resource != null) { - insertIssue(rule, resource, location.line, longMessage); - continue; - } - } else { - //SMAP was not found or unparsable.. The orgininal source file will be guess based on the class name - resource = byteCodeResourceLocator.findTemplateFile(className, this.fs); - if (resource != null) { - insertIssue(rule, resource, line, longMessage); - continue; + try { + SmapParser.SmapLocation location = byteCodeResourceLocator.extractSmapLocation(className, line, classFile); + if (location != null) { + if (!location.isPrimaryFile) { //Avoid reporting issue in double when a source file was include inline + continue; + } + + //SMAP was found + resource = byteCodeResourceLocator.buildInputFile(location.fileInfo.path, fs); + if (resource != null) { + insertIssue(rule, resource, location.line, longMessage); + continue; + } + } else { + //SMAP was not found or unparsable.. The orgininal source file will be guess based on the class name + resource = byteCodeResourceLocator.findTemplateFile(className, this.fs); + if (resource != null) { + insertIssue(rule, resource, line, longMessage); + continue; + } } } + catch (ClassMetadataLoadingException e) { + LOG.warn("Failed to load the class file metadata", e); + } } - LOG.warn("The class '" + className + "' could not be match to its original source file. It might be a dynamically generated class."); + LOG.warn("The class '" + className + "' could not be matched to its original source file. It might be a dynamically generated class."); } catch (Exception e) { String bugInstanceDebug = String.format("[BugInstance type=%s, class=%s, line=%s]", bugInstance.getType(), bugInstance.getClassName(), bugInstance.getStartLine()); diff --git a/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java b/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java index 6f1c08c9..69df2dec 100644 --- a/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java +++ b/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java @@ -27,6 +27,7 @@ import org.sonar.api.batch.fs.FileSystem; import org.sonar.api.batch.fs.InputFile; +import javax.annotation.Nullable; import java.io.File; import java.io.FileInputStream; import java.io.IOException; @@ -143,11 +144,14 @@ public InputFile buildInputFile(String fileName,FileSystem fs) { * @param classFile (Optional) * @return JSP line number */ + @Nullable public SmapParser.SmapLocation extractSmapLocation(String className, int originalLine, File classFile) { //Extract the SMAP (JSR45) from the class file (SourceDebugExtension section) try (InputStream in = new FileInputStream(classFile)) { DebugExtensionExtractor debug = new DebugExtensionExtractor(); - return getJspLineNumberFromSmap(debug.getDebugExtFromClass(in), originalLine); + String smap = debug.getDebugExtFromClass(in); + if(smap != null) + return getJspLineNumberFromSmap(smap, originalLine); } catch (IOException e) { LOG.warn("An error occurs while opening classfile : " + classFile.getPath()); diff --git a/src/main/java/org/sonar/plugins/findbugs/resource/ClassMetadataLoadingException.java b/src/main/java/org/sonar/plugins/findbugs/resource/ClassMetadataLoadingException.java new file mode 100644 index 00000000..3ad67513 --- /dev/null +++ b/src/main/java/org/sonar/plugins/findbugs/resource/ClassMetadataLoadingException.java @@ -0,0 +1,8 @@ +package org.sonar.plugins.findbugs.resource; + +public class ClassMetadataLoadingException extends RuntimeException { + + public ClassMetadataLoadingException(Throwable cause) { + super("ASM failed to load classfile metadata", cause); + } +} diff --git a/src/main/java/org/sonar/plugins/findbugs/resource/DebugExtensionExtractor.java b/src/main/java/org/sonar/plugins/findbugs/resource/DebugExtensionExtractor.java index 6a6d8aeb..eea156e5 100644 --- a/src/main/java/org/sonar/plugins/findbugs/resource/DebugExtensionExtractor.java +++ b/src/main/java/org/sonar/plugins/findbugs/resource/DebugExtensionExtractor.java @@ -23,6 +23,7 @@ import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.Opcodes; +import javax.annotation.Nullable; import java.io.IOException; import java.io.InputStream; @@ -34,22 +35,33 @@ */ public class DebugExtensionExtractor { + @Nullable public String getDebugExtFromClass(InputStream classIn) throws IOException { AbstractClassVisitor visitor = new AbstractClassVisitor(); - ClassReader classReader= new ClassReader(classIn); - classReader.accept(visitor, 0); + try { + ClassReader classReader = new ClassReader(classIn); + classReader.accept(visitor, 0); - return visitor.debug; + return visitor.debug; + } + catch (Exception e) { + throw new ClassMetadataLoadingException(e); + } } public String getDebugSourceFromClass(InputStream classIn) throws IOException { AbstractClassVisitor visitor = new AbstractClassVisitor(); - ClassReader classReader= new ClassReader(classIn); - classReader.accept(visitor, 0); + try { + ClassReader classReader= new ClassReader(classIn); + classReader.accept(visitor, 0); - return visitor.source; + return visitor.source; + } + catch (Exception e) { + throw new ClassMetadataLoadingException(e); + } } private static class AbstractClassVisitor extends ClassVisitor { diff --git a/src/main/resources/org/sonar/l10n/findbugs.properties b/src/main/resources/org/sonar/l10n/findbugs.properties deleted file mode 100644 index 19d8d2ad..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs.properties +++ /dev/null @@ -1,442 +0,0 @@ -rule.findbugs.IMSE_DONT_CATCH_IMSE.name=Bad practice - Dubious catching of IllegalMonitorStateException -rule.findbugs.BX_BOXING_IMMEDIATELY_UNBOXED.name=Performance - Primitive value is boxed and then immediately unboxed -rule.findbugs.IJU_SETUP_NO_SUPER.name=Correctness - TestCase defines setUp that doesn't call super.setUp() -rule.findbugs.TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED.name=Correctness - Value annotated as carrying a type qualifier used where a value that must not carry that qualifier is required -rule.findbugs.TLW_TWO_LOCK_WAIT.name=Multithreaded correctness - Wait with two locks held -rule.findbugs.RV_01_TO_INT.name=Correctness - Random value from 0 to 1 is coerced to the integer 0 -rule.findbugs.NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE.name=Dodgy - Parameter must be nonnull but is marked as nullable -rule.findbugs.RV_ABSOLUTE_VALUE_OF_RANDOM_INT.name=Correctness - Bad attempt to compute absolute value of signed 32-bit random integer -rule.findbugs.EC_INCOMPATIBLE_ARRAY_COMPARE.name=Correctness - equals(...) used to compare incompatible arrays -rule.findbugs.UL_UNRELEASED_LOCK_EXCEPTION_PATH.name=Multithreaded correctness - Method does not release lock on all exception paths -rule.findbugs.SE_NONSTATIC_SERIALVERSIONID.name=Bad practice - serialVersionUID isn't static -rule.findbugs.UCF_USELESS_CONTROL_FLOW.name=Dodgy - Useless control flow -rule.findbugs.BC_IMPOSSIBLE_CAST.name=Correctness - Impossible cast -rule.findbugs.XSS_REQUEST_PARAMETER_TO_SEND_ERROR.name=Security - Servlet reflected cross site scripting vulnerability -rule.findbugs.DM_NEW_FOR_GETCLASS.name=Performance - Method allocates an object, only to get the class object -rule.findbugs.OBL_UNSATISFIED_OBLIGATION.name=Experimental - Method may fail to clean up stream or resource -rule.findbugs.UW_UNCOND_WAIT.name=Multithreaded correctness - Unconditional wait -rule.findbugs.DLS_DEAD_LOCAL_STORE_OF_NULL.name=Dodgy - Dead store of null to local variable -rule.findbugs.NM_CLASS_NAMING_CONVENTION.name=Class names should start with an upper case letter -rule.findbugs.RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN.name=Correctness - Suspicious reference comparison of Boolean values -rule.findbugs.MWN_MISMATCHED_NOTIFY.name=Multithreaded correctness - Mismatched notify() -rule.findbugs.NM_VERY_CONFUSING.name=Correctness - Very confusing method names -rule.findbugs.FI_NULLIFY_SUPER.name=Bad practice - Finalizer nullifies superclass finalizer -rule.findbugs.MTIA_SUSPECT_STRUTS_INSTANCE_FIELD.name=Dodgy - Class extends Struts Action class and uses instance variables -rule.findbugs.DM_STRING_CTOR.name=Performance - Method invokes inefficient new String(String) constructor -rule.findbugs.STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE.name=Multithreaded correctness - Call to static DateFormat -rule.findbugs.NP_NULL_PARAM_DEREF_NONVIRTUAL.name=Correctness - Non-virtual method call passes null for nonnull parameter -rule.findbugs.FI_EMPTY.name=Bad practice - Empty finalizer should be deleted -rule.findbugs.CD_CIRCULAR_DEPENDENCY.name=Experimental - Test for circular dependencies among classes -rule.findbugs.EC_UNRELATED_TYPES.name=Correctness - Call to equals() comparing different types -rule.findbugs.EI_EXPOSE_STATIC_REP2.name=Malicious code vulnerability - May expose internal static state by storing a mutable object into a static field -rule.findbugs.DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY.name=Correctness - Invocation of toString on an anonymous array -rule.findbugs.SIC_INNER_SHOULD_BE_STATIC_ANON.name=Performance - Could be refactored into a named static inner class -rule.findbugs.STI_INTERRUPTED_ON_UNKNOWNTHREAD.name=Correctness - Static Thread.interrupted() method invoked on thread instance -rule.findbugs.CN_IDIOM_NO_SUPER_CALL.name=Bad practice - clone method does not call super.clone() -rule.findbugs.VA_FORMAT_STRING_BAD_ARGUMENT.name=Correctness - Format string placeholder incompatible with passed argument -rule.findbugs.EQ_DOESNT_OVERRIDE_EQUALS.name=Dodgy - Class doesn't override equals in superclass -rule.findbugs.BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY.name=Correctness - Impossible downcast of toArray() result -rule.findbugs.SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION.name=Bad practice - Class is Externalizable but doesn't define a void constructor -rule.findbugs.TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK.name=Correctness - Value required to have type qualifier, but marked as unknown -rule.findbugs.SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS.name=Performance - Could be refactored into a static inner class -rule.findbugs.EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS.name=Bad practice - Equals checks for noncompatible operand -rule.findbugs.RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED.name=Correctness - Return value of putIfAbsent ignored, value passed to putIfAbsent reused -rule.findbugs.STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE.name=Multithreaded correctness - Call to static Calendar -rule.findbugs.MS_CANNOT_BE_FINAL.name=Malicious code vulnerability - Field isn't final and can't be protected from malicious code -rule.findbugs.IS_INCONSISTENT_SYNC.name=Multithreaded correctness - Inconsistent synchronization -rule.findbugs.SE_NO_SERIALVERSIONID.name=Bad practice - Class is Serializable, but doesn't define serialVersionUID -rule.findbugs.EI_EXPOSE_REP2.name=Malicious code vulnerability - May expose internal representation by incorporating reference to mutable object -rule.findbugs.NM_METHOD_CONSTRUCTOR_CONFUSION.name=Correctness - Apparent method/constructor confusion -rule.findbugs.ICAST_INTEGER_MULTIPLY_CAST_TO_LONG.name=Dodgy - Result of integer multiplication cast to long -rule.findbugs.QF_QUESTIONABLE_FOR_LOOP.name=Dodgy - Complicated, subtle or wrong increment in for-loop -rule.findbugs.DLS_DEAD_STORE_OF_CLASS_LITERAL.name=Correctness - Dead store of class literal -rule.findbugs.NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER.name=Bad practice - Use of member identifier that is a keyword in later versions of Java -rule.findbugs.BC_VACUOUS_INSTANCEOF.name=Dodgy - instanceof will always return true -rule.findbugs.INT_VACUOUS_BIT_OPERATION.name=Dodgy - Vacuous bit mask operation on integer value -rule.findbugs.NP_NULL_INSTANCEOF.name=Correctness - A known null value is checked to see if it is an instance of a type -rule.findbugs.SIC_THREADLOCAL_DEADLY_EMBRACE.name=Correctness - Deadly embrace of non-static inner class and thread local -rule.findbugs.EQ_UNUSUAL.name=Dodgy - Unusual equals method -rule.findbugs.IJU_NO_TESTS.name=Correctness - TestCase has no tests -rule.findbugs.EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC.name=Correctness - equals method overrides equals in superclass and may not be symmetric -rule.findbugs.XFB_XML_FACTORY_BYPASS.name=Dodgy - Method directly allocates a specific implementation of xml interfaces -rule.findbugs.SWL_SLEEP_WITH_LOCK_HELD.name=Multithreaded correctness - Method calls Thread.sleep() with a lock held -rule.findbugs.CN_IDIOM.name=Bad practice - Class implements Cloneable but does not define or use clone method -rule.findbugs.WA_AWAIT_NOT_IN_LOOP.name=Multithreaded correctness - Condition.await() not in loop -rule.findbugs.DM_FP_NUMBER_CTOR.name=Performance - Method invokes inefficient floating-point Number constructor; use static valueOf instead -rule.findbugs.SF_SWITCH_NO_DEFAULT.name=Switch statement found where default case is missing -rule.findbugs.NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE.name=Dodgy - Possible null pointer dereference due to return value of called method -rule.findbugs.NP_CLONE_COULD_RETURN_NULL.name=Bad practice - Clone method may return null -rule.findbugs.MS_OOI_PKGPROTECT.name=Malicious code vulnerability - Field should be moved out of an interface and made package protected -rule.findbugs.DM_BOXED_PRIMITIVE_TOSTRING.name=Performance - Method allocates a boxed primitive just to call toString -rule.findbugs.EQ_ABSTRACT_SELF.name=Bad practice - Abstract class defines covariant equals() method -rule.findbugs.DM_STRING_TOSTRING.name=Performance - Method invokes toString() method on a String -rule.findbugs.SE_METHOD_MUST_BE_PRIVATE.name=Correctness - Method must be private in order for serialization to work -rule.findbugs.DL_SYNCHRONIZATION_ON_BOOLEAN.name=Multithreaded correctness - Synchronization on Boolean could lead to deadlock -rule.findbugs.UWF_UNWRITTEN_FIELD.name=Correctness - Unwritten field -rule.findbugs.IS2_INCONSISTENT_SYNC.name=Multithreaded correctness - Inconsistent synchronization -rule.findbugs.IM_AVERAGE_COMPUTATION_COULD_OVERFLOW.name=Dodgy - Computation of average could overflow -rule.findbugs.BIT_SIGNED_CHECK_HIGH_BIT.name=Correctness - Check for sign of bitwise operation -rule.findbugs.FL_MATH_USING_FLOAT_PRECISION.name=Correctness - Method performs math using floating point precision -rule.findbugs.WS_WRITEOBJECT_SYNC.name=Multithreaded correctness - Class's writeObject() method is synchronized but nothing else is -rule.findbugs.RV_RETURN_VALUE_IGNORED.name=Correctness - Method ignores return value -rule.findbugs.SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE.name=Security - Nonconstant string passed to execute method on an SQL statement -rule.findbugs.JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS.name=Bad practice - Fields of immutable classes should be final -rule.findbugs.AM_CREATES_EMPTY_ZIP_FILE_ENTRY.name=Bad practice - Creates an empty zip file entry -rule.findbugs.DM_NEXTINT_VIA_NEXTDOUBLE.name=Performance - Use the nextInt method of Random rather than nextDouble to generate a random integer -rule.findbugs.UI_INHERITANCE_UNSAFE_GETRESOURCE.name=Bad practice - Usage of GetResource may be unsafe if class is extended -rule.findbugs.SIO_SUPERFLUOUS_INSTANCEOF.name=Correctness - Unnecessary type check done using instanceof operator -rule.findbugs.EQ_OTHER_NO_OBJECT.name=Correctness - equals() method defined that doesn't override equals(Object) -rule.findbugs.USM_USELESS_ABSTRACT_METHOD.name=Experimental - Abstract Method is already defined in implemented interface -rule.findbugs.MTIA_SUSPECT_SERVLET_INSTANCE_FIELD.name=Dodgy - Class extends Servlet class and uses instance variables -rule.findbugs.DM_USELESS_THREAD.name=Multithreaded correctness - A thread was created using the default empty run method -rule.findbugs.ML_SYNC_ON_UPDATED_FIELD.name=Multithreaded correctness - Method synchronizes on an updated field -rule.findbugs.CO_SELF_NO_OBJECT.name=Bad practice - Covariant compareTo() method defined -rule.findbugs.BC_UNCONFIRMED_CAST.name=Dodgy - Unchecked/unconfirmed cast -rule.findbugs.FI_FINALIZER_NULLS_FIELDS.name=Bad practice - Finalizer nulls fields -rule.findbugs.BIT_AND.name=Correctness - Incompatible bit masks (BIT_AND) -rule.findbugs.FE_FLOATING_POINT_EQUALITY.name=Dodgy - Test for floating point equality -rule.findbugs.TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK.name=Correctness - Value required to not have type qualifier, but marked as unknown -rule.findbugs.NP_NULL_PARAM_DEREF.name=Correctness - Method call passes null for nonnull parameter -rule.findbugs.FB_MISSING_EXPECTED_WARNING.name=Experimental - Missing expected or desired warning from FindBugs -rule.findbugs.DMI_INVOKING_HASHCODE_ON_ARRAY.name=Correctness - Invocation of hashCode on an array -rule.findbugs.QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT.name=Correctness - Method assigns boolean literal in boolean expression -rule.findbugs.SA_FIELD_SELF_COMPARISON.name=Correctness - Self comparison of field with itself -rule.findbugs.UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR.name=Correctness - Uninitialized read of field method called from constructor of superclass -rule.findbugs.ES_COMPARING_PARAMETER_STRING_WITH_EQ.name=Bad practice - Comparison of String parameter using == or != -rule.findbugs.INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE.name=Correctness - Bad comparison of nonnegative value with negative constant -rule.findbugs.INT_BAD_COMPARISON_WITH_SIGNED_BYTE.name=Correctness - Bad comparison of signed byte -rule.findbugs.IO_APPENDING_TO_OBJECT_OUTPUT_STREAM.name=Correctness - Doomed attempt to append to an object output stream -rule.findbugs.FI_MISSING_SUPER_CALL.name=Bad practice - Finalizer does not call superclass finalizer -rule.findbugs.VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED.name=Correctness - More arguments are passed that are actually used in the format string -rule.findbugs.HE_EQUALS_USE_HASHCODE.name=Bad practice - Class defines equals() and uses Object.hashCode() -rule.findbugs.IJU_BAD_SUITE_METHOD.name=Correctness - TestCase declares a bad suite method -rule.findbugs.DMI_CONSTANT_DB_PASSWORD.name=Security - Hardcoded constant database password -rule.findbugs.REC_CATCH_EXCEPTION.name=Dodgy - Exception is caught when Exception is not thrown -rule.findbugs.PS_PUBLIC_SEMAPHORES.name=Dodgy - Class exposes synchronization and semaphores in its public interface -rule.findbugs.EC_UNRELATED_INTERFACES.name=Correctness - Call to equals() comparing different interface types -rule.findbugs.UCF_USELESS_CONTROL_FLOW_NEXT_LINE.name=Correctness - Useless control flow to next line -rule.findbugs.LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE.name=Experimental - Potential lost logger changes due to weak reference in OpenJDK -rule.findbugs.NP_UNWRITTEN_FIELD.name=Correctness - Read of unwritten field -rule.findbugs.DMI_UNSUPPORTED_METHOD.name=Dodgy - Call to unsupported method -rule.findbugs.RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE.name=Dodgy - Redundant comparison of non-null value to null -rule.findbugs.EC_BAD_ARRAY_COMPARE.name=Correctness - Invocation of equals() on an array, which is equivalent to == -rule.findbugs.EI_EXPOSE_REP.name=Malicious code vulnerability - May expose internal representation by returning reference to mutable object -rule.findbugs.NP_DEREFERENCE_OF_READLINE_VALUE.name=Dodgy - Dereference of the result of readLine() without nullcheck -rule.findbugs.UPM_UNCALLED_PRIVATE_METHOD.name=Performance - Private method is never called -rule.findbugs.NP_NULL_ON_SOME_PATH.name=Correctness - Possible null pointer dereference -rule.findbugs.NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT.name=Bad practice - equals() method does not check for null argument -rule.findbugs.EC_NULL_ARG.name=Correctness - Call to equals() with null argument -rule.findbugs.SE_BAD_FIELD_STORE.name=Bad practice - Non-serializable value stored into instance field of a serializable class -rule.findbugs.VO_VOLATILE_REFERENCE_TO_ARRAY.name=Multithreaded correctness - A volatile reference to an array doesn't treat the array elements as volatile -rule.findbugs.NP_SYNC_AND_NULL_CHECK_FIELD.name=Multithreaded correctness - Synchronize and null check on the same field. -rule.findbugs.DM_EXIT.name=Bad practice - Method invokes System.exit(...) -rule.findbugs.RC_REF_COMPARISON.name=Bad practice - Suspicious reference comparison -rule.findbugs.SE_NO_SUITABLE_CONSTRUCTOR.name=Bad practice - Class is Serializable but its superclass doesn't define a void constructor -rule.findbugs.DC_DOUBLECHECK.name=Multithreaded correctness - Possible double check of field -rule.findbugs.DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT.name=Correctness - Double.longBitsToDouble invoked on an int -rule.findbugs.RpC_REPEATED_CONDITIONAL_TEST.name=Correctness - Repeated conditional tests -rule.findbugs.WMI_WRONG_MAP_ITERATOR.name=Performance - Inefficient use of keySet iterator instead of entrySet iterator -rule.findbugs.DLS_DEAD_LOCAL_STORE.name=Dodgy - Dead store to local variable -rule.findbugs.INT_BAD_REM_BY_1.name=Correctness - Integer remainder modulo 1 -rule.findbugs.RV_RETURN_VALUE_IGNORED_BAD_PRACTICE.name=Bad practice - Method ignores exceptional return value -rule.findbugs.SA_LOCAL_SELF_ASSIGNMENT.name=Dodgy - Self assignment of local variable -rule.findbugs.MS_SHOULD_BE_FINAL.name=Malicious code vulnerability - Field isn't final but should be -rule.findbugs.SIC_INNER_SHOULD_BE_STATIC.name=Performance - Should be a static inner class -rule.findbugs.NP_GUARANTEED_DEREF.name=Correctness - Null value is guaranteed to be dereferenced -rule.findbugs.SE_READ_RESOLVE_MUST_RETURN_OBJECT.name=Bad practice - The readResolve method must be declared with a return type of Object. -rule.findbugs.NP_LOAD_OF_KNOWN_NULL_VALUE.name=Dodgy - Load of known null value -rule.findbugs.BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION.name=Performance - Primitive value is boxed then unboxed to perform primitive coercion -rule.findbugs.CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE.name=Bad practice - Class defines clone() but doesn't implement Cloneable -rule.findbugs.CO_ABSTRACT_SELF.name=Bad practice - Abstract class defines covariant compareTo() method -rule.findbugs.BAC_BAD_APPLET_CONSTRUCTOR.name=Experimental - Bad Applet Constructor relies on uninitialized AppletStub -rule.findbugs.EQ_GETCLASS_AND_CLASS_CONSTANT.name=Bad practice - equals method fails for subtypes -rule.findbugs.DB_DUPLICATE_SWITCH_CLAUSES.name=Dodgy - Method uses the same code for two switch clauses -rule.findbugs.DB_DUPLICATE_BRANCHES.name=Dodgy - Method uses the same code for two branches -rule.findbugs.UOE_USE_OBJECT_EQUALS.name=Experimental - Calls to equals on a final class that doesn't override Object's equals method -rule.findbugs.FI_USELESS.name=Bad practice - Finalizer does nothing but call superclass finalizer -rule.findbugs.NP_ALWAYS_NULL.name=Correctness - Null pointer dereference -rule.findbugs.DMI_VACUOUS_SELF_COLLECTION_CALL.name=Correctness - Vacuous call to collections -rule.findbugs.DLS_DEAD_LOCAL_STORE_IN_RETURN.name=Correctness - Useless assignment in return statement -rule.findbugs.IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD.name=Correctness - JUnit assertion in run method will not be noticed by JUnit -rule.findbugs.DMI_EMPTY_DB_PASSWORD.name=Security - Empty database password -rule.findbugs.DM_BOOLEAN_CTOR.name=Performance - Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead -rule.findbugs.BC_IMPOSSIBLE_DOWNCAST.name=Correctness - Impossible downcast -rule.findbugs.BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS.name=Bad practice - Equals method should not assume anything about the type of its argument -rule.findbugs.RV_EXCEPTION_NOT_THROWN.name=Correctness - Exception created and dropped rather than thrown -rule.findbugs.VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG.name=Correctness - Primitive array passed to function expecting a variable number of object arguments -rule.findbugs.LI_LAZY_INIT_UPDATE_STATIC.name=Multithreaded correctness - Incorrect lazy initialization and update of static field -rule.findbugs.SA_FIELD_SELF_ASSIGNMENT.name=Correctness - Self assignment of field -rule.findbugs.EQ_ALWAYS_FALSE.name=Correctness - equals method always returns false -rule.findbugs.DMI_RANDOM_USED_ONLY_ONCE.name=Bad practice - Random object created and used only once -rule.findbugs.NM_CLASS_NOT_EXCEPTION.name=Bad practice - Class is not derived from an Exception, even though it is named as such -rule.findbugs.SA_LOCAL_DOUBLE_ASSIGNMENT.name=Dodgy - Double assignment of local variable -rule.findbugs.NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS.name=Correctness - Method call passes null for nonnull parameter (ALL_TARGETS_DANGEROUS) -rule.findbugs.NP_TOSTRING_COULD_RETURN_NULL.name=Bad practice - toString method may return null -rule.findbugs.BC_BAD_CAST_TO_ABSTRACT_COLLECTION.name=Dodgy - Questionable cast to abstract collection -rule.findbugs.NM_LCASE_HASHCODE.name=Class defines hashcode(); should it be hashCode()? -rule.findbugs.RU_INVOKE_RUN.name=Multithreaded correctness - Invokes run on a thread (did you mean to start it instead?) -rule.findbugs.DMI_INVOKING_TOSTRING_ON_ARRAY.name=Correctness - Invocation of toString on an array -rule.findbugs.NM_METHOD_NAMING_CONVENTION.name=Method names should start with a lower case letter -rule.findbugs.RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES.name=Dodgy - Redundant comparison of two null values -rule.findbugs.SA_LOCAL_SELF_COMPUTATION.name=Correctness - Nonsensical self computation involving a variable (e.g., x & x) -rule.findbugs.MS_MUTABLE_HASHTABLE.name=Malicious code vulnerability - Field is a mutable Hashtable -rule.findbugs.RV_DONT_JUST_NULL_CHECK_READLINE.name=Dodgy - Method discards result of readLine after checking if it is nonnull -rule.findbugs.ES_COMPARING_STRINGS_WITH_EQ.name=Bad practice - Comparison of String objects using == or != -rule.findbugs.DL_SYNCHRONIZATION_ON_SHARED_CONSTANT.name=Multithreaded correctness - Synchronization on interned String could lead to deadlock -rule.findbugs.MF_METHOD_MASKS_FIELD.name=Correctness - Method defines a variable that obscures a field -rule.findbugs.EQ_SELF_USE_OBJECT.name=Correctness - Covariant equals() method defined, Object.equals(Object) inherited -rule.findbugs.ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND.name=Correctness - int value cast to float and then passed to Math.round -rule.findbugs.GC_UNRELATED_TYPES.name=Correctness - No relationship between generic parameter and method argument -rule.findbugs.BC_IMPOSSIBLE_INSTANCEOF.name=Correctness - instanceof will always return false -rule.findbugs.SBSC_USE_STRINGBUFFER_CONCATENATION.name=Performance - Method concatenates strings using + in a loop -rule.findbugs.ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL.name=Correctness - int value cast to double and then passed to Math.ceil -rule.findbugs.UG_SYNC_SET_UNSYNC_GET.name=Multithreaded correctness - Unsynchronized get method, synchronized set method -rule.findbugs.RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION.name=Correctness - Invalid syntax for regular expression -rule.findbugs.SA_FIELD_SELF_COMPUTATION.name=Correctness - Nonsensical self computation involving a field (e.g., x & x) -rule.findbugs.DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS.name=Correctness - Creation of ScheduledThreadPoolExecutor with zero core threads -rule.findbugs.DMI_USELESS_SUBSTRING.name=Dodgy - Invocation of substring(0), which returns the original value -rule.findbugs.IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD.name=Dodgy - Ambiguous invocation of either an inherited or outer method -rule.findbugs.OS_OPEN_STREAM.name=Bad practice - Method may fail to close stream -rule.findbugs.HE_INHERITS_EQUALS_USE_HASHCODE.name=Bad practice - Class inherits equals() and uses Object.hashCode() -rule.findbugs.SE_NONFINAL_SERIALVERSIONID.name=Bad practice - serialVersionUID isn't final -rule.findbugs.EQ_SELF_NO_OBJECT.name=Bad practice - Covariant equals() method defined -rule.findbugs.SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH.name=Dead store due to switch statement fall through -rule.findbugs.SW_SWING_METHODS_INVOKED_IN_SWING_THREAD.name=Bad practice - Certain swing methods needs to be invoked in Swing thread -rule.findbugs.VA_FORMAT_STRING_ILLEGAL.name=Correctness - Illegal format string -rule.findbugs.DM_NUMBER_CTOR.name=Performance - Method invokes inefficient Number constructor; use static valueOf instead -rule.findbugs.RV_REM_OF_RANDOM_INT.name=Dodgy - Remainder of 32-bit signed random integer -rule.findbugs.EQ_COMPARING_CLASS_NAMES.name=Correctness - equals method compares class names rather than class objects -rule.findbugs.ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD.name=Dodgy - Write to static field from instance method -rule.findbugs.TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED.name=Correctness - Value annotated as never carrying a type qualifier used where value carrying that qualifier is required -rule.findbugs.NS_NON_SHORT_CIRCUIT.name=Dodgy - Questionable use of non-short-circuit logic -rule.findbugs.VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT.name=Correctness - No previous argument for format string -rule.findbugs.SE_PRIVATE_READ_RESOLVE_NOT_INHERITED.name=Dodgy - private readResolve method not inherited by subclasses -rule.findbugs.RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE.name=Dodgy - Redundant nullcheck of value known to be non-null -rule.findbugs.NM_LCASE_TOSTRING.name=Class defines tostring(); should it be toString()? -rule.findbugs.HSC_HUGE_SHARED_STRING_CONSTANT.name=Performance - Huge string constants is duplicated across multiple class files -rule.findbugs.SE_TRANSIENT_FIELD_NOT_RESTORED.name=Bad practice - Transient field that isn't set by deserialization. -rule.findbugs.JLM_JSR166_LOCK_MONITORENTER.name=Multithreaded correctness - Synchronization performed on java.util.concurrent Lock -rule.findbugs.EQ_ALWAYS_TRUE.name=Correctness - equals method always returns true -rule.findbugs.ISC_INSTANTIATE_STATIC_CLASS.name=Bad practice - Needless instantiation of class that only supplies static methods -rule.findbugs.ICAST_IDIV_CAST_TO_DOUBLE.name=Dodgy - int division result cast to double or float -rule.findbugs.RC_REF_COMPARISON_BAD_PRACTICE.name=Correctness - Suspicious reference comparison to constant -rule.findbugs.FI_EXPLICIT_INVOCATION.name=Bad practice - Explicit invocation of finalizer -rule.findbugs.ESync_EMPTY_SYNC.name=Multithreaded correctness - Empty synchronized block -rule.findbugs.DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION.name=Correctness - Don't use removeAll to clear a collection -rule.findbugs.SE_BAD_FIELD.name=Non-transient non-serializable instance field in serializable class -rule.findbugs.NP_STORE_INTO_NONNULL_FIELD.name=Correctness - Store of null value into field annotated NonNull -rule.findbugs.IT_NO_SUCH_ELEMENT.name=Bad practice - Iterator next() method can't throw NoSuchElementException -rule.findbugs.HRS_REQUEST_PARAMETER_TO_HTTP_HEADER.name=Security - HTTP Response splitting vulnerability -rule.findbugs.DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED.name=Dodgy - Thread passed where Runnable expected -rule.findbugs.NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH.name=Correctness - Value is null and guaranteed to be dereferenced on exception path -rule.findbugs.RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE.name=Dodgy - Redundant nullcheck of value known to be null -rule.findbugs.DMI_CALLING_NEXT_FROM_HASNEXT.name=Correctness - hasNext method invokes next -rule.findbugs.HE_HASHCODE_USE_OBJECT_EQUALS.name=Bad practice - Class defines hashCode() and uses Object.equals() -rule.findbugs.VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED.name=Correctness - MessageFormat supplied where printf style format expected -rule.findbugs.NP_BOOLEAN_RETURN_NULL.name=Bad practice - Method with Boolean return type returns explicit null -rule.findbugs.RI_REDUNDANT_INTERFACES.name=Dodgy - Class implements same interface as superclass -rule.findbugs.DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE.name=Multithreaded correctness - Synchronization on boxed primitive values -rule.findbugs.STCAL_STATIC_CALENDAR_INSTANCE.name=Multithreaded correctness - Static Calendar -rule.findbugs.RR_NOT_CHECKED.name=Bad practice - Method ignores results of InputStream.read() -rule.findbugs.IL_INFINITE_RECURSIVE_LOOP.name=Correctness - An apparent infinite recursive loop -rule.findbugs.DMI_NONSERIALIZABLE_OBJECT_WRITTEN.name=Dodgy - Non serializable object written to ObjectOutput -rule.findbugs.GC_UNCHECKED_TYPE_IN_GENERIC_CALL.name=Bad practice - Unchecked type in generic call -rule.findbugs.IMA_INEFFICIENT_MEMBER_ACCESS.name=Experimental - Method accesses a private member variable of owning class -rule.findbugs.FI_PUBLIC_SHOULD_BE_PROTECTED.name=Malicious code vulnerability - Finalizer should be protected, not public -rule.findbugs.RV_CHECK_FOR_POSITIVE_INDEXOF.name=Dodgy - Method checks to see if result of String.indexOf is positive -rule.findbugs.ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT.name=Dodgy - Unsigned right shift cast to short/byte -rule.findbugs.DM_STRING_VOID_CTOR.name=Performance - Method invokes inefficient new String() constructor -rule.findbugs.RE_POSSIBLE_UNINTENDED_PATTERN.name=Correctness - "." used for regular expression -rule.findbugs.WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL.name=Multithreaded correctness - Sychronization on getClass rather than class literal -rule.findbugs.ICAST_BAD_SHIFT_AMOUNT.name=Correctness - Integer shift by an amount not in the range 0..31 -rule.findbugs.SF_SWITCH_FALLTHROUGH.name=Switch statement found where one case falls through to the next case -rule.findbugs.DP_DO_INSIDE_DO_PRIVILEGED.name=Bad practice - Method invoked that should be only be invoked inside a doPrivileged block -rule.findbugs.NO_NOTIFY_NOT_NOTIFYALL.name=Multithreaded correctness - Using notify() rather than notifyAll() -rule.findbugs.SS_SHOULD_BE_STATIC.name=Performance - Unread field: should this field be static? -rule.findbugs.DM_RUN_FINALIZERS_ON_EXIT.name=Bad practice - Method invokes dangerous method runFinalizersOnExit -rule.findbugs.MS_FINAL_PKGPROTECT.name=Malicious code vulnerability - Field should be both final and package protected -rule.findbugs.BC_BAD_CAST_TO_CONCRETE_COLLECTION.name=Dodgy - Questionable cast to concrete collection -rule.findbugs.BIT_IOR_OF_SIGNED_BYTE.name=Correctness - Bitwise OR of signed byte value -rule.findbugs.MSF_MUTABLE_SERVLET_FIELD.name=Multithreaded correctness - Mutable servlet field -rule.findbugs.SE_BAD_FIELD_INNER_CLASS.name=Bad practice - Non-serializable class has a serializable inner class -rule.findbugs.BIT_ADD_OF_SIGNED_BYTE.name=Correctness - Bitwise add of signed byte value -rule.findbugs.FI_FINALIZER_ONLY_NULLS_FIELDS.name=Bad practice - Finalizer only nulls fields -rule.findbugs.DE_MIGHT_IGNORE.name=Bad practice - Method might ignore exception -rule.findbugs.XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER.name=Security - Servlet reflected cross site scripting vulnerability -rule.findbugs.ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD.name=Multithreaded correctness - Synchronization on field in futile attempt to guard that field -rule.findbugs.SQL_BAD_PREPARED_STATEMENT_ACCESS.name=Correctness - Method attempts to access a prepared statement parameter with index 0 -rule.findbugs.DM_CONVERT_CASE.name=Internationalization - Consider using Locale parameterized version of invoked method -rule.findbugs.SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS.name=Dodgy - Transient field of class that isn't Serializable. -rule.findbugs.NN_NAKED_NOTIFY.name=Multithreaded correctness - Naked notify -rule.findbugs.VA_FORMAT_STRING_MISSING_ARGUMENT.name=Correctness - Format string references missing argument -rule.findbugs.IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION.name=Bad practice - Superclass uses subclass during initialization -rule.findbugs.SA_LOCAL_SELF_COMPARISON.name=Correctness - Self comparison of value with itself -rule.findbugs.IM_BAD_CHECK_FOR_ODD.name=Dodgy - Check for oddness that won't work for negative numbers -rule.findbugs.NP_CLOSING_NULL.name=Correctness - close() invoked on a value that is always null -rule.findbugs.XSS_REQUEST_PARAMETER_TO_JSP_WRITER.name=Security - JSP reflected cross site scripting vulnerability -rule.findbugs.IS_FIELD_NOT_GUARDED.name=Multithreaded correctness - Field not guarded against concurrent access -rule.findbugs.DM_GC.name=Performance - Explicit garbage collection; extremely dubious except in benchmarking code -rule.findbugs.IM_MULTIPLYING_RESULT_OF_IREM.name=Correctness - Integer multiply of result of integer remainder -rule.findbugs.SE_COMPARATOR_SHOULD_BE_SERIALIZABLE.name=Bad practice - Comparator doesn't implement Serializable -rule.findbugs.HE_HASHCODE_NO_EQUALS.name=Bad practice - Class defines hashCode() but not equals() -rule.findbugs.MF_CLASS_MASKS_FIELD.name=Correctness - Class defines field that masks a superclass field -rule.findbugs.NM_VERY_CONFUSING_INTENTIONAL.name=Bad practice - Very confusing method names (but perhaps intentional) -rule.findbugs.SR_NOT_CHECKED.name=Bad practice - Method ignores results of InputStream.skip() -rule.findbugs.LI_LAZY_INIT_STATIC.name=Multithreaded correctness - Incorrect lazy initialization of static field -rule.findbugs.DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION.name=Correctness - Can't use reflection to check for presence of annotation without runtime retention -rule.findbugs.ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH.name=Bad practice - Method may fail to close database resource on exception -rule.findbugs.BIT_IOR.name=Correctness - Incompatible bit masks (BIT_IOR) -rule.findbugs.ODR_OPEN_DATABASE_RESOURCE.name=Bad practice - Method may fail to close database resource -rule.findbugs.IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN.name=Correctness - A parameter is dead upon entry to a method but overwritten -rule.findbugs.SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING.name=Security - A prepared statement is generated from a nonconstant String -rule.findbugs.UUF_UNUSED_FIELD.name=Performance - Unused field -rule.findbugs.RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE.name=Correctness - Nullcheck of value previously dereferenced -rule.findbugs.EQ_OTHER_USE_OBJECT.name=Correctness - equals() method defined that doesn't override Object.equals(Object) -rule.findbugs.SP_SPIN_ON_FIELD.name=Multithreaded correctness - Method spins on field -rule.findbugs.SI_INSTANCE_BEFORE_FINALS_ASSIGNED.name=Bad practice - Static initializer creates instance before all static final fields assigned -rule.findbugs.NP_ALWAYS_NULL_EXCEPTION.name=Correctness - Null pointer dereference in method on exception path -rule.findbugs.MS_EXPOSE_REP.name=Malicious code vulnerability - Public static method may expose internal representation by returning array -rule.findbugs.VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN.name=Dodgy - Non-Boolean argument formatted using %b format specifier -rule.findbugs.MS_PKGPROTECT.name=Malicious code vulnerability - Field should be package protected -rule.findbugs.NP_NONNULL_RETURN_VIOLATION.name=Correctness - Method may return null, but is declared @NonNull -rule.findbugs.J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION.name=Bad practice - Store of non serializable object into HttpSession -rule.findbugs.NM_SAME_SIMPLE_NAME_AS_SUPERCLASS.name=Bad practice - Class names shouldn't shadow simple name of superclass -rule.findbugs.DMI_BLOCKING_METHODS_ON_URL.name=Performance - The equals and hashCode methods of URL are blocking -rule.findbugs.HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS.name=Correctness - Signature declares use of unhashable class in hashed construct -rule.findbugs.UR_UNINIT_READ.name=Correctness - Uninitialized read of field in constructor -rule.findbugs.WA_NOT_IN_LOOP.name=Multithreaded correctness - Wait not in loop -rule.findbugs.DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR.name=Correctness - Futile attempt to change max pool size of ScheduledThreadPoolExecutor -rule.findbugs.RV_RETURN_VALUE_IGNORED2.name=Correctness - Method ignores return value -rule.findbugs.NM_FIELD_NAMING_CONVENTION.name=Field names should start with a lower case letter -rule.findbugs.FB_UNEXPECTED_WARNING.name=Experimental - Unexpected/undesired warning from FindBugs -rule.findbugs.BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR.name=Correctness - Primitive value is unboxed and coerced for ternary operator -rule.findbugs.DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED.name=Bad practice - Classloaders should only be created inside doPrivileged block -rule.findbugs.NM_WRONG_PACKAGE.name=Correctness - Method doesn't override method in superclass due to wrong package for parameter -rule.findbugs.IL_CONTAINER_ADDED_TO_ITSELF.name=Correctness - A collection is added to itself -rule.findbugs.CI_CONFUSED_INHERITANCE.name=Dodgy - Class is final but declares protected field -rule.findbugs.HE_USE_OF_UNHASHABLE_CLASS.name=Correctness - Use of class without a hashCode() method in a hashed data structure -rule.findbugs.IJU_SUITE_NOT_STATIC.name=Correctness - TestCase implements a non-static suite method -rule.findbugs.RS_READOBJECT_SYNC.name=Multithreaded correctness - Class's readObject() method is synchronized -rule.findbugs.AM_CREATES_EMPTY_JAR_FILE_ENTRY.name=Bad practice - Creates an empty jar file entry -rule.findbugs.VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY.name=Correctness - Array formatted in useless way using format string -rule.findbugs.SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW.name=Dead store due to switch statement fall through to throw -rule.findbugs.RV_ABSOLUTE_VALUE_OF_HASHCODE.name=Correctness - Bad attempt to compute absolute value of signed 32-bit hashcode -rule.findbugs.EQ_DONT_DEFINE_EQUALS_FOR_ENUM.name=Correctness - Covariant equals() method defined for enum -rule.findbugs.SA_FIELD_DOUBLE_ASSIGNMENT.name=Correctness - Double assignment of field -rule.findbugs.DMI_COLLECTION_OF_URLS.name=Performance - Maps and sets of URLs can be performance hogs -rule.findbugs.NM_SAME_SIMPLE_NAME_AS_INTERFACE.name=Bad practice - Class names shouldn't shadow simple name of implemented interface -rule.findbugs.UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.name=Correctness - Field not initialized in constructor -rule.findbugs.TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK.name=Correctness - Value that might carry a type qualifier is always used in a way prohibits it from having that type qualifier -rule.findbugs.SE_NONLONG_SERIALVERSIONID.name=Bad practice - serialVersionUID isn't long -rule.findbugs.RV_REM_OF_HASHCODE.name=Dodgy - Remainder of hashCode could be negative -rule.findbugs.NS_DANGEROUS_NON_SHORT_CIRCUIT.name=Dodgy - Potentially dangerous use of non-short-circuit logic -rule.findbugs.USM_USELESS_SUBCLASS_METHOD.name=Experimental - Method superfluously delegates to parent class method -rule.findbugs.ITA_INEFFICIENT_TO_ARRAY.name=Performance - Method uses toArray() with zero-length array argument -rule.findbugs.DM_MONITOR_WAIT_ON_CONDITION.name=Multithreaded correctness - Monitor wait() called on Condition -rule.findbugs.BOA_BADLY_OVERRIDDEN_ADAPTER.name=Correctness - Class overrides a method implemented in super class Adapter wrongly -rule.findbugs.IC_INIT_CIRCULARITY.name=Dodgy - Initialization circularity -rule.findbugs.NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER.name=Bad practice - Use of identifier that is a keyword in later versions of Java -rule.findbugs.EC_UNRELATED_CLASS_AND_INTERFACE.name=Correctness - Call to equals() comparing unrelated class and interface -rule.findbugs.TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK.name=Correctness - Value that might not carry a type qualifier is always used in a way requires that type qualifier -rule.findbugs.FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER.name=Correctness - Doomed test for equality to NaN -rule.findbugs.NM_CONFUSING.name=Bad practice - Confusing method names -rule.findbugs.VA_FORMAT_STRING_ARG_MISMATCH.name=Correctness - Number of format-string arguments does not correspond to number of placeholders -rule.findbugs.NP_NULL_ON_SOME_PATH_EXCEPTION.name=Correctness - Possible null pointer dereference in method on exception path -rule.findbugs.DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE.name=Multithreaded correctness - Synchronization on boxed primitive could lead to deadlock -rule.findbugs.IJU_TEARDOWN_NO_SUPER.name=Correctness - TestCase defines tearDown that doesn't call super.tearDown() -rule.findbugs.SE_READ_RESOLVE_IS_STATIC.name=Correctness - The readResolve method must not be declared as a static method. -rule.findbugs.NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE.name=Dodgy - Possible null pointer dereference on path that might be infeasible -rule.findbugs.UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS.name=Correctness - Uncallable method defined in anonymous class -rule.findbugs.VA_FORMAT_STRING_BAD_CONVERSION.name=Correctness - The type of a supplied argument doesn't match format specifier -rule.findbugs.EC_ARRAY_AND_NONARRAY.name=Correctness - equals() used to compare array and nonarray -rule.findbugs.NM_BAD_EQUAL.name=Class defines equal(Object); should it be equals(Object)? -rule.findbugs.EC_UNRELATED_TYPES_USING_POINTER_EQUALITY.name=Correctness - Using pointer equality to compare different types -rule.findbugs.STI_INTERRUPTED_ON_CURRENTTHREAD.name=Correctness - Unneeded use of currentThread() call, to call interrupted() -rule.findbugs.RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION.name=Correctness - File.separator used for regular expression -rule.findbugs.MWN_MISMATCHED_WAIT.name=Multithreaded correctness - Mismatched wait() -rule.findbugs.IL_INFINITE_LOOP.name=Correctness - An apparent infinite loop -rule.findbugs.NP_IMMEDIATE_DEREFERENCE_OF_READLINE.name=Dodgy - Immediate dereference of the result of readLine() -rule.findbugs.SC_START_IN_CTOR.name=Multithreaded correctness - Constructor invokes Thread.start() -rule.findbugs.STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE.name=Multithreaded correctness - Static DateFormat -rule.findbugs.HE_EQUALS_NO_HASHCODE.name=Bad practice - Class defines equals() but not hashCode() -rule.findbugs.UL_UNRELEASED_LOCK.name=Multithreaded correctness - Method does not release lock on all paths -rule.findbugs.PZLA_PREFER_ZERO_LENGTH_ARRAYS.name=Dodgy - Consider returning a zero length array rather than null -rule.findbugs.SKIPPED_CLASS_TOO_BIG.name=Dodgy - Class too big for analysis -rule.findbugs.NP_ARGUMENT_MIGHT_BE_NULL.name=Correctness - Method does not check for null argument -rule.findbugs.UM_UNNECESSARY_MATH.name=Performance - Method calls static Math class method on a constant value -rule.findbugs.NM_WRONG_PACKAGE_INTENTIONAL.name=Bad practice - Method doesn't override method in superclass due to wrong package for parameter -rule.findbugs.NP_NONNULL_PARAM_VIOLATION.name=Correctness - Method call passes null to a nonnull parameter -rule.findbugs.BIT_AND_ZZ.name=Correctness - Check to see if ((...) & 0) == 0 -rule.findbugs.HRS_REQUEST_PARAMETER_TO_COOKIE.name=Security - HTTP cookie formed from untrusted input -rule.findbugs.SQL_BAD_RESULTSET_ACCESS.name=Correctness - Method attempts to access a result set field with index 0 -rule.findbugs.INT_VACUOUS_COMPARISON.name=Dodgy - Vacuous comparison of integer value -rule.findbugs.EQ_COMPARETO_USE_OBJECT_EQUALS.name=Bad practice - Class defines compareTo(...) and uses Object.equals() -rule.findbugs.DMI_HARDCODED_ABSOLUTE_FILENAME.name=Dodgy - Code contains a hard coded reference to an absolute pathname -rule.findbugs.DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES.name=Correctness - Collections should not contain themselves -rule.findbugs.URF_UNREAD_FIELD.name=Performance - Unread field -rule.findbugs.DLS_OVERWRITTEN_INCREMENT.name=Correctness - Overwritten increment -rule.findbugs.BIT_SIGNED_CHECK.name=Bad practice - Check for sign of bitwise operation -rule.findbugs.UWF_NULL_FIELD.name=Correctness - Field only ever set to null -rule.findbugs.DE_MIGHT_DROP.name=Bad practice - Method might drop exception -rule.findbugs.DMI_BAD_MONTH.name=Correctness - Bad constant value for month -rule.findbugs.MS_MUTABLE_ARRAY.name=Malicious code vulnerability - Field is a mutable array -rule.findbugs.SE_INNER_CLASS.name=Bad practice - Serializable inner class -rule.findbugs.OS_OPEN_STREAM_EXCEPTION_PATH.name=Bad practice - Method may fail to close stream on exception -rule.findbugs.AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION.name=Sequence of calls to concurrent abstraction may not be atomic -rule.findbugs.BX_UNBOXING_IMMEDIATELY_REBOXED.name=Boxed value is unboxed and then immediately reboxed -rule.findbugs.CO_COMPARETO_RESULTS_MIN_VALUE.name=compareTo()/compare() returns Integer.MIN_VALUE -rule.findbugs.DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD.name=Dead store to local variable that shadows field -rule.findbugs.DMI_ARGUMENTS_WRONG_ORDER.name=Reversed method arguments -rule.findbugs.DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE.name=BigDecimal constructed from double that isn't represented precisely -rule.findbugs.DMI_DOH.name=D'oh! A nonsensical method invocation -rule.findbugs.DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS.name=Adding elements of an entry set may fail due to reuse of Entry objects -rule.findbugs.DM_DEFAULT_ENCODING.name=Reliance on default encoding -rule.findbugs.ICAST_INT_2_LONG_AS_INSTANT.name=int value converted to long and used as absolute time -rule.findbugs.INT_BAD_COMPARISON_WITH_INT_VALUE.name=Bad comparison of int value with long constant -rule.findbugs.JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT.name=Using monitor style wait methods on util.concurrent abstraction -rule.findbugs.NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.name=Read of unwritten public or protected field -rule.findbugs.OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE.name=Method may fail to clean up stream or resource on checked exception -rule.findbugs.PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS.name=Don't reuse entry objects in iterators -rule.findbugs.RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE.name=Code checks for specific values returned by compareTo -rule.findbugs.RV_NEGATING_RESULT_OF_COMPARETO.name=Negating the result of compareTo()/compare() -rule.findbugs.RV_RETURN_VALUE_IGNORED_INFERRED.name=Method ignores return value, is this OK? -rule.findbugs.SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD.name=Self assignment of local rather than assignment to field -rule.findbugs.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD.name=Unread public/protected field -rule.findbugs.UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD.name=Unused public or protected field -rule.findbugs.UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.name=Unwritten public or protected field -rule.findbugs.VA_FORMAT_STRING_USES_NEWLINE.name=Format string should use %n rather than \\n -rule.findbugs.VO_VOLATILE_INCREMENT.name=An increment to a volatile field isn't atomic -rule.findbugs.PT_ABSOLUTE_PATH_TRAVERSAL.name=Absolute path traversal in servlet -rule.findbugs.PT_RELATIVE_PATH_TRAVERSAL.name=Relative path traversal in servlet -rule.findbugs.NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.name=Nonnull field is not initialized -rule.findbugs.MS_SHOULD_BE_REFACTORED_TO_BE_FINAL.name=Field isn't final but should be refactored to be so -rule.findbugs.BC_UNCONFIRMED_CAST_OF_RETURN_VALUE.name=Unchecked/unconfirmed cast of return value from method -rule.findbugs.TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS.name=Comparing values with incompatible type qualifiers -rule.findbugs.TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED.name=Value without a type qualifier used where a value is required to have that qualifier -rule.findbugs.DLS_DEAD_LOCAL_INCREMENT_IN_RETURN.name=Useless increment in return statement -rule.findbugs.DM_BOXED_PRIMITIVE_FOR_PARSING.name=Boxing/unboxing to parse a primitive -rule.findbugs.NP_METHOD_RETURN_RELAXING_ANNOTATION.name=Method relaxes nullness annotation on return value -rule.findbugs.NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION.name=Method tightens nullness annotation on parameter -rule.findbugs.NP_OPTIONAL_RETURN_NULL.name=Method with Optional return type returns explicit null -rule.findbugs.IIO_INEFFICIENT_INDEX_OF.name=Inefficient use of String.indexOf(String) -rule.findbugs.IIO_INEFFICIENT_LAST_INDEX_OF.name=Inefficient use of String.lastIndexOf(String) -rule.findbugs.CNT_ROUGH_CONSTANT_VALUE.name=Rough value of known constant found -rule.findbugs.BSHIFT_WRONG_ADD_PRIORITY.name=Possible bad parsing of shift operation -rule.findbugs.CO_COMPARETO_INCORRECT_FLOATING.name=compareTo()/compare() incorrectly handles float or double value -rule.findbugs.DC_PARTIALLY_CONSTRUCTED.name=Possible exposure of partially initialized object -rule.findbugs.DM_BOXED_PRIMITIVE_FOR_COMPARE.name=Boxing a primitive to compare -rule.findbugs.DM_INVALID_MIN_MAX.name=Incorrect combination of Math.max and Math.min -rule.findbugs.ME_MUTABLE_ENUM_FIELD.name=Enum field is public and mutable -rule.findbugs.ME_ENUM_FIELD_SETTER.name=Public enum method unconditionally sets its field -rule.findbugs.MS_MUTABLE_COLLECTION.name=Field is a mutable collection -rule.findbugs.MS_MUTABLE_COLLECTION_PKGPROTECT.name=Field is a mutable collection which should be package protected -rule.findbugs.RANGE_ARRAY_INDEX.name=Array index is out of bounds -rule.findbugs.RANGE_ARRAY_OFFSET.name=Array offset is out of bounds -rule.findbugs.RANGE_ARRAY_LENGTH.name=Array length is out of bounds -rule.findbugs.RANGE_STRING_INDEX.name=String index is out of bounds -rule.findbugs.RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT.name=Return value of method without side effect is ignored -rule.findbugs.UC_USELESS_CONDITION.name=Condition has no effect -rule.findbugs.UC_USELESS_CONDITION_TYPE.name=Condition has no effect due to the variable type -rule.findbugs.UC_USELESS_OBJECT.name=Useless object created -rule.findbugs.UC_USELESS_OBJECT_STACK.name=Useless object created on stack -rule.findbugs.UC_USELESS_VOID_METHOD.name=Useless non-empty void method diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AM_CREATES_EMPTY_JAR_FILE_ENTRY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AM_CREATES_EMPTY_JAR_FILE_ENTRY.html deleted file mode 100644 index 4717562c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AM_CREATES_EMPTY_JAR_FILE_ENTRY.html +++ /dev/null @@ -1,6 +0,0 @@ -

The code calls putNextEntry(), immediately -followed by a call to closeEntry(). This results -in an empty JarFile entry. The contents of the entry -should be written to the JarFile between the calls to -putNextEntry() and -closeEntry().

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AM_CREATES_EMPTY_ZIP_FILE_ENTRY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AM_CREATES_EMPTY_ZIP_FILE_ENTRY.html deleted file mode 100644 index 07136aac..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AM_CREATES_EMPTY_ZIP_FILE_ENTRY.html +++ /dev/null @@ -1,6 +0,0 @@ -

The code calls putNextEntry(), immediately -followed by a call to closeEntry(). This results -in an empty ZipFile entry. The contents of the entry -should be written to the ZipFile between the calls to -putNextEntry() and -closeEntry().

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION.html deleted file mode 100644 index 74cc5af6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION.html +++ /dev/null @@ -1 +0,0 @@ -

This code contains a sequence of calls to a concurrent abstraction (such as a concurrent hash map). These calls will not be executed atomically.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BAC_BAD_APPLET_CONSTRUCTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BAC_BAD_APPLET_CONSTRUCTOR.html deleted file mode 100644 index 6332a7d4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BAC_BAD_APPLET_CONSTRUCTOR.html +++ /dev/null @@ -1,5 +0,0 @@ -

- This constructor calls methods in the parent Applet that rely on the AppletStub. Since the AppletStub - isn't initialized until the init() method of this applet is called, these methods will not perform - correctly. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_BAD_CAST_TO_ABSTRACT_COLLECTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_BAD_CAST_TO_ABSTRACT_COLLECTION.html deleted file mode 100644 index ff96c372..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_BAD_CAST_TO_ABSTRACT_COLLECTION.html +++ /dev/null @@ -1,7 +0,0 @@ -

-This code casts a Collection to an abstract collection -(such as List, Set, or Map). -Ensure that you are guaranteed that the object is of the type -you are casting to. If all you need is to be able -to iterate through a collection, you don't need to cast it to a Set or List. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_BAD_CAST_TO_CONCRETE_COLLECTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_BAD_CAST_TO_CONCRETE_COLLECTION.html deleted file mode 100644 index 3571015d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_BAD_CAST_TO_CONCRETE_COLLECTION.html +++ /dev/null @@ -1,8 +0,0 @@ -

-This code casts an abstract collection (such as a Collection, List, or Set) -to a specific concrete implementation (such as an ArrayList or HashSet). -This might not be correct, and it may make your code fragile, since -it makes it harder to switch to other concrete implementations at a future -point. Unless you have a particular reason to do so, just use the abstract -collection class. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS.html deleted file mode 100644 index df377a7a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The equals(Object o) method shouldn't make any assumptions -about the type of o. It should simply return -false if o is not the same type as this. -

- -

-This rule is deprecated, use {rule:squid:S2097} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_CAST.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_CAST.html deleted file mode 100644 index 8c0b12c5..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_CAST.html +++ /dev/null @@ -1,3 +0,0 @@ -

-This cast will always throw a ClassCastException. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_DOWNCAST.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_DOWNCAST.html deleted file mode 100644 index 93a43196..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_DOWNCAST.html +++ /dev/null @@ -1 +0,0 @@ -This cast will always throw a ClassCastException. The analysis believes it knows the precise type of the value being cast, and the attempt to downcast it to a subtype will always fail by throwing a ClassCastException. \ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY.html deleted file mode 100644 index f8b7e841..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY.html +++ /dev/null @@ -1,9 +0,0 @@ -

This code is casting the result of calling toArray() on a collection to a type more specific than Object[], as in:

-
-  String[] getAsArray(Collection c) {
-    return (String[]) c.toArray();
-  }
-
-

This will usually fail by throwing a ClassCastException. The toArray() of almost all collections return an Object[]. They can't really do anything else, since the Collection object has no reference to the declared generic type of the collection.

-

The correct way to do get an array of a specific type from a collection is to use c.toArray(new String[]); or c.toArray(new String[c.size()]); (the latter is slightly more efficient).

-

There is one common/known exception exception to this. The toArray() method of lists returned by Arrays.asList(...) will return a covariantly typed array. For example, Arrays.asArray(new String[] { "a" }).toArray() will return a String []. FindBugs attempts to detect and suppress such cases, but may miss some.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_INSTANCEOF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_INSTANCEOF.html deleted file mode 100644 index a6d7df16..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_IMPOSSIBLE_INSTANCEOF.html +++ /dev/null @@ -1,8 +0,0 @@ -

-This instanceof test will always return false. Although this is safe, make sure it isn't -an indication of some misunderstanding or some other logic error. -

- -

-This rule is deprecated, use {rule:squid:S1850} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_UNCONFIRMED_CAST.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_UNCONFIRMED_CAST.html deleted file mode 100644 index 28754d86..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_UNCONFIRMED_CAST.html +++ /dev/null @@ -1,5 +0,0 @@ -

-This cast is unchecked, and not all instances of the type casted from can be cast to -the type it is being cast to. Ensure that your program logic ensures that this -cast will not fail. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_UNCONFIRMED_CAST_OF_RETURN_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_UNCONFIRMED_CAST_OF_RETURN_VALUE.html deleted file mode 100644 index 6563ad7d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_UNCONFIRMED_CAST_OF_RETURN_VALUE.html +++ /dev/null @@ -1,6 +0,0 @@ -

-This code performs an unchecked cast of the return value of a method. -The code might be calling the method in such a way that the cast is guaranteed to be -safe, but FindBugs is unable to verify that the cast is safe. Check that your program logic ensures that this -cast will not fail. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_VACUOUS_INSTANCEOF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_VACUOUS_INSTANCEOF.html deleted file mode 100644 index 72bdc642..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BC_VACUOUS_INSTANCEOF.html +++ /dev/null @@ -1,11 +0,0 @@ -

-This instanceof test will always return true (unless the value being tested is null). -Although this is safe, make sure it isn't -an indication of some misunderstanding or some other logic error. -If you really want to test the value for being null, perhaps it would be clearer to do -better to do a null test rather than an instanceof test. -

- -

-This rule is deprecated, use {rule:squid:S1850} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_ADD_OF_SIGNED_BYTE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_ADD_OF_SIGNED_BYTE.html deleted file mode 100644 index 25d6a15e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_ADD_OF_SIGNED_BYTE.html +++ /dev/null @@ -1,23 +0,0 @@ -

Adds a byte value and a value which is known to the 8 lower bits clear. -Values loaded from a byte array are sign extended to 32 bits -before any any bitwise operations are performed on the value. -Thus, if b[0] contains the value 0xff, and -x is initially 0, then the code -((x << 8) + b[0]) will sign extend 0xff -to get 0xffffffff, and thus give the value -0xffffffff as the result. -

- -

In particular, the following code for packing a byte array into an int is badly wrong:

-
-int result = 0;
-for(int i = 0; i < 4; i++) 
-  result = ((result << 8) + b[i]);
-
- -

The following idiom will work instead:

-
-int result = 0;
-for(int i = 0; i < 4; i++) 
-  result = ((result << 8) + (b[i] & 0xff));
-
\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_AND.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_AND.html deleted file mode 100644 index e39c69b9..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_AND.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method compares an expression of the form (e & C) to D, -which will always compare unequal -due to the specific values of constants C and D. -This may indicate a logic error or typo.

- -

-This rule is deprecated, use {rule:squid:S2583} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_AND_ZZ.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_AND_ZZ.html deleted file mode 100644 index 71918903..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_AND_ZZ.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method compares an expression of the form (e & 0) to 0, -which will always compare equal. -This may indicate a logic error or typo.

- -

-This rule is deprecated, use {rule:squid:S2583} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_IOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_IOR.html deleted file mode 100644 index 03590cb6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_IOR.html +++ /dev/null @@ -1,12 +0,0 @@ -

This method compares an expression of the form (e | C) to D. -which will always compare unequal -due to the specific values of constants C and D. -This may indicate a logic error or typo.

- -

Typically, this bug occurs because the code wants to perform -a membership test in a bit set, but uses the bitwise OR -operator ("|") instead of bitwise AND ("&").

- -

-This rule is deprecated, use {rule:squid:S2583} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_IOR_OF_SIGNED_BYTE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_IOR_OF_SIGNED_BYTE.html deleted file mode 100644 index ac5108fe..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_IOR_OF_SIGNED_BYTE.html +++ /dev/null @@ -1,23 +0,0 @@ -

Loads a value from a byte array and performs a bitwise OR with -that value. Values loaded from a byte array are sign extended to 32 bits -before any any bitwise operations are performed on the value. -Thus, if b[0] contains the value 0xff, and -x is initially 0, then the code -((x << 8) | b[0]) will sign extend 0xff -to get 0xffffffff, and thus give the value -0xffffffff as the result. -

- -

In particular, the following code for packing a byte array into an int is badly wrong:

-
-int result = 0;
-for(int i = 0; i < 4; i++) 
-  result = ((result << 8) | b[i]);
-
- -

The following idiom will work instead:

-
-int result = 0;
-for(int i = 0; i < 4; i++) 
-  result = ((result << 8) | (b[i] & 0xff));
-
\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_SIGNED_CHECK.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_SIGNED_CHECK.html deleted file mode 100644 index dc449e34..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_SIGNED_CHECK.html +++ /dev/null @@ -1,15 +0,0 @@ -

This method compares an expression such as -

((event.detail & SWT.SELECTED) > 0)
. -Using bit arithmetic and then comparing with the greater than operator can -lead to unexpected results (of course depending on the value of -SWT.SELECTED). If SWT.SELECTED is a negative number, this is a candidate -for a bug. Even when SWT.SELECTED is not negative, it seems good practice -to use '!= 0' instead of '> 0'. -

-

-Boris Bokowski -

- -

-This rule is deprecated, use {rule:squid:S2583} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_SIGNED_CHECK_HIGH_BIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_SIGNED_CHECK_HIGH_BIT.html deleted file mode 100644 index dc449e34..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BIT_SIGNED_CHECK_HIGH_BIT.html +++ /dev/null @@ -1,15 +0,0 @@ -

This method compares an expression such as -

((event.detail & SWT.SELECTED) > 0)
. -Using bit arithmetic and then comparing with the greater than operator can -lead to unexpected results (of course depending on the value of -SWT.SELECTED). If SWT.SELECTED is a negative number, this is a candidate -for a bug. Even when SWT.SELECTED is not negative, it seems good practice -to use '!= 0' instead of '> 0'. -

-

-Boris Bokowski -

- -

-This rule is deprecated, use {rule:squid:S2583} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BOA_BADLY_OVERRIDDEN_ADAPTER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BOA_BADLY_OVERRIDDEN_ADAPTER.html deleted file mode 100644 index 32371205..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BOA_BADLY_OVERRIDDEN_ADAPTER.html +++ /dev/null @@ -1,3 +0,0 @@ -

This method overrides a method found in a parent class, where that class is an Adapter that implements -a listener defined in the java.awt.event or javax.swing.event package. As a result, this method will not -get called when the event occurs.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BSHIFT_WRONG_ADD_PRIORITY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BSHIFT_WRONG_ADD_PRIORITY.html deleted file mode 100644 index d32df768..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BSHIFT_WRONG_ADD_PRIORITY.html +++ /dev/null @@ -1,5 +0,0 @@ -

The code performs an operation like (x << 8 + y). Although this might be correct, probably it was meant to perform (x << 8) + y, but shift operation has a lower precedence, so it's actually parsed as x << (8 + y).

- -

-This rule is deprecated, use {rule:squid:S864} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_BOXING_IMMEDIATELY_UNBOXED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_BOXING_IMMEDIATELY_UNBOXED.html deleted file mode 100644 index ad73fe26..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_BOXING_IMMEDIATELY_UNBOXED.html +++ /dev/null @@ -1,8 +0,0 @@ -

A primitive is boxed, and then immediately unboxed. This probably is due to a manual - boxing in a place where an unboxed value is required, thus forcing the compiler -to immediately undo the work of the boxing. -

- -

-This rule is deprecated, use {rule:squid:S2153} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION.html deleted file mode 100644 index affd33be..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION.html +++ /dev/null @@ -1,6 +0,0 @@ -

A primitive boxed value constructed and then immediately converted into a different primitive type -(e.g., new Double(d).intValue()). Just perform direct primitive coercion (e.g., (int) d).

- -

-This rule is deprecated, use {rule:squid:S2153} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR.html deleted file mode 100644 index 26d56b15..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR.html +++ /dev/null @@ -1,12 +0,0 @@ -

A wrapped primitive value is unboxed and converted to another primitive type as part of the -evaluation of a conditional ternary operator (the b ? e1 : e2 operator). The -semantics of Java mandate that if e1 and e2 are wrapped -numeric values, the values are unboxed and converted/coerced to their common type (e.g, -if e1 is of type Integer -and e2 is of type Float, then e1 is unboxed, -converted to a floating point value, and boxed. See JLS Section 15.25. -

- -

-This rule is deprecated, use {rule:squid:S2154} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_UNBOXING_IMMEDIATELY_REBOXED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_UNBOXING_IMMEDIATELY_REBOXED.html deleted file mode 100644 index d700d464..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/BX_UNBOXING_IMMEDIATELY_REBOXED.html +++ /dev/null @@ -1,5 +0,0 @@ -

A boxed value is unboxed and then immediately reboxed.

- -

-This rule is deprecated, use {rule:squid:S2153} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CD_CIRCULAR_DEPENDENCY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CD_CIRCULAR_DEPENDENCY.html deleted file mode 100644 index 197f8f5d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CD_CIRCULAR_DEPENDENCY.html +++ /dev/null @@ -1,9 +0,0 @@ -

- This class has a circular dependency with other classes. This makes building these classes - difficult, as each is dependent on the other to build correctly. Consider using interfaces - to break the hard dependency. -

- -

-This rule is deprecated, use {rule:squid:CycleBetweenPackages} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CI_CONFUSED_INHERITANCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CI_CONFUSED_INHERITANCE.html deleted file mode 100644 index fd40be90..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CI_CONFUSED_INHERITANCE.html +++ /dev/null @@ -1,10 +0,0 @@ -

- This class is declared to be final, but declares fields to be protected. Since the class - is final, it can not be derived from, and the use of protected is confusing. The access - modifier for the field should be changed to private or public to represent the true - use for the field. -

- -

-This rule is deprecated, use {rule:squid:S2156} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CNT_ROUGH_CONSTANT_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CNT_ROUGH_CONSTANT_VALUE.html deleted file mode 100644 index 33c68b28..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CNT_ROUGH_CONSTANT_VALUE.html +++ /dev/null @@ -1 +0,0 @@ -

It's recommended to use the predefined library constant for code clarity and better precision.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IDIOM.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IDIOM.html deleted file mode 100644 index eec12ede..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IDIOM.html +++ /dev/null @@ -1,7 +0,0 @@ -

- Class implements Cloneable but does not define or - use the clone method.

- -

-This rule is deprecated, use {rule:squid:S2157} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IDIOM_NO_SUPER_CALL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IDIOM_NO_SUPER_CALL.html deleted file mode 100644 index de131e59..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IDIOM_NO_SUPER_CALL.html +++ /dev/null @@ -1,12 +0,0 @@ -

This non-final class defines a clone() method that does not call super.clone(). -If this class ("A") is extended by a subclass ("B"), -and the subclass B calls super.clone(), then it is likely that -B's clone() method will return an object of type A, -which violates the standard contract for clone().

- -

If all clone() methods call super.clone(), then they are guaranteed -to use Object.clone(), which always returns an object of the correct type.

- -

-This rule is deprecated, use {rule:squid:S1182} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE.html deleted file mode 100644 index 612db61d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE.html +++ /dev/null @@ -1,8 +0,0 @@ -

This class defines a clone() method but the class doesn't implement Cloneable. -There are some situations in which this is OK (e.g., you want to control how subclasses -can clone themselves), but just make sure that this is what you intended. -

- -

-This rule is deprecated, use {rule:squid:S1182} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_ABSTRACT_SELF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_ABSTRACT_SELF.html deleted file mode 100644 index 386f0071..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_ABSTRACT_SELF.html +++ /dev/null @@ -1,4 +0,0 @@ -

This class defines a covariant version of compareTo().  - To correctly override the compareTo() method in the - Comparable interface, the parameter of compareTo() - must have type java.lang.Object.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_COMPARETO_INCORRECT_FLOATING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_COMPARETO_INCORRECT_FLOATING.html deleted file mode 100644 index 551a7581..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_COMPARETO_INCORRECT_FLOATING.html +++ /dev/null @@ -1,5 +0,0 @@ -

This method compares double or float values using pattern like this: val1 > val2 ? 1 : val1 < val2 ? -1 : 0. This pattern works incorrectly for -0.0 and NaN values which may result in incorrect sorting result or broken collection (if compared values are used as keys). Consider using Double.compare or Float.compare static methods which handle all the special cases correctly.

- -

-This rule is deprecated, use {rule:squid:S1244} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_COMPARETO_RESULTS_MIN_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_COMPARETO_RESULTS_MIN_VALUE.html deleted file mode 100644 index 9234aec9..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_COMPARETO_RESULTS_MIN_VALUE.html +++ /dev/null @@ -1,9 +0,0 @@ -

In some situation, this compareTo or compare method returns the constant Integer.MIN_VALUE, -which is an exceptionally bad practice. The only thing that matters about the return value of -compareTo is the sign of the result. But people will sometimes negate the return value of compareTo, -expecting that this will negate the sign of the result. And it will, except in the case where -the value returned is Integer.MIN_VALUE. So just return -1 rather than Integer.MIN_VALUE.

- -

-This rule is deprecated, use {rule:squid:S2167} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_SELF_NO_OBJECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_SELF_NO_OBJECT.html deleted file mode 100644 index 386f0071..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/CO_SELF_NO_OBJECT.html +++ /dev/null @@ -1,4 +0,0 @@ -

This class defines a covariant version of compareTo().  - To correctly override the compareTo() method in the - Comparable interface, the parameter of compareTo() - must have type java.lang.Object.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DB_DUPLICATE_BRANCHES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DB_DUPLICATE_BRANCHES.html deleted file mode 100644 index c1770832..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DB_DUPLICATE_BRANCHES.html +++ /dev/null @@ -1,8 +0,0 @@ -

- This method uses the same code to implement two branches of a conditional branch. - Check to ensure that this isn't a coding mistake. -

- -

-This rule is deprecated, use {rule:squid:S1871} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DB_DUPLICATE_SWITCH_CLAUSES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DB_DUPLICATE_SWITCH_CLAUSES.html deleted file mode 100644 index bcc67e5b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DB_DUPLICATE_SWITCH_CLAUSES.html +++ /dev/null @@ -1,9 +0,0 @@ -

- This method uses the same code to implement two clauses of a switch statement. - This could be a case of duplicate code, but it might also indicate - a coding mistake. -

- -

-This rule is deprecated, use {rule:squid:S1871} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DC_DOUBLECHECK.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DC_DOUBLECHECK.html deleted file mode 100644 index 6c391301..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DC_DOUBLECHECK.html +++ /dev/null @@ -1,5 +0,0 @@ -

This method may contain an instance of double-checked locking.  - This idiom is not correct according to the semantics of the Java memory - model.  For more information, see the web page - http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DC_PARTIALLY_CONSTRUCTED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DC_PARTIALLY_CONSTRUCTED.html deleted file mode 100644 index c3e535d7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DC_PARTIALLY_CONSTRUCTED.html +++ /dev/null @@ -1,3 +0,0 @@ -

Looks like this method uses lazy field initialization with double-checked locking. While the field is correctly declared as volatile, it's possible that the internal structure of the object is changed after the field assignment, thus another thread may see the partially initialized object.

- -

To fix this problem consider storing the object into the local variable first and save it to the volatile field only after it's fully constructed.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DE_MIGHT_DROP.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DE_MIGHT_DROP.html deleted file mode 100644 index f1cf6176..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DE_MIGHT_DROP.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method might drop an exception.  In general, exceptions - should be handled or reported in some way, or they should be thrown - out of the method.

- -

-This rule is deprecated, use {rule:squid:S00108} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DE_MIGHT_IGNORE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DE_MIGHT_IGNORE.html deleted file mode 100644 index f8595697..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DE_MIGHT_IGNORE.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method might ignore an exception.  In general, exceptions - should be handled or reported in some way, or they should be thrown - out of the method.

- -

-This rule is deprecated, use {rule:squid:S00108} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_INCREMENT_IN_RETURN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_INCREMENT_IN_RETURN.html deleted file mode 100644 index 410cf9fd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_INCREMENT_IN_RETURN.html +++ /dev/null @@ -1,10 +0,0 @@ -

-This statement has a return such as return x++;. -A postfix increment/decrement does not impact the value of the expression, -so this increment/decrement has no effect. -Please verify that this statement does the right thing. -

- -

-This rule is deprecated, use {rule:squid:S2123} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE.html deleted file mode 100644 index e001b1c1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE.html +++ /dev/null @@ -1,15 +0,0 @@ -

-This instruction assigns a value to a local variable, -but the value is not read or used in any subsequent instruction. -Often, this indicates an error, because the value computed is never -used. -

-

-Note that Sun's javac compiler often generates dead stores for -final local variables. Because FindBugs is a bytecode-based tool, -there is no easy way to eliminate these false positives. -

- -

-This rule is deprecated, use {rule:squid:S1481} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_IN_RETURN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_IN_RETURN.html deleted file mode 100644 index afd2af02..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_IN_RETURN.html +++ /dev/null @@ -1,8 +0,0 @@ -

-This statement assigns to a local variable in a return statement. This assignment -has effect. Please verify that this statement does the right thing. -

- -

-This rule is deprecated, use {rule:squid:AssignmentInSubExpressionCheck} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_OF_NULL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_OF_NULL.html deleted file mode 100644 index 82d4ebb5..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_OF_NULL.html +++ /dev/null @@ -1,4 +0,0 @@ -

The code stores null into a local variable, and the stored value is not -read. This store may have been introduced to assist the garbage collector, but -as of Java SE 6.0, this is no longer needed or useful. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD.html deleted file mode 100644 index f1f27912..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD.html +++ /dev/null @@ -1,4 +0,0 @@ -

This instruction assigns a value to a local variable, but the value is not read or used in -any subsequent instruction. Often, this indicates an error, because the value computed is never -used. There is a field with the same name as the local variable. Did you mean to assign to that -variable instead?

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_STORE_OF_CLASS_LITERAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_STORE_OF_CLASS_LITERAL.html deleted file mode 100644 index a241ead3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_DEAD_STORE_OF_CLASS_LITERAL.html +++ /dev/null @@ -1,10 +0,0 @@ -

-This instruction assigns a class literal to a variable and then never uses it. -The behavior of this differs in Java 1.4 and in Java 5. -In Java 1.4 and earlier, a reference to Foo.class would force the static initializer -for Foo to be executed, if it has not been executed already. -In Java 5 and later, it does not. -

-

See Sun's article on Java SE compatibility -for more details and examples, and suggestions on how to force class initialization in Java 5. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_OVERWRITTEN_INCREMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_OVERWRITTEN_INCREMENT.html deleted file mode 100644 index efe72edf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DLS_OVERWRITTEN_INCREMENT.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The code performs an increment operation (e.g., i++) and then -immediately overwrites it. For example, i = i++ immediately -overwrites the incremented value with the original value. -

- -

-This rule is deprecated, use {rule:squid:S2123} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_BOOLEAN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_BOOLEAN.html deleted file mode 100644 index 59399233..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_BOOLEAN.html +++ /dev/null @@ -1,19 +0,0 @@ -

The code synchronizes on a boxed primitive constant, such as an Boolean. -

-private static Boolean inited = Boolean.FALSE;
-...
-  synchronized(inited) { 
-    if (!inited) {
-       init();
-       inited = Boolean.TRUE;
-       }
-     }
-...
-
-

-

Since there normally exist only two Boolean objects, this code could be synchronizing on the same object as other, unrelated code, leading to unresponsiveness -and possible deadlock

- -

-This rule is deprecated, use {rule:squid:S1860} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE.html deleted file mode 100644 index 3c53ae88..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE.html +++ /dev/null @@ -1,17 +0,0 @@ -

The code synchronizes on a boxed primitive constant, such as an Integer. -

-private static Integer count = 0;
-...
-  synchronized(count) { 
-     count++;
-     }
-...
-
-

-

Since Integer objects can be cached and shared, -this code could be synchronizing on the same object as other, unrelated code, leading to unresponsiveness -and possible deadlock

- -

-This rule is deprecated, use {rule:squid:S1860} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_SHARED_CONSTANT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_SHARED_CONSTANT.html deleted file mode 100644 index 0fb21742..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_SHARED_CONSTANT.html +++ /dev/null @@ -1,16 +0,0 @@ -

The code synchronizes on interned String. -

-private static String LOCK = "LOCK";
-...
-  synchronized(LOCK) { ...}
-...
-
-

-

Constant Strings are interned and shared across all other classes loaded by the JVM. Thus, this could -is locking on something that other code might also be locking. This could result in very strange and hard to diagnose -blocking and deadlock behavior. See http://www.javalobby.org/java/forums/t96352.html and http://jira.codehaus.org/browse/JETTY-352. -

- -

-This rule is deprecated, use {rule:squid:S1860} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE.html deleted file mode 100644 index 0fe6e6b8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE.html +++ /dev/null @@ -1,24 +0,0 @@ -

The code synchronizes on an apparently unshared boxed primitive, -such as an Integer. -

-private static final Integer fileLock = new Integer(1);
-...
-  synchronized(fileLock) { 
-     .. do something ..
-     }
-...
-
-

-

It would be much better, in this code, to redeclare fileLock as -

-private static final Object fileLock = new Object();
-
-The existing code might be OK, but it is confusing and a -future refactoring, such as the "Remove Boxing" refactoring in IntelliJ, -might replace this with the use of an interned Integer object shared -throughout the JVM, leading to very confusing behavior and potential deadlock. -

- -

-This rule is deprecated, use {rule:squid:S1860} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION.html deleted file mode 100644 index de674d46..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION.html +++ /dev/null @@ -1,7 +0,0 @@ -

Unless an annotation has itself been annotated with @Retention(RetentionPolicy.RUNTIME), the annotation can't be observed using reflection -(e.g., by using the isAnnotationPresent method). - .

- -

-This rule is deprecated, use {rule:squid:S2109} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ARGUMENTS_WRONG_ORDER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ARGUMENTS_WRONG_ORDER.html deleted file mode 100644 index ccad0255..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ARGUMENTS_WRONG_ORDER.html +++ /dev/null @@ -1,3 +0,0 @@ -

The arguments to this method call seem to be in the wrong order. For example, a call -Preconditions.checkNotNull("message", message) has reserved arguments: the value -to be checked is the first argument.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BAD_MONTH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BAD_MONTH.html deleted file mode 100644 index 29a805d4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BAD_MONTH.html +++ /dev/null @@ -1,8 +0,0 @@ -

-This code passes a constant month -value outside the expected range of 0..11 to a method. -

- -

-This rule is deprecated, use {rule:squid:S2110} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE.html deleted file mode 100644 index a774b658..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE.html +++ /dev/null @@ -1,9 +0,0 @@ -

This code creates a BigDecimal from a double value that doesn't translate well to a decimal number. For example, -one might assume that writing new BigDecimal(0.1) in Java creates a BigDecimal which is exactly equal to 0.1 -(an unscaled value of 1, with a scale of 1), but it is actually equal to 0.1000000000000000055511151231257827021181583404541015625. -You probably want to use the BigDecimal.valueOf(double d) method, which uses the String representation of the double to -create the BigDecimal (e.g., BigDecimal.valueOf(0.1) gives 0.1).

- -

-This rule is deprecated, use {rule:squid:S2111} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BLOCKING_METHODS_ON_URL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BLOCKING_METHODS_ON_URL.html deleted file mode 100644 index 520b5367..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_BLOCKING_METHODS_ON_URL.html +++ /dev/null @@ -1,9 +0,0 @@ -

The equals and hashCode -method of URL perform domain name resolution, this can result in a big performance hit. -See http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html for more information. -Consider using java.net.URI instead. -

- -

-This rule is deprecated, use {rule:squid:S2112} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_CALLING_NEXT_FROM_HASNEXT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_CALLING_NEXT_FROM_HASNEXT.html deleted file mode 100644 index 79675912..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_CALLING_NEXT_FROM_HASNEXT.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The hasNext() method invokes the next() method. This is almost certainly wrong, -since the hasNext() method is not supposed to change the state of the iterator, -and the next method is supposed to change the state of the iterator. -

- -

-This rule is deprecated, use {rule:squid:S1849} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES.html deleted file mode 100644 index f87ee7a4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES.html +++ /dev/null @@ -1,9 +0,0 @@ -

This call to a generic collection's method would only make sense if a collection contained -itself (e.g., if s.contains(s) were true). This is unlikely to be true and would cause -problems if it were true (such as the computation of the hash code resulting in infinite recursion). -It is likely that the wrong value is being passed as a parameter. -

- -

-This rule is deprecated, use {rule:squid:S2114} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_COLLECTION_OF_URLS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_COLLECTION_OF_URLS.html deleted file mode 100644 index 3378e69b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_COLLECTION_OF_URLS.html +++ /dev/null @@ -1,9 +0,0 @@ -

This method or field is or uses a Map or Set of URLs. Since both the equals and hashCode -method of URL perform domain name resolution, this can result in a big performance hit. -See http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html for more information. -Consider using java.net.URI instead. -

- -

-This rule is deprecated, use {rule:squid:S2112} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_CONSTANT_DB_PASSWORD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_CONSTANT_DB_PASSWORD.html deleted file mode 100644 index db6a3e9d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_CONSTANT_DB_PASSWORD.html +++ /dev/null @@ -1,7 +0,0 @@ -

This code creates a database connect using a hardcoded, constant password. Anyone with access to either the source code or the compiled code can - easily learn the password. -

- -

-This rule is deprecated, use {rule:squid:S2068} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_DOH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_DOH.html deleted file mode 100644 index a71cb32d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_DOH.html +++ /dev/null @@ -1 +0,0 @@ -

This partical method invocation doesn't make sense, for reasons that should be apparent from inspection.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_EMPTY_DB_PASSWORD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_EMPTY_DB_PASSWORD.html deleted file mode 100644 index e8785d9c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_EMPTY_DB_PASSWORD.html +++ /dev/null @@ -1,2 +0,0 @@ -

This code creates a database connect using a blank or empty password. This indicates that the database is not protected by a password. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS.html deleted file mode 100644 index cc4e393d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS.html +++ /dev/null @@ -1,5 +0,0 @@ -

The entrySet() method is allowed to return a view of the underlying Map in which a single Entry - object is reused and returned during the iteration. As of Java 1.6, both IdentityHashMap and EnumMap - did so. When iterating through such a Map, the Entry value is only valid until you advance to the - next iteration. If, for example, you try to pass such an entrySet to an addAll method, things will - go badly wrong.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR.html deleted file mode 100644 index 6ccfd79b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR.html +++ /dev/null @@ -1,3 +0,0 @@ -

(Javadoc) -While ScheduledThreadPoolExecutor inherits from ThreadPoolExecutor, a few of the inherited tuning methods are not useful for it. In particular, because it acts as a fixed-sized pool using corePoolSize threads and an unbounded queue, adjustments to maximumPoolSize have no useful effect. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_HARDCODED_ABSOLUTE_FILENAME.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_HARDCODED_ABSOLUTE_FILENAME.html deleted file mode 100644 index 93e22911..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_HARDCODED_ABSOLUTE_FILENAME.html +++ /dev/null @@ -1,3 +0,0 @@ -

This code constructs a File object using a hard coded to an absolute pathname -(e.g., new File("/home/dannyc/workspace/j2ee/src/share/com/sun/enterprise/deployment"); -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_HASHCODE_ON_ARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_HASHCODE_ON_ARRAY.html deleted file mode 100644 index 7bcbd784..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_HASHCODE_ON_ARRAY.html +++ /dev/null @@ -1,12 +0,0 @@ -

-The code invokes hashCode on an array. Calling hashCode on -an array returns the same value as System.identityHashCode, and ingores -the contents and length of the array. If you need a hashCode that -depends on the contents of an array a, -use java.util.Arrays.hashCode(a). - -

- -

-This rule is deprecated, use {rule:squid:S2116} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY.html deleted file mode 100644 index 8d4c3047..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The code invokes toString on an (anonymous) array. Calling toString on an array generates a fairly useless result -such as [C@16f0472. Consider using Arrays.toString to convert the array into a readable -String that gives the contents of the array. See Programming Puzzlers, chapter 3, puzzle 12. -

- -

-This rule is deprecated, use {rule:squid:S2116} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_TOSTRING_ON_ARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_TOSTRING_ON_ARRAY.html deleted file mode 100644 index 96a96613..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_INVOKING_TOSTRING_ON_ARRAY.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The code invokes toString on an array, which will generate a fairly useless result -such as [C@16f0472. Consider using Arrays.toString to convert the array into a readable -String that gives the contents of the array. See Programming Puzzlers, chapter 3, puzzle 12. -

- -

-This rule is deprecated, use {rule:squid:S2116} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT.html deleted file mode 100644 index 18fc2a88..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT.html +++ /dev/null @@ -1,8 +0,0 @@ -

The Double.longBitsToDouble method is invoked, but a 32 bit int value is passed - as an argument. This almostly certainly is not intended and is unlikely - to give the intended result. -

- -

-This rule is deprecated, use {rule:squid:S2127} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_NONSERIALIZABLE_OBJECT_WRITTEN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_NONSERIALIZABLE_OBJECT_WRITTEN.html deleted file mode 100644 index 69095575..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_NONSERIALIZABLE_OBJECT_WRITTEN.html +++ /dev/null @@ -1,8 +0,0 @@ -

-This code seems to be passing a non-serializable object to the ObjectOutput.writeObject method. -If the object is, indeed, non-serializable, an error will result. -

- -

-This rule is deprecated, use {rule:squid:S2118} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_RANDOM_USED_ONLY_ONCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_RANDOM_USED_ONLY_ONCE.html deleted file mode 100644 index dd5cff1c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_RANDOM_USED_ONLY_ONCE.html +++ /dev/null @@ -1,10 +0,0 @@ -

This code creates a java.util.Random object, uses it to generate one random number, and then discards -the Random object. This produces mediocre quality random numbers and is inefficient. -If possible, rewrite the code so that the Random object is created once and saved, and each time a new random number -is required invoke a method on the existing Random object to obtain it. -

- -

If it is important that the generated Random numbers not be guessable, you must not create a new Random for each random -number; the values are too easily guessable. You should strongly consider using a java.security.SecureRandom instead -(and avoid allocating a new SecureRandom for each random number needed). -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS.html deleted file mode 100644 index 176563d9..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS.html +++ /dev/null @@ -1,7 +0,0 @@ -

(Javadoc) -A ScheduledThreadPoolExecutor with zero core threads will never execute anything; changes to the max pool size are ignored. -

- -

-This rule is deprecated, use {rule:squid:S2122} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED.html deleted file mode 100644 index 80b7b09d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED.html +++ /dev/null @@ -1,8 +0,0 @@ -

A Thread object is passed as a parameter to a method where -a Runnable is expected. This is rather unusual, and may indicate a logic error -or cause unexpected behavior. -

- -

-This rule is deprecated, use {rule:squid:S2438} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_UNSUPPORTED_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_UNSUPPORTED_METHOD.html deleted file mode 100644 index 302fb4fe..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_UNSUPPORTED_METHOD.html +++ /dev/null @@ -1,2 +0,0 @@ -

All targets of this method invocation throw an UnsupportedOperationException. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_USELESS_SUBSTRING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_USELESS_SUBSTRING.html deleted file mode 100644 index 09f88e9d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_USELESS_SUBSTRING.html +++ /dev/null @@ -1,3 +0,0 @@ -

-This code invokes substring(0) on a String, which returns the original value. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION.html deleted file mode 100644 index 0ffe3796..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION.html +++ /dev/null @@ -1,7 +0,0 @@ -

If you want to remove all elements from a collection c, use c.clear, -not c.removeAll(c). -

- -

-This rule is deprecated, use {rule:squid:S2114} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_VACUOUS_SELF_COLLECTION_CALL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_VACUOUS_SELF_COLLECTION_CALL.html deleted file mode 100644 index f1be5a96..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DMI_VACUOUS_SELF_COLLECTION_CALL.html +++ /dev/null @@ -1,7 +0,0 @@ -

This call doesn't make sense. For any collection c, calling c.containsAll(c) should -always be true, and c.retainAll(c) should have no effect. -

- -

-This rule is deprecated, use {rule:squid:S2114} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOOLEAN_CTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOOLEAN_CTOR.html deleted file mode 100644 index 2813bd95..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOOLEAN_CTOR.html +++ /dev/null @@ -1,4 +0,0 @@ -

Creating new instances of java.lang.Boolean wastes - memory, since Boolean objects are immutable and there are - only two useful values of this type.  Use the Boolean.valueOf() - method (or Java 1.5 autoboxing) to create Boolean objects instead.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_FOR_COMPARE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_FOR_COMPARE.html deleted file mode 100644 index d75d1b26..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_FOR_COMPARE.html +++ /dev/null @@ -1,5 +0,0 @@ -

A boxed primitive is created just to call compareTo method. It's more efficient to use static compare method (for double and float since Java 1.4, for other primitive types since Java 1.7) which works on primitives directly.

- -

-This rule is deprecated, use {rule:squid:S1158} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_FOR_PARSING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_FOR_PARSING.html deleted file mode 100644 index 38fa7cd3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_FOR_PARSING.html +++ /dev/null @@ -1,8 +0,0 @@ -

-A boxed primitive is created from a String, just to extract the unboxed primitive value. -It is more efficient to just call the static parseXXX method. -

- -

-This rule is deprecated, use {rule:squid:S2130} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_TOSTRING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_TOSTRING.html deleted file mode 100644 index c07c5cac..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_BOXED_PRIMITIVE_TOSTRING.html +++ /dev/null @@ -1,16 +0,0 @@ -

A boxed primitive is allocated just to call toString(). It is more effective to just use the static - form of toString which takes the primitive value. So,

- - - - - - - - - -
Replace...With this...
new Integer(1).toString()Integer.toString(1)
new Long(1).toString()Long.toString(1)
new Float(1.0).toString()Float.toString(1.0)
new Double(1.0).toString()Double.toString(1.0)
new Byte(1).toString()Byte.toString(1)
new Short(1).toString()Short.toString(1)
new Boolean(true).toString()Boolean.toString(true)
- -

-This rule is deprecated, use {rule:squid:S2131} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_CONVERT_CASE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_CONVERT_CASE.html deleted file mode 100644 index 4cf96aba..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_CONVERT_CASE.html +++ /dev/null @@ -1,4 +0,0 @@ -

A String is being converted to upper or lowercase, using the platform's default encoding. This may - result in improper conversions when used with international characters. Use the

-
String.toUpperCase( Locale l )
String.toLowerCase( Locale l )
-

versions instead.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_DEFAULT_ENCODING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_DEFAULT_ENCODING.html deleted file mode 100644 index d46c176d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_DEFAULT_ENCODING.html +++ /dev/null @@ -1,8 +0,0 @@ -

Found a call to a method which will perform a byte to String (or String to byte) conversion, -and will assume that the default platform encoding is suitable. This will cause the application -behaviour to vary between platforms. Use an alternative API and specify a charset name or -Charset object explicitly.

- -

-This rule is deprecated, use {rule:squid:S1943} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_EXIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_EXIT.html deleted file mode 100644 index 54e91c20..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_EXIT.html +++ /dev/null @@ -1,8 +0,0 @@ -

Invoking System.exit shuts down the entire Java virtual machine. This - should only been done when it is appropriate. Such calls make it - hard or impossible for your code to be invoked by other code. - Consider throwing a RuntimeException instead.

- -

-This rule is deprecated, use {rule:squid:S1147} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_FP_NUMBER_CTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_FP_NUMBER_CTOR.html deleted file mode 100644 index 55fcaa4a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_FP_NUMBER_CTOR.html +++ /dev/null @@ -1,9 +0,0 @@ -

- Using new Double(double) is guaranteed to always result in a new object whereas - Double.valueOf(double) allows caching of values to be done by the compiler, class library, or JVM. - Using of cached values avoids object allocation and the code will be faster. -

-

- Unless the class must be compatible with JVMs predating Java 1.5, - use either autoboxing or the valueOf() method when creating instances of Double and Float. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_GC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_GC.html deleted file mode 100644 index a7c4d856..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_GC.html +++ /dev/null @@ -1,11 +0,0 @@ -

Code explicitly invokes garbage collection. - Except for specific use in benchmarking, this is very dubious.

-

In the past, situations where people have explicitly invoked - the garbage collector in routines such as close or finalize methods - has led to huge performance black holes. Garbage collection - can be expensive. Any situation that forces hundreds or thousands - of garbage collections will bring the machine to a crawl.

- -

-This rule is deprecated, use {rule:squid:S1215} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_INVALID_MIN_MAX.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_INVALID_MIN_MAX.html deleted file mode 100644 index f948ed99..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_INVALID_MIN_MAX.html +++ /dev/null @@ -1 +0,0 @@ -

This code tries to limit the value bounds using the construct like Math.min(0, Math.max(100, value)). However the order of the constants is incorrect: it should be Math.min(100, Math.max(0, value)). As the result this code always produces the same result (or NaN if the value is NaN).

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_MONITOR_WAIT_ON_CONDITION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_MONITOR_WAIT_ON_CONDITION.html deleted file mode 100644 index 70f08cf2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_MONITOR_WAIT_ON_CONDITION.html +++ /dev/null @@ -1,10 +0,0 @@ -

- This method calls wait() on a - java.util.concurrent.locks.Condition object.  - Waiting for a Condition should be done using one of the await() - methods defined by the Condition interface. -

- -

-This rule is deprecated, use {rule:squid:S1844} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NEW_FOR_GETCLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NEW_FOR_GETCLASS.html deleted file mode 100644 index ef5190ff..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NEW_FOR_GETCLASS.html +++ /dev/null @@ -1,6 +0,0 @@ -

This method allocates an object just to call getClass() on it, in order to - retrieve the Class object for it. It is simpler to just access the .class property of the class.

- -

-This rule is deprecated, use {rule:squid:S2133} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NEXTINT_VIA_NEXTDOUBLE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NEXTINT_VIA_NEXTDOUBLE.html deleted file mode 100644 index 102ce3ce..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NEXTINT_VIA_NEXTDOUBLE.html +++ /dev/null @@ -1,3 +0,0 @@ -

If r is a java.util.Random, you can generate a random number from 0 to n-1 -using r.nextInt(n), rather than using (int)(r.nextDouble() * n). -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NUMBER_CTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NUMBER_CTOR.html deleted file mode 100644 index cdcfcc68..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_NUMBER_CTOR.html +++ /dev/null @@ -1,15 +0,0 @@ -

- Using new Integer(int) is guaranteed to always result in a new object whereas - Integer.valueOf(int) allows caching of values to be done by the compiler, class library, or JVM. - Using of cached values avoids object allocation and the code will be faster. -

-

- Values between -128 and 127 are guaranteed to have corresponding cached instances - and using valueOf is approximately 3.5 times faster than using constructor. - For values outside the constant range the performance of both styles is the same. -

-

- Unless the class must be compatible with JVMs predating Java 1.5, - use either autoboxing or the valueOf() method when creating instances of - Long, Integer, Short, Character, and Byte. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_RUN_FINALIZERS_ON_EXIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_RUN_FINALIZERS_ON_EXIT.html deleted file mode 100644 index 0f571594..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_RUN_FINALIZERS_ON_EXIT.html +++ /dev/null @@ -1,7 +0,0 @@ -

Never call System.runFinalizersOnExit -or Runtime.runFinalizersOnExit for any reason: they are among the most -dangerous methods in the Java libraries. -- Joshua Bloch

- -

-This rule is deprecated, use {rule:squid:S2151} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_CTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_CTOR.html deleted file mode 100644 index a29e60a9..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_CTOR.html +++ /dev/null @@ -1,4 +0,0 @@ -

Using the java.lang.String(String) constructor wastes memory - because the object so constructed will be functionally indistinguishable - from the String passed as a parameter.  Just use the - argument String directly.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_TOSTRING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_TOSTRING.html deleted file mode 100644 index 76166dc1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_TOSTRING.html +++ /dev/null @@ -1,6 +0,0 @@ -

Calling String.toString() is just a redundant operation. - Just use the String.

- -

-This rule is deprecated, use {rule:squid:S1858} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_VOID_CTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_VOID_CTOR.html deleted file mode 100644 index 8ea1c1b5..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_STRING_VOID_CTOR.html +++ /dev/null @@ -1,6 +0,0 @@ -

Creating a new java.lang.String object using the - no-argument constructor wastes memory because the object so created will - be functionally indistinguishable from the empty string constant - "".  Java guarantees that identical string constants - will be represented by the same String object.  Therefore, - you should just use the empty string constant directly.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_USELESS_THREAD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_USELESS_THREAD.html deleted file mode 100644 index 14981cfa..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DM_USELESS_THREAD.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method creates a thread without specifying a run method either by deriving from the Thread class, or - by passing a Runnable object. This thread, then, does nothing but waste time. -

- -

-This rule is deprecated, use {rule:squid:S2134} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED.html deleted file mode 100644 index 1e341aa0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED.html +++ /dev/null @@ -1,3 +0,0 @@ -

This code creates a classloader, which requires a security manager. - If this code will be granted security permissions, but might be invoked by code that does not - have security permissions, then the classloader creation needs to occur inside a doPrivileged block.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DP_DO_INSIDE_DO_PRIVILEGED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DP_DO_INSIDE_DO_PRIVILEGED.html deleted file mode 100644 index 3e6f5530..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/DP_DO_INSIDE_DO_PRIVILEGED.html +++ /dev/null @@ -1,3 +0,0 @@ -

This code invokes a method that requires a security permission check. - If this code will be granted security permissions, but might be invoked by code that does not - have security permissions, then the invocation needs to occur inside a doPrivileged block.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_ARRAY_AND_NONARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_ARRAY_AND_NONARRAY.html deleted file mode 100644 index 80148704..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_ARRAY_AND_NONARRAY.html +++ /dev/null @@ -1,12 +0,0 @@ -

-This method invokes the .equals(Object o) to compare an array and a reference that doesn't seem -to be an array. If things being compared are of different types, they are guaranteed to be unequal -and the comparison is almost certainly an error. Even if they are both arrays, the equals method -on arrays only determines of the two arrays are the same object. -To compare the -contents of the arrays, use java.util.Arrays.equals(Object[], Object[]). -

- -

-This rule is deprecated, use {rule:squid:S2159} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_BAD_ARRAY_COMPARE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_BAD_ARRAY_COMPARE.html deleted file mode 100644 index 0e196941..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_BAD_ARRAY_COMPARE.html +++ /dev/null @@ -1,9 +0,0 @@ -

-This method invokes the .equals(Object o) method on an array. Since arrays do not override the equals -method of Object, calling equals on an array is the same as comparing their addresses. To compare the -contents of the arrays, use java.util.Arrays.equals(Object[], Object[]). -

- -

-This rule is deprecated, use {rule:squid:S2159} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_INCOMPATIBLE_ARRAY_COMPARE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_INCOMPATIBLE_ARRAY_COMPARE.html deleted file mode 100644 index 2f709fa6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_INCOMPATIBLE_ARRAY_COMPARE.html +++ /dev/null @@ -1,5 +0,0 @@ -This method invokes the .equals(Object o) to compare two arrays, but the arrays of of incompatible types (e.g., String[] and StringBuffer[], or String[] and int[]). They will never be equal. In addition, when equals(...) is used to compare arrays it only checks to see if they are the same array, and ignores the contents of the arrays. - -

-This rule is deprecated, use {rule:squid:S2159} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_NULL_ARG.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_NULL_ARG.html deleted file mode 100644 index 28f33eac..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_NULL_ARG.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method calls equals(Object), passing a null value as -the argument. According to the contract of the equals() method, -this call should always return false.

- -

-This rule is deprecated, use {rule:squid:S2159} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_CLASS_AND_INTERFACE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_CLASS_AND_INTERFACE.html deleted file mode 100644 index d60153a2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_CLASS_AND_INTERFACE.html +++ /dev/null @@ -1,18 +0,0 @@ -

-This method calls equals(Object) on two references, one of which is a class -and the other an interface, where neither the class nor any of its -non-abstract subclasses implement the interface. -Therefore, the objects being compared -are unlikely to be members of the same class at runtime -(unless some application classes were not analyzed, or dynamic class -loading can occur at runtime). -According to the contract of equals(), -objects of different -classes should always compare as unequal; therefore, according to the -contract defined by java.lang.Object.equals(Object), -the result of this comparison will always be false at runtime. -

- -

-This rule is deprecated, use {rule:squid:S2159} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_INTERFACES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_INTERFACES.html deleted file mode 100644 index a013763e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_INTERFACES.html +++ /dev/null @@ -1,17 +0,0 @@ -

This method calls equals(Object) on two references of unrelated -interface types, where neither is a subtype of the other, -and there are no known non-abstract classes which implement both interfaces. -Therefore, the objects being compared -are unlikely to be members of the same class at runtime -(unless some application classes were not analyzed, or dynamic class -loading can occur at runtime). -According to the contract of equals(), -objects of different -classes should always compare as unequal; therefore, according to the -contract defined by java.lang.Object.equals(Object), -the result of this comparison will always be false at runtime. -

- -

-This rule is deprecated, use {rule:squid:S2159} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_TYPES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_TYPES.html deleted file mode 100644 index c6fb7f52..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_TYPES.html +++ /dev/null @@ -1,16 +0,0 @@ -

This method calls equals(Object) on two references of different -class types with no common subclasses. -Therefore, the objects being compared -are unlikely to be members of the same class at runtime -(unless some application classes were not analyzed, or dynamic class -loading can occur at runtime). -According to the contract of equals(), -objects of different -classes should always compare as unequal; therefore, according to the -contract defined by java.lang.Object.equals(Object), -the result of this comparison will always be false at runtime. -

- -

-This rule is deprecated, use {rule:squid:S2159} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_TYPES_USING_POINTER_EQUALITY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_TYPES_USING_POINTER_EQUALITY.html deleted file mode 100644 index e4dee22a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EC_UNRELATED_TYPES_USING_POINTER_EQUALITY.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method uses using pointer equality to compare two references that seem to be of -different types. The result of this comparison will always be false at runtime. -

- -

-This rule is deprecated, use {rule:squid:S1698} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_REP.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_REP.html deleted file mode 100644 index f5f71f65..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_REP.html +++ /dev/null @@ -1,11 +0,0 @@ -

Returning a reference to a mutable object value stored in one of the object's fields - exposes the internal representation of the object.  - If instances - are accessed by untrusted code, and unchecked changes to - the mutable object would compromise security or other - important properties, you will need to do something different. - Returning a new copy of the object is better approach in many situations.

- -

-This rule is deprecated, use {rule:squid:S2384} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_REP2.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_REP2.html deleted file mode 100644 index 1ef83ea3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_REP2.html +++ /dev/null @@ -1,11 +0,0 @@ -

This code stores a reference to an externally mutable object into the - internal representation of the object.  - If instances - are accessed by untrusted code, and unchecked changes to - the mutable object would compromise security or other - important properties, you will need to do something different. - Storing a copy of the object is better approach in many situations.

- -

-This rule is deprecated, use {rule:squid:S2384} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_STATIC_REP2.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_STATIC_REP2.html deleted file mode 100644 index de3825ae..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EI_EXPOSE_STATIC_REP2.html +++ /dev/null @@ -1,10 +0,0 @@ -

This code stores a reference to an externally mutable object into a static - field. - If unchecked changes to - the mutable object would compromise security or other - important properties, you will need to do something different. - Storing a copy of the object is better approach in many situations.

- -

-This rule is deprecated, use {rule:squid:S2384} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ABSTRACT_SELF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ABSTRACT_SELF.html deleted file mode 100644 index a720ff05..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ABSTRACT_SELF.html +++ /dev/null @@ -1,8 +0,0 @@ -

This class defines a covariant version of equals().  - To correctly override the equals() method in - java.lang.Object, the parameter of equals() - must have type java.lang.Object.

- -

-This rule is deprecated, use {rule:squid:S1201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ALWAYS_FALSE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ALWAYS_FALSE.html deleted file mode 100644 index 768dd5cd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ALWAYS_FALSE.html +++ /dev/null @@ -1,8 +0,0 @@ -

This class defines an equals method that always returns false. This means that an object is not equal to itself, and it is impossible to create useful Maps or Sets of this class. More fundamentally, it means -that equals is not reflexive, one of the requirements of the equals method.

-

The likely intended semantics are object identity: that an object is equal to itself. This is the behavior inherited from class Object. If you need to override an equals inherited from a different -superclass, you can use use: -

-public boolean equals(Object o) { return this == o; }
-
-

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ALWAYS_TRUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ALWAYS_TRUE.html deleted file mode 100644 index 01d68b6b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_ALWAYS_TRUE.html +++ /dev/null @@ -1,3 +0,0 @@ -

This class defines an equals method that always returns true. This is imaginative, but not very smart. -Plus, it means that the equals method is not symmetric. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS.html deleted file mode 100644 index 07a249c2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS.html +++ /dev/null @@ -1,21 +0,0 @@ -

This equals method is checking to see if the argument is some incompatible type -(i.e., a class that is neither a supertype nor subtype of the class that defines -the equals method). For example, the Foo class might have an equals method -that looks like: - -

-public boolean equals(Object o) {
-  if (o instanceof Foo)
-    return name.equals(((Foo)o).name);
-  else if (o instanceof String)
-    return name.equals(o);
-  else return false;
-

- -

This is considered bad practice, as it makes it very hard to implement an equals method that -is symmetric and transitive. Without those properties, very unexpected behavoirs are possible. -

- -

-This rule is deprecated, use {rule:squid:S2162} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_COMPARETO_USE_OBJECT_EQUALS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_COMPARETO_USE_OBJECT_EQUALS.html deleted file mode 100644 index a0d19309..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_COMPARETO_USE_OBJECT_EQUALS.html +++ /dev/null @@ -1,19 +0,0 @@ -

This class defines a compareTo(...) method but inherits its - equals() method from java.lang.Object. - Generally, the value of compareTo should return zero if and only if - equals returns true. If this is violated, weird and unpredictable - failures will occur in classes such as PriorityQueue. - In Java 5 the PriorityQueue.remove method uses the compareTo method, - while in Java 6 it uses the equals method. - -

From the JavaDoc for the compareTo method in the Comparable interface: -

-It is strongly recommended, but not strictly required that (x.compareTo(y)==0) == (x.equals(y)). -Generally speaking, any class that implements the Comparable interface and violates this condition -should clearly indicate this fact. The recommended language -is "Note: this class has a natural ordering that is inconsistent with equals." -
- -

-This rule is deprecated, use {rule:squid:S1210} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_COMPARING_CLASS_NAMES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_COMPARING_CLASS_NAMES.html deleted file mode 100644 index 81747fba..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_COMPARING_CLASS_NAMES.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method checks to see if two objects are the same class by checking to see if the names -of their classes are equal. You can have different classes with the same name if they are loaded by -different class loaders. Just check to see if the class objects are the same. -

- -

-This rule is deprecated, use {rule:squid:S1872} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_DOESNT_OVERRIDE_EQUALS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_DOESNT_OVERRIDE_EQUALS.html deleted file mode 100644 index 43a11c92..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_DOESNT_OVERRIDE_EQUALS.html +++ /dev/null @@ -1,12 +0,0 @@ -

This class extends a class that defines an equals method and adds fields, but doesn't -define an equals method itself. Thus, equality on instances of this class will -ignore the identity of the subclass and the added fields. Be sure this is what is intended, -and that you don't need to override the equals method. Even if you don't need to override -the equals method, consider overriding it anyway to document the fact -that the equals method for the subclass just return the result of -invoking super.equals(o). -

- -

-This rule is deprecated, use {rule:squid:S2160} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_DONT_DEFINE_EQUALS_FOR_ENUM.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_DONT_DEFINE_EQUALS_FOR_ENUM.html deleted file mode 100644 index 1a16d360..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_DONT_DEFINE_EQUALS_FOR_ENUM.html +++ /dev/null @@ -1,11 +0,0 @@ -

This class defines an enumeration, and equality on enumerations are defined -using object identity. Defining a covariant equals method for an enumeration -value is exceptionally bad practice, since it would likely result -in having two different enumeration values that compare as equals using -the covariant enum method, and as not equal when compared normally. -Don't do it. -

- -

-This rule is deprecated, use {rule:squid:S1201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_GETCLASS_AND_CLASS_CONSTANT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_GETCLASS_AND_CLASS_CONSTANT.html deleted file mode 100644 index 452e64c2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_GETCLASS_AND_CLASS_CONSTANT.html +++ /dev/null @@ -1,9 +0,0 @@ -

This class has an equals method that will be broken if it is inherited by subclasses. -It compares a class literal with the class of the argument (e.g., in class Foo -it might check if Foo.class == o.getClass()). -It is better to check if this.getClass() == o.getClass(). -

- -

-This rule is deprecated, use {rule:squid:S2162} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OTHER_NO_OBJECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OTHER_NO_OBJECT.html deleted file mode 100644 index 7ea39f46..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OTHER_NO_OBJECT.html +++ /dev/null @@ -1,10 +0,0 @@ -

This class defines an equals() - method, that doesn't override the normal equals(Object) method - defined in the base java.lang.Object class.  Instead, it - inherits an equals(Object) method from a superclass. - The class should probably define a boolean equals(Object) method. -

- -

-This rule is deprecated, use {rule:squid:S1201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OTHER_USE_OBJECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OTHER_USE_OBJECT.html deleted file mode 100644 index 4ee8ad69..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OTHER_USE_OBJECT.html +++ /dev/null @@ -1,9 +0,0 @@ -

This class defines an equals() - method, that doesn't override the normal equals(Object) method - defined in the base java.lang.Object class.  - The class should probably define a boolean equals(Object) method. -

- -

-This rule is deprecated, use {rule:squid:S1201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC.html deleted file mode 100644 index bce87a9f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC.html +++ /dev/null @@ -1,11 +0,0 @@ -

This class defines an equals method that overrides an equals method in a superclass. Both equals methods -methods use instanceof in the determination of whether two objects are equal. This is fraught with peril, -since it is important that the equals method is symmetrical (in other words, a.equals(b) == b.equals(a)). -If B is a subtype of A, and A's equals method checks that the argument is an instanceof A, and B's equals method -checks that the argument is an instanceof B, it is quite likely that the equivalence relation defined by these -methods is not symmetric. -

- -

-This rule is deprecated, use {rule:squid:S2162} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_SELF_NO_OBJECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_SELF_NO_OBJECT.html deleted file mode 100644 index a720ff05..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_SELF_NO_OBJECT.html +++ /dev/null @@ -1,8 +0,0 @@ -

This class defines a covariant version of equals().  - To correctly override the equals() method in - java.lang.Object, the parameter of equals() - must have type java.lang.Object.

- -

-This rule is deprecated, use {rule:squid:S1201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_SELF_USE_OBJECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_SELF_USE_OBJECT.html deleted file mode 100644 index 036b00a1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_SELF_USE_OBJECT.html +++ /dev/null @@ -1,9 +0,0 @@ -

This class defines a covariant version of the equals() - method, but inherits the normal equals(Object) method - defined in the base java.lang.Object class.  - The class should probably define a boolean equals(Object) method. -

- -

-This rule is deprecated, use {rule:squid:S1201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_UNUSUAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_UNUSUAL.html deleted file mode 100644 index 19f78998..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/EQ_UNUSUAL.html +++ /dev/null @@ -1,4 +0,0 @@ -

This class doesn't do any of the patterns we recognize for checking that the type of the argument -is compatible with the type of the this object. There might not be anything wrong with -this code, but it is worth reviewing. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ES_COMPARING_PARAMETER_STRING_WITH_EQ.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ES_COMPARING_PARAMETER_STRING_WITH_EQ.html deleted file mode 100644 index af3b674a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ES_COMPARING_PARAMETER_STRING_WITH_EQ.html +++ /dev/null @@ -1,9 +0,0 @@ -

This code compares a java.lang.String parameter for reference -equality using the == or != operators. Requiring callers to -pass only String constants or interned strings to a method is unnecessarily -fragile, and rarely leads to measurable performance gains. Consider -using the equals(Object) method instead.

- -

-This rule is deprecated, use {rule:squid:S1698} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ES_COMPARING_STRINGS_WITH_EQ.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ES_COMPARING_STRINGS_WITH_EQ.html deleted file mode 100644 index 4fe3acf5..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ES_COMPARING_STRINGS_WITH_EQ.html +++ /dev/null @@ -1,10 +0,0 @@ -

This code compares java.lang.String objects for reference -equality using the == or != operators. -Unless both strings are either constants in a source file, or have been -interned using the String.intern() method, the same string -value may be represented by two different String objects. Consider -using the equals(Object) method instead.

- -

-This rule is deprecated, use {rule:squid:S1698} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ESync_EMPTY_SYNC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ESync_EMPTY_SYNC.html deleted file mode 100644 index c363d2bf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ESync_EMPTY_SYNC.html +++ /dev/null @@ -1,13 +0,0 @@ -

The code contains an empty synchronized block:

-
-synchronized() {}
-
-

Empty synchronized blocks are far more subtle and hard to use correctly -than most people recognize, and empty synchronized blocks -are almost never a better solution -than less contrived solutions. -

- -

-This rule is deprecated, use {rule:squid:S00108} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FB_MISSING_EXPECTED_WARNING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FB_MISSING_EXPECTED_WARNING.html deleted file mode 100644 index 3f10d357..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FB_MISSING_EXPECTED_WARNING.html +++ /dev/null @@ -1,4 +0,0 @@ -

- FindBugs didn't generate generated a warning that, according to a @ExpectedWarning annotated, - is expected or desired -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FB_UNEXPECTED_WARNING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FB_UNEXPECTED_WARNING.html deleted file mode 100644 index c24cfc37..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FB_UNEXPECTED_WARNING.html +++ /dev/null @@ -1,4 +0,0 @@ -

- FindBugs generated a warning that, according to a @NoWarning annotated, - is unexpected or undesired -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FE_FLOATING_POINT_EQUALITY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FE_FLOATING_POINT_EQUALITY.html deleted file mode 100644 index ef071307..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FE_FLOATING_POINT_EQUALITY.html +++ /dev/null @@ -1,15 +0,0 @@ -

- This operation compares two floating point values for equality. - Because floating point calculations may involve rounding, - calculated float and double values may not be accurate. - For values that must be precise, such as monetary values, - consider using a fixed-precision type such as BigDecimal. - For values that need not be precise, consider comparing for equality - within some range, for example: - if ( Math.abs(x - y) < .0000001 ). - See the Java Language Specification, section 4.2.4. -

- -

-This rule is deprecated, use {rule:squid:S1244} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER.html deleted file mode 100644 index c1115b3a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER.html +++ /dev/null @@ -1,16 +0,0 @@ -

- This code checks to see if a floating point value is equal to the special - Not A Number value (e.g., if (x == Double.NaN)). However, - because of the special semantics of NaN, no value - is equal to Nan, including NaN. Thus, - x == Double.NaN always evaluates to false. - - To check to see if a value contained in x - is the special Not A Number value, use - Double.isNaN(x) (or Float.isNaN(x) if - x is floating point precision). -

- -

-This rule is deprecated, use {rule:squid:S1244} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_EMPTY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_EMPTY.html deleted file mode 100644 index c1fb3225..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_EMPTY.html +++ /dev/null @@ -1,6 +0,0 @@ -

Empty finalize() methods are useless, so they should - be deleted.

- -

-This rule is deprecated, use {rule:squid:S1186} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_EXPLICIT_INVOCATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_EXPLICIT_INVOCATION.html deleted file mode 100644 index 4174d1b4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_EXPLICIT_INVOCATION.html +++ /dev/null @@ -1,11 +0,0 @@ -

This method contains an explicit invocation of the finalize() - method on an object.  Because finalizer methods are supposed to be - executed once, and only by the VM, this is a bad idea.

-

If a connected set of objects beings finalizable, then the VM will invoke the -finalize method on all the finalizable object, possibly at the same time in different threads. -Thus, it is a particularly bad idea, in the finalize method for a class X, invoke finalize -on objects referenced by X, because they may already be getting finalized in a separate thread. - -

-This rule is deprecated, use {rule:squid:ObjectFinalizeCheck} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_FINALIZER_NULLS_FIELDS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_FINALIZER_NULLS_FIELDS.html deleted file mode 100644 index e3da69eb..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_FINALIZER_NULLS_FIELDS.html +++ /dev/null @@ -1,6 +0,0 @@ -

This finalizer nulls out fields. This is usually an error, as it does not aid garbage collection, - and the object is going to be garbage collected anyway. - -

-This rule is deprecated, use {rule:squid:S2165} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_FINALIZER_ONLY_NULLS_FIELDS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_FINALIZER_ONLY_NULLS_FIELDS.html deleted file mode 100644 index 5e6f5d99..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_FINALIZER_ONLY_NULLS_FIELDS.html +++ /dev/null @@ -1,7 +0,0 @@ -

This finalizer does nothing except null out fields. This is completely pointless, and requires that -the object be garbage collected, finalized, and then garbage collected again. You should just remove the finalize -method. - -

-This rule is deprecated, use {rule:squid:S2165} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_MISSING_SUPER_CALL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_MISSING_SUPER_CALL.html deleted file mode 100644 index 129c5a46..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_MISSING_SUPER_CALL.html +++ /dev/null @@ -1,8 +0,0 @@ -

This finalize() method does not make a call to its - superclass's finalize() method.  So, any finalizer - actions defined for the superclass will not be performed.  - Add a call to super.finalize().

- -

-This rule is deprecated, use {rule:squid:ObjectFinalizeOverridenCallsSuperFinalizeCheck} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_NULLIFY_SUPER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_NULLIFY_SUPER.html deleted file mode 100644 index c4eb92f0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_NULLIFY_SUPER.html +++ /dev/null @@ -1,8 +0,0 @@ -

This empty finalize() method explicitly negates the - effect of any finalizer defined by its superclass.  Any finalizer - actions defined for the superclass will not be performed.  - Unless this is intended, delete this method.

- -

-This rule is deprecated, use {rule:squid:ObjectFinalizeOverridenCallsSuperFinalizeCheck}, {rule:squid:S1186} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_PUBLIC_SHOULD_BE_PROTECTED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_PUBLIC_SHOULD_BE_PROTECTED.html deleted file mode 100644 index 337ada6e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_PUBLIC_SHOULD_BE_PROTECTED.html +++ /dev/null @@ -1,6 +0,0 @@ -

A class's finalize() method should have protected access, - not public.

- -

-This rule is deprecated, use {rule:squid:S1174} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_USELESS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_USELESS.html deleted file mode 100644 index 79395e27..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FI_USELESS.html +++ /dev/null @@ -1,7 +0,0 @@ -

The only thing this finalize() method does is call - the superclass's finalize() method, making it - redundant.  Delete it.

- -

-This rule is deprecated, use {rule:squid:S1185} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FL_MATH_USING_FLOAT_PRECISION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FL_MATH_USING_FLOAT_PRECISION.html deleted file mode 100644 index 3f26383f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/FL_MATH_USING_FLOAT_PRECISION.html +++ /dev/null @@ -1,8 +0,0 @@ -

- The method performs math operations using floating point precision. - Floating point precision is very imprecise. For example, - 16777216.0f + 1.0f = 16777216.0f. Consider using double math instead.

- -

-This rule is deprecated, use {rule:squid:S2164} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/GC_UNCHECKED_TYPE_IN_GENERIC_CALL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/GC_UNCHECKED_TYPE_IN_GENERIC_CALL.html deleted file mode 100644 index b12e097e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/GC_UNCHECKED_TYPE_IN_GENERIC_CALL.html +++ /dev/null @@ -1,11 +0,0 @@ -

This call to a generic collection method passes an argument - while compile type Object where a specific type from - the generic type parameters is expected. - Thus, neither the standard Java type system nor static analysis - can provide useful information on whether the - object being passed as a parameter is of an appropriate type. -

- -

-This rule is deprecated, use {rule:squid:S2175} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/GC_UNRELATED_TYPES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/GC_UNRELATED_TYPES.html deleted file mode 100644 index 4379fba0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/GC_UNRELATED_TYPES.html +++ /dev/null @@ -1,27 +0,0 @@ -

This call to a generic collection method contains an argument - with an incompatible class from that of the collection's parameter - (i.e., the type of the argument is neither a supertype nor a subtype - of the corresponding generic type argument). - Therefore, it is unlikely that the collection contains any objects - that are equal to the method argument used here. - Most likely, the wrong value is being passed to the method.

-

In general, instances of two unrelated classes are not equal. - For example, if the Foo and Bar classes - are not related by subtyping, then an instance of Foo - should not be equal to an instance of Bar. - Among other issues, doing so will likely result in an equals method - that is not symmetrical. For example, if you define the Foo class - so that a Foo can be equal to a String, - your equals method isn't symmetrical since a String can only be equal - to a String. -

-

In rare cases, people do define nonsymmetrical equals methods and still manage to make - their code work. Although none of the APIs document or guarantee it, it is typically - the case that if you check if a Collection<String> contains - a Foo, the equals method of argument (e.g., the equals method of the - Foo class) used to perform the equality checks. -

- -

-This rule is deprecated, use {rule:squid:S2175} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_EQUALS_NO_HASHCODE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_EQUALS_NO_HASHCODE.html deleted file mode 100644 index a0018464..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_EQUALS_NO_HASHCODE.html +++ /dev/null @@ -1,7 +0,0 @@ -

This class overrides equals(Object), but does not - override hashCode().  Therefore, the class may violate the - invariant that equal objects must have equal hashcodes.

- -

-This rule is deprecated, use {rule:squid:S1206} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_EQUALS_USE_HASHCODE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_EQUALS_USE_HASHCODE.html deleted file mode 100644 index 3299b89b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_EQUALS_USE_HASHCODE.html +++ /dev/null @@ -1,17 +0,0 @@ -

This class overrides equals(Object), but does not - override hashCode(), and inherits the implementation of - hashCode() from java.lang.Object (which returns - the identity hash code, an arbitrary value assigned to the object - by the VM).  Therefore, the class is very likely to violate the - invariant that equal objects must have equal hashcodes.

- -

If you don't think instances of this class will ever be inserted into a HashMap/HashTable, -the recommended hashCode implementation to use is:

-
public int hashCode() {
-  assert false : "hashCode not designed";
-  return 42; // any arbitrary constant will do
-  }
- -

-This rule is deprecated, use {rule:squid:S1206} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_HASHCODE_NO_EQUALS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_HASHCODE_NO_EQUALS.html deleted file mode 100644 index 618ce99a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_HASHCODE_NO_EQUALS.html +++ /dev/null @@ -1,7 +0,0 @@ -

This class defines a hashCode() method but not an - equals() method.  Therefore, the class may - violate the invariant that equal objects must have equal hashcodes.

- -

-This rule is deprecated, use {rule:squid:S1206} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_HASHCODE_USE_OBJECT_EQUALS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_HASHCODE_USE_OBJECT_EQUALS.html deleted file mode 100644 index 130e9fc0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_HASHCODE_USE_OBJECT_EQUALS.html +++ /dev/null @@ -1,18 +0,0 @@ -

This class defines a hashCode() method but inherits its - equals() method from java.lang.Object - (which defines equality by comparing object references).  Although - this will probably satisfy the contract that equal objects must have - equal hashcodes, it is probably not what was intended by overriding - the hashCode() method.  (Overriding hashCode() - implies that the object's identity is based on criteria more complicated - than simple reference equality.)

-

If you don't think instances of this class will ever be inserted into a HashMap/HashTable, -the recommended hashCode implementation to use is:

-

public int hashCode() {
-  assert false : "hashCode not designed";
-  return 42; // any arbitrary constant will do
-  }

- -

-This rule is deprecated, use {rule:squid:S1206} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_INHERITS_EQUALS_USE_HASHCODE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_INHERITS_EQUALS_USE_HASHCODE.html deleted file mode 100644 index 8ce43190..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_INHERITS_EQUALS_USE_HASHCODE.html +++ /dev/null @@ -1,11 +0,0 @@ -

This class inherits equals(Object) from an abstract - superclass, and hashCode() from -java.lang.Object (which returns - the identity hash code, an arbitrary value assigned to the object - by the VM).  Therefore, the class is very likely to violate the - invariant that equal objects must have equal hashcodes.

- -

If you don't want to define a hashCode method, and/or don't - believe the object will ever be put into a HashMap/Hashtable, - define the hashCode() method - to throw UnsupportedOperationException.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS.html deleted file mode 100644 index 3913a6cf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS.html +++ /dev/null @@ -1,6 +0,0 @@ -

A method, field or class declares a generic signature where a non-hashable class -is used in context where a hashable class is required. -A class that declares an equals method but inherits a hashCode() method -from Object is unhashable, since it doesn't fulfill the requirement that -equal objects have equal hashCodes. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_USE_OF_UNHASHABLE_CLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_USE_OF_UNHASHABLE_CLASS.html deleted file mode 100644 index 3934da1f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HE_USE_OF_UNHASHABLE_CLASS.html +++ /dev/null @@ -1,4 +0,0 @@ -

A class defines an equals(Object) method but not a hashCode() method, -and thus doesn't fulfill the requirement that equal objects have equal hashCodes. -An instance of this class is used in a hash data structure, making the need to -fix this problem of highest importance. \ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HRS_REQUEST_PARAMETER_TO_COOKIE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HRS_REQUEST_PARAMETER_TO_COOKIE.html deleted file mode 100644 index 9cc936f7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HRS_REQUEST_PARAMETER_TO_COOKIE.html +++ /dev/null @@ -1,8 +0,0 @@ -

This code constructs an HTTP Cookie using an untrusted HTTP parameter. If this cookie is added to an HTTP response, it will allow a HTTP response splitting -vulnerability. See http://en.wikipedia.org/wiki/HTTP_response_splitting -for more information.

-

FindBugs looks only for the most blatant, obvious cases of HTTP response splitting. -If FindBugs found any, you almost certainly have more -vulnerabilities that FindBugs doesn't report. If you are concerned about HTTP response splitting, you should seriously -consider using a commercial static analysis or pen-testing tool. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HRS_REQUEST_PARAMETER_TO_HTTP_HEADER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HRS_REQUEST_PARAMETER_TO_HTTP_HEADER.html deleted file mode 100644 index 84b77fbf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HRS_REQUEST_PARAMETER_TO_HTTP_HEADER.html +++ /dev/null @@ -1,8 +0,0 @@ -

This code directly writes an HTTP parameter to an HTTP header, which allows for a HTTP response splitting -vulnerability. See http://en.wikipedia.org/wiki/HTTP_response_splitting -for more information.

-

FindBugs looks only for the most blatant, obvious cases of HTTP response splitting. -If FindBugs found any, you almost certainly have more -vulnerabilities that FindBugs doesn't report. If you are concerned about HTTP response splitting, you should seriously -consider using a commercial static analysis or pen-testing tool. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HSC_HUGE_SHARED_STRING_CONSTANT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HSC_HUGE_SHARED_STRING_CONSTANT.html deleted file mode 100644 index 4d5e8ca7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/HSC_HUGE_SHARED_STRING_CONSTANT.html +++ /dev/null @@ -1,8 +0,0 @@ -

- A large String constant is duplicated across multiple class files. - This is likely because a final field is initialized to a String constant, and the Java language - mandates that all references to a final field from other classes be inlined into -that classfile. See JDK bug 6447475 - for a description of an occurrence of this bug in the JDK and how resolving it reduced - the size of the JDK by 1 megabyte. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD.html deleted file mode 100644 index d34719f3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD.html +++ /dev/null @@ -1,11 +0,0 @@ -

An inner class is invoking a method that could be resolved to either a inherited method or a method defined in an outer class. By the Java semantics, -it will be resolved to invoke the inherited method, but this may not be want -you intend. If you really intend to invoke the inherited method, -invoke it by invoking the method on super (e.g., invoke super.foo(17)), and -thus it will be clear to other readers of your code and to FindBugs -that you want to invoke the inherited method, not the method in the outer class. -

- -

-This rule is deprecated, use {rule:squid:S2388} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_BAD_SHIFT_AMOUNT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_BAD_SHIFT_AMOUNT.html deleted file mode 100644 index 373c877c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_BAD_SHIFT_AMOUNT.html +++ /dev/null @@ -1,11 +0,0 @@ -

-The code performs an integer shift by a constant amount outside -the range 0..31. -The effect of this is to use the lower 5 bits of the integer -value to decide how much to shift by. This probably isn't want was expected, -and it at least confusing. -

- -

-This rule is deprecated, use {rule:squid:S2183} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_IDIV_CAST_TO_DOUBLE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_IDIV_CAST_TO_DOUBLE.html deleted file mode 100644 index 4fe6b4b7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_IDIV_CAST_TO_DOUBLE.html +++ /dev/null @@ -1,24 +0,0 @@ -

-This code casts the result of an integer division operation to double or -float. -Doing division on integers truncates the result -to the integer value closest to zero. The fact that the result -was cast to double suggests that this precision should have been retained. -What was probably meant was to cast one or both of the operands to -double before performing the division. Here is an example: -

-
-
-int x = 2;
-int y = 5;
-// Wrong: yields result 0.0
-double value1 =  x / y;
-
-// Right: yields result 0.4
-double value2 =  x / (double) y;
-
-
- -

-This rule is deprecated, use {rule:squid:S2184} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INTEGER_MULTIPLY_CAST_TO_LONG.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INTEGER_MULTIPLY_CAST_TO_LONG.html deleted file mode 100644 index c283fba8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INTEGER_MULTIPLY_CAST_TO_LONG.html +++ /dev/null @@ -1,25 +0,0 @@ -

-This code performs integer multiply and then converts the result to a long, -as in: - -

 
-	long convertDaysToMilliseconds(int days) { return 1000*3600*24*days; } 
-
-If the multiplication is done using long arithmetic, you can avoid -the possibility that the result will overflow. For example, you -could fix the above code to: - -
 
-	long convertDaysToMilliseconds(int days) { return 1000L*3600*24*days; } 
-
-or - -
 
-	static final long MILLISECONDS_PER_DAY = 24L*3600*1000;
-	long convertDaysToMilliseconds(int days) { return days * MILLISECONDS_PER_DAY; } 
-
-

- -

-This rule is deprecated, use {rule:squid:S2184} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_2_LONG_AS_INSTANT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_2_LONG_AS_INSTANT.html deleted file mode 100644 index cdbf0203..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_2_LONG_AS_INSTANT.html +++ /dev/null @@ -1,24 +0,0 @@ -

This code converts a 32-bit int value to a 64-bit long value, and then passes that value for a -method parameter that requires an absolute time value. An absolute time value is the number of -milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT. -For example, the following method, intended to convert seconds since the epoc into a Date, is badly broken: -

-Date getDate(int seconds) { return new Date(seconds * 1000); }
-
-

-

The multiplication is done using 32-bit arithmetic, and then converted to a 64-bit value. When a 32-bit -value is converted to 64-bits and used to express an absolute time value, only dates in December 1969 and -January 1970 can be represented.

-

Correct implementations for the above method are: -

-// Fails for dates after 2037
-Date getDate(int seconds) { return new Date(seconds * 1000L); }
-
-// better, works for all dates
-Date getDate(long seconds) { return new Date(seconds * 1000); }
-
-

- -

-This rule is deprecated, use {rule:squid:S2184} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL.html deleted file mode 100644 index 8e77b9f8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL.html +++ /dev/null @@ -1,14 +0,0 @@ -

-This code converts an int value to a double precision -floating point number and then -passing the result to the Math.ceil() function, which rounds a double to -the next higher integer value. This operation should always be a no-op, -since the converting an integer to a double should give a number with no fractional part. -It is likely that the operation that generated the value to be passed -to Math.ceil was intended to be performed using double precision -floating point arithmetic. -

- -

-This rule is deprecated, use {rule:squid:S2185} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND.html deleted file mode 100644 index 5e38b764..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND.html +++ /dev/null @@ -1,14 +0,0 @@ -

-This code converts an int value to a float precision -floating point number and then -passing the result to the Math.round() function, which returns the int/long closest -to the argument. This operation should always be a no-op, -since the converting an integer to a float should give a number with no fractional part. -It is likely that the operation that generated the value to be passed -to Math.round was intended to be performed using -floating point arithmetic. -

- -

-This rule is deprecated, use {rule:squid:S2185} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT.html deleted file mode 100644 index b336e3c8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT.html +++ /dev/null @@ -1,6 +0,0 @@ -

-The code performs an unsigned right shift, whose result is then -cast to a short or byte, which discards the upper bits of the result. -Since the upper bits are discarded, there may be no difference between -a signed and unsigned right shift (depending upon the size of the shift). -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IC_INIT_CIRCULARITY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IC_INIT_CIRCULARITY.html deleted file mode 100644 index 5d5a31a3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IC_INIT_CIRCULARITY.html +++ /dev/null @@ -1,3 +0,0 @@ -

A circularity was detected in the static initializers of the two - classes referenced by the bug instance.  Many kinds of unexpected - behavior may arise from such circularity.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION.html deleted file mode 100644 index 22aae3dd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION.html +++ /dev/null @@ -1,13 +0,0 @@ -

During the initialization of a class, the class makes an active use of a subclass. -That subclass will not yet be initialized at the time of this use. -For example, in the following code, foo will be null.

- -
-public class CircularClassInitialization {
-	static class InnerClassSingleton extends CircularClassInitialization {
-		static InnerClassSingleton singleton = new InnerClassSingleton();
-	}
-	
-	static CircularClassInitialization foo = InnerClassSingleton.singleton;
-}
-
\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IIO_INEFFICIENT_INDEX_OF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IIO_INEFFICIENT_INDEX_OF.html deleted file mode 100644 index 77971e1e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IIO_INEFFICIENT_INDEX_OF.html +++ /dev/null @@ -1 +0,0 @@ -

This code passes a constant string of length 1 to String.indexOf(). It is more efficient to use the integer implementations of String.indexOf(). f. e. call myString.indexOf('.') instead of myString.indexOf(".")

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IIO_INEFFICIENT_LAST_INDEX_OF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IIO_INEFFICIENT_LAST_INDEX_OF.html deleted file mode 100644 index cc717150..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IIO_INEFFICIENT_LAST_INDEX_OF.html +++ /dev/null @@ -1 +0,0 @@ -

This code passes a constant string of length 1 to String.lastIndexOf(). It is more efficient to use the integer implementations of String.lastIndexOf(). f. e. call myString.lastIndexOf('.') instead of myString.lastIndexOf(".")

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD.html deleted file mode 100644 index 292779f4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD.html +++ /dev/null @@ -1,10 +0,0 @@ -

A JUnit assertion is performed in a run method. Failed JUnit assertions -just result in exceptions being thrown. -Thus, if this exception occurs in a thread other than the thread that invokes -the test method, the exception will terminate the thread but not result -in the test failing. -

- -

-This rule is deprecated, use {rule:squid:S2186} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_BAD_SUITE_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_BAD_SUITE_METHOD.html deleted file mode 100644 index 18f4c757..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_BAD_SUITE_METHOD.html +++ /dev/null @@ -1,10 +0,0 @@ -

Class is a JUnit TestCase and defines a suite() method. -However, the suite method needs to be declared as either -

public static junit.framework.Test suite()
-or -
public static junit.framework.TestSuite suite()
-

- -

-This rule is deprecated, use {rule:squid:S2391} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_NO_TESTS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_NO_TESTS.html deleted file mode 100644 index d214cd77..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_NO_TESTS.html +++ /dev/null @@ -1,5 +0,0 @@ -

Class is a JUnit TestCase but has not implemented any test methods

- -

-This rule is deprecated, use {rule:squid:S2187} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_SETUP_NO_SUPER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_SETUP_NO_SUPER.html deleted file mode 100644 index 9d042871..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_SETUP_NO_SUPER.html +++ /dev/null @@ -1,6 +0,0 @@ -

Class is a JUnit TestCase and implements the setUp method. The setUp method should call -super.setUp(), but doesn't.

- -

-This rule is deprecated, use {rule:squid:S2188} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_SUITE_NOT_STATIC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_SUITE_NOT_STATIC.html deleted file mode 100644 index d0e9db8b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_SUITE_NOT_STATIC.html +++ /dev/null @@ -1,6 +0,0 @@ -

Class is a JUnit TestCase and implements the suite() method. - The suite method should be declared as being static, but isn't.

- -

-This rule is deprecated, use {rule:squid:S2391} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_TEARDOWN_NO_SUPER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_TEARDOWN_NO_SUPER.html deleted file mode 100644 index dc94189c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IJU_TEARDOWN_NO_SUPER.html +++ /dev/null @@ -1,6 +0,0 @@ -

Class is a JUnit TestCase and implements the tearDown method. The tearDown method should call -super.tearDown(), but doesn't.

- -

-This rule is deprecated, use {rule:squid:S2188} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_CONTAINER_ADDED_TO_ITSELF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_CONTAINER_ADDED_TO_ITSELF.html deleted file mode 100644 index 6a115720..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_CONTAINER_ADDED_TO_ITSELF.html +++ /dev/null @@ -1,7 +0,0 @@ -

A collection is added to itself. As a result, computing the hashCode of this -set will throw a StackOverflowException. -

- -

-This rule is deprecated, use {rule:squid:S2114} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_INFINITE_LOOP.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_INFINITE_LOOP.html deleted file mode 100644 index 786c18f1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_INFINITE_LOOP.html +++ /dev/null @@ -1,2 +0,0 @@ -

This loop doesn't seem to have a way to terminate (other than by perhaps -throwing an exception).

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_INFINITE_RECURSIVE_LOOP.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_INFINITE_RECURSIVE_LOOP.html deleted file mode 100644 index 5ecd0441..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IL_INFINITE_RECURSIVE_LOOP.html +++ /dev/null @@ -1,2 +0,0 @@ -

This method unconditionally invokes itself. This would seem to indicate -an infinite recursive loop that will result in a stack overflow.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IMA_INEFFICIENT_MEMBER_ACCESS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IMA_INEFFICIENT_MEMBER_ACCESS.html deleted file mode 100644 index 2b63ff38..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IMA_INEFFICIENT_MEMBER_ACCESS.html +++ /dev/null @@ -1,6 +0,0 @@ -

- This method of an inner class reads from or writes to a private member variable of the owning class, - or calls a private method of the owning class. The compiler must generate a special method to access this - private member, causing this to be less efficient. Relaxing the protection of the member variable or method - will allow the compiler to treat this as a normal access. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IMSE_DONT_CATCH_IMSE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IMSE_DONT_CATCH_IMSE.html deleted file mode 100644 index 1fe34b13..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IMSE_DONT_CATCH_IMSE.html +++ /dev/null @@ -1,7 +0,0 @@ -

IllegalMonitorStateException is generally only - thrown in case of a design flaw in your code (calling wait or - notify on an object you do not hold a lock on).

- -

-This rule is deprecated, use {rule:squid:S2235} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_AVERAGE_COMPUTATION_COULD_OVERFLOW.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_AVERAGE_COMPUTATION_COULD_OVERFLOW.html deleted file mode 100644 index 84021ec1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_AVERAGE_COMPUTATION_COULD_OVERFLOW.html +++ /dev/null @@ -1,13 +0,0 @@ -

The code computes the average of two integers using either division or signed right shift, -and then uses the result as the index of an array. -If the values being averaged are very large, this can overflow (resulting in the computation -of a negative average). Assuming that the result is intended to be nonnegative, you -can use an unsigned right shift instead. In other words, rather that using (low+high)/2, -use (low+high) >>> 1 -

-

This bug exists in many earlier implementations of binary search and merge sort. -Martin Buchholz found and fixed it -in the JDK libraries, and Joshua Bloch -widely -publicized the bug pattern. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_BAD_CHECK_FOR_ODD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_BAD_CHECK_FOR_ODD.html deleted file mode 100644 index 87255772..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_BAD_CHECK_FOR_ODD.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The code uses x % 2 == 1 to check to see if a value is odd, but this won't work -for negative numbers (e.g., (-5) % 2 == -1). If this code is intending to check -for oddness, consider using x & 1 == 1, or x % 2 != 0. -

- -

-This rule is deprecated, use {rule:squid:S2197} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_MULTIPLYING_RESULT_OF_IREM.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_MULTIPLYING_RESULT_OF_IREM.html deleted file mode 100644 index 0fa15741..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_MULTIPLYING_RESULT_OF_IREM.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The code multiplies the result of an integer remaining by an integer constant. -Be sure you don't have your operator precedence confused. For example -i % 60 * 1000 is (i % 60) * 1000, not i % (60 * 1000). -

- -

-This rule is deprecated, use {rule:squid:S864} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_INT_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_INT_VALUE.html deleted file mode 100644 index fc96ac19..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_INT_VALUE.html +++ /dev/null @@ -1,2 +0,0 @@ -

This code compares an int value with a long constant that is outside the range of values that can - be represented as an int value. This comparison is vacuous and possibily to be incorrect.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE.html deleted file mode 100644 index ecbf78bf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE.html +++ /dev/null @@ -1,2 +0,0 @@ -

This code compares a value that is guaranteed to be non-negative with a negative constant. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_SIGNED_BYTE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_SIGNED_BYTE.html deleted file mode 100644 index 67107ce8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_COMPARISON_WITH_SIGNED_BYTE.html +++ /dev/null @@ -1,5 +0,0 @@ -

Signed bytes can only have a value in the range -128 to 127. Comparing -a signed byte with a value outside that range is vacuous and likely to be incorrect. -To convert a signed byte b to an unsigned value in the range 0..255, -use 0xff & b -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_REM_BY_1.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_REM_BY_1.html deleted file mode 100644 index f52e0016..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_BAD_REM_BY_1.html +++ /dev/null @@ -1,7 +0,0 @@ -

Any expression (exp % 1) is guaranteed to always return zero. -Did you mean (exp & 1) or (exp % 2) instead? -

- -

-This rule is deprecated, use {rule:squid:S2185} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_VACUOUS_BIT_OPERATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_VACUOUS_BIT_OPERATION.html deleted file mode 100644 index d940c491..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_VACUOUS_BIT_OPERATION.html +++ /dev/null @@ -1,8 +0,0 @@ -

This is an integer bit operation (and, or, or exclusive or) that doesn't do any useful work -(e.g., v & 0xffffffff). - -

- -

-This rule is deprecated, use {rule:squid:S2437} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_VACUOUS_COMPARISON.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_VACUOUS_COMPARISON.html deleted file mode 100644 index e93deb14..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/INT_VACUOUS_COMPARISON.html +++ /dev/null @@ -1,3 +0,0 @@ -

There is an integer comparison that always returns -the same value (e.g., x <= Integer.MAX_VALUE). -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IO_APPENDING_TO_OBJECT_OUTPUT_STREAM.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IO_APPENDING_TO_OBJECT_OUTPUT_STREAM.html deleted file mode 100644 index d8f1866d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IO_APPENDING_TO_OBJECT_OUTPUT_STREAM.html +++ /dev/null @@ -1,13 +0,0 @@ -

- This code opens a file in append mode and then wraps the result in an object output stream. - This won't allow you to append to an existing object output stream stored in a file. If you want to be - able to append to an object output stream, you need to keep the object output stream open. -

-

The only situation in which opening a file in append mode and the writing an object output stream - could work is if on reading the file you plan to open it in random access mode and seek to the byte offset - where the append started. -

- -

- TODO: example. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN.html deleted file mode 100644 index 2371d804..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN.html +++ /dev/null @@ -1,6 +0,0 @@ -

-The initial value of this parameter is ignored, and the parameter -is overwritten here. This often indicates a mistaken belief that -the write to the parameter will be conveyed back to -the caller. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS2_INCONSISTENT_SYNC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS2_INCONSISTENT_SYNC.html deleted file mode 100644 index 05c550f4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS2_INCONSISTENT_SYNC.html +++ /dev/null @@ -1,23 +0,0 @@ -

The fields of this class appear to be accessed inconsistently with respect - to synchronization.  This bug report indicates that the bug pattern detector - judged that -

-
    -
  1. The class contains a mix of locked and unlocked accesses,
  2. -
  3. At least one locked access was performed by one of the class's own methods, and
  4. -
  5. The number of unsynchronized field accesses (reads and writes) was no more than - one third of all accesses, with writes being weighed twice as high as reads
  6. -
- -

A typical bug matching this bug pattern is forgetting to synchronize - one of the methods in a class that is intended to be thread-safe.

- -

You can select the nodes labeled "Unsynchronized access" to show the - code locations where the detector believed that a field was accessed - without synchronization.

- -

Note that there are various sources of inaccuracy in this detector; - for example, the detector cannot statically detect all situations in which - a lock is held.  Also, even when the detector is accurate in - distinguishing locked vs. unlocked accesses, the code in question may still - be correct.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ISC_INSTANTIATE_STATIC_CLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ISC_INSTANTIATE_STATIC_CLASS.html deleted file mode 100644 index 1440c7b3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ISC_INSTANTIATE_STATIC_CLASS.html +++ /dev/null @@ -1,6 +0,0 @@ -

This class allocates an object that is based on a class that only supplies static methods. This object -does not need to be created, just access the static methods directly using the class name as a qualifier.

- -

-This rule is deprecated, use {rule:squid:S2440} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS_FIELD_NOT_GUARDED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS_FIELD_NOT_GUARDED.html deleted file mode 100644 index bd7bd5a3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS_FIELD_NOT_GUARDED.html +++ /dev/null @@ -1,2 +0,0 @@ -

This field is annotated with net.jcip.annotations.GuardedBy, -but can be accessed in a way that seems to violate the annotation.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS_INCONSISTENT_SYNC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS_INCONSISTENT_SYNC.html deleted file mode 100644 index c53a64d1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IS_INCONSISTENT_SYNC.html +++ /dev/null @@ -1,19 +0,0 @@ -

The fields of this class appear to be accessed inconsistently with respect - to synchronization.  This bug report indicates that the bug pattern detector - judged that -

-
    -
  1. The class contains a mix of locked and unlocked accesses,
  2. -
  3. At least one locked access was performed by one of the class's own methods, and
  4. -
  5. The number of unsynchronized field accesses (reads and writes) was no more than - one third of all accesses, with writes being weighed twice as high as reads
  6. -
- -

A typical bug matching this bug pattern is forgetting to synchronize - one of the methods in a class that is intended to be thread-safe.

- -

Note that there are various sources of inaccuracy in this detector; - for example, the detector cannot statically detect all situations in which - a lock is held.  Also, even when the detector is accurate in - distinguishing locked vs. unlocked accesses, the code in question may still - be correct.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ITA_INEFFICIENT_TO_ARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ITA_INEFFICIENT_TO_ARRAY.html deleted file mode 100644 index 28d6eed5..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ITA_INEFFICIENT_TO_ARRAY.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method uses the toArray() method of a collection derived class, and passes -in a zero-length prototype array argument. It is more efficient to use -myCollection.toArray(new Foo[myCollection.size()]) -If the array passed in is big enough to store all of the -elements of the collection, then it is populated and returned -directly. This avoids the need to create a second array -(by reflection) to return as the result.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IT_NO_SUCH_ELEMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IT_NO_SUCH_ELEMENT.html deleted file mode 100644 index 17fe6bb0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IT_NO_SUCH_ELEMENT.html +++ /dev/null @@ -1,9 +0,0 @@ -

This class implements the java.util.Iterator interface.  - However, its next() method is not capable of throwing - java.util.NoSuchElementException.  The next() - method should be changed so it throws NoSuchElementException - if is called when there are no more elements to return.

- -

-This rule is deprecated, use {rule:squid:S2272} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION.html deleted file mode 100644 index 89e37c29..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION.html +++ /dev/null @@ -1,8 +0,0 @@ -

-This code seems to be storing a non-serializable object into an HttpSession. -If this session is passivated or migrated, an error will result. -

- -

-This rule is deprecated, use {rule:squid:S2441} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS.html deleted file mode 100644 index e67112dd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS.html +++ /dev/null @@ -1,3 +0,0 @@ -

The class is annotated with net.jcip.annotations.Immutable, and the rules for that annotation require -that all fields are final. - .

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JLM_JSR166_LOCK_MONITORENTER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JLM_JSR166_LOCK_MONITORENTER.html deleted file mode 100644 index 388eb549..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JLM_JSR166_LOCK_MONITORENTER.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method performs synchronization on an implementation of -java.util.concurrent.locks.Lock. You should use -the lock() and unlock() methods instead. -

- -

-This rule is deprecated, use {rule:squid:S2442} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT.html deleted file mode 100644 index c2bd2172..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method calls wait(), notify() or notifyAll() on an object that also -provides an await(), signal(), signalAll() method (such as util.concurrent -Condition objects). This probably isn't what you want, and even if you do want it, you should consider changing your -design, as other developers will find it exceptionally confusing.

- -

-This rule is deprecated, use {rule:squid:S1844} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE.html deleted file mode 100644 index 9b7ef598..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE.html +++ /dev/null @@ -1,26 +0,0 @@ -

- OpenJDK introduces a potential incompatibility. - In particular, the java.util.logging.Logger behavior has - changed. Instead of using strong references, it now uses weak references - internally. That's a reasonable change, but unfortunately some code relies on - the old behavior - when changing logger configuration, it simply drops the - logger reference. That means that the garbage collector is free to reclaim - that memory, which means that the logger configuration is lost. For example, - consider: -

-

public static void initLogging() throws Exception {
-      Logger logger = Logger.getLogger("edu.umd.cs");
-      logger.addHandler(new FileHandler()); // call to change logger configuration
-      logger.setUseParentHandlers(false); // another call to change logger configuration
-      }

-

The logger reference is lost at the end of the method (it doesn't - escape the method), so if you have a garbage collection cycle just - after the call to initLogging, the logger configuration is lost - (because Logger only keeps weak references).

-

public static void main(String[] args) throws Exception {
-      initLogging(); // adds a file handler to the logger
-      System.gc(); // logger configuration lost
-      Logger.getLogger("edu.umd.cs").info("Some message"); // this isn't logged to the file as expected
-      }

-

Ulf Ochsenfahrt and Eric Fellheimer -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LI_LAZY_INIT_STATIC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LI_LAZY_INIT_STATIC.html deleted file mode 100644 index a7ff5855..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LI_LAZY_INIT_STATIC.html +++ /dev/null @@ -1,12 +0,0 @@ -

This method contains an unsynchronized lazy initialization of a non-volatile static field. -Because the compiler or processor may reorder instructions, -threads are not guaranteed to see a completely initialized object, -if the method can be called by multiple threads. -You can make the field volatile to correct the problem. -For more information, see the -Java Memory Model web site. -

- -

-This rule is deprecated, use {rule:squid:S2444} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LI_LAZY_INIT_UPDATE_STATIC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LI_LAZY_INIT_UPDATE_STATIC.html deleted file mode 100644 index fd0712cd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/LI_LAZY_INIT_UPDATE_STATIC.html +++ /dev/null @@ -1,11 +0,0 @@ -

This method contains an unsynchronized lazy initialization of a static field. -After the field is set, the object stored into that location is further accessed. -The setting of the field is visible to other threads as soon as it is set. If the -futher accesses in the method that set the field serve to initialize the object, then -you have a very serious multithreading bug, unless something else prevents -any other thread from accessing the stored object until it is fully initialized. -

- -

-This rule is deprecated, use {rule:squid:S2444} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ME_ENUM_FIELD_SETTER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ME_ENUM_FIELD_SETTER.html deleted file mode 100644 index bb20baca..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ME_ENUM_FIELD_SETTER.html +++ /dev/null @@ -1 +0,0 @@ -

This public method declared in public enum unconditionally sets enum field, thus this field can be changed by malicious code or by accident from another package. Though mutable enum fields may be used for lazy initialization, it's a bad practice to expose them to the outer world. Consider removing this method or declaring it package-private.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ME_MUTABLE_ENUM_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ME_MUTABLE_ENUM_FIELD.html deleted file mode 100644 index 77018ef0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ME_MUTABLE_ENUM_FIELD.html +++ /dev/null @@ -1 +0,0 @@ -

A mutable public field is defined inside a public enum, thus can be changed by malicious code or by accident from another package. Though mutable enum fields may be used for lazy initialization, it's a bad practice to expose them to the outer world. Consider declaring this field final and/or package-private.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MF_CLASS_MASKS_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MF_CLASS_MASKS_FIELD.html deleted file mode 100644 index ed557faf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MF_CLASS_MASKS_FIELD.html +++ /dev/null @@ -1,8 +0,0 @@ -

This class defines a field with the same name as a visible -instance field in a superclass. This is confusing, and -may indicate an error if methods update or access one of -the fields when they wanted the other.

- -

-This rule is deprecated, use {rule:squid:S2387} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MF_METHOD_MASKS_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MF_METHOD_MASKS_FIELD.html deleted file mode 100644 index 8a3aa7ac..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MF_METHOD_MASKS_FIELD.html +++ /dev/null @@ -1,4 +0,0 @@ -

This method defines a local variable with the same name as a field -in this class or a superclass. This may cause the method to -read an uninitialized value from the field, leave the field uninitialized, -or both.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD.html deleted file mode 100644 index 37f591cd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD.html +++ /dev/null @@ -1,25 +0,0 @@ -

This method synchronizes on a field in what appears to be an attempt -to guard against simultaneous updates to that field. But guarding a field -gets a lock on the referenced object, not on the field. This may not -provide the mutual exclusion you need, and other threads might -be obtaining locks on the referenced objects (for other purposes). An example -of this pattern would be: - -

-private Long myNtfSeqNbrCounter = new Long(0);
-private Long getNotificationSequenceNumber() {
-     Long result = null;
-     synchronized(myNtfSeqNbrCounter) {
-         result = new Long(myNtfSeqNbrCounter.longValue() + 1);
-         myNtfSeqNbrCounter = new Long(result.longValue());
-     }
-     return result;
- }
-
- - -

- -

-This rule is deprecated, use {rule:squid:S2445} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ML_SYNC_ON_UPDATED_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ML_SYNC_ON_UPDATED_FIELD.html deleted file mode 100644 index e3933004..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ML_SYNC_ON_UPDATED_FIELD.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method synchronizes on an object - referenced from a mutable field. - This is unlikely to have useful semantics, since different -threads may be synchronizing on different objects.

- -

-This rule is deprecated, use {rule:squid:S2445} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MSF_MUTABLE_SERVLET_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MSF_MUTABLE_SERVLET_FIELD.html deleted file mode 100644 index aa0c82f5..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MSF_MUTABLE_SERVLET_FIELD.html +++ /dev/null @@ -1,10 +0,0 @@ -

A web server generally only creates one instance of servlet or jsp class (i.e., treats -the class as a Singleton), -and will -have multiple threads invoke methods on that instance to service multiple -simultaneous requests. -Thus, having a mutable instance field generally creates race conditions. - -

-This rule is deprecated, use {rule:squid:S2226} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_CANNOT_BE_FINAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_CANNOT_BE_FINAL.html deleted file mode 100644 index b9458901..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_CANNOT_BE_FINAL.html +++ /dev/null @@ -1,9 +0,0 @@ -

- A mutable static field could be changed by malicious code or - by accident from another package. - Unfortunately, the way the field is used doesn't allow - any easy fix to this problem.

- -

-This rule is deprecated, use {rule:squid:S1444} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_EXPOSE_REP.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_EXPOSE_REP.html deleted file mode 100644 index 0b06e11e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_EXPOSE_REP.html +++ /dev/null @@ -1,9 +0,0 @@ -

A public static method returns a reference to - an array that is part of the static state of the class. - Any code that calls this method can freely modify - the underlying array. - One fix is to return a copy of the array.

- -

-This rule is deprecated, use {rule:squid:S2384} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_FINAL_PKGPROTECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_FINAL_PKGPROTECT.html deleted file mode 100644 index 866baf4d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_FINAL_PKGPROTECT.html +++ /dev/null @@ -1,10 +0,0 @@ -

- A mutable static field could be changed by malicious code or - by accident from another package. - The field could be made package protected and/or made final - to avoid - this vulnerability.

- -

-This rule is deprecated, use {rule:squid:S2386} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_ARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_ARRAY.html deleted file mode 100644 index 87173f43..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_ARRAY.html +++ /dev/null @@ -1,8 +0,0 @@ -

A final static field references an array - and can be accessed by malicious code or - by accident from another package. - This code can freely modify the contents of the array.

- -

-This rule is deprecated, use {rule:squid:S2386} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_COLLECTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_COLLECTION.html deleted file mode 100644 index a6df6de6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_COLLECTION.html +++ /dev/null @@ -1,5 +0,0 @@ -

A mutable collection instance is assigned to a final static field, thus can be changed by malicious code or by accident from another package. Consider wrapping this field into Collections.unmodifiableSet/List/Map/etc. to avoid this vulnerability.

- -

-This rule is deprecated, use {rule:squid:S2386} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_COLLECTION_PKGPROTECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_COLLECTION_PKGPROTECT.html deleted file mode 100644 index 80fcda6b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_COLLECTION_PKGPROTECT.html +++ /dev/null @@ -1,5 +0,0 @@ -

A mutable collection instance is assigned to a final static field, thus can be changed by malicious code or by accident from another package. The field could be made package protected to avoid this vulnerability. Alternatively you may wrap this field into Collections.unmodifiableSet/List/Map/etc. to avoid this vulnerability.

- -

-This rule is deprecated, use {rule:squid:S2386} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_HASHTABLE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_HASHTABLE.html deleted file mode 100644 index e606339d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_MUTABLE_HASHTABLE.html +++ /dev/null @@ -1,8 +0,0 @@ -

A final static field references a Hashtable - and can be accessed by malicious code or - by accident from another package. - This code can freely modify the contents of the Hashtable.

- -

-This rule is deprecated, use {rule:squid:S2386} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_OOI_PKGPROTECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_OOI_PKGPROTECT.html deleted file mode 100644 index 6aff9cb1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_OOI_PKGPROTECT.html +++ /dev/null @@ -1,15 +0,0 @@ -

- A final static field that is -defined in an interface references a mutable - object such as an array or hashtable. - This mutable object could - be changed by malicious code or - by accident from another package. - To solve this, the field needs to be moved to a class - and made package protected - to avoid - this vulnerability.

- -

-This rule is deprecated, use {rule:squid:S2386} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_PKGPROTECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_PKGPROTECT.html deleted file mode 100644 index b15e85bc..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_PKGPROTECT.html +++ /dev/null @@ -1,8 +0,0 @@ -

A mutable static field could be changed by malicious code or - by accident. - The field could be made package protected to avoid - this vulnerability.

- -

-This rule is deprecated, use {rule:squid:S2386} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_SHOULD_BE_FINAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_SHOULD_BE_FINAL.html deleted file mode 100644 index d1f796ec..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_SHOULD_BE_FINAL.html +++ /dev/null @@ -1,8 +0,0 @@ -

- A mutable static field could be changed by malicious code or - by accident from another package. - The field could be made final to avoid - this vulnerability.

-

-This rule is deprecated, use {rule:squid:S1444} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_SHOULD_BE_REFACTORED_TO_BE_FINAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_SHOULD_BE_REFACTORED_TO_BE_FINAL.html deleted file mode 100644 index 70ae986b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MS_SHOULD_BE_REFACTORED_TO_BE_FINAL.html +++ /dev/null @@ -1,12 +0,0 @@ -

-This static field public but not final, and -could be changed by malicious code or -by accident from another package. -The field could be made final to avoid -this vulnerability. However, the static initializer contains more than one write -to the field, so doing so will require some refactoring. -

- -

-This rule is deprecated, use {rule:squid:S1444} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MTIA_SUSPECT_SERVLET_INSTANCE_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MTIA_SUSPECT_SERVLET_INSTANCE_FIELD.html deleted file mode 100644 index 6c27aae2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MTIA_SUSPECT_SERVLET_INSTANCE_FIELD.html +++ /dev/null @@ -1,10 +0,0 @@ -

- This class extends from a Servlet class, and uses an instance member variable. Since only - one instance of a Servlet class is created by the J2EE framework, and used in a - multithreaded way, this paradigm is highly discouraged and most likely problematic. Consider - only using method local variables. -

- -

-This rule is deprecated, use {rule:squid:S2226} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MTIA_SUSPECT_STRUTS_INSTANCE_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MTIA_SUSPECT_STRUTS_INSTANCE_FIELD.html deleted file mode 100644 index 7beeca41..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MTIA_SUSPECT_STRUTS_INSTANCE_FIELD.html +++ /dev/null @@ -1,11 +0,0 @@ -

- This class extends from a Struts Action class, and uses an instance member variable. Since only - one instance of a struts Action class is created by the Struts framework, and used in a - multithreaded way, this paradigm is highly discouraged and most likely problematic. Consider - only using method local variables. Only instance fields that are written outside of a monitor - are reported. -

- -

-This rule is deprecated, use {rule:squid:S2226} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MWN_MISMATCHED_NOTIFY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MWN_MISMATCHED_NOTIFY.html deleted file mode 100644 index be8302c0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MWN_MISMATCHED_NOTIFY.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method calls Object.notify() or Object.notifyAll() without obviously holding a lock -on the object.  Calling notify() or notifyAll() without a lock held will result in -an IllegalMonitorStateException being thrown.

- -

-This rule is deprecated, use {rule:squid:S2273} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MWN_MISMATCHED_WAIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MWN_MISMATCHED_WAIT.html deleted file mode 100644 index 0e40f85e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/MWN_MISMATCHED_WAIT.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method calls Object.wait() without obviously holding a lock -on the object.  Calling wait() without a lock held will result in -an IllegalMonitorStateException being thrown.

- -

-This rule is deprecated, use {rule:squid:S2273} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_BAD_EQUAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_BAD_EQUAL.html deleted file mode 100644 index 73571938..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_BAD_EQUAL.html +++ /dev/null @@ -1,9 +0,0 @@ -

- This class defines a method equal(Object). - This method does not override the equals(Object) method - in java.lang.Object, which is probably what was intended. -

- -

-This rule is deprecated, use {rule:squid:S1221} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CLASS_NAMING_CONVENTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CLASS_NAMING_CONVENTION.html deleted file mode 100644 index 5586734e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CLASS_NAMING_CONVENTION.html +++ /dev/null @@ -1,9 +0,0 @@ -

- Class names should be nouns, in mixed case with the first letter of each internal word capitalized. - Try to keep your class names simple and descriptive. Use whole words-avoid acronyms and abbreviations - (unless the abbreviation is much more widely used than the long form, such as URL or HTML). -

- -

-This rule is deprecated, use {rule:squid:S00101} and {rule:squid:S00114} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CLASS_NOT_EXCEPTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CLASS_NOT_EXCEPTION.html deleted file mode 100644 index ef21834b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CLASS_NOT_EXCEPTION.html +++ /dev/null @@ -1,6 +0,0 @@ -

This class is not derived from another exception, but ends with 'Exception'. This will -be confusing to users of this class.

- -

-This rule is deprecated, use {rule:squid:S2166} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CONFUSING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CONFUSING.html deleted file mode 100644 index 70d5195e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_CONFUSING.html +++ /dev/null @@ -1 +0,0 @@ -

The referenced methods have names that differ only by capitalization.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FIELD_NAMING_CONVENTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FIELD_NAMING_CONVENTION.html deleted file mode 100644 index ac090802..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FIELD_NAMING_CONVENTION.html +++ /dev/null @@ -1,8 +0,0 @@ -

- Names of fields that are not final should be in mixed case - with a lowercase first letter and the first letters of subsequent words capitalized. -

- -

-This rule is deprecated, use {rule:squid:S00116} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER.html deleted file mode 100644 index e2f2277f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER.html +++ /dev/null @@ -1,6 +0,0 @@ -

The identifier is a word that is reserved as a keyword in later versions of Java, and your code will need to be changed -in order to compile it in later versions of Java.

- -

-This rule is deprecated, use {rule:squid:S1190} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER.html deleted file mode 100644 index fcc90835..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER.html +++ /dev/null @@ -1,7 +0,0 @@ -

This identifier is used as a keyword in later versions of Java. This code, and -any code that references this API, -will need to be changed in order to compile it in later versions of Java.

- -

-This rule is deprecated, use {rule:squid:S1190} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_LCASE_HASHCODE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_LCASE_HASHCODE.html deleted file mode 100644 index 54e7c7cf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_LCASE_HASHCODE.html +++ /dev/null @@ -1,9 +0,0 @@ -

- This class defines a method called hashcode(). - This method does not override the hashCode() - method in java.lang.Object, which is probably what was intended. -

- -

-This rule is deprecated, use {rule:squid:S1221} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_LCASE_TOSTRING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_LCASE_TOSTRING.html deleted file mode 100644 index b53cad35..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_LCASE_TOSTRING.html +++ /dev/null @@ -1,5 +0,0 @@ -

- This class defines a method called tostring(). - This method does not override the toString() - method in java.lang.Object, which is probably what was intended. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_METHOD_CONSTRUCTOR_CONFUSION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_METHOD_CONSTRUCTOR_CONFUSION.html deleted file mode 100644 index 6f78859a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_METHOD_CONSTRUCTOR_CONFUSION.html +++ /dev/null @@ -1,9 +0,0 @@ -

This regular method has the same name as the class it is defined in. It is likely that this was intended to be a constructor. - If it was intended to be a constructor, remove the declaration of a void return value. - If you had accidently defined this method, realized the mistake, defined a proper constructor - but can't get rid of this method due to backwards compatibility, deprecate the method. -

- -

-This rule is deprecated, use {rule:squid:S1223} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_METHOD_NAMING_CONVENTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_METHOD_NAMING_CONVENTION.html deleted file mode 100644 index ef9b6bcd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_METHOD_NAMING_CONVENTION.html +++ /dev/null @@ -1,8 +0,0 @@ -

- Methods should be verbs, in mixed case with the first letter lowercase, - with the first letter of each internal word capitalized. -

- -

-This rule is deprecated, use {rule:squid:S00100} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_SAME_SIMPLE_NAME_AS_INTERFACE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_SAME_SIMPLE_NAME_AS_INTERFACE.html deleted file mode 100644 index e78062fd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_SAME_SIMPLE_NAME_AS_INTERFACE.html +++ /dev/null @@ -1,10 +0,0 @@ -

This class/interface has a simple name that is identical to that of an implemented/extended interface, except -that the interface is in a different package (e.g., alpha.Foo extends beta.Foo). -This can be exceptionally confusing, create lots of situations in which you have to look at import statements -to resolve references and creates many -opportunities to accidently define methods that do not override methods in their superclasses. -

- -

-This rule is deprecated, use {rule:squid:S2176} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_SAME_SIMPLE_NAME_AS_SUPERCLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_SAME_SIMPLE_NAME_AS_SUPERCLASS.html deleted file mode 100644 index 1a6455d0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_SAME_SIMPLE_NAME_AS_SUPERCLASS.html +++ /dev/null @@ -1,10 +0,0 @@ -

This class has a simple name that is identical to that of its superclass, except -that its superclass is in a different package (e.g., alpha.Foo extends beta.Foo). -This can be exceptionally confusing, create lots of situations in which you have to look at import statements -to resolve references and creates many -opportunities to accidently define methods that do not override methods in their superclasses. -

- -

-This rule is deprecated, use {rule:squid:S2176} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_VERY_CONFUSING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_VERY_CONFUSING.html deleted file mode 100644 index e744f345..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_VERY_CONFUSING.html +++ /dev/null @@ -1,4 +0,0 @@ -

The referenced methods have names that differ only by capitalization. -This is very confusing because if the capitalization were -identical then one of the methods would override the other. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_VERY_CONFUSING_INTENTIONAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_VERY_CONFUSING_INTENTIONAL.html deleted file mode 100644 index 3e613b93..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_VERY_CONFUSING_INTENTIONAL.html +++ /dev/null @@ -1,6 +0,0 @@ -

The referenced methods have names that differ only by capitalization. -This is very confusing because if the capitalization were -identical then one of the methods would override the other. From the existence of other methods, it -seems that the existence of both of these methods is intentional, but is sure is confusing. -You should try hard to eliminate one of them, unless you are forced to have both due to frozen APIs. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_WRONG_PACKAGE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_WRONG_PACKAGE.html deleted file mode 100644 index a266edcd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_WRONG_PACKAGE.html +++ /dev/null @@ -1,22 +0,0 @@ -

The method in the subclass doesn't override a similar method in a superclass because the type of a parameter doesn't exactly match -the type of the corresponding parameter in the superclass. For example, if you have:

- -
-
-import alpha.Foo;
-public class A {
-  public int f(Foo x) { return 17; }
-}
-----
-import beta.Foo;
-public class B extends A {
-  public int f(Foo x) { return 42; }
-}
-
-
- -

The f(Foo) method defined in class B doesn't -override the -f(Foo) method defined in class A, because the argument -types are Foo's from different packages. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_WRONG_PACKAGE_INTENTIONAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_WRONG_PACKAGE_INTENTIONAL.html deleted file mode 100644 index 5d0a90d7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NM_WRONG_PACKAGE_INTENTIONAL.html +++ /dev/null @@ -1,28 +0,0 @@ -

The method in the subclass doesn't override a similar method in a superclass because the type of a parameter doesn't exactly match -the type of the corresponding parameter in the superclass. For example, if you have:

- -
-
-import alpha.Foo;
-public class A {
-  public int f(Foo x) { return 17; }
-}
-----
-import beta.Foo;
-public class B extends A {
-  public int f(Foo x) { return 42; }
-  public int f(alpha.Foo x) { return 27; }
-}
-
-
- -

The f(Foo) method defined in class B doesn't -override the -f(Foo) method defined in class A, because the argument -types are Foo's from different packages. -

- -

In this case, the subclass does define a method with a signature identical to the method in the superclass, -so this is presumably understood. However, such methods are exceptionally confusing. You should strongly consider -removing or deprecating the method with the similar but not identical signature. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NN_NAKED_NOTIFY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NN_NAKED_NOTIFY.html deleted file mode 100644 index 3d8dc1d3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NN_NAKED_NOTIFY.html +++ /dev/null @@ -1,10 +0,0 @@ -

A call to notify() or notifyAll() - was made without any (apparent) accompanying - modification to mutable object state.  In general, calling a notify - method on a monitor is done because some condition another thread is - waiting for has become true.  However, for the condition to be meaningful, - it must involve a heap object that is visible to both threads.

- -

This bug does not necessarily indicate an error, since the change to - mutable object state may have taken place in a method which then called - the method containing the notification.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NO_NOTIFY_NOT_NOTIFYALL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NO_NOTIFY_NOT_NOTIFYALL.html deleted file mode 100644 index 9275ebe9..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NO_NOTIFY_NOT_NOTIFYALL.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method calls notify() rather than notifyAll().  - Java monitors are often used for multiple conditions.  Calling notify() - only wakes up one thread, meaning that the thread woken up might not be the - one waiting for the condition that the caller just satisfied.

- -

-This rule is deprecated, use {rule:squid:S2446} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ALWAYS_NULL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ALWAYS_NULL.html deleted file mode 100644 index 80bf430d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ALWAYS_NULL.html +++ /dev/null @@ -1,6 +0,0 @@ -

A null pointer is dereferenced here.  This will lead to a -NullPointerException when the code is executed.

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ALWAYS_NULL_EXCEPTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ALWAYS_NULL_EXCEPTION.html deleted file mode 100644 index 5e6046fb..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ALWAYS_NULL_EXCEPTION.html +++ /dev/null @@ -1,11 +0,0 @@ -

A pointer which is null on an exception path is dereferenced here.  -This will lead to a NullPointerException when the code is executed.  -Note that because FindBugs currently does not prune infeasible exception paths, -this may be a false warning.

- -

Also note that FindBugs considers the default case of a switch statement to -be an exception path, since the default case is often infeasible.

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ARGUMENT_MIGHT_BE_NULL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ARGUMENT_MIGHT_BE_NULL.html deleted file mode 100644 index 03423558..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_ARGUMENT_MIGHT_BE_NULL.html +++ /dev/null @@ -1,9 +0,0 @@ -

- A parameter to this method has been identified as a value that should - always be checked to see whether or not it is null, but it is being dereferenced - without a preceding null check. -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_BOOLEAN_RETURN_NULL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_BOOLEAN_RETURN_NULL.html deleted file mode 100644 index 666f2403..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_BOOLEAN_RETURN_NULL.html +++ /dev/null @@ -1,10 +0,0 @@ -

- A method that returns either Boolean.TRUE, Boolean.FALSE or null is an accident waiting to happen. - This method can be invoked as though it returned a value of type boolean, and - the compiler will insert automatic unboxing of the Boolean value. If a null value is returned, - this will result in a NullPointerException. -

- -

-This rule is deprecated, use {rule:squid:S2447} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_CLONE_COULD_RETURN_NULL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_CLONE_COULD_RETURN_NULL.html deleted file mode 100644 index 6edddf8e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_CLONE_COULD_RETURN_NULL.html +++ /dev/null @@ -1,9 +0,0 @@ -

- This clone method seems to return null in some circumstances, but clone is never - allowed to return a null value. If you are convinced this path is unreachable, throw an AssertionError - instead. -

- -

-This rule is deprecated, use {rule:squid:S2225} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_CLOSING_NULL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_CLOSING_NULL.html deleted file mode 100644 index 142f04f1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_CLOSING_NULL.html +++ /dev/null @@ -1,5 +0,0 @@ -close() is being invoked on a value that is always null. If this statement is executed, a null pointer exception will occur. But the big risk here you never close something that should be closed. - -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_DEREFERENCE_OF_READLINE_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_DEREFERENCE_OF_READLINE_VALUE.html deleted file mode 100644 index e4712b75..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_DEREFERENCE_OF_READLINE_VALUE.html +++ /dev/null @@ -1,7 +0,0 @@ -

The result of invoking readLine() is dereferenced without checking to see if the result is null. If there are no more lines of text -to read, readLine() will return null and dereferencing that will generate a null pointer exception. -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT.html deleted file mode 100644 index 95380d50..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT.html +++ /dev/null @@ -1,10 +0,0 @@ -

- This implementation of equals(Object) violates the contract defined - by java.lang.Object.equals() because it does not check for null - being passed as the argument. All equals() methods should return - false if passed a null value. -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_GUARANTEED_DEREF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_GUARANTEED_DEREF.html deleted file mode 100644 index c0960fae..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_GUARANTEED_DEREF.html +++ /dev/null @@ -1,10 +0,0 @@ -

- There is a statement or branch that if executed guarantees that - a value is null at this point, and that - value that is guaranteed to be dereferenced - (except on forward paths involving runtime exceptions). -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH.html deleted file mode 100644 index cb4ea457..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH.html +++ /dev/null @@ -1,11 +0,0 @@ -

- There is a statement or branch on an exception path - that if executed guarantees that - a value is null at this point, and that - value that is guaranteed to be dereferenced - (except on forward paths involving runtime exceptions). -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_IMMEDIATE_DEREFERENCE_OF_READLINE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_IMMEDIATE_DEREFERENCE_OF_READLINE.html deleted file mode 100644 index 1a81ddb0..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_IMMEDIATE_DEREFERENCE_OF_READLINE.html +++ /dev/null @@ -1,7 +0,0 @@ -

The result of invoking readLine() is immediately dereferenced. If there are no more lines of text -to read, readLine() will return null and dereferencing that will generate a null pointer exception. -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_LOAD_OF_KNOWN_NULL_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_LOAD_OF_KNOWN_NULL_VALUE.html deleted file mode 100644 index ffd785b1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_LOAD_OF_KNOWN_NULL_VALUE.html +++ /dev/null @@ -1,9 +0,0 @@ -

The variable referenced at this point is known to be null due to an earlier - check against null. Although this is valid, it might be a mistake (perhaps you -intended to refer to a different variable, or perhaps the earlier check to see if the -variable is null should have been a check to see if it was nonnull). -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION.html deleted file mode 100644 index 0a2c4296..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION.html +++ /dev/null @@ -1,5 +0,0 @@ -

-A method should always implement the contract of a method it overrides. Thus, if a method takes a parameter -that is marked as @Nullable, you shouldn't override that method in a subclass with a method where that parameter is @Nonnull. -Doing so violates the contract that the method should handle a null parameter. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_METHOD_RETURN_RELAXING_ANNOTATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_METHOD_RETURN_RELAXING_ANNOTATION.html deleted file mode 100644 index 1f8085c9..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_METHOD_RETURN_RELAXING_ANNOTATION.html +++ /dev/null @@ -1,6 +0,0 @@ -

-A method should always implement the contract of a method it overrides. Thus, if a method takes is annotated -as returning a @Nonnull value, -you shouldn't override that method in a subclass with a method annotated as returning a @Nullable or @CheckForNull value. -Doing so violates the contract that the method shouldn't return null. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html deleted file mode 100644 index f4b82280..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html +++ /dev/null @@ -1,5 +0,0 @@ -

-The field is marked as nonnull, but isn't written to by the constructor. -The field might be initialized elsewhere during constructor, or might always -be initialized before use. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_PARAM_VIOLATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_PARAM_VIOLATION.html deleted file mode 100644 index 80cc4c39..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_PARAM_VIOLATION.html +++ /dev/null @@ -1,6 +0,0 @@ -

- This method passes a null value as the parameter of a method which - must be nonnull. Either this parameter has been explicitly marked - as @Nonnull, or analysis has determined that this parameter is - always dereferenced. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_RETURN_VIOLATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_RETURN_VIOLATION.html deleted file mode 100644 index 80c43be3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NONNULL_RETURN_VIOLATION.html +++ /dev/null @@ -1,4 +0,0 @@ -

- This method may return a null value, but the method (or a superclass method - which it overrides) is declared to return @NonNull. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_INSTANCEOF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_INSTANCEOF.html deleted file mode 100644 index 01809178..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_INSTANCEOF.html +++ /dev/null @@ -1,9 +0,0 @@ -

-This instanceof test will always return false, since the value being checked is guaranteed to be null. -Although this is safe, make sure it isn't -an indication of some misunderstanding or some other logic error. -

- -

-This rule is deprecated, use {rule:squid:S1850} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH.html deleted file mode 100644 index 4e0afb60..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH.html +++ /dev/null @@ -1,10 +0,0 @@ -

There is a branch of statement that, if executed, guarantees that -a null value will be dereferenced, which -would generate a NullPointerException when the code is executed. -Of course, the problem might be that the branch or statement is infeasible and that -the null pointer exception can't ever be executed; deciding that is beyond the ability of FindBugs. -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_EXCEPTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_EXCEPTION.html deleted file mode 100644 index eeb6a304..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_EXCEPTION.html +++ /dev/null @@ -1,12 +0,0 @@ -

A reference value which is null on some exception control path is -dereferenced here.  This may lead to a NullPointerException -when the code is executed.  -Note that because FindBugs currently does not prune infeasible exception paths, -this may be a false warning.

- -

Also note that FindBugs considers the default case of a switch statement to -be an exception path, since the default case is often infeasible.

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE.html deleted file mode 100644 index 629deeb1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE.html +++ /dev/null @@ -1,33 +0,0 @@ -

-The return value from a method is dereferenced without a null check, -and the return value of that method is one that should generally be checked for null (which requires to use Findbugs annotations to express the developer's intend). -This may lead to a NullPointerException when the code is executed. -

- -

Noncompliant Code Example

-
-public long getTime() {
-  return getDate().getTime();      // NullPointerException may occur
-}
-
-@CheckForNull                      // See javax.annotation.CheckForNull (JSR-305)
-public Date getDate() { /* ... */ }
-
- -

Compliant Solution

-
-public long getTime() {
-  Date date = getDate();
-  if (date == null) {
-    throw new IllegalStateException("...");
-  }
-  return date.getTime();
-}
-
-@CheckForNull                      // See javax.annotation.CheckForNull (JSR-305)
-public Date getDate() { /* ... */ }
-
- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE.html deleted file mode 100644 index f3bf6099..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE.html +++ /dev/null @@ -1,11 +0,0 @@ -

There is a branch of statement that, if executed, guarantees that -a null value will be dereferenced, which -would generate a NullPointerException when the code is executed. -Of course, the problem might be that the branch or statement is infeasible and that -the null pointer exception can't ever be executed; deciding that is beyond the ability of FindBugs. -Due to the fact that this value had been previously tested for nullness, this is a definite possibility. -

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF.html deleted file mode 100644 index 83553101..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF.html +++ /dev/null @@ -1,6 +0,0 @@ -

- This method call passes a null value for a nonnull method parameter. - Either the parameter is annotated as a parameter that should - always be nonnull, or analysis has shown that it will always be - dereferenced. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS.html deleted file mode 100644 index 82a2a8ee..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS.html +++ /dev/null @@ -1,7 +0,0 @@ -

- A possibly-null value is passed at a call site where all known - target methods require the parameter to be nonnull. - Either the parameter is annotated as a parameter that should - always be nonnull, or analysis has shown that it will always be - dereferenced. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF_NONVIRTUAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF_NONVIRTUAL.html deleted file mode 100644 index 7f5cbba9..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_NULL_PARAM_DEREF_NONVIRTUAL.html +++ /dev/null @@ -1,6 +0,0 @@ -

- A possibly-null value is passed to a nonnull method parameter. - Either the parameter is annotated as a parameter that should - always be nonnull, or analysis has shown that it will always be - dereferenced. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_OPTIONAL_RETURN_NULL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_OPTIONAL_RETURN_NULL.html deleted file mode 100644 index e00663f7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_OPTIONAL_RETURN_NULL.html +++ /dev/null @@ -1 +0,0 @@ -

The usage of Optional return type always mean that explicit null returns were not desired by design. Returning a null value in such case is a contract violation and will most likely break clients code.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE.html deleted file mode 100644 index 132bdb6b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE.html +++ /dev/null @@ -1,4 +0,0 @@ -

This parameter is always used in a way that requires it to be nonnull, -but the parameter is explicitly annotated as being Nullable. Either the use -of the parameter or the annotation is wrong. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_STORE_INTO_NONNULL_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_STORE_INTO_NONNULL_FIELD.html deleted file mode 100644 index ea5efdef..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_STORE_INTO_NONNULL_FIELD.html +++ /dev/null @@ -1 +0,0 @@ -

A value that could be null is stored into a field that has been annotated as NonNull.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_SYNC_AND_NULL_CHECK_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_SYNC_AND_NULL_CHECK_FIELD.html deleted file mode 100644 index 0b24c035..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_SYNC_AND_NULL_CHECK_FIELD.html +++ /dev/null @@ -1,8 +0,0 @@ -

Since the field is synchronized on, it seems not likely to be null. -If it is null and then synchronized on a NullPointerException will be -thrown and the check would be pointless. Better to synchronize on -another field.

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_TOSTRING_COULD_RETURN_NULL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_TOSTRING_COULD_RETURN_NULL.html deleted file mode 100644 index 2f3b01a2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_TOSTRING_COULD_RETURN_NULL.html +++ /dev/null @@ -1,9 +0,0 @@ -

- This toString method seems to return null in some circumstances. A liberal reading of the - spec could be interpreted as allowing this, but it is probably a bad idea and could cause - other code to break. Return the empty string or some other appropriate string rather than null. -

- -

-This rule is deprecated, use {rule:squid:S2225} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_UNWRITTEN_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_UNWRITTEN_FIELD.html deleted file mode 100644 index c52cdd05..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_UNWRITTEN_FIELD.html +++ /dev/null @@ -1,5 +0,0 @@ -

The program is dereferencing a field that does not seem to ever have a non-null value written to it. Dereferencing this value will generate a null pointer exception.

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html deleted file mode 100644 index 1369c2e4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html +++ /dev/null @@ -1,7 +0,0 @@ -

The program is dereferencing a public or protected field that does not seem to ever have a non-null - value written to it. Unless the field is initialized via some mechanism not seen by the analysis, - dereferencing this value will generate a null pointer exception.

- -

-This rule is deprecated, use {rule:squid:S2259} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NS_DANGEROUS_NON_SHORT_CIRCUIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NS_DANGEROUS_NON_SHORT_CIRCUIT.html deleted file mode 100644 index f95fa4ee..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NS_DANGEROUS_NON_SHORT_CIRCUIT.html +++ /dev/null @@ -1,22 +0,0 @@ -

This code seems to be using non-short-circuit logic (e.g., & -or |) -rather than short-circuit logic (&& or ||). In addition, -it seem possible that, depending on the value of the left hand side, you might not -want to evaluate the right hand side (because it would have side effects, could cause an exception -or could be expensive.

-

-Non-short-circuit logic causes both sides of the expression -to be evaluated even when the result can be inferred from -knowing the left-hand side. This can be less efficient and -can result in errors if the left-hand side guards cases -when evaluating the right-hand side can generate an error. -

- -

See the Java -Language Specification for details - -

- -

-This rule is deprecated, use {rule:squid:S2178} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NS_NON_SHORT_CIRCUIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NS_NON_SHORT_CIRCUIT.html deleted file mode 100644 index e3df3bd5..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/NS_NON_SHORT_CIRCUIT.html +++ /dev/null @@ -1,17 +0,0 @@ -

This code seems to be using non-short-circuit logic (e.g., & -or |) -rather than short-circuit logic (&& or ||). -Non-short-circuit logic causes both sides of the expression -to be evaluated even when the result can be inferred from -knowing the left-hand side. This can be less efficient and -can result in errors if the left-hand side guards cases -when evaluating the right-hand side can generate an error. - -

See the Java -Language Specification for details - -

- -

-This rule is deprecated, use {rule:squid:S2178} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OBL_UNSATISFIED_OBLIGATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OBL_UNSATISFIED_OBLIGATION.html deleted file mode 100644 index 2aa8c28a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OBL_UNSATISFIED_OBLIGATION.html +++ /dev/null @@ -1,38 +0,0 @@ -

- This method may fail to clean up (close, dispose of) a stream, - database object, or other - resource requiring an explicit cleanup operation. -

-

- In general, if a method opens a stream or other resource, - the method should use a try/finally block to ensure that - the stream or resource is cleaned up before the method - returns. -

-

- This bug pattern is essentially the same as the - OS_OPEN_STREAM and ODR_OPEN_DATABASE_RESOURCE - bug patterns, but is based on a different - (and hopefully better) static analysis technique. - We are interested is getting feedback about the - usefulness of this bug pattern. - To send feedback, either: -

- -

- In particular, - the false-positive suppression heuristics for this - bug pattern have not been extensively tuned, so - reports about false positives are helpful to us. -

-

- See Weimer and Necula, Finding and Preventing Run-Time Error Handling Mistakes, for - a description of the analysis technique. -

- -

-This rule is deprecated, use {rule:squid:S2095} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE.html deleted file mode 100644 index 0f567136..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE.html +++ /dev/null @@ -1,10 +0,0 @@ -

This method may fail to clean up (close, dispose of) a stream, database object, or other resource requiring an -explicit cleanup operation.
In general, if a method opens a stream or other resource, the method should use a try/finally block to ensure -that the stream or resource is cleaned up before the method returns.

-

This bug pattern is essentially the same as the OS_OPEN_STREAM and ODR_OPEN_DATABASE_RESOURCE bug patterns, but is based on a different -(and hopefully better) static analysis technique. See Weimer and Necula, Finding and Preventing Run-Time Error Handling Mistakes, for a -description of the analysis technique. .

- -

-This rule is deprecated, use {rule:squid:S2095} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ODR_OPEN_DATABASE_RESOURCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ODR_OPEN_DATABASE_RESOURCE.html deleted file mode 100644 index efc0d5c8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ODR_OPEN_DATABASE_RESOURCE.html +++ /dev/null @@ -1,12 +0,0 @@ -

The method creates a database resource (such as a database connection -or row set), does not assign it to any -fields, pass it to other methods, or return it, and does not appear to close -the object on all paths out of the method.  Failure to -close database resources on all paths out of a method may -result in poor performance, and could cause the application to -have problems communicating with the database. -

- -

-This rule is deprecated, use {rule:squid:S2095} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH.html deleted file mode 100644 index ef1bdb18..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH.html +++ /dev/null @@ -1,11 +0,0 @@ -

The method creates a database resource (such as a database connection -or row set), does not assign it to any -fields, pass it to other methods, or return it, and does not appear to close -the object on all exception paths out of the method.  Failure to -close database resources on all paths out of a method may -result in poor performance, and could cause the application to -have problems communicating with the database.

- -

-This rule is deprecated, use {rule:squid:S2095} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OS_OPEN_STREAM.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OS_OPEN_STREAM.html deleted file mode 100644 index bebb614c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OS_OPEN_STREAM.html +++ /dev/null @@ -1,11 +0,0 @@ -

The method creates an IO stream object, does not assign it to any -fields, pass it to other methods that might close it, -or return it, and does not appear to close -the stream on all paths out of the method.  This may result in -a file descriptor leak.  It is generally a good -idea to use a finally block to ensure that streams are -closed.

- -

-This rule is deprecated, use {rule:squid:S2095} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OS_OPEN_STREAM_EXCEPTION_PATH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OS_OPEN_STREAM_EXCEPTION_PATH.html deleted file mode 100644 index a61c6e3a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/OS_OPEN_STREAM_EXCEPTION_PATH.html +++ /dev/null @@ -1,10 +0,0 @@ -

The method creates an IO stream object, does not assign it to any -fields, pass it to other methods, or return it, and does not appear to close -it on all possible exception paths out of the method.  -This may result in a file descriptor leak.  It is generally a good -idea to use a finally block to ensure that streams are -closed.

- -

-This rule is deprecated, use {rule:squid:S2095} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PS_PUBLIC_SEMAPHORES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PS_PUBLIC_SEMAPHORES.html deleted file mode 100644 index 1c2a7e5b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PS_PUBLIC_SEMAPHORES.html +++ /dev/null @@ -1,7 +0,0 @@ -

- This class uses synchronization along with wait(), notify() or notifyAll() on itself (the this - reference). Client classes that use this class, may, in addition, use an instance of this class - as a synchronizing object. Because two classes are using the same object for synchronization, - Multithread correctness is suspect. You should not synchronize nor call semaphore methods on - a public reference. Consider using a internal private member variable to control synchronization. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PT_ABSOLUTE_PATH_TRAVERSAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PT_ABSOLUTE_PATH_TRAVERSAL.html deleted file mode 100644 index 148eeb2a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PT_ABSOLUTE_PATH_TRAVERSAL.html +++ /dev/null @@ -1,13 +0,0 @@ -

-The software uses an HTTP request parameter to construct a pathname that should be within a restricted directory, -but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that is outside of that directory. - -See http://cwe.mitre.org/data/definitions/36.html for more information. -

- -

-FindBugs looks only for the most blatant, obvious cases of absolute path traversal. -If FindBugs found any, you almost certainly have more -vulnerabilities that FindBugs doesn't report. If you are concerned about absolute path traversal, you should seriously -consider using a commercial static analysis or pen-testing tool. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PT_RELATIVE_PATH_TRAVERSAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PT_RELATIVE_PATH_TRAVERSAL.html deleted file mode 100644 index de134d8d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PT_RELATIVE_PATH_TRAVERSAL.html +++ /dev/null @@ -1,12 +0,0 @@ -

-The software uses an HTTP request parameter to construct a pathname that should be within a restricted directory, -but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. - -See http://cwe.mitre.org/data/definitions/23.html for more information.

- -

-FindBugs looks only for the most blatant, obvious cases of relative path traversal. -If FindBugs found any, you almost certainly have more -vulnerabilities that FindBugs doesn't report. If you are concerned about relative path traversal, you should seriously -consider using a commercial static analysis or pen-testing tool. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PZLA_PREFER_ZERO_LENGTH_ARRAYS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PZLA_PREFER_ZERO_LENGTH_ARRAYS.html deleted file mode 100644 index c3cd3971..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PZLA_PREFER_ZERO_LENGTH_ARRAYS.html +++ /dev/null @@ -1,14 +0,0 @@ -

It is often a better design to -return a length zero array rather than a null reference to indicate that there -are no results (i.e., an empty list of results). -This way, no explicit check for null is needed by clients of the method.

- -

On the other hand, using null to indicate -"there is no answer to this question" is probably appropriate. -For example, File.listFiles() returns an empty list -if given a directory containing no files, and returns null if the file -is not a directory.

- -

-This rule is deprecated, use {rule:squid:S1168} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS.html deleted file mode 100644 index 353b2d70..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS.html +++ /dev/null @@ -1,4 +0,0 @@ -

The entrySet() method is allowed to return a view of the underlying Map in which an Iterator -and Map.Entry. This clever idea was used in several Map implementations, but introduces the possibility of - nasty coding mistakes. If a map m returns such an iterator for an entrySet, then c.addAll(m.entrySet()) will - go badly wrong. All of the Map implementations in OpenJDK 1.7 have been rewritten to avoid this, you should to.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT.html deleted file mode 100644 index 6ec6d6b5..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT.html +++ /dev/null @@ -1,9 +0,0 @@ -

- This method assigns a literal boolean value (true or false) to a boolean variable inside - an if or while expression. Most probably this was supposed to be a boolean comparison using - ==, not an assignment using =. -

- -

-This rule is deprecated, use {rule:squid:AssignmentInSubExpressionCheck} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/QF_QUESTIONABLE_FOR_LOOP.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/QF_QUESTIONABLE_FOR_LOOP.html deleted file mode 100644 index 4c368d3c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/QF_QUESTIONABLE_FOR_LOOP.html +++ /dev/null @@ -1,8 +0,0 @@ -

Are you sure this for loop is incrementing the correct variable? - It appears that another variable is being initialized and checked - by the for loop. -

- -

-This rule is deprecated, use {rule:squid:S1994} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_INDEX.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_INDEX.html deleted file mode 100644 index d61f6bc6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_INDEX.html +++ /dev/null @@ -1 +0,0 @@ -

Array operation is performed, but array index is out of bounds, which will result in ArrayIndexOutOfBoundsException at runtime.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_LENGTH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_LENGTH.html deleted file mode 100644 index e0028cf6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_LENGTH.html +++ /dev/null @@ -1 +0,0 @@ -

Method is called with array parameter and length parameter, but the length is out of bounds. This will result in IndexOutOfBoundsException at runtime.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_OFFSET.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_OFFSET.html deleted file mode 100644 index e894a1b6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_ARRAY_OFFSET.html +++ /dev/null @@ -1 +0,0 @@ -

Method is called with array parameter and offset parameter, but the offset is out of bounds. This will result in IndexOutOfBoundsException at runtime.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_STRING_INDEX.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_STRING_INDEX.html deleted file mode 100644 index b17d9ce8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RANGE_STRING_INDEX.html +++ /dev/null @@ -1 +0,0 @@ -

String method is called and specified string index is out of bounds. This will result in StringIndexOutOfBoundsException at runtime.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE.html deleted file mode 100644 index 539efcbf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE.html +++ /dev/null @@ -1,2 +0,0 @@ -

This method contains a reference known to be non-null with another reference -known to be null.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES.html deleted file mode 100644 index 766d93e6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES.html +++ /dev/null @@ -1,2 +0,0 @@ -

This method contains a redundant comparison of two references known to -both be definitely null.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE.html deleted file mode 100644 index cd8b2f92..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE.html +++ /dev/null @@ -1,2 +0,0 @@ -

This method contains a redundant check of a known non-null value against -the constant null.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE.html deleted file mode 100644 index 1b05263a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE.html +++ /dev/null @@ -1,2 +0,0 @@ -

This method contains a redundant check of a known null value against -the constant null.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE.html deleted file mode 100644 index cf68ed0a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE.html +++ /dev/null @@ -1,6 +0,0 @@ -

A value is checked here to see whether it is null, but this value can't -be null because it was previously dereferenced and if it were null a null pointer -exception would have occurred at the earlier dereference. -Essentially, this code and the previous dereference -disagree as to whether this value is allowed to be null. Either the check is redundant -or the previous dereference is erroneous.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON.html deleted file mode 100644 index d0228f11..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method compares two reference values using the == or != operator, -where the correct way to compare instances of this type is generally -with the equals() method. Examples of classes which should generally -not be compared by reference are java.lang.Integer, java.lang.Float, etc.

- -

-This rule is deprecated, use {rule:squid:S1698} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON_BAD_PRACTICE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON_BAD_PRACTICE.html deleted file mode 100644 index 3425ee92..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON_BAD_PRACTICE.html +++ /dev/null @@ -1,5 +0,0 @@ -This method compares a reference value to a constant using the == or != operator, where the correct way to compare instances of this type is generally with the equals() method. It is possible to create distinct instances that are equal but do not compare as == since they are different objects. Examples of classes which should generally not be compared by reference are java.lang.Integer, java.lang.Float, etc. - -

-This rule is deprecated, use {rule:squid:S1698} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN.html deleted file mode 100644 index 3f8a09ed..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN.html +++ /dev/null @@ -1,5 +0,0 @@ -This method compares two Boolean values using the == or != operator. Normally, there are only two Boolean values (Boolean.TRUE and Boolean.FALSE), but it is possible to create other Boolean objects using the new Boolean(b) constructor. It is best to avoid such objects, but if they do exist, then checking Boolean objects for equality using == or != will give results than are different than you would get using .equals(...) - -

-This rule is deprecated, use {rule:squid:S1698} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/REC_CATCH_EXCEPTION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/REC_CATCH_EXCEPTION.html deleted file mode 100644 index 095e615e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/REC_CATCH_EXCEPTION.html +++ /dev/null @@ -1,7 +0,0 @@ -

- This method uses a try-catch block that catches Exception objects, but Exception is not - thrown within the try block, and RuntimeException is not explicitly caught. It is a common bug pattern to - say try { ... } catch (Exception e) { something } as a shorthand for catching a number of types of exception - each of whose catch blocks is identical, but this construct also accidentally catches RuntimeException as well, - masking potential bugs. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION.html deleted file mode 100644 index 9870c704..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION.html +++ /dev/null @@ -1,5 +0,0 @@ -

-The code here uses a regular expression that is invalid according to the syntax -for regular expressions. This statement will throw a PatternSyntaxException when -executed. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION.html deleted file mode 100644 index 14662159..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The code here uses File.separator -where a regular expression is required. This will fail on Windows -platforms, where the File.separator is a backslash, which is interpreted in a -regular expression as an escape character. Amoung other options, you can just use -File.separatorChar=='\\' & "\\\\" : File.separator instead of -File.separator - -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_POSSIBLE_UNINTENDED_PATTERN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_POSSIBLE_UNINTENDED_PATTERN.html deleted file mode 100644 index 12e97d11..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RE_POSSIBLE_UNINTENDED_PATTERN.html +++ /dev/null @@ -1,7 +0,0 @@ -

-A String function is being invoked and "." is being passed -to a parameter that takes a regular expression as an argument. Is this what you intended? -For example -s.replaceAll(".", "/") will return a String in which every -character has been replaced by a / character. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RI_REDUNDANT_INTERFACES.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RI_REDUNDANT_INTERFACES.html deleted file mode 100644 index 00494a81..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RI_REDUNDANT_INTERFACES.html +++ /dev/null @@ -1,7 +0,0 @@ -

- This class declares that it implements an interface that is also implemented by a superclass. - This is redundant because once a superclass implements an interface, all subclasses by default also - implement this interface. It may point out that the inheritance hierarchy has changed since - this class was created, and consideration should be given to the ownership of - the interface's implementation. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RR_NOT_CHECKED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RR_NOT_CHECKED.html deleted file mode 100644 index f96545d3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RR_NOT_CHECKED.html +++ /dev/null @@ -1,11 +0,0 @@ -

This method ignores the return value of one of the variants of - java.io.InputStream.read() which can return multiple bytes.  - If the return value is not checked, the caller will not be able to correctly - handle the case where fewer bytes were read than the caller requested.  - This is a particularly insidious kind of bug, because in many programs, - reads from input streams usually do read the full amount of data requested, - causing the program to fail only sporadically.

- -

-This rule is deprecated, use {rule:squid:S2674} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RS_READOBJECT_SYNC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RS_READOBJECT_SYNC.html deleted file mode 100644 index 3acb27df..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RS_READOBJECT_SYNC.html +++ /dev/null @@ -1,6 +0,0 @@ -

This serializable class defines a readObject() which is - synchronized.  By definition, an object created by deserialization - is only reachable by one thread, and thus there is no need for - readObject() to be synchronized.  If the readObject() - method itself is causing the object to become visible to another thread, - that is an example of very dubious coding style.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RU_INVOKE_RUN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RU_INVOKE_RUN.html deleted file mode 100644 index 0afa2ace..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RU_INVOKE_RUN.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method explicitly invokes run() on an object.  - In general, classes implement the Runnable interface because - they are going to have their run() method invoked in a new thread, - in which case Thread.start() is the right method to call.

- -

-This rule is deprecated, use {rule:squid:S1217} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_01_TO_INT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_01_TO_INT.html deleted file mode 100644 index 0dfd82e8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_01_TO_INT.html +++ /dev/null @@ -1,3 +0,0 @@ -

A random value from 0 to 1 is being coerced to the integer value 0. You probably -want to multiple the random value by something else before coercing it to an integer, or use the Random.nextInt(n) method. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_ABSOLUTE_VALUE_OF_HASHCODE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_ABSOLUTE_VALUE_OF_HASHCODE.html deleted file mode 100644 index 6328b667..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_ABSOLUTE_VALUE_OF_HASHCODE.html +++ /dev/null @@ -1,9 +0,0 @@ -

This code generates a hashcode and then computes -the absolute value of that hashcode. If the hashcode -is Integer.MIN_VALUE, then the result will be negative as well (since -Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE). -

- -

-This rule is deprecated, use {rule:squid:S2676} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_ABSOLUTE_VALUE_OF_RANDOM_INT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_ABSOLUTE_VALUE_OF_RANDOM_INT.html deleted file mode 100644 index a890f6ab..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_ABSOLUTE_VALUE_OF_RANDOM_INT.html +++ /dev/null @@ -1,9 +0,0 @@ -

This code generates a random signed integer and then computes -the absolute value of that random integer. If the number returned by the random number -generator is Integer.MIN_VALUE, then the result will be negative as well (since -Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE). -

- -

-This rule is deprecated, use {rule:squid:S2676} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE.html deleted file mode 100644 index ededa3f2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE.html +++ /dev/null @@ -1,8 +0,0 @@ -

This code invoked a compareTo or compare method, and checks to see if the return value is a specific -value, such as 1 or -1. When invoking these methods, you should only check the sign of the result, not -for any specific non-zero value. While many or most compareTo and compare methods only return -1, 0 or 1, -some of them will return other values.

- -

-This rule is deprecated, use {rule:squid:S2200} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_CHECK_FOR_POSITIVE_INDEXOF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_CHECK_FOR_POSITIVE_INDEXOF.html deleted file mode 100644 index cc6146cf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_CHECK_FOR_POSITIVE_INDEXOF.html +++ /dev/null @@ -1,8 +0,0 @@ -

The method invokes String.indexOf and checks to see if the result is positive or non-positive. - It is much more typical to check to see if the result is negative or non-negative. It is - positive only if the substring checked for occurs at some place other than at the beginning of - the String.

- -

-This rule is deprecated, use {rule:squid:S2692} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_DONT_JUST_NULL_CHECK_READLINE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_DONT_JUST_NULL_CHECK_READLINE.html deleted file mode 100644 index f8064370..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_DONT_JUST_NULL_CHECK_READLINE.html +++ /dev/null @@ -1,7 +0,0 @@ -

The value returned by readLine is discarded after checking to see if the return -value is non-null. In almost all situations, if the result is non-null, you will want -to use that non-null value. Calling readLine again will give you a different line.

- -

-This rule is deprecated, use {rule:squid:S2677} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_EXCEPTION_NOT_THROWN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_EXCEPTION_NOT_THROWN.html deleted file mode 100644 index de25babc..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_EXCEPTION_NOT_THROWN.html +++ /dev/null @@ -1,19 +0,0 @@ -

This code creates an exception (or error) object, but doesn't do anything with it. For example, -something like

-
-
-if (x < 0)
-  new IllegalArgumentException("x must be nonnegative");
-
-
-

It was probably the intent of the programmer to throw the created exception:

-
-
-if (x < 0)
-  throw new IllegalArgumentException("x must be nonnegative");
-
-
- -

-This rule is deprecated, use {rule:squid:S1848} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_NEGATING_RESULT_OF_COMPARETO.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_NEGATING_RESULT_OF_COMPARETO.html deleted file mode 100644 index 9556ab44..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_NEGATING_RESULT_OF_COMPARETO.html +++ /dev/null @@ -1,8 +0,0 @@ -

This code negatives the return value of a compareTo or compare method. This is a questionable or bad -programming practice, since if the return value is Integer.MIN_VALUE, negating the return value won't -negate the sign of the result. You can achieve the same intended result by reversing the order of the -operands rather than by negating the results.

- -

-This rule is deprecated, use {rule:squid:S2676} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_REM_OF_HASHCODE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_REM_OF_HASHCODE.html deleted file mode 100644 index 2d757243..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_REM_OF_HASHCODE.html +++ /dev/null @@ -1,18 +0,0 @@ -

This code computes a hashCode, and then computes -the remainder of that value modulo another value. Since the hashCode -can be negative, the result of the remainder operation -can also be negative.

-

Assuming you want to ensure that the result of your computation is nonnegative, -you may need to change your code. -If you know the divisor is a power of 2, -you can use a bitwise and operator instead (i.e., instead of -using x.hashCode()%n, use x.hashCode()&(n-1). -This is probably faster than computing the remainder as well. -If you don't know that the divisor is a power of 2, take the absolute -value of the result of the remainder operation (i.e., use -Math.abs(x.hashCode()%n) -

- -

-This rule is deprecated, use {rule:squid:S2197} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_REM_OF_RANDOM_INT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_REM_OF_RANDOM_INT.html deleted file mode 100644 index 0fbcfe09..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_REM_OF_RANDOM_INT.html +++ /dev/null @@ -1,10 +0,0 @@ -

This code generates a random signed integer and then computes -the remainder of that value modulo another value. Since the random -number can be negative, the result of the remainder operation -can also be negative. Be sure this is intended, and strongly -consider using the Random.nextInt(int) method instead. -

- -

-This rule is deprecated, use {rule:squid:S2197} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED.html deleted file mode 100644 index 7d4f86ff..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED.html +++ /dev/null @@ -1,24 +0,0 @@ -

The return value of this method should be checked. One common -cause of this warning is to invoke a method on an immutable object, -thinking that it updates the object. For example, in the following code -fragment,

-
-
-String dateString = getHeaderField(name);
-dateString.trim();
-
-
-

the programmer seems to be thinking that the trim() method will update -the String referenced by dateString. But since Strings are immutable, the trim() -function returns a new String value, which is being ignored here. The code -should be corrected to:

-
-
-String dateString = getHeaderField(name);
-dateString = dateString.trim();
-
-
- -

-This rule is deprecated, use {rule:squid:S2201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED2.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED2.html deleted file mode 100644 index 7d4f86ff..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED2.html +++ /dev/null @@ -1,24 +0,0 @@ -

The return value of this method should be checked. One common -cause of this warning is to invoke a method on an immutable object, -thinking that it updates the object. For example, in the following code -fragment,

-
-
-String dateString = getHeaderField(name);
-dateString.trim();
-
-
-

the programmer seems to be thinking that the trim() method will update -the String referenced by dateString. But since Strings are immutable, the trim() -function returns a new String value, which is being ignored here. The code -should be corrected to:

-
-
-String dateString = getHeaderField(name);
-dateString = dateString.trim();
-
-
- -

-This rule is deprecated, use {rule:squid:S2201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_BAD_PRACTICE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_BAD_PRACTICE.html deleted file mode 100644 index 6a05b221..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_BAD_PRACTICE.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method returns a value that is not checked. The return value should be checked -since it can indicate an unusual or unexpected function execution. For -example, the File.delete() method returns false -if the file could not be successfully deleted (rather than -throwing an Exception). -If you don't check the result, you won't notice if the method invocation -signals unexpected behavior by returning an atypical return value. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_INFERRED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_INFERRED.html deleted file mode 100644 index d5392efc..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_INFERRED.html +++ /dev/null @@ -1,12 +0,0 @@ -

This code calls a method and ignores the return value. The return value is the same type as the type the -method is invoked on, and from our analysis it looks like the return value might be important (e.g., like -ignoring the return value of String.toLowerCase()). -

-

We are guessing that ignoring the return value might be a bad idea just from a simple analysis of the -body of the method. You can use a @CheckReturnValue annotation to instruct FindBugs as to whether -ignoring the return value of this method is important or acceptable.

-

Please investigate this closely to decide whether it is OK to ignore the return value.

- -

-This rule is deprecated, use {rule:squid:S2201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT.html deleted file mode 100644 index a3567ea7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT.html +++ /dev/null @@ -1,15 +0,0 @@ -

This code calls a method and ignores the return value. However our analysis shows that the method (including its implementations in subclasses if any) does not produce any effect other than return value. Thus this call can be removed.

- -

We are trying to reduce the false positives as much as possible, but in some cases this warning might be wrong. Common false-positive cases include:

- -
    -
  • The method is designed to be overridden and produce a side effect in other projects which are out of the scope of the analysis.
  • -
  • The method is called to trigger the class loading which may have a side effect.
  • -
  • The method is called just to get some exception.
  • -
- -

If you feel that our assumption is incorrect, you can use a @CheckReturnValue annotation to instruct FindBugs that ignoring the return value of this method is acceptable.

- -

-This rule is deprecated, use {rule:squid:S2201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED.html deleted file mode 100644 index e718906c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED.html +++ /dev/null @@ -1,5 +0,0 @@ -The putIfAbsent method is typically used to ensure that a single value is associated with a given key (the first value for which put if absent succeeds). If you ignore the return value and retain a reference to the value passed in, you run the risk of retaining a value that is not the one that is associated with the key in the map. If it matters which one you use and you use the one that isn't stored in the map, your program will behave incorrectly. - -

-This rule is deprecated, use {rule:squid:S2201} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RpC_REPEATED_CONDITIONAL_TEST.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RpC_REPEATED_CONDITIONAL_TEST.html deleted file mode 100644 index 577426c6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/RpC_REPEATED_CONDITIONAL_TEST.html +++ /dev/null @@ -1,8 +0,0 @@ -

The code contains a conditional test is performed twice, one right after the other -(e.g., x == 0 || x == 0). Perhaps the second occurrence is intended to be something else -(e.g., x == 0 || y == 0). -

- -

-This rule is deprecated, use {rule:squid:S1764} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_DOUBLE_ASSIGNMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_DOUBLE_ASSIGNMENT.html deleted file mode 100644 index a98dae5c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_DOUBLE_ASSIGNMENT.html +++ /dev/null @@ -1,13 +0,0 @@ -

This method contains a double assignment of a field; e.g. -

-
-  int x,y;
-  public void foo() {
-    x = x = 17;
-  }
-
-

Assigning to a field twice is useless, and may indicate a logic error or typo.

- -

-This rule is deprecated, use {rule:squid:S1656} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_ASSIGNMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_ASSIGNMENT.html deleted file mode 100644 index a8c7cf94..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_ASSIGNMENT.html +++ /dev/null @@ -1,13 +0,0 @@ -

This method contains a self assignment of a field; e.g. -

-
-  int x;
-  public void foo() {
-    x = x;
-  }
-
-

Such assignments are useless, and may indicate a logic error or typo.

- -

-This rule is deprecated, use {rule:squid:S1656} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_COMPARISON.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_COMPARISON.html deleted file mode 100644 index f131ed44..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_COMPARISON.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method compares a field with itself, and may indicate a typo or -a logic error. Make sure that you are comparing the right things. -

- -

-This rule is deprecated, use {rule:squid:S1764} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_COMPUTATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_COMPUTATION.html deleted file mode 100644 index eb02ba7a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_FIELD_SELF_COMPUTATION.html +++ /dev/null @@ -1,10 +0,0 @@ -

This method performs a nonsensical computation of a field with another -reference to the same field (e.g., x&x or x-x). Because of the nature -of the computation, this operation doesn't seem to make sense, -and may indicate a typo or -a logic error. Double check the computation. -

- -

-This rule is deprecated, use {rule:squid:S1764} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_DOUBLE_ASSIGNMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_DOUBLE_ASSIGNMENT.html deleted file mode 100644 index 5328f11e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_DOUBLE_ASSIGNMENT.html +++ /dev/null @@ -1,13 +0,0 @@ -

This method contains a double assignment of a local variable; e.g. -

-
-  public void foo() {
-    int x,y;
-    x = x = 17;
-  }
-
-

Assigning the same value to a variable twice is useless, and may indicate a logic error or typo.

- -

-This rule is deprecated, use {rule:squid:S1656} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_ASSIGNMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_ASSIGNMENT.html deleted file mode 100644 index 187452bf..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_ASSIGNMENT.html +++ /dev/null @@ -1,14 +0,0 @@ -

This method contains a self assignment of a local variable; e.g.

-
-  public void foo() {
-    int x = 3;
-    x = x;
-  }
-
-

-Such assignments are useless, and may indicate a logic error or typo. -

- -

-This rule is deprecated, use {rule:squid:S1656} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD.html deleted file mode 100644 index ccdeb4bb..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD.html +++ /dev/null @@ -1,13 +0,0 @@ -

This method contains a self assignment of a local variable, and there is a field with an identical name. -Assignment appears to have been ; e.g. -

-  int foo;
-  public void setFoo(int foo) {
-    foo = foo;
-  }
-
-The assignment is useless. Did you mean to assign to the field instead?

- -

-This rule is deprecated, use {rule:squid:S1226}, {rule:squid:S1656} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_COMPARISON.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_COMPARISON.html deleted file mode 100644 index 9b0bf5ad..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_COMPARISON.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method compares a local variable with itself, and may indicate a typo or -a logic error. Make sure that you are comparing the right things. -

- -

-This rule is deprecated, use {rule:squid:S1764} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_COMPUTATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_COMPUTATION.html deleted file mode 100644 index 248f5f19..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SA_LOCAL_SELF_COMPUTATION.html +++ /dev/null @@ -1,10 +0,0 @@ -

This method performs a nonsensical computation of a local variable with another -reference to the same variable (e.g., x&x or x-x). Because of the nature -of the computation, this operation doesn't seem to make sense, -and may indicate a typo or -a logic error. Double check the computation. -

- -

-This rule is deprecated, use {rule:squid:S1764} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SBSC_USE_STRINGBUFFER_CONCATENATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SBSC_USE_STRINGBUFFER_CONCATENATION.html deleted file mode 100644 index c8750eca..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SBSC_USE_STRINGBUFFER_CONCATENATION.html +++ /dev/null @@ -1,28 +0,0 @@ -

The method seems to be building a String using concatenation in a loop. -In each iteration, the String is converted to a StringBuffer/StringBuilder, - appended to, and converted back to a String. - This can lead to a cost quadratic in the number of iterations, - as the growing string is recopied in each iteration.

- -

Better performance can be obtained by using -a StringBuffer (or StringBuilder in Java 1.5) explicitly.

- -

For example:

-
-  // This is bad
-  String s = "";
-  for (int i = 0; i < field.length; ++i) {
-    s = s + field[i];
-  }
-
-  // This is better
-  StringBuffer buf = new StringBuffer();
-  for (int i = 0; i < field.length; ++i) {
-    buf.append(field[i]);
-  }
-  String s = buf.toString();
-
- -

-This rule is deprecated, use {rule:squid:S1643} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SC_START_IN_CTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SC_START_IN_CTOR.html deleted file mode 100644 index db9c0a63..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SC_START_IN_CTOR.html +++ /dev/null @@ -1,7 +0,0 @@ -

The constructor starts a thread. This is likely to be wrong if - the class is ever extended/subclassed, since the thread will be started - before the subclass constructor is started.

- -

-This rule is deprecated, use {rule:squid:S2693} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD.html deleted file mode 100644 index e4eb0e9a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD.html +++ /dev/null @@ -1,10 +0,0 @@ -

- This Serializable class defines a non-primitive instance field which is neither transient, - Serializable, or java.lang.Object, and does not appear to implement the Externalizable - interface or the readObject() and writeObject() methods. - Objects of this class will not be deserialized correctly if a non-Serializable object is stored in this field. -

- -

-This rule is deprecated, use {rule:squid:S1948} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD_INNER_CLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD_INNER_CLASS.html deleted file mode 100644 index 3f109a03..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD_INNER_CLASS.html +++ /dev/null @@ -1,12 +0,0 @@ -

This Serializable class is an inner class of a non-serializable class. -Thus, attempts to serialize it will also attempt to associate instance of the outer -class with which it is associated, leading to a runtime error. -

-

If possible, making the inner class a static inner class should solve the -problem. Making the outer class serializable might also work, but that would -mean serializing an instance of the inner class would always also serialize the instance -of the outer class, which it often not what you really want. - -

-This rule is deprecated, use {rule:squid:S2066} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD_STORE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD_STORE.html deleted file mode 100644 index f06462e2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_BAD_FIELD_STORE.html +++ /dev/null @@ -1,2 +0,0 @@ -

A non-serializable value is stored into a non-transient field -of a serializable class.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_COMPARATOR_SHOULD_BE_SERIALIZABLE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_COMPARATOR_SHOULD_BE_SERIALIZABLE.html deleted file mode 100644 index 18bbc42d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_COMPARATOR_SHOULD_BE_SERIALIZABLE.html +++ /dev/null @@ -1,12 +0,0 @@ -

This class implements the Comparator interface. You -should consider whether or not it should also implement the Serializable -interface. If a comparator is used to construct an ordered collection -such as a TreeMap, then the TreeMap -will be serializable only if the comparator is also serializable. -As most comparators have little or no state, making them serializable -is generally easy and good defensive programming. -

- -

-This rule is deprecated, use {rule:squid:S2063} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_INNER_CLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_INNER_CLASS.html deleted file mode 100644 index 8d1a13c9..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_INNER_CLASS.html +++ /dev/null @@ -1,9 +0,0 @@ -

This Serializable class is an inner class. Any attempt to serialize -it will also serialize the associated outer instance. The outer instance is serializable, -so this won't fail, but it might serialize a lot more data than intended. -If possible, making the inner class a static inner class (also known as a nested class) should solve the -problem. - -

-This rule is deprecated, use {rule:squid:S2059} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_METHOD_MUST_BE_PRIVATE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_METHOD_MUST_BE_PRIVATE.html deleted file mode 100644 index 53239b17..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_METHOD_MUST_BE_PRIVATE.html +++ /dev/null @@ -1,7 +0,0 @@ -

This class implements the Serializable interface, and defines a method - for custom serialization/deserialization. But since that method isn't declared private, - it will be silently ignored by the serialization/deserialization API.

- -

-This rule is deprecated, use {rule:squid:S2061} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONFINAL_SERIALVERSIONID.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONFINAL_SERIALVERSIONID.html deleted file mode 100644 index e4d8e8be..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONFINAL_SERIALVERSIONID.html +++ /dev/null @@ -1,8 +0,0 @@ -

This class defines a serialVersionUID field that is not final.  - The field should be made final - if it is intended to specify - the version UID for purposes of serialization.

- -

-This rule is deprecated, use {rule:squid:S2057} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONLONG_SERIALVERSIONID.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONLONG_SERIALVERSIONID.html deleted file mode 100644 index ef27d25c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONLONG_SERIALVERSIONID.html +++ /dev/null @@ -1,8 +0,0 @@ -

This class defines a serialVersionUID field that is not long.  - The field should be made long - if it is intended to specify - the version UID for purposes of serialization.

- -

-This rule is deprecated, use {rule:squid:S2057} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONSTATIC_SERIALVERSIONID.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONSTATIC_SERIALVERSIONID.html deleted file mode 100644 index c66623ce..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NONSTATIC_SERIALVERSIONID.html +++ /dev/null @@ -1,8 +0,0 @@ -

This class defines a serialVersionUID field that is not static.  - The field should be made static - if it is intended to specify - the version UID for purposes of serialization.

- -

-This rule is deprecated, use {rule:squid:S2057} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SERIALVERSIONID.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SERIALVERSIONID.html deleted file mode 100644 index 47999ace..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SERIALVERSIONID.html +++ /dev/null @@ -1,16 +0,0 @@ -

This class implements the Serializable interface, but does - not define a serialVersionUID field.  - A change as simple as adding a reference to a .class object - will add synthetic fields to the class, - which will unfortunately change the implicit - serialVersionUID (e.g., adding a reference to String.class - will generate a static field class$java$lang$String). - Also, different source code to bytecode compilers may use different - naming conventions for synthetic variables generated for - references to class objects or inner classes. - To ensure interoperability of Serializable across versions, - consider adding an explicit serialVersionUID.

- -

-This rule is deprecated, use {rule:squid:S2057} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SUITABLE_CONSTRUCTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SUITABLE_CONSTRUCTOR.html deleted file mode 100644 index 7adbb4d3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SUITABLE_CONSTRUCTOR.html +++ /dev/null @@ -1,10 +0,0 @@ -

This class implements the Serializable interface - and its superclass does not. When such an object is deserialized, - the fields of the superclass need to be initialized by - invoking the void constructor of the superclass. - Since the superclass does not have one, - serialization and deserialization will fail at runtime.

- -

-This rule is deprecated, use {rule:squid:S2055} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION.html deleted file mode 100644 index a74e999b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION.html +++ /dev/null @@ -1,5 +0,0 @@ -

This class implements the Externalizable interface, but does - not define a void constructor. When Externalizable objects are deserialized, - they first need to be constructed by invoking the void - constructor. Since this class does not have one, - serialization and deserialization will fail at runtime.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_PRIVATE_READ_RESOLVE_NOT_INHERITED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_PRIVATE_READ_RESOLVE_NOT_INHERITED.html deleted file mode 100644 index f7dd7b66..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_PRIVATE_READ_RESOLVE_NOT_INHERITED.html +++ /dev/null @@ -1,3 +0,0 @@ -

This class defines a private readResolve method. Since it is private, it won't be inherited by subclasses. -This might be intentional and OK, but should be reviewed to ensure it is what is intended. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_READ_RESOLVE_IS_STATIC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_READ_RESOLVE_IS_STATIC.html deleted file mode 100644 index 96e9d38d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_READ_RESOLVE_IS_STATIC.html +++ /dev/null @@ -1,7 +0,0 @@ -

In order for the readResolve method to be recognized by the serialization -mechanism, it must not be declared as a static method. -

- -

-This rule is deprecated, use {rule:squid:S2061} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_READ_RESOLVE_MUST_RETURN_OBJECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_READ_RESOLVE_MUST_RETURN_OBJECT.html deleted file mode 100644 index 3b2c99ec..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_READ_RESOLVE_MUST_RETURN_OBJECT.html +++ /dev/null @@ -1,7 +0,0 @@ -

In order for the readResolve method to be recognized by the serialization -mechanism, it must be declared to have a return type of Object. -

- -

-This rule is deprecated, use {rule:squid:S2061} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_TRANSIENT_FIELD_NOT_RESTORED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_TRANSIENT_FIELD_NOT_RESTORED.html deleted file mode 100644 index fa9d408e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_TRANSIENT_FIELD_NOT_RESTORED.html +++ /dev/null @@ -1,3 +0,0 @@ -

This class contains a field that is updated at multiple places in the class, thus it seems to be part of the state of the class. However, since the field is marked as transient and not set in readObject or readResolve, it will contain the default value in any -deserialized instance of the class. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS.html deleted file mode 100644 index 3f6d1aa4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS.html +++ /dev/null @@ -1,9 +0,0 @@ -

The field is marked as transient, but the class isn't Serializable, so marking it as transient -has absolutely no effect. -This may be leftover marking from a previous version of the code in which the class was transient, or -it may indicate a misunderstanding of how serialization works. -

- -

-This rule is deprecated, use {rule:squid:S2065} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH.html deleted file mode 100644 index b0a03878..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH.html +++ /dev/null @@ -1,5 +0,0 @@ -

- A value stored in the previous switch case is overwritten here due - to a switch fall through. It is likely that you forgot to put a - break or return at the end of the previous case. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW.html deleted file mode 100644 index c16a7b7b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW.html +++ /dev/null @@ -1,4 +0,0 @@ -

- A value stored in the previous switch case is ignored here due to a switch fall through to a place where an exception is thrown. - It is likely that you forgot to put a break or return at the end of the previous case. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_SWITCH_FALLTHROUGH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_SWITCH_FALLTHROUGH.html deleted file mode 100644 index b1fc0ebc..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_SWITCH_FALLTHROUGH.html +++ /dev/null @@ -1,8 +0,0 @@ -

- This method contains a switch statement where one case branch will fall - through to the next case. Usually you need to end this case with a break or return. -

- -

-This rule is deprecated, use {rule:squid:S128} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_SWITCH_NO_DEFAULT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_SWITCH_NO_DEFAULT.html deleted file mode 100644 index e1ee7b9f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SF_SWITCH_NO_DEFAULT.html +++ /dev/null @@ -1,8 +0,0 @@ -

- This method contains a switch statement where default case is missing. - Usually you need to provide a default case. -

- -

-This rule is deprecated, use {rule:squid:SwitchLastCaseIsDefaultCheck} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC.html deleted file mode 100644 index ed858590..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC.html +++ /dev/null @@ -1,10 +0,0 @@ -

This class is an inner class, but does not use its embedded reference - to the object which created it.  This reference makes the instances - of the class larger, and may keep the reference to the creator object - alive longer than necessary.  If possible, the class should be - made static. -

- -

-This rule is deprecated, use {rule:squid:S2694} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC_ANON.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC_ANON.html deleted file mode 100644 index f23a30a8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC_ANON.html +++ /dev/null @@ -1,11 +0,0 @@ -

This class is an inner class, but does not use its embedded reference - to the object which created it.  This reference makes the instances - of the class larger, and may keep the reference to the creator object - alive longer than necessary.  If possible, the class should be - made into a static inner class. Since anonymous inner -classes cannot be marked as static, doing this will require refactoring -the inner class so that it is a named inner class.

- -

-This rule is deprecated, use {rule:squid:S2694} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS.html deleted file mode 100644 index 1ddc42e4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS.html +++ /dev/null @@ -1,14 +0,0 @@ -

This class is an inner class, but does not use its embedded reference - to the object which created it except during construction of the -inner object.  This reference makes the instances - of the class larger, and may keep the reference to the creator object - alive longer than necessary.  If possible, the class should be - made into a static inner class. Since the reference to the - outer object is required during construction of the inner instance, - the inner class will need to be refactored so as to - pass a reference to the outer instance to the constructor - for the inner class.

- -

-This rule is deprecated, use {rule:squid:S2694} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_THREADLOCAL_DEADLY_EMBRACE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_THREADLOCAL_DEADLY_EMBRACE.html deleted file mode 100644 index d1de7382..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIC_THREADLOCAL_DEADLY_EMBRACE.html +++ /dev/null @@ -1,5 +0,0 @@ -This class is an inner class, but should probably be a static inner class. As it is, there is a serious danger of a deadly embrace between the inner class and the thread local in the outer class. Because the inner class isn't static, it retains a reference to the outer class. If the thread local contains a reference to an instance of the inner class, the inner and outer instance will both be reachable and not eligible for garbage collection. - -

-This rule is deprecated, use {rule:squid:S2694} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIO_SUPERFLUOUS_INSTANCEOF.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIO_SUPERFLUOUS_INSTANCEOF.html deleted file mode 100644 index 445b4172..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SIO_SUPERFLUOUS_INSTANCEOF.html +++ /dev/null @@ -1,6 +0,0 @@ -

Type check performed using the instanceof operator where it can be statically determined whether the object -is of the type requested.

- -

-This rule is deprecated, use {rule:squid:S1850} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SI_INSTANCE_BEFORE_FINALS_ASSIGNED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SI_INSTANCE_BEFORE_FINALS_ASSIGNED.html deleted file mode 100644 index 8b8957af..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SI_INSTANCE_BEFORE_FINALS_ASSIGNED.html +++ /dev/null @@ -1,2 +0,0 @@ -

The class's static initializer creates an instance of the class -before all of the static final fields are assigned.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SKIPPED_CLASS_TOO_BIG.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SKIPPED_CLASS_TOO_BIG.html deleted file mode 100644 index 06c58b7d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SKIPPED_CLASS_TOO_BIG.html +++ /dev/null @@ -1,2 +0,0 @@ -

This class is bigger than can be effectively handled, and was not fully analyzed for errors. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SP_SPIN_ON_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SP_SPIN_ON_FIELD.html deleted file mode 100644 index 9abf17e6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SP_SPIN_ON_FIELD.html +++ /dev/null @@ -1,4 +0,0 @@ -

This method spins in a loop which reads a field.  The compiler - may legally hoist the read out of the loop, turning the code into an - infinite loop.  The class should be changed so it uses proper - synchronization (including wait and notify calls).

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_BAD_PREPARED_STATEMENT_ACCESS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_BAD_PREPARED_STATEMENT_ACCESS.html deleted file mode 100644 index 1e51e02e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_BAD_PREPARED_STATEMENT_ACCESS.html +++ /dev/null @@ -1,6 +0,0 @@ -

A call to a setXXX method of a prepared statement was made where the -parameter index is 0. As parameter indexes start at index 1, this is always a mistake.

- -

-This rule is deprecated, use {rule:squid:S2695} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_BAD_RESULTSET_ACCESS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_BAD_RESULTSET_ACCESS.html deleted file mode 100644 index 807ed2a2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_BAD_RESULTSET_ACCESS.html +++ /dev/null @@ -1,6 +0,0 @@ -

A call to getXXX or updateXXX methods of a result set was made where the -field index is 0. As ResultSet fields start at index 1, this is always a mistake.

- -

-This rule is deprecated, use {rule:squid:S2695} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE.html deleted file mode 100644 index 319a69f7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE.html +++ /dev/null @@ -1,9 +0,0 @@ -

The method invokes the execute method on an SQL statement with a String that seems -to be dynamically generated. Consider using -a prepared statement instead. It is more efficient and less vulnerable to -SQL injection attacks. -

- -

-This rule is deprecated, use {rule:squid:S2077} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING.html deleted file mode 100644 index b4be04a3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING.html +++ /dev/null @@ -1,8 +0,0 @@ -

The code creates an SQL prepared statement from a nonconstant String. -If unchecked, tainted data from a user is used in building this String, SQL injection could -be used to make the prepared statement do something unexpected and undesirable. -

- -

-This rule is deprecated, use {rule:squid:S2077} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SR_NOT_CHECKED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SR_NOT_CHECKED.html deleted file mode 100644 index d419f48a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SR_NOT_CHECKED.html +++ /dev/null @@ -1,13 +0,0 @@ -

This method ignores the return value of - java.io.InputStream.skip() which can skip multiple bytes.  - If the return value is not checked, the caller will not be able to correctly - handle the case where fewer bytes were skipped than the caller requested.  - This is a particularly insidious kind of bug, because in many programs, - skips from input streams usually do skip the full amount of data requested, - causing the program to fail only sporadically. With Buffered streams, however, - skip() will only skip data in the buffer, and will routinely fail to skip the - requested number of bytes.

- -

-This rule is deprecated, use {rule:squid:S2674} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SS_SHOULD_BE_STATIC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SS_SHOULD_BE_STATIC.html deleted file mode 100644 index ac7c4e7f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SS_SHOULD_BE_STATIC.html +++ /dev/null @@ -1,7 +0,0 @@ -

This class contains an instance final field that - is initialized to a compile-time static value. - Consider making the field static.

- -

-This rule is deprecated, use {rule:squid:S1170} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE.html deleted file mode 100644 index 27f9fd90..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE.html +++ /dev/null @@ -1,9 +0,0 @@ -

Even though the JavaDoc does not contain a hint about it, Calendars are inherently unsafe for multihtreaded use. -The detector has found a call to an instance of Calendar that has been obtained via a static -field. This looks suspicous.

-

For more information on this see Sun Bug #6231579 -and Sun Bug #6178997.

- -

-This rule is deprecated, use {rule:squid:S2885} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE.html deleted file mode 100644 index 1b3dce18..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE.html +++ /dev/null @@ -1,9 +0,0 @@ -

As the JavaDoc states, DateFormats are inherently unsafe for multithreaded use. -The detector has found a call to an instance of DateFormat that has been obtained via a static -field. This looks suspicous.

-

For more information on this see Sun Bug #6231579 -and Sun Bug #6178997.

- -

-This rule is deprecated, use {rule:squid:S2885} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_STATIC_CALENDAR_INSTANCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_STATIC_CALENDAR_INSTANCE.html deleted file mode 100644 index 6a7bf3bc..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_STATIC_CALENDAR_INSTANCE.html +++ /dev/null @@ -1,12 +0,0 @@ -

Even though the JavaDoc does not contain a hint about it, Calendars are inherently unsafe for multihtreaded use. -Sharing a single instance across thread boundaries without proper synchronization will result in erratic behavior of the -application. Under 1.4 problems seem to surface less often than under Java 5 where you will probably see -random ArrayIndexOutOfBoundsExceptions or IndexOutOfBoundsExceptions in sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate().

-

You may also experience serialization problems.

-

Using an instance field is recommended.

-

For more information on this see Sun Bug #6231579 -and Sun Bug #6178997.

- -

-This rule is deprecated, use {rule:squid:S2885} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE.html deleted file mode 100644 index 97189c9b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE.html +++ /dev/null @@ -1,11 +0,0 @@ -

As the JavaDoc states, DateFormats are inherently unsafe for multithreaded use. -Sharing a single instance across thread boundaries without proper synchronization will result in erratic behavior of the -application.

-

You may also experience serialization problems.

-

Using an instance field is recommended.

-

For more information on this see Sun Bug #6231579 -and Sun Bug #6178997.

- -

-This rule is deprecated, use {rule:squid:S2885} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STI_INTERRUPTED_ON_CURRENTTHREAD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STI_INTERRUPTED_ON_CURRENTTHREAD.html deleted file mode 100644 index 754ff85d..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STI_INTERRUPTED_ON_CURRENTTHREAD.html +++ /dev/null @@ -1,8 +0,0 @@ -

-This method invokes the Thread.currentThread() call, just to call the interrupted() method. As interrupted() is a -static method, is more simple and clear to use Thread.interrupted(). -

- -

-This rule is deprecated, use {rule:squid:S2209} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STI_INTERRUPTED_ON_UNKNOWNTHREAD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STI_INTERRUPTED_ON_UNKNOWNTHREAD.html deleted file mode 100644 index a0905b50..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/STI_INTERRUPTED_ON_UNKNOWNTHREAD.html +++ /dev/null @@ -1,9 +0,0 @@ -

-This method invokes the Thread.interrupted() method on a Thread object that appears to be a Thread object that is -not the current thread. As the interrupted() method is static, the interrupted method will be called on a different -object than the one the author intended. -

- -

-This rule is deprecated, use {rule:squid:S2209} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD.html deleted file mode 100644 index 278e7c01..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD.html +++ /dev/null @@ -1,8 +0,0 @@ -

This instance method writes to a static field. This is tricky to get -correct if multiple instances are being manipulated, -and generally bad practice. -

- -

-This rule is deprecated, use {rule:squid:S2696} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SWL_SLEEP_WITH_LOCK_HELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SWL_SLEEP_WITH_LOCK_HELD.html deleted file mode 100644 index 25c59b6f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SWL_SLEEP_WITH_LOCK_HELD.html +++ /dev/null @@ -1,11 +0,0 @@ -

- This method calls Thread.sleep() with a lock held. This may result - in very poor performance and scalability, or a deadlock, since other threads may - be waiting to acquire the lock. It is a much better idea to call - wait() on the lock, which releases the lock and allows other threads - to run. -

- -

-This rule is deprecated, use {rule:squid:S2276} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SW_SWING_METHODS_INVOKED_IN_SWING_THREAD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SW_SWING_METHODS_INVOKED_IN_SWING_THREAD.html deleted file mode 100644 index 31dfd09f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/SW_SWING_METHODS_INVOKED_IN_SWING_THREAD.html +++ /dev/null @@ -1,9 +0,0 @@ -

(From JDC Tech Tip): The Swing methods -show(), setVisible(), and pack() will create the associated peer for the frame. -With the creation of the peer, the system creates the event dispatch thread. -This makes things problematic because the event dispatch thread could be notifying -listeners while pack and validate are still processing. This situation could result in -two threads going through the Swing component-based GUI -- it's a serious flaw that -could result in deadlocks or other related threading issues. A pack call causes -components to be realized. As they are being realized (that is, not necessarily -visible), they could trigger listener notification on the event dispatch thread.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TLW_TWO_LOCK_WAIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TLW_TWO_LOCK_WAIT.html deleted file mode 100644 index 50bc7a7f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TLW_TWO_LOCK_WAIT.html +++ /dev/null @@ -1,8 +0,0 @@ -

Waiting on a monitor while two locks are held may cause - deadlock. -   - Performing a wait only releases the lock on the object - being waited on, not any other locks. -   -This not necessarily a bug, but is worth examining - closely.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED.html deleted file mode 100644 index 2e3dbbea..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED.html +++ /dev/null @@ -1,25 +0,0 @@ -

- A value specified as carrying a type qualifier annotation is - consumed in a location or locations requiring that the value not - carry that annotation. -

- -

- More precisely, a value annotated with a type qualifier specifying when=ALWAYS - is guaranteed to reach a use or uses where the same type qualifier specifies when=NEVER. -

- -

- For example, say that @NonNegative is a nickname for - the type qualifier annotation @Negative(when=When.NEVER). - The following code will generate this warning because - the return statement requires a @NonNegative value, - but receives one that is marked as @Negative. -

-
-
-public @NonNegative Integer example(@Negative Integer value) {
-    return value;
-}
-
-
\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS.html deleted file mode 100644 index 43dd5c46..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS.html +++ /dev/null @@ -1,22 +0,0 @@ -

-A value specified as carrying a type qualifier annotation is -compared with a value that doesn't ever carry that qualifier. -

- -

-More precisely, a value annotated with a type qualifier specifying when=ALWAYS -is compared with a value that where the same type qualifier specifies when=NEVER. -

- -

-For example, say that @NonNegative is a nickname for -the type qualifier annotation @Negative(when=When.NEVER). -The following code will generate this warning because -the return statement requires a @NonNegative value, -but receives one that is marked as @Negative. -

-
-public boolean example(@Negative Integer value1, @NonNegative Integer value2) {
-  return value1.equals(value2);
-}
-
diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK.html deleted file mode 100644 index 0304e439..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK.html +++ /dev/null @@ -1,5 +0,0 @@ -

- A value is used in a way that requires it to be always be a value denoted by a type qualifier, but - there is an explicit annotation stating that it is not known where the value is required to have that type qualifier. - Either the usage or the annotation is incorrect. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK.html deleted file mode 100644 index 18bf6652..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK.html +++ /dev/null @@ -1,5 +0,0 @@ -

- A value is used in a way that requires it to be never be a value denoted by a type qualifier, but - there is an explicit annotation stating that it is not known where the value is prohibited from having that type qualifier. - Either the usage or the annotation is incorrect. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK.html deleted file mode 100644 index 02dda690..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK.html +++ /dev/null @@ -1,5 +0,0 @@ -

- A value that is annotated as possibility not being an instance of - the values denoted by the type qualifier, and the value is guaranteed to be used - in a way that requires values denoted by that type qualifier. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK.html deleted file mode 100644 index bd8cce75..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK.html +++ /dev/null @@ -1,5 +0,0 @@ -

- A value that is annotated as possibility being an instance of - the values denoted by the type qualifier, and the value is guaranteed to be used - in a way that prohibits values denoted by that type qualifier. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED.html deleted file mode 100644 index ccd292ee..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED.html +++ /dev/null @@ -1,14 +0,0 @@ -

- A value specified as not carrying a type qualifier annotation is guaranteed - to be consumed in a location or locations requiring that the value does - carry that annotation. -

- -

- More precisely, a value annotated with a type qualifier specifying when=NEVER - is guaranteed to reach a use or uses where the same type qualifier specifies when=ALWAYS. -

- -

- TODO: example -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED.html deleted file mode 100644 index 502d4bf6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED.html +++ /dev/null @@ -1,6 +0,0 @@ -

-A value is being used in a way that requires the value be annotation with a type qualifier. The type qualifier is strict, so the tool rejects any values that do not have the appropriate annotation. -

-

-To coerce a value to have a strict annotation, define an identity function where the return value is annotated with the strict annotation. This is the only way to turn a non-annotated value into a value with a strict type qualifier annotation. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UCF_USELESS_CONTROL_FLOW.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UCF_USELESS_CONTROL_FLOW.html deleted file mode 100644 index d27c8306..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UCF_USELESS_CONTROL_FLOW.html +++ /dev/null @@ -1,14 +0,0 @@ -

This method contains a useless control flow statement, where -control flow continues onto the same place regardless of whether or not -the branch is taken. For example, -this is caused by having an empty statement -block for an if statement:

-
-    if (argv.length == 0) {
-	// TODO: handle this case
-	}
-
- -

-This rule is deprecated, use {rule:squid:S00108} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UCF_USELESS_CONTROL_FLOW_NEXT_LINE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UCF_USELESS_CONTROL_FLOW_NEXT_LINE.html deleted file mode 100644 index 0b67ab0a..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UCF_USELESS_CONTROL_FLOW_NEXT_LINE.html +++ /dev/null @@ -1,13 +0,0 @@ -

This method contains a useless control flow statement in which control -flow follows to the same or following line regardless of whether or not -the branch is taken. -Often, this is caused by inadvertently using an empty statement as the -body of an if statement, e.g.:

-
-    if (argv.length == 1);
-        System.out.println("Hello, " + argv[0]);
-
- -

-This rule is deprecated, use {rule:squid:EmptyStatementUsageCheck} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_CONDITION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_CONDITION.html deleted file mode 100644 index 696f79a7..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_CONDITION.html +++ /dev/null @@ -1,5 +0,0 @@ -

This condition always produces the same result as the value of the involved variable was narrowed before. Probably something else was meant or condition can be removed.

- -

-This rule is deprecated, use {rule:squid:S2583} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_CONDITION_TYPE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_CONDITION_TYPE.html deleted file mode 100644 index 2bfcd534..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_CONDITION_TYPE.html +++ /dev/null @@ -1,5 +0,0 @@ -

This condition always produces the same result due to the type range of the involved variable. Probably something else was meant or condition can be removed.

- -

-This rule is deprecated, use {rule:squid:S2583} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_OBJECT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_OBJECT.html deleted file mode 100644 index a0f3f1b2..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_OBJECT.html +++ /dev/null @@ -1,9 +0,0 @@ -

Our analysis shows that this object is useless. It's created and modified, but its value never go outside of the method or produce any side-effect. Either there is a mistake and object was intended to be used or it can be removed.

- -

This analysis rarely produces false-positives. Common false-positive cases include:

- -
    -
  • This object used to implicitly throw some obscure exception.
  • -
  • This object used as a stub to generalize the code.
  • -
  • This object used to hold strong references to weak/soft-referenced objects.
  • -
diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_OBJECT_STACK.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_OBJECT_STACK.html deleted file mode 100644 index 5c4f0de6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_OBJECT_STACK.html +++ /dev/null @@ -1 +0,0 @@ -

This object is created just to perform some modifications which don't have any side-effect. Probably something else was meant or the object can be removed.

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_VOID_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_VOID_METHOD.html deleted file mode 100644 index f311f0e4..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UC_USELESS_VOID_METHOD.html +++ /dev/null @@ -1,8 +0,0 @@ -

Our analysis shows that this non-empty void method does not actually perform any useful work. Please check it: probably there's a mistake in its code or its body can be fully removed.

- -

We are trying to reduce the false positives as much as possible, but in some cases this warning might be wrong. Common false-positive cases include:

- -
    -
  • The method is intended to trigger loading of some class which may have a side effect.
  • -
  • The method is intended to implicitly throw some obscure exception.
  • -
diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UG_SYNC_SET_UNSYNC_GET.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UG_SYNC_SET_UNSYNC_GET.html deleted file mode 100644 index c922bde8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UG_SYNC_SET_UNSYNC_GET.html +++ /dev/null @@ -1,5 +0,0 @@ -

This class contains similarly-named get and set - methods where the set method is synchronized and the get method is not.  - This may result in incorrect behavior at runtime, as callers of the get - method will not necessarily see a consistent state for the object.  - The get method should be made synchronized.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UI_INHERITANCE_UNSAFE_GETRESOURCE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UI_INHERITANCE_UNSAFE_GETRESOURCE.html deleted file mode 100644 index 2f72e5ae..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UI_INHERITANCE_UNSAFE_GETRESOURCE.html +++ /dev/null @@ -1,3 +0,0 @@ -

Calling this.getClass().getResource(...) could give -results other than expected if this class is extended by a class in -another package.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UL_UNRELEASED_LOCK.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UL_UNRELEASED_LOCK.html deleted file mode 100644 index c53e2e35..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UL_UNRELEASED_LOCK.html +++ /dev/null @@ -1,17 +0,0 @@ -

This method acquires a JSR-166 (java.util.concurrent) lock, -but does not release it on all paths out of the method. In general, the correct idiom -for using a JSR-166 lock is: -

-
-    Lock l = ...;
-    l.lock();
-    try {
-        // do something
-    } finally {
-        l.unlock();
-    }
-
- -

-This rule is deprecated, use {rule:squid:S2222} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UL_UNRELEASED_LOCK_EXCEPTION_PATH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UL_UNRELEASED_LOCK_EXCEPTION_PATH.html deleted file mode 100644 index f0e33e15..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UL_UNRELEASED_LOCK_EXCEPTION_PATH.html +++ /dev/null @@ -1,17 +0,0 @@ -

This method acquires a JSR-166 (java.util.concurrent) lock, -but does not release it on all exception paths out of the method. In general, the correct idiom -for using a JSR-166 lock is: -

-
-    Lock l = ...;
-    l.lock();
-    try {
-        // do something
-    } finally {
-        l.unlock();
-    }
-
- -

-This rule is deprecated, use {rule:squid:S2222} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS.html deleted file mode 100644 index 54ace906..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS.html +++ /dev/null @@ -1,7 +0,0 @@ -

This anonymous class defined a method that is not directly invoked and does not override -a method in a superclass. Since methods in other classes cannot directly invoke methods -declared in an anonymous class, it seems that this method is uncallable. The method -might simply be dead code, but it is also possible that the method is intended to -override a method declared in a superclass, and due to an typo or other error the method does not, -in fact, override the method it is intended to. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UM_UNNECESSARY_MATH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UM_UNNECESSARY_MATH.html deleted file mode 100644 index 3d1060bd..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UM_UNNECESSARY_MATH.html +++ /dev/null @@ -1,82 +0,0 @@ -

This method uses a static method from java.lang.Math on a constant value. This method's -result in this case, can be determined statically, and is faster and sometimes more accurate to -just use the constant. Methods detected are: -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Method Parameter
abs -any-
acos 0.0 or 1.0
asin 0.0 or 1.0
atan 0.0 or 1.0
atan2 0.0
cbrt 0.0 or 1.0
ceil -any-
cos 0.0
cosh 0.0
exp 0.0 or 1.0
expm1 0.0
floor -any-
log 0.0 or 1.0
log10 0.0 or 1.0
rint -any-
round -any-
sin 0.0
sinh 0.0
sqrt 0.0 or 1.0
tan 0.0
tanh 0.0
toDegrees 0.0 or 1.0
toRadians 0.0
- -

-This rule is deprecated, use {rule:squid:S2185} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UOE_USE_OBJECT_EQUALS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UOE_USE_OBJECT_EQUALS.html deleted file mode 100644 index efe31b63..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UOE_USE_OBJECT_EQUALS.html +++ /dev/null @@ -1,10 +0,0 @@ -

- This method invokes the .equals(Object o) method on a final class that doesn't override the equals method - in the Object class, effectively making the equals method test for sameness, like ==. It is good to use - the .equals method, but you should consider adding an .equals method in this class. -

-

[Bill Pugh]: Sorry, but I strongly disagree that this should be a warning, and I think your code - is just fine. Users of your code shouldn't care how you've implemented equals(), and they should never - depend on == to compare instances, since that bypasses the libraries ability to control how objects - are compared. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UPM_UNCALLED_PRIVATE_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UPM_UNCALLED_PRIVATE_METHOD.html deleted file mode 100644 index ead5084c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UPM_UNCALLED_PRIVATE_METHOD.html +++ /dev/null @@ -1,9 +0,0 @@ -

This private method is never called. Although it is -possible that the method will be invoked through reflection, -it is more likely that the method is never used, and should be -removed. -

- -

-This rule is deprecated, use {rule:squid:UnusedPrivateMethod} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/URF_UNREAD_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/URF_UNREAD_FIELD.html deleted file mode 100644 index 81fd625b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/URF_UNREAD_FIELD.html +++ /dev/null @@ -1,5 +0,0 @@ -

This field is never read.  Consider removing it from the class.

- -

-This rule is deprecated, use {rule:squid:S1068} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD.html deleted file mode 100644 index 9626b396..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD.html +++ /dev/null @@ -1,2 +0,0 @@ -

This field is never read. The field is public or protected, so perhaps it is intended to be -used with classes not seen as part of the analysis. If not, consider removing it from the class.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UR_UNINIT_READ.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UR_UNINIT_READ.html deleted file mode 100644 index f0134e28..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UR_UNINIT_READ.html +++ /dev/null @@ -1,3 +0,0 @@ -

This constructor reads a field which has not yet been assigned a value.  - This is often caused when the programmer mistakenly uses the field instead - of one of the constructor's parameters.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR.html deleted file mode 100644 index 9c4fa70e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR.html +++ /dev/null @@ -1,20 +0,0 @@ -

This method is invoked in the constructor of of the superclass. At this point, the fields of the class have not yet initialized. To make this more concrete, consider the following classes:

-
-  abstract class A {
-    int hashCode;
-    abstract Object getValue();
-    A() {
-      hashCode = getValue().hashCode();
-    }
-  }
-  class B extends A {
-    Object value;
-    B(Object v) {
-      this.value = v;
-    }
-    Object getValue() {
-      return value;
-    }
-  }
-
-

When a B is constructed, the constructor for the A class is invoked before the constructor for B sets value. Thus, when the constructor for A invokes getValue, an uninitialized value is read for value.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/USM_USELESS_ABSTRACT_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/USM_USELESS_ABSTRACT_METHOD.html deleted file mode 100644 index ecf842eb..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/USM_USELESS_ABSTRACT_METHOD.html +++ /dev/null @@ -1,4 +0,0 @@ -

- This abstract method is already defined in an interface that is implemented by this abstract - class. This method can be removed, as it provides no additional value. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/USM_USELESS_SUBCLASS_METHOD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/USM_USELESS_SUBCLASS_METHOD.html deleted file mode 100644 index aa3439cb..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/USM_USELESS_SUBCLASS_METHOD.html +++ /dev/null @@ -1,8 +0,0 @@ -

- This derived method merely calls the same superclass method passing in the exact parameters - received. This method can be removed, as it provides no additional value. -

- -

-This rule is deprecated, use {rule:squid:S1185} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UUF_UNUSED_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UUF_UNUSED_FIELD.html deleted file mode 100644 index ad43b22b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UUF_UNUSED_FIELD.html +++ /dev/null @@ -1,5 +0,0 @@ -

This field is never used.  Consider removing it from the class.

- -

-This rule is deprecated, use {rule:squid:S1068} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD.html deleted file mode 100644 index 5132a784..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD.html +++ /dev/null @@ -1,2 +0,0 @@ -

This field is never used. The field is public or protected, so perhaps it is intended to be used -with classes not seen as part of the analysis. If not, consider removing it from the class.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html deleted file mode 100644 index 619bff2e..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR.html +++ /dev/null @@ -1 +0,0 @@ -

This field is never initialized within any constructor, and is therefore could be null after the object is constructed. This could be a either an error or a questionable design, since it means a null pointer exception will be generated if that field is dereferenced before being initialized.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_NULL_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_NULL_FIELD.html deleted file mode 100644 index df3ad719..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_NULL_FIELD.html +++ /dev/null @@ -1,7 +0,0 @@ -

All writes to this field are of the constant value null, and thus -all reads of the field will return null. -Check for errors, or remove it if it is useless.

- -

-This rule is deprecated, use {rule:squid:S1068} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_UNWRITTEN_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_UNWRITTEN_FIELD.html deleted file mode 100644 index 2963d54b..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_UNWRITTEN_FIELD.html +++ /dev/null @@ -1,5 +0,0 @@ -

This field is never written. All reads of it will return the default value. Check for errors (should it have been initialized?), or remove it if it is useless.

- -

-This rule is deprecated, use {rule:squid:S1068} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html deleted file mode 100644 index 28719621..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.html +++ /dev/null @@ -1,2 +0,0 @@ -

No writes were seen to this public/protected field. All reads of it will return the default value. -Check for errors (should it have been initialized?), or remove it if it is useless.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UW_UNCOND_WAIT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UW_UNCOND_WAIT.html deleted file mode 100644 index 11a0e1ae..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/UW_UNCOND_WAIT.html +++ /dev/null @@ -1,9 +0,0 @@ -

This method contains a call to java.lang.Object.wait() which - is not guarded by conditional control flow.  The code should - verify that condition it intends to wait for is not already satisfied - before calling wait; any previous notifications will be ignored. -

- -

-This rule is deprecated, use {rule:squid:S2274} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_ARG_MISMATCH.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_ARG_MISMATCH.html deleted file mode 100644 index ec8f7b96..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_ARG_MISMATCH.html +++ /dev/null @@ -1,10 +0,0 @@ -

-A format-string method with a variable number of arguments is called, -but the number of arguments passed does not match with the number of -% placeholders in the format string. This is probably not what the -author intended. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_ARGUMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_ARGUMENT.html deleted file mode 100644 index 6d3efe6f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_ARGUMENT.html +++ /dev/null @@ -1,15 +0,0 @@ -

-The format string placeholder is incompatible with the corresponding -argument. For example, - - System.out.println("%d\n", "hello"); - -

The %d placeholder requires a numeric argument, but a string value is -passed instead. -A runtime exception will occur when -this statement is executed. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION.html deleted file mode 100644 index dd35de92..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION.html +++ /dev/null @@ -1,10 +0,0 @@ -

-One of the arguments is uncompatible with the corresponding format string specifier. -As a result, this will generate a runtime exception when executed. -For example, String.format("%d", "1") will generate an exception, since -the String "1" is incompatible with the format specifier %d. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY.html deleted file mode 100644 index 2917a309..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY.html +++ /dev/null @@ -1,10 +0,0 @@ -

-One of the arguments being formatted with a format string is an array. This will be formatted -using a fairly useless format, such as [I@304282, which doesn't actually show the contents -of the array. -Consider wrapping the array using Arrays.asList(...) before handling it off to a formatted. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN.html deleted file mode 100644 index a17dfd83..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN.html +++ /dev/null @@ -1,9 +0,0 @@ -

-An argument not of type Boolean is being formatted with a %b format specifier. This won't throw an -exception; instead, it will print true for any nonnull value, and false for null. -This feature of format strings is strange, and may not be what you intended. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED.html deleted file mode 100644 index 8c42f259..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED.html +++ /dev/null @@ -1,5 +0,0 @@ -A method is called that expects a Java printf format string and a list of arguments. However, the format string doesn't contain any format specifiers (e.g., %s) but does contain message format elements (e.g., {0}). It is likely that the code is supplying a MessageFormat string when a printf-style format string is required. At runtime, all of the arguments will be ignored and the format string will be returned exactly as provided without any formatting. - -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED.html deleted file mode 100644 index 6b8ac6e3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED.html +++ /dev/null @@ -1,10 +0,0 @@ -

-A format-string method with a variable number of arguments is called, -but more arguments are passed than are actually used by the format string. -This won't cause a runtime exception, but the code may be silently omitting -information that was intended to be included in the formatted string. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_ILLEGAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_ILLEGAL.html deleted file mode 100644 index 3c9af6ef..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_ILLEGAL.html +++ /dev/null @@ -1,9 +0,0 @@ -

-The format string is syntactically invalid, -and a runtime exception will occur when -this statement is executed. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_MISSING_ARGUMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_MISSING_ARGUMENT.html deleted file mode 100644 index e26f3510..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_MISSING_ARGUMENT.html +++ /dev/null @@ -1,9 +0,0 @@ -

-Not enough arguments are passed to satisfy a placeholder in the format string. -A runtime exception will occur when -this statement is executed. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT.html deleted file mode 100644 index 30b771e8..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT.html +++ /dev/null @@ -1,13 +0,0 @@ -

-The format string specifies a relative index to request that the argument for the previous format specifier -be reused. However, there is no previous argument. -For example, -

-

formatter.format("%<s %s", "a", "b") -

-

would throw a MissingFormatArgumentException when executed. -

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_USES_NEWLINE.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_USES_NEWLINE.html deleted file mode 100644 index 5b12d732..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_FORMAT_STRING_USES_NEWLINE.html +++ /dev/null @@ -1,6 +0,0 @@ -

This format string include a newline character (\n). In format strings, it is generally preferable -better to use %n, which will produce the platform-specific line separator.

- -

-This rule is deprecated, use {rule:squid:S2275} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG.html deleted file mode 100644 index 8652f13f..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG.html +++ /dev/null @@ -1,4 +0,0 @@ -

-This code passes a primitive array to a function that takes a variable number of object arguments. -This creates an array of length one to hold the primitive array and passes it to the function. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VO_VOLATILE_INCREMENT.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VO_VOLATILE_INCREMENT.html deleted file mode 100644 index ebf27451..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VO_VOLATILE_INCREMENT.html +++ /dev/null @@ -1,2 +0,0 @@ -

This code increments a volatile field. Increments of volatile fields aren't atomic. If more -than one thread is incrementing the field at the same time, increments could be lost.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VO_VOLATILE_REFERENCE_TO_ARRAY.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VO_VOLATILE_REFERENCE_TO_ARRAY.html deleted file mode 100644 index 3a0866c1..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/VO_VOLATILE_REFERENCE_TO_ARRAY.html +++ /dev/null @@ -1,6 +0,0 @@ -

This declares a volatile reference to an array, which might not be what -you want. With a volatile reference to an array, reads and writes of -the reference to the array are treated as volatile, but the array elements -are non-volatile. To get volatile array elements, you will need to use -one of the atomic array classes in java.util.concurrent (provided -in Java 5.0).

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WA_AWAIT_NOT_IN_LOOP.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WA_AWAIT_NOT_IN_LOOP.html deleted file mode 100644 index 8c530da6..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WA_AWAIT_NOT_IN_LOOP.html +++ /dev/null @@ -1,9 +0,0 @@ -

This method contains a call to java.util.concurrent.await() - (or variants) - which is not in a loop.  If the object is used for multiple conditions, - the condition the caller intended to wait for might not be the one - that actually occurred.

- -

-This rule is deprecated, use {rule:squid:S2274} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WA_NOT_IN_LOOP.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WA_NOT_IN_LOOP.html deleted file mode 100644 index 7b5c2cad..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WA_NOT_IN_LOOP.html +++ /dev/null @@ -1,8 +0,0 @@ -

This method contains a call to java.lang.Object.wait() - which is not in a loop.  If the monitor is used for multiple conditions, - the condition the caller intended to wait for might not be the one - that actually occurred.

- -

-This rule is deprecated, use {rule:squid:S2274} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL.html deleted file mode 100644 index 9484b2c3..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL.html +++ /dev/null @@ -1,25 +0,0 @@ -

- This instance method synchronizes on this.getClass(). If this class is subclassed, - subclasses will synchronize on the class object for the subclass, which isn't likely what was intended. - For example, consider this code from java.awt.Label: -

-     private static final String base = "label";
-     private static int nameCounter = 0;
-     String constructComponentName() {
-        synchronized (getClass()) {
-            return base + nameCounter++;
-        }
-     }
-     

-

Subclasses of Label won't synchronize on the same subclass, giving rise to a datarace. - Instead, this code should be synchronizing on Label.class -

-     private static final String base = "label";
-     private static int nameCounter = 0;
-     String constructComponentName() {
-        synchronized (Label.class) {
-            return base + nameCounter++;
-        }
-     }
-     

-

Bug pattern contributed by Jason Mehrens

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WMI_WRONG_MAP_ITERATOR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WMI_WRONG_MAP_ITERATOR.html deleted file mode 100644 index 7f13ba7c..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WMI_WRONG_MAP_ITERATOR.html +++ /dev/null @@ -1,7 +0,0 @@ -

This method accesses the value of a Map entry, using a key that was retrieved from -a keySet iterator. It is more efficient to use an iterator on the entrySet of the map, to avoid the -Map.get(key) lookup.

- -

-This rule is deprecated, use {rule:squid:S2864} instead. -

diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WS_WRITEOBJECT_SYNC.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WS_WRITEOBJECT_SYNC.html deleted file mode 100644 index 1098b455..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/WS_WRITEOBJECT_SYNC.html +++ /dev/null @@ -1,2 +0,0 @@ -

This class has a writeObject() method which is synchronized; - however, no other method of the class is synchronized.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XFB_XML_FACTORY_BYPASS.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XFB_XML_FACTORY_BYPASS.html deleted file mode 100644 index 6fc63dfa..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XFB_XML_FACTORY_BYPASS.html +++ /dev/null @@ -1,12 +0,0 @@ -

- This method allocates a specific implementation of an xml interface. It is preferable to use - the supplied factory classes to create these objects so that the implementation can be - changed at runtime. See -

-
    -
  • javax.xml.parsers.DocumentBuilderFactory
  • -
  • javax.xml.parsers.SAXParserFactory
  • -
  • javax.xml.transform.TransformerFactory
  • -
  • org.w3c.dom.Document.createXXXX
  • -
-

for details.

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_JSP_WRITER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_JSP_WRITER.html deleted file mode 100644 index 35517783..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_JSP_WRITER.html +++ /dev/null @@ -1,8 +0,0 @@ -

This code directly writes an HTTP parameter to JSP output, which allows for a cross site scripting -vulnerability. See http://en.wikipedia.org/wiki/Cross-site_scripting -for more information.

-

FindBugs looks only for the most blatant, obvious cases of cross site scripting. -If FindBugs found any, you almost certainly have more cross site scripting -vulnerabilities that FindBugs doesn't report. If you are concerned about cross site scripting, you should seriously -consider using a commercial static analysis or pen-testing tool. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_SEND_ERROR.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_SEND_ERROR.html deleted file mode 100644 index 13dfb582..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_SEND_ERROR.html +++ /dev/null @@ -1,9 +0,0 @@ -

This code directly writes an HTTP parameter to a Server error page (using HttpServletResponse.sendError). Echoing this untrusted input allows -for a reflected cross site scripting -vulnerability. See http://en.wikipedia.org/wiki/Cross-site_scripting -for more information.

-

FindBugs looks only for the most blatant, obvious cases of cross site scripting. -If FindBugs found any, you almost certainly have more cross site scripting -vulnerabilities that FindBugs doesn't report. If you are concerned about cross site scripting, you should seriously -consider using a commercial static analysis or pen-testing tool. -

\ No newline at end of file diff --git a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER.html b/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER.html deleted file mode 100644 index 06c78459..00000000 --- a/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER.html +++ /dev/null @@ -1,8 +0,0 @@ -

This code directly writes an HTTP parameter to Servlet output, which allows for a reflected cross site scripting -vulnerability. See http://en.wikipedia.org/wiki/Cross-site_scripting -for more information.

-

FindBugs looks only for the most blatant, obvious cases of cross site scripting. -If FindBugs found any, you almost certainly have more cross site scripting -vulnerabilities that FindBugs doesn't report. If you are concerned about cross site scripting, you should seriously -consider using a commercial static analysis or pen-testing tool. -

\ No newline at end of file From c5c55ace6401975bd287e7aecf23bde90fbdf99c Mon Sep 17 00:00:00 2001 From: Philippe Arteau Date: Fri, 23 Sep 2016 13:12:54 -0400 Subject: [PATCH 3/3] Add "src/java" #51 (Waiting for a long term solution to the API changes) --- .../plugins/findbugs/resource/ByteCodeResourceLocator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java b/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java index 69df2dec..e37d2882 100644 --- a/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java +++ b/src/main/java/org/sonar/plugins/findbugs/resource/ByteCodeResourceLocator.java @@ -44,7 +44,7 @@ public class ByteCodeResourceLocator implements BatchExtension { private static final Logger LOG = LoggerFactory.getLogger(ByteCodeResourceLocator.class); - private static final String[] SOURCE_DIRECTORIES = {"src/main/java","src/main/webapp","src/main/resources","src"}; + private static final String[] SOURCE_DIRECTORIES = {"src/main/java","src/main/webapp","src/main/resources", "src", "/src/java"}; /** * Find the file system location of a given class name.