You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

This page was automatically generated and should not be edited.

The information on this page was provided by outside contributors and has not been verified by SEI CERT.

9.0p0

Checker

Guideline

FB.BAD_PRACTICE.DE_MIGHT_IGNOREERR00-J. Do not suppress or ignore checked exceptions
FB.BAD_PRACTICE.DM_EXITERR09-J. Do not allow untrusted code to terminate the JVM
FB.BAD_PRACTICE.EQ_GETCLASS_AND_CLASS_CONSTANTMET08-J. Preserve the equality contract when overriding the equals() method
FB.BAD_PRACTICE.FI_EMPTYMET12-J. Do not use finalizers
FB.BAD_PRACTICE.FI_EXPLICIT_INVOCATIONMET12-J. Do not use finalizers
FB.BAD_PRACTICE.FI_FINALIZER_NULLS_FIELDSMET12-J. Do not use finalizers
FB.BAD_PRACTICE.FI_FINALIZER_ONLY_NULLS_FIELDSMET12-J. Do not use finalizers
FB.BAD_PRACTICE.FI_MISSING_SUPER_CALLMET12-J. Do not use finalizers
FB.BAD_PRACTICE.FI_NULLIFY_SUPERMET12-J. Do not use finalizers
FB.BAD_PRACTICE.FI_USELESSMET12-J. Do not use finalizers
FB.BAD_PRACTICE.NP_BOOLEAN_RETURN_NULLEXP01-J. Do not use a null in a case where an object is required
FB.BAD_PRACTICE.NP_CLONE_COULD_RETURN_NULLEXP01-J. Do not use a null in a case where an object is required
FB.BAD_PRACTICE.NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENTEXP01-J. Do not use a null in a case where an object is required
FB.BAD_PRACTICE.NP_TOSTRING_COULD_RETURN_NULLEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.BOA_BADLY_OVERRIDDEN_ADAPTERMET07-J. Never declare a class method that hides a method declared in a superclass or superinterface
FB.CORRECTNESS.EC_BAD_ARRAY_COMPAREEXP02-J. Do not use the Object.equals() method to compare two arrays
FB.CORRECTNESS.EQ_COMPARING_CLASS_NAMESOBJ09-J. Compare classes and not class names
FB.CORRECTNESS.FE_TEST_IF_EQUAL_TO_NOT_A_NUMBERNUM07-J. Do not attempt comparisons with NaN
FB.CORRECTNESS.HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASSMET09-J. Classes that define an equals() method must also define a hashCode() method
FB.CORRECTNESS.HE_USE_OF_UNHASHABLE_CLASSMET09-J. Classes that define an equals() method must also define a hashCode() method
FB.CORRECTNESS.NP_ALWAYS_NULLEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_ALWAYS_NULL_EXCEPTIONEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_ARGUMENT_MIGHT_BE_NULLEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_CLOSING_NULLEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_GUARANTEED_DEREFEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_GUARANTEED_DEREF_ON_EXCEPTION_PATHEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOREXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_NONNULL_PARAM_VIOLATIONEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_NONNULL_RETURN_VIOLATIONEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_NULL_ON_SOME_PATHEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_NULL_ON_SOME_PATH_EXCEPTIONEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_NULL_PARAM_DEREFEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUSEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_NULL_PARAM_DEREF_NONVIRTUALEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_STORE_INTO_NONNULL_FIELDEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.NP_UNWRITTEN_FIELDEXP01-J. Do not use a null in a case where an object is required
FB.CORRECTNESS.OVERRIDING_EQUALS_NOT_SYMMETRICMET08-J. Preserve the equality contract when overriding the equals() method
FB.CORRECTNESS.RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPEEXP01-J. Do not use a null in a case where an object is required
FB.I18N.DM_CONVERT_CASESTR02-J. Specify an appropriate locale when comparing locale-dependent data
FB.I18N.DM_DEFAULT_ENCODINGSTR02-J. Specify an appropriate locale when comparing locale-dependent data
FB.MALICIOUS_CODE.EI_EXPOSE_REPOBJ04-J. Provide mutable classes with copy functionality to safely allow passing instances to untrusted code
FB.MALICIOUS_CODE.EI_EXPOSE_REP2OBJ04-J. Provide mutable classes with copy functionality to safely allow passing instances to untrusted code
FB.MALICIOUS_CODE.EI_EXPOSE_STATIC_REP2OBJ06-J. Defensively copy mutable inputs and mutable internal components
FB.MALICIOUS_CODE.FI_PUBLIC_SHOULD_BE_PROTECTEDMET12-J. Do not use finalizers
FB.MALICIOUS_CODE.MS_SHOULD_BE_FINALOBJ10-J. Do not use public static nonfinal fields
FB.MALICIOUS_CODE.MS_SHOULD_BE_REFACTORED_TO_BE_FINALOBJ10-J. Do not use public static nonfinal fields
FB.MT_CORRECTNESS.DC_DOUBLECHECKLCK10-J. Use a correct form of the double-checked locking idiom
FB.MT_CORRECTNESS.DL_SYNCHRONIZATION_ON_BOOLEANLCK01-J. Do not synchronize on objects that may be reused
FB.MT_CORRECTNESS.DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVELCK01-J. Do not synchronize on objects that may be reused
FB.MT_CORRECTNESS.DL_SYNCHRONIZATION_ON_SHARED_CONSTANTLCK01-J. Do not synchronize on objects that may be reused
FB.MT_CORRECTNESS.IS2_INCONSISTENT_SYNCVNA02-J. Ensure that compound operations on shared variables are atomic
FB.MT_CORRECTNESS.IS2_INCONSISTENT_SYNCVNA03-J. Do not assume that a group of calls to independently atomic methods is atomic
FB.MT_CORRECTNESS.IS_FIELD_NOT_GUARDEDVNA02-J. Ensure that compound operations on shared variables are atomic
FB.MT_CORRECTNESS.IS_FIELD_NOT_GUARDEDVNA03-J. Do not assume that a group of calls to independently atomic methods is atomic
FB.MT_CORRECTNESS.NO_NOTIFY_NOT_NOTIFYALLTHI02-J. Notify all waiting threads rather than a single thread
FB.MT_CORRECTNESS.RU_INVOKE_RUNTHI00-J. Do not invoke Thread.run()
FB.MT_CORRECTNESS.SC_START_IN_CTORTSM02-J. Do not use background threads during class initialization
FB.MT_CORRECTNESS.STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCEVNA02-J. Ensure that compound operations on shared variables are atomic
FB.MT_CORRECTNESS.STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCEVNA03-J. Do not assume that a group of calls to independently atomic methods is atomic
FB.MT_CORRECTNESS.STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCEVNA02-J. Ensure that compound operations on shared variables are atomic
FB.MT_CORRECTNESS.STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCEVNA03-J. Do not assume that a group of calls to independently atomic methods is atomic
FB.MT_CORRECTNESS.STCAL_STATIC_CALENDAR_INSTANCEVNA02-J. Ensure that compound operations on shared variables are atomic
FB.MT_CORRECTNESS.STCAL_STATIC_CALENDAR_INSTANCEVNA03-J. Do not assume that a group of calls to independently atomic methods is atomic
FB.MT_CORRECTNESS.STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCEVNA02-J. Ensure that compound operations on shared variables are atomic
FB.MT_CORRECTNESS.STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCEVNA03-J. Do not assume that a group of calls to independently atomic methods is atomic
FB.MT_CORRECTNESS.SWL_SLEEP_WITH_LOCK_HELDLCK09-J. Do not perform operations that can block while holding a lock
FB.MT_CORRECTNESS.WA_AWAIT_NOT_IN_LOOPTHI03-J. Always invoke wait() and await() methods inside a loop
FB.MT_CORRECTNESS.WA_NOT_IN_LOOPTHI03-J. Always invoke wait() and await() methods inside a loop
FB.SECURITY.DMI_CONSTANT_DB_PASSWORDMSC03-J. Never hard code sensitive information
FB.SECURITY.DMI_EMPTY_DB_PASSWORDMSC03-J. Never hard code sensitive information
FB.SECURITY.SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTEIDS00-J. Prevent SQL injection
FB.SECURITY.SQL_PREPARED_STATEMENT_GENERATED_IDS00-J. Prevent SQL injection
FB.STYLE.IC_INIT_CIRCULARITYDCL00-J. Prevent class initialization cycles
FB.STYLE.NP_DEREFERENCE_OF_READLINE_VALUEEXP01-J. Do not use a null in a case where an object is required
FB.STYLE.NP_IMMEDIATE_DEREFERENCE_OF_READLINEEXP01-J. Do not use a null in a case where an object is required
FB.STYLE.NP_LOAD_OF_KNOWN_NULL_VALUEEXP01-J. Do not use a null in a case where an object is required
FB.STYLE.NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUEEXP01-J. Do not use a null in a case where an object is required
FB.STYLE.NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLEEXP01-J. Do not use a null in a case where an object is required
FB.STYLE.NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLEEXP01-J. Do not use a null in a case where an object is required
FB.STYLE.NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELDEXP01-J. Do not use a null in a case where an object is required
PMD.Basic.AvoidThreadGroupTHI01-J. Do not invoke ThreadGroup methods
PMD.Basic.DontUseFloatTypeForLoopIndicesNUM09-J. Do not use floating-point variables as loop counters
PMD.Design.BadComparisonNUM07-J. Do not attempt comparisons with NaN
PMD.Design.SimpleDateFormatNeedsLocaleSTR02-J. Specify an appropriate locale when comparing locale-dependent data
PMD.Design.UseLocaleWithCaseConversionsSTR02-J. Specify an appropriate locale when comparing locale-dependent data
PMD.Design.UseNotifyAllInsteadOfNotifyTHI02-J. Notify all waiting threads rather than a single thread
PMD.J2EE.DoNotCallSystemExitERR09-J. Do not allow untrusted code to terminate the JVM
PMD.Security-Code-Guidelines.ArrayIsStoredDirectlyOBJ06-J. Defensively copy mutable inputs and mutable internal components
PMD.Strict-Exceptions.AvoidCatchingThrowableERR08-J. Do not catch NullPointerException or any of its ancestors
PMD.Strict-Exceptions.DoNotThrowExceptionInFinallyERR04-J. Do not complete abruptly from a finally block
  • No labels