text
stringlengths
41
445
<s>[INST] UR_UNINIT_READ [/INST] Uninitialized read of field in constructor</s>
<s>[INST] UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR [/INST] Uninitialized read of field method called from constructor of superclass</s>
<s>[INST] NM_VERY_CONFUSING [/INST] Very confusing method names</s>
<s>[INST] NM_WRONG_PACKAGE [/INST] Method doesn’t override method in superclass due to wrong package for parameter</s>
<s>[INST] NM_METHOD_CONSTRUCTOR_CONFUSION [/INST] Apparent method/constructor confusion</s>
<s>[INST] NM_LCASE_HASHCODE [/INST] Class defines hashcode</s>
<s>[INST] NM_LCASE_TOSTRING [/INST] Class defines tostring</s>
<s>[INST] NM_BAD_EQUAL [/INST] Class defines equal</s>
<s>[INST] SE_READ_RESOLVE_IS_STATIC [/INST] The readResolve method must not be declared as a static method.</s>
<s>[INST] SE_METHOD_MUST_BE_PRIVATE [/INST] Method must be private in order for serialization to work</s>
<s>[INST] SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH [/INST] Dead store due to switch statement fall through</s>
<s>[INST] SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW [/INST] Dead store due to switch statement fall through to throw</s>
<s>[INST] NP_UNWRITTEN_FIELD [/INST] Read of unwritten field</s>
<s>[INST] UWF_NULL_FIELD [/INST] Field only ever set to null</s>
<s>[INST] UWF_UNWRITTEN_FIELD [/INST] Unwritten field</s>
<s>[INST] SIC_THREADLOCAL_DEADLY_EMBRACE [/INST] Deadly embrace of non-static inner class and thread local</s>
<s>[INST] RANGE_ARRAY_INDEX [/INST] Array index is out of bounds</s>
<s>[INST] RANGE_ARRAY_OFFSET [/INST] Array offset is out of bounds</s>
<s>[INST] RANGE_ARRAY_LENGTH [/INST] Array length is out of bounds</s>
<s>[INST] RANGE_STRING_INDEX [/INST] String index is out of bounds</s>
<s>[INST] RV_RETURN_VALUE_IGNORED [/INST] Method ignores return value</s>
<s>[INST] RV_EXCEPTION_NOT_THROWN [/INST] Exception created and dropped rather than thrown</s>
<s>[INST] RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE [/INST] Code checks for specific values returned by compareTo</s>
<s>[INST] NP_ALWAYS_NULL [/INST] Null pointer dereference</s>
<s>[INST] NP_CLOSING_NULL [/INST] close</s>
<s>[INST] NP_STORE_INTO_NONNULL_FIELD [/INST] Store of null value into field annotated @Nonnull</s>
<s>[INST] NP_ALWAYS_NULL_EXCEPTION [/INST] Null pointer dereference in method on exception path</s>
<s>[INST] NP_NULL_ON_SOME_PATH [/INST] Possible null pointer dereference</s>
<s>[INST] NP_NULL_ON_SOME_PATH_EXCEPTION [/INST] Possible null pointer dereference in method on exception path</s>
<s>[INST] NP_NULL_PARAM_DEREF [/INST] Method call passes null for non-null parameter</s>
<s>[INST] NP_NULL_PARAM_DEREF_NONVIRTUAL [/INST] Non-virtual method call passes null for non-null parameter</s>
<s>[INST] NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS [/INST] Method call passes null for non-null parameter</s>
<s>[INST] NP_NONNULL_PARAM_VIOLATION [/INST] Method call passes null to a non-null parameter</s>
<s>[INST] NP_NONNULL_RETURN_VIOLATION [/INST] Method may return null, but is declared @Nonnull</s>
<s>[INST] NP_GUARANTEED_DEREF [/INST] Null value is guaranteed to be dereferenced</s>
<s>[INST] NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH [/INST] Value is null and guaranteed to be dereferenced on exception path</s>
<s>[INST] DMI_ARGUMENTS_WRONG_ORDER [/INST] Reversed method arguments</s>
<s>[INST] RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE [/INST] Nullcheck of value previously dereferenced</s>
<s>[INST] RC_REF_COMPARISON [/INST] Suspicious reference comparison</s>
<s>[INST] VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG [/INST] Primitive array passed to function expecting a variable number of object arguments</s>
<s>[INST] VA_FORMAT_STRING_BAD_CONVERSION [/INST] The type of a supplied argument doesn’t match format specifier</s>
<s>[INST] VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY [/INST] Array formatted in useless way using format string</s>
<s>[INST] VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT [/INST] No previous argument for format string</s>
<s>[INST] VA_FORMAT_STRING_BAD_ARGUMENT [/INST] Format string placeholder incompatible with passed argument</s>
<s>[INST] VA_FORMAT_STRING_MISSING_ARGUMENT [/INST] Format string references missing argument</s>
<s>[INST] VA_FORMAT_STRING_ILLEGAL [/INST] Illegal format string</s>
<s>[INST] VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED [/INST] More arguments are passed than are actually used in the format string</s>
<s>[INST] VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED [/INST] MessageFormat supplied where printf style format expected</s>
<s>[INST] EC_UNRELATED_TYPES_USING_POINTER_EQUALITY [/INST] Using pointer equality to compare different types</s>
<s>[INST] EC_UNRELATED_TYPES [/INST] Call to equals</s>
<s>[INST] EC_ARRAY_AND_NONARRAY [/INST] equals</s>
<s>[INST] EC_NULL_ARG [/INST] Call to equals</s>
<s>[INST] EC_UNRELATED_INTERFACES [/INST] Call to equals</s>
<s>[INST] EC_UNRELATED_CLASS_AND_INTERFACE [/INST] Call to equals</s>
<s>[INST] SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD [/INST] Self assignment of local rather than assignment to field</s>
<s>[INST] INT_BAD_COMPARISON_WITH_INT_VALUE [/INST] Bad comparison of int value with long constant</s>
<s>[INST] INT_BAD_COMPARISON_WITH_SIGNED_BYTE [/INST] Bad comparison of signed byte</s>
<s>[INST] INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE [/INST] Bad comparison of nonnegative value with negative constant or zero</s>
<s>[INST] BIT_ADD_OF_SIGNED_BYTE [/INST] Bitwise add of signed byte value</s>
<s>[INST] BIT_IOR_OF_SIGNED_BYTE [/INST] Bitwise OR of signed byte value</s>
<s>[INST] BIT_SIGNED_CHECK_HIGH_BIT [/INST] Check for sign of bitwise operation involving negative number</s>
<s>[INST] BIT_AND [/INST] Incompatible bit masks</s>
<s>[INST] BIT_AND_ZZ [/INST] Check to see if</s>
<s>[INST] BIT_IOR [/INST] Incompatible bit masks</s>
<s>[INST] SA_FIELD_SELF_ASSIGNMENT [/INST] Self assignment of field</s>
<s>[INST] SA_FIELD_SELF_COMPUTATION [/INST] Nonsensical self computation involving a field</s>
<s>[INST] SA_LOCAL_SELF_COMPUTATION [/INST] Nonsensical self computation involving a variable</s>
<s>[INST] SA_FIELD_SELF_COMPARISON [/INST] Self comparison of field with itself</s>
<s>[INST] SA_LOCAL_SELF_COMPARISON [/INST] Self comparison of value with itself</s>
<s>[INST] UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS [/INST] Uncallable method defined in anonymous class</s>
<s>[INST] IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD [/INST] JUnit assertion in run method will not be noticed by JUnit</s>
<s>[INST] IJU_BAD_SUITE_METHOD [/INST] TestCase declares a bad suite method</s>
<s>[INST] IJU_SETUP_NO_SUPER [/INST] TestCase defines setUp that doesn’t call super.setUp</s>
<s>[INST] IJU_TEARDOWN_NO_SUPER [/INST] TestCase defines tearDown that doesn’t call super.tearDown</s>
<s>[INST] IJU_SUITE_NOT_STATIC [/INST] TestCase implements a non-static suite method</s>
<s>[INST] IJU_NO_TESTS [/INST] TestCase has no tests</s>
<s>[INST] BOA_BADLY_OVERRIDDEN_ADAPTER [/INST] Class overrides a method implemented in super class Adapter wrongly</s>
<s>[INST] SQL_BAD_RESULTSET_ACCESS [/INST] Method attempts to access a result set field with index 0</s>
<s>[INST] SQL_BAD_PREPARED_STATEMENT_ACCESS [/INST] Method attempts to access a prepared statement parameter with index 0</s>
<s>[INST] SIO_SUPERFLUOUS_INSTANCEOF [/INST] Unnecessary type check done using instanceof operator</s>
<s>[INST] BAC_BAD_APPLET_CONSTRUCTOR [/INST] Bad Applet Constructor relies on uninitialized AppletStub</s>
<s>[INST] EC_INCOMPATIBLE_ARRAY_COMPARE [/INST] equals</s>
<s>[INST] EC_BAD_ARRAY_COMPARE [/INST] Invocation of equals</s>
<s>[INST] STI_INTERRUPTED_ON_CURRENTTHREAD [/INST] Unneeded use of currentThread</s>
<s>[INST] STI_INTERRUPTED_ON_UNKNOWNTHREAD [/INST] Static Thread.interrupted</s>
<s>[INST] DLS_DEAD_LOCAL_INCREMENT_IN_RETURN [/INST] Useless increment in return statement</s>
<s>[INST] DLS_DEAD_STORE_OF_CLASS_LITERAL [/INST] Dead store of class literal</s>
<s>[INST] IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN [/INST] A parameter is dead upon entry to a method but overwritten</s>
<s>[INST] MF_METHOD_MASKS_FIELD [/INST] Method defines a variable that obscures a field</s>
<s>[INST] MF_CLASS_MASKS_FIELD [/INST] Class defines field that masks a superclass field</s>
<s>[INST] FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER [/INST] Doomed test for equality to NaN</s>
<s>[INST] ICAST_INT_2_LONG_AS_INSTANT [/INST] int value converted to long and used as absolute time</s>
<s>[INST] ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL [/INST] Integral value cast to double and then passed to Math.ceil</s>
<s>[INST] ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND [/INST] int value cast to float and then passed to Math.round</s>
<s>[INST] NP_NULL_INSTANCEOF [/INST] A known null value is checked to see if it is an instance of a type</s>
<s>[INST] DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT [/INST] Double.longBitsToDouble invoked on an int</s>
<s>[INST] BC_IMPOSSIBLE_CAST [/INST] Impossible cast</s>
<s>[INST] BC_IMPOSSIBLE_DOWNCAST [/INST] Impossible downcast</s>
<s>[INST] BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY [/INST] Impossible downcast of toArray</s>
<s>[INST] BC_IMPOSSIBLE_INSTANCEOF [/INST] instanceof will always return false</s>