Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * fb-contrib - Auxiliary detectors for Java programs
   * Copyright (C) 2005-2015 Dave Brosius
   * 
   * This library is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Lesser General Public
   * License as published by the Free Software Foundation; either
   * version 2.1 of the License, or (at your option) any later version.
   * 
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  * 
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 package com.mebigfatguy.fbcontrib.utils;

an enumeration of all the bug instance types that fb-contrib produces
 
 public enum BugType {
 	
 	ABC_ARRAY_BASED_COLLECTIONS,
 	ACEM_ABSTRACT_CLASS_EMPTY_METHODS,
 	AFBR_ABNORMAL_FINALLY_BLOCK_RETURN,
     AIOB_ARRAY_INDEX_OUT_OF_BOUNDS,
     AIOB_ARRAY_STORE_TO_NULL_REFERENCE,
 	AOM_ABSTRACT_OVERRIDDEN_METHOD,
 	AWCBR_ARRAY_WRAPPED_CALL_BY_REFERENCE,
 	
 	BAS_BLOATED_ASSIGNMENT_SCOPE,
 	BED_BOGUS_EXCEPTION_DECLARATION,
 	BED_HIERARCHICAL_EXCEPTION_DECLARATION,
 	BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS,
 	BSB_BLOATED_SYNCHRONIZED_BLOCK,
 	
     CAAL_CONFUSING_ARRAY_AS_LIST,
 	CAO_CONFUSING_AUTOBOXED_OVERLOADING,
 	CBC_CONTAINS_BASED_CONDITIONAL,
 	CBX_CUSTOM_BUILT_XML,
 	CC_CYCLOMATIC_COMPLEXITY,
 	CCNE_COMPARE_CLASS_EQUALS_NAME,
     CD_CIRCULAR_DEPENDENCY,
 	CEBE_COMMONS_EQUALS_BUILDER_ISEQUALS,
 	CE_CLASS_ENVY,
 	CFS_CONFUSING_FUNCTION_SEMANTICS,
 	CHTH_COMMONS_HASHCODE_BUILDER_TOHASHCODE,
 	CIS_STRING_PARSING_A_FIELD,
 	CIS_TOSTRING_STORED_IN_FIELD,
 	CLI_CONSTANT_LIST_INDEX,
     CNC_COLLECTION_NAMING_CONFUSION,
 	COM_COPIED_OVERRIDDEN_METHOD,
 	CRF_CONFLATING_RESOURCES_AND_FILES,
 	CSBTS_COMMONS_STRING_BUILDER_TOSTRING,
 	CSI_CHAR_SET_ISSUES_UNKNOWN_ENCODING,
 	CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET,
 	CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME,
 	CTU_CONFLICTING_TIME_UNITS,
     CU_CLONE_USABILITY_MISMATCHED_RETURN,
     CU_CLONE_USABILITY_OBJECT_RETURN,
     CU_CLONE_USABILITY_THROWS,
 	CVAA_CONTRAVARIANT_ARRAY_ASSIGNMENT,
 	CVAA_CONTRAVARIANT_ELEMENT_ASSIGNMENT,
 	
 	DDC_DOUBLE_DATE_COMPARISON,
 	DLC_DUBIOUS_LIST_COLLECTION,
 	DRE_DECLARED_RUNTIME_EXCEPTION,
 	DSOC_DUBIOUS_SET_OF_COLLECTIONS,
 	DTEP_DEPRECATED_TYPESAFE_ENUM_PATTERN,
 	DWI_DELETING_WHILE_ITERATING,
 	DWI_MODIFYING_WHILE_ITERATING,
 	
 	EXS_EXCEPTION_SOFTENING_HAS_CHECKED,
 	EXS_EXCEPTION_SOFTENING_NO_CHECKED,
 	EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS,
 	EXS_EXCEPTION_SOFTENING_RETURN_FALSE,
 	
 	FCBL_FIELD_COULD_BE_LOCAL,
 	FP_FINAL_PARAMETERS,
 	FPL_FLOATING_POINT_LOOPS,
 	
 	HCP_HTTP_REQUEST_RESOURCES_NOT_FREED_FIELD,
 	HCP_HTTP_REQUEST_RESOURCES_NOT_FREED_LOCAL,
 	HES_EXECUTOR_NEVER_SHUTDOWN,
 	HES_EXECUTOR_OVERWRITTEN_WITHOUT_SHUTDOWN,
 	HES_LOCAL_EXECUTOR_SERVICE,
 	
     ICA_INVALID_CONSTANT_ARGUMENT,
 	IICU_INCORRECT_INTERNAL_CLASS_USE,
 	IKNC_INCONSISTENT_HTTP_ATTRIBUTE_CASING,
 	IKNC_INCONSISTENT_HTTP_PARAM_CASING,
 	IPU_IMPROPER_PROPERTIES_USE,
 	IPU_IMPROPER_PROPERTIES_USE_SETPROPERTY,
 	ISB_EMPTY_STRING_APPENDING,
 	ISB_INEFFICIENT_STRING_BUFFERING,
 	ISB_TOSTRING_APPENDING,
	ITC_INHERITANCE_TYPE_CHECKING,
	ITU_INAPPROPRIATE_TOSTRING_USE,
	JAO_JUNIT_ASSERTION_ODDITIES_ACTUAL_CONSTANT,
    JAO_JUNIT_ASSERTION_ODDITIES_ASSERT_USED,
	JAO_JUNIT_ASSERTION_ODDITIES_BOOLEAN_ASSERT,
    JAO_JUNIT_ASSERTION_ODDITIES_IMPOSSIBLE_NULL,
	JAO_JUNIT_ASSERTION_ODDITIES_INEXACT_DOUBLE,
    JAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS,
    JAO_JUNIT_ASSERTION_ODDITIES_NO_ASSERT,
    
	JVR_JDBC_VENDOR_RELIANCE,
	LEST_LOST_EXCEPTION_STACK_TRACE,
	LGO_LINGERING_GRAPHICS_OBJECT,
	LII_LIST_INDEXED_ITERATING,
	LO_APPENDED_STRING_IN_FORMAT_STRING,
	LO_EXCEPTION_WITH_LOGGER_PARMS,
	LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS,
	LO_INVALID_FORMATTING_ANCHOR,
    LO_LOGGER_LOST_EXCEPTION_STACK_TRACE,
	LO_STUTTERED_MESSAGE,
	LO_SUSPECT_LOG_CLASS,
	LO_SUSPECT_LOG_PARAMETER,
	LSC_LITERAL_STRING_COMPARISON,
	LSYC_LOCAL_SYNCHRONIZED_COLLECTION,
	MAC_MANUAL_ARRAY_COPY,
	MDM_BIGDECIMAL_EQUALS,
	MDM_INETADDRESS_GETLOCALHOST,
	MDM_LOCK_ISLOCKED,
	MDM_PROMISCUOUS_SERVERSOCKET,
	MDM_RANDOM_SEED,
	MDM_RUNFINALIZATION,
	MDM_RUNTIME_EXIT_OR_HALT,
	MDM_SECURERANDOM,
	MDM_SETDEFAULTLOCALE,
	MDM_SIGNAL_NOT_SIGNALALL,
	MDM_STRING_BYTES_ENCODING,
	MDM_THREAD_FAIRNESS,
	MDM_THREAD_PRIORITIES,
	MDM_THREAD_YIELD,
	MDM_WAIT_WITHOUT_TIMEOUT,
	MOM_MISLEADING_OVERLOAD_MODEL,
	MRC_METHOD_RETURNS_CONSTANT,
    MUC_MODIFYING_UNMODIFIABLE_COLLECTION,
    
	NAB_NEEDLESS_AUTOBOXING_CTOR,
	NAB_NEEDLESS_AUTOBOXING_VALUEOF,
	NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION,
	NAB_NEEDLESS_BOXING_PARSE,
	NAB_NEEDLESS_BOXING_STRING_CTOR,
	NAB_NEEDLESS_BOXING_VALUEOF,
	NAB_NEEDLESS_BOX_TO_CAST,
	NAB_NEEDLESS_BOX_TO_UNBOX,
	NCMU_NON_COLLECTION_METHOD_USE,
	NCS_NEEDLESS_CUSTOM_SERIALIZATION,
	NFF_NON_FUNCTIONAL_FIELD,
	NIR_NEEDLESS_INSTANCE_RETRIEVAL,
	NMCS_NEEDLESS_MEMBER_COLLECTION_SYNCHRONIZATION,
	NOS_NON_OWNED_SYNCHRONIZATION,
    NPMC_NON_PRODUCTIVE_METHOD_CALL,
	NRTL_NON_RECYCLEABLE_TAG_LIB,
	NSE_NON_SYMMETRIC_EQUALS,
	OC_OVERZEALOUS_CASTING,
	OCP_OVERLY_CONCRETE_PARAMETER,
	ODN_ORPHANED_DOM_NODE,
	OPM_OVERLY_PERMISSIVE_METHOD,
	PCAIL_POSSIBLE_CONSTANT_ALLOCATION_IN_LOOP,
	PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS,
	PDP_POORLY_DEFINED_PARAMETER,
	PIS_POSSIBLE_INCOMPLETE_SERIALIZATION,
	PL_PARALLEL_LISTS,
	PMB_INSTANCE_BASED_THREAD_LOCAL,
	PMB_POSSIBLE_MEMORY_BLOAT,
    PME_POOR_MANS_ENUM,
	PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS,
    PSC_PRESIZE_COLLECTIONS,
	PUS_POSSIBLE_UNSUSPECTED_SERIALIZATION,
	ROOM_REFLECTION_ON_OBJECT_METHODS,
	S508C_APPENDED_STRING,
	S508C_NON_ACCESSIBLE_JCOMPONENT,
	S508C_NON_TRANSLATABLE_STRING,
	S508C_NO_SETLABELFOR,
	S508C_NO_SETSIZE,
	S508C_NULL_LAYOUT,
	S508C_SET_COMP_COLOR,
	SACM_STATIC_ARRAY_CREATED_IN_METHOD,
	SCA_SUSPICIOUS_CLONE_ALGORITHM,
	SCII_SPOILED_CHILD_INTERFACE_IMPLEMENTOR,
	SCI_SYNCHRONIZED_COLLECTION_ITERATORS,
	SCR_SLOPPY_CLASS_REFLECTION,
	SCSS_SUSPICIOUS_CLUSTERED_SESSION_SUPPORT,
	SC_SUSPICIOUS_COMPARATOR_RETURN_VALUES,
	SEC_SIDE_EFFECT_CONSTRUCTOR,
	SG_SLUGGISH_GUI,
	SGSU_SUSPICIOUS_GETTER_SETTER_USE,
	SIL_SQL_IN_LOOP,
	SJVU_SUSPICIOUS_JDK_VERSION_USE,
	SMA_STUTTERED_METHOD_ARGUMENTS,
	SMII_STATIC_METHOD_INSTANCE_INVOCATION,
	SNG_SUSPICIOUS_NULL_FIELD_GUARD,
	SNG_SUSPICIOUS_NULL_LOCAL_GUARD,
	SPP_CONVERSION_OF_STRING_LITERAL,
    SPP_DOUBLE_APPENDED_LITERALS,
	SPP_EMPTY_CASING,
	SPP_EQUALS_ON_ENUM,
    SPP_EQUALS_ON_STRING_BUILDER,
	SPP_INTERN_ON_CONSTANT,
	SPP_INVALID_BOOLEAN_NULL_CHECK,
	SPP_INVALID_CALENDAR_COMPARE,
	SPP_NEGATIVE_BITSET_ITEM,
	SPP_NO_CHAR_SB_CTOR,
	SPP_NON_ARRAY_PARM,
    SPP_NON_USEFUL_TOSTRING,
    SPP_NULL_BEFORE_INSTANCEOF,
	SPP_SERIALVER_SHOULD_BE_PRIVATE,
	SPP_STATIC_FORMAT_STRING,
	SPP_STRINGBUFFER_WITH_EMPTY_STRING,
    SPP_STRINGBUILDER_IS_MUTABLE,
	SPP_STUTTERED_ASSIGNMENT,
	SPP_SUSPECT_STRING_TEST,
    SPP_TEMPORARY_TRIM,
    SPP_TOSTRING_ON_STRING,
	SPP_USE_BIGDECIMAL_STRING_CTOR,
	SPP_USE_CHARAT,
	SPP_USE_CONTAINSKEY,
    SPP_USE_GET0,
	SPP_USE_GETPROPERTY,
	SPP_USE_ISEMPTY,
	SPP_USE_ISNAN,
	SPP_USELESS_CASING,
	SPP_USELESS_TERNARY,
	SPP_USE_MATH_CONSTANT,
	SPP_USE_STRINGBUILDER_LENGTH,
	SLS_SUSPICIOUS_LOOP_SEARCH,
	STB_STACKED_TRY_BLOCKS,
	STS_SPURIOUS_THREAD_STATES,
	SUA_SUSPICIOUS_UNINITIALIZED_ARRAY,
	SWCO_SUSPICIOUS_WAIT_ON_CONCURRENT_OBJECT,
	TBP_TRISTATE_BOOLEAN_PATTERN,
	TR_TAIL_RECURSION,
	UAA_USE_ADD_ALL,
	UCC_UNRELATED_COLLECTION_CONTENTS,
	UCPM_USE_CHARACTER_PARAMETERIZED_METHOD,
	UEC_USE_ENUM_COLLECTIONS,
    UJM_UNJITABLE_METHOD,
    UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER,
	UNNC_UNNECESSARY_NEW_NULL_CHECK,
    UP_UNUSED_PARAMETER,
	URV_CHANGE_RETURN_TYPE,
	URV_INHERITED_METHOD_WITH_RELATED_TYPES,
	URV_UNRELATED_RETURN_VALUES,
	USBR_UNNECESSARY_STORE_BEFORE_RETURN,
	USS_USE_STRING_SPLIT,
	UTA_USE_TO_ARRAY,
	UVA_USE_VAR_ARGS,
	WEM_WEAK_EXCEPTION_MESSAGING,
	WOC_WRITE_ONLY_COLLECTION_FIELD,
	WOC_WRITE_ONLY_COLLECTION_LOCAL;
New to GrepCode? Check out our FAQ X