text stringlengths 41 445 |
|---|
<s>[INST] FI_EMPTY [/INST] Empty finalizer should be deleted</s> |
<s>[INST] FI_NULLIFY_SUPER [/INST] Finalizer nullifies superclass finalizer</s> |
<s>[INST] FI_USELESS [/INST] Finalizer does nothing but call superclass finalizer</s> |
<s>[INST] FI_MISSING_SUPER_CALL [/INST] Finalizer does not call superclass finalizer</s> |
<s>[INST] FI_EXPLICIT_INVOCATION [/INST] Explicit invocation of finalizer</s> |
<s>[INST] EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS [/INST] Equals checks for incompatible operand</s> |
<s>[INST] EQ_GETCLASS_AND_CLASS_CONSTANT [/INST] equals method fails for subtypes</s> |
<s>[INST] EQ_SELF_NO_OBJECT [/INST] Covariant equals</s> |
<s>[INST] CO_SELF_NO_OBJECT [/INST] Covariant compareTo</s> |
<s>[INST] CO_COMPARETO_RESULTS_MIN_VALUE [/INST] compareTo</s> |
<s>[INST] CO_COMPARETO_INCORRECT_FLOATING [/INST] compareTo</s> |
<s>[INST] RV_NEGATING_RESULT_OF_COMPARETO [/INST] Negating the result of compareTo</s> |
<s>[INST] ES_COMPARING_STRINGS_WITH_EQ [/INST] Comparison of String objects using == or !=</s> |
<s>[INST] ES_COMPARING_PARAMETER_STRING_WITH_EQ [/INST] Comparison of String parameter using == or !=</s> |
<s>[INST] EQ_COMPARETO_USE_OBJECT_EQUALS [/INST] Class defines compareTo</s> |
<s>[INST] HE_HASHCODE_USE_OBJECT_EQUALS [/INST] Class defines hashCode</s> |
<s>[INST] HE_HASHCODE_NO_EQUALS [/INST] Class defines hashCode</s> |
<s>[INST] HE_EQUALS_USE_HASHCODE [/INST] Class defines equals</s> |
<s>[INST] HE_INHERITS_EQUALS_USE_HASHCODE [/INST] Class inherits equals</s> |
<s>[INST] HE_EQUALS_NO_HASHCODE [/INST] Class defines equals</s> |
<s>[INST] EQ_ABSTRACT_SELF [/INST] Abstract class defines covariant equals</s> |
<s>[INST] CO_ABSTRACT_SELF [/INST] Abstract class defines covariant compareTo</s> |
<s>[INST] IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION [/INST] Superclass uses subclass during initialization</s> |
<s>[INST] SI_INSTANCE_BEFORE_FINALS_ASSIGNED [/INST] Static initializer creates instance before all static final fields assigned</s> |
<s>[INST] IT_NO_SUCH_ELEMENT [/INST] Iterator next</s> |
<s>[INST] ME_MUTABLE_ENUM_FIELD [/INST] Enum field is public and mutable</s> |
<s>[INST] ME_ENUM_FIELD_SETTER [/INST] Public enum method unconditionally sets its field</s> |
<s>[INST] NM_METHOD_NAMING_CONVENTION [/INST] Method names should start with a lower case letter</s> |
<s>[INST] NM_FIELD_NAMING_CONVENTION [/INST] Field names should start with a lower case letter</s> |
<s>[INST] NM_SAME_SIMPLE_NAME_AS_INTERFACE [/INST] Class names shouldn’t shadow simple name of implemented interface</s> |
<s>[INST] NM_SAME_SIMPLE_NAME_AS_SUPERCLASS [/INST] Class names shouldn’t shadow simple name of superclass</s> |
<s>[INST] NM_CLASS_NAMING_CONVENTION [/INST] Class names should start with an upper case letter</s> |
<s>[INST] NM_VERY_CONFUSING_INTENTIONAL [/INST] Very confusing method names</s> |
<s>[INST] NM_WRONG_PACKAGE_INTENTIONAL [/INST] Method doesn’t override method in superclass due to wrong package for parameter</s> |
<s>[INST] NM_CONFUSING [/INST] Confusing method names</s> |
<s>[INST] NM_CLASS_NOT_EXCEPTION [/INST] Class is not derived from an Exception, even though it is named as such</s> |
<s>[INST] RR_NOT_CHECKED [/INST] Method ignores results of InputStream.read</s> |
<s>[INST] SR_NOT_CHECKED [/INST] Method ignores results of InputStream.skip</s> |
<s>[INST] SE_NO_SUITABLE_CONSTRUCTOR [/INST] Class is Serializable but its superclass doesn’t define a void constructor</s> |
<s>[INST] SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION [/INST] Class is Externalizable but doesn’t define a void constructor</s> |
<s>[INST] SE_COMPARATOR_SHOULD_BE_SERIALIZABLE [/INST] Comparator doesn’t implement Serializable</s> |
<s>[INST] SE_NO_SERIALVERSIONID [/INST] Class is Serializable, but doesn’t define serialVersionUID</s> |
<s>[INST] SE_READ_RESOLVE_MUST_RETURN_OBJECT [/INST] The readResolve method must be declared with a return type of Object.</s> |
<s>[INST] SE_TRANSIENT_FIELD_NOT_RESTORED [/INST] Transient field that isn’t set by deserialization.</s> |
<s>[INST] SE_NONFINAL_SERIALVERSIONID [/INST] serialVersionUID isn’t final</s> |
<s>[INST] SE_NONSTATIC_SERIALVERSIONID [/INST] serialVersionUID isn’t static</s> |
<s>[INST] SE_NONLONG_SERIALVERSIONID [/INST] serialVersionUID isn’t long</s> |
<s>[INST] SE_BAD_FIELD [/INST] Non-transient non-serializable instance field in serializable class</s> |
<s>[INST] SE_INNER_CLASS [/INST] Serializable inner class</s> |
<s>[INST] SE_BAD_FIELD_INNER_CLASS [/INST] Non-serializable class has a serializable inner class</s> |
<s>[INST] SE_BAD_FIELD_STORE [/INST] Non-serializable value stored into instance field of a serializable class</s> |
<s>[INST] RV_RETURN_VALUE_IGNORED_BAD_PRACTICE [/INST] Method ignores exceptional return value</s> |
<s>[INST] NP_TOSTRING_COULD_RETURN_NULL [/INST] toString method may return null</s> |
<s>[INST] NP_CLONE_COULD_RETURN_NULL [/INST] Clone method may return null</s> |
<s>[INST] OS_OPEN_STREAM [/INST] Method may fail to close stream</s> |
<s>[INST] OS_OPEN_STREAM_EXCEPTION_PATH [/INST] Method may fail to close stream on exception</s> |
<s>[INST] RC_REF_COMPARISON_BAD_PRACTICE [/INST] Suspicious reference comparison to constant</s> |
<s>[INST] RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN [/INST] Suspicious reference comparison of Boolean values</s> |
<s>[INST] VA_FORMAT_STRING_USES_NEWLINE [/INST] Format string should use %n rather than n</s> |
<s>[INST] BIT_SIGNED_CHECK [/INST] Check for sign of bitwise operation</s> |
<s>[INST] ODR_OPEN_DATABASE_RESOURCE [/INST] Method may fail to close database resource</s> |
<s>[INST] ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH [/INST] Method may fail to close database resource on exception</s> |
<s>[INST] ISC_INSTANTIATE_STATIC_CLASS [/INST] Needless instantiation of class that only supplies static methods</s> |
<s>[INST] DMI_RANDOM_USED_ONLY_ONCE [/INST] Random object created and used only once</s> |
<s>[INST] BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS [/INST] Equals method should not assume anything about the type of its argument</s> |
<s>[INST] J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION [/INST] Store of non serializable object into HttpSession</s> |
<s>[INST] GC_UNCHECKED_TYPE_IN_GENERIC_CALL [/INST] Unchecked type in generic call</s> |
<s>[INST] PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS [/INST] Don’t reuse entry objects in iterators</s> |
<s>[INST] DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS [/INST] Adding elements of an entry set may fail due to reuse of Entry objects</s> |
<s>[INST] DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION [/INST] Don’t use removeAll to clear a collection</s> |
<s>[INST] NP_OPTIONAL_RETURN_NULL [/INST] Method with Optional return type returns explicit null</s> |
<s>[INST] NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR [/INST] Non-null field is not initialized</s> |
<s>[INST] VR_UNRESOLVABLE_REFERENCE [/INST] Class makes reference to unresolvable class or method</s> |
<s>[INST] IL_INFINITE_LOOP [/INST] An apparent infinite loop</s> |
<s>[INST] IO_APPENDING_TO_OBJECT_OUTPUT_STREAM [/INST] Doomed attempt to append to an object output stream</s> |
<s>[INST] IL_INFINITE_RECURSIVE_LOOP [/INST] An apparent infinite recursive loop</s> |
<s>[INST] IL_CONTAINER_ADDED_TO_ITSELF [/INST] A collection is added to itself</s> |
<s>[INST] RpC_REPEATED_CONDITIONAL_TEST [/INST] Repeated conditional tests</s> |
<s>[INST] FL_MATH_USING_FLOAT_PRECISION [/INST] Method performs math using floating point precision</s> |
<s>[INST] CAA_COVARIANT_ARRAY_ELEMENT_STORE [/INST] Possibly incompatible element is stored in covariant array</s> |
<s>[INST] DMI_VACUOUS_CALL_TO_EASYMOCK_METHOD [/INST] Useless/vacuous call to EasyMock method</s> |
<s>[INST] DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR [/INST] Futile attempt to change max pool size of ScheduledThreadPoolExecutor</s> |
<s>[INST] DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE [/INST] BigDecimal constructed from double that isn’t represented precisely</s> |
<s>[INST] DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS [/INST] Creation of ScheduledThreadPoolExecutor with zero core threads</s> |
<s>[INST] DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION [/INST] Can’t use reflection to check for presence of annotation without runtime retention</s> |
<s>[INST] NP_ARGUMENT_MIGHT_BE_NULL [/INST] Method does not check for null argument</s> |
<s>[INST] RV_ABSOLUTE_VALUE_OF_RANDOM_INT [/INST] Bad attempt to compute absolute value of signed random integer</s> |
<s>[INST] RV_ABSOLUTE_VALUE_OF_HASHCODE [/INST] Bad attempt to compute absolute value of signed 32-bit hashcode</s> |
<s>[INST] RV_01_TO_INT [/INST] Random value from 0 to 1 is coerced to the integer 0</s> |
<s>[INST] DM_INVALID_MIN_MAX [/INST] Incorrect combination of Math.max and Math.min</s> |
<s>[INST] EQ_COMPARING_CLASS_NAMES [/INST] equals method compares class names rather than class objects</s> |
<s>[INST] EQ_ALWAYS_TRUE [/INST] equals method always returns true</s> |
<s>[INST] EQ_ALWAYS_FALSE [/INST] equals method always returns false</s> |
<s>[INST] EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC [/INST] equals method overrides equals in superclass and may not be symmetric</s> |
<s>[INST] EQ_DONT_DEFINE_EQUALS_FOR_ENUM [/INST] Covariant equals</s> |
<s>[INST] EQ_SELF_USE_OBJECT [/INST] Covariant equals</s> |
<s>[INST] EQ_OTHER_USE_OBJECT [/INST] equals</s> |
<s>[INST] EQ_OTHER_NO_OBJECT [/INST] equals</s> |
<s>[INST] HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS [/INST] Signature declares use of unhashable class in hashed construct</s> |
<s>[INST] HE_USE_OF_UNHASHABLE_CLASS [/INST] Use of class without a hashCode</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.