[Fb-contrib-commit] SF.net SVN: fb-contrib: [877] trunk/fb-contrib/samples/samples-bugs.xml
Brought to you by:
dbrosius
From: <dbr...@us...> - 2007-03-11 14:31:10
|
Revision: 877 http://svn.sourceforge.net/fb-contrib/?rev=877&view=rev Author: dbrosius Date: 2007-03-11 07:31:03 -0700 (Sun, 11 Mar 2007) Log Message: ----------- oops, use the right project Modified Paths: -------------- trunk/fb-contrib/samples/samples-bugs.xml Modified: trunk/fb-contrib/samples/samples-bugs.xml =================================================================== --- trunk/fb-contrib/samples/samples-bugs.xml 2007-03-11 14:26:56 UTC (rev 876) +++ trunk/fb-contrib/samples/samples-bugs.xml 2007-03-11 14:31:03 UTC (rev 877) @@ -1,1390 +1,4646 @@ <?xml version="1.0" encoding="UTF-8"?> -<BugCollection version="1.2.0-rc1" sequence="0" timestamp="-1" analysisTimestamp="1173623029015" release=""> - <Project filename="O:\fb-contrib\fb-contrib.fb"> - <Jar>O:\fb-contrib\classes</Jar> - <AuxClasspathEntry>O:\fb-contrib\lib\bcel.jar</AuxClasspathEntry> - <AuxClasspathEntry>O:\fb-contrib\lib\findbugs.jar</AuxClasspathEntry> - <SrcDir>O:\fb-contrib\src</SrcDir> +<BugCollection version="1.2.0-rc1" sequence="0" timestamp="-1" analysisTimestamp="1173623337203" release=""> + <Project filename="O:\fb-contrib\samples\samples.fb"> + <Jar>O:\fb-contrib\samples</Jar> + <AuxClasspathEntry>O:\fb-contrib\samples\lib\jsp-api.jar</AuxClasspathEntry> + <SrcDir>O:\fb-contrib\samples</SrcDir> </Project> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.AbnormalFinallyBlockReturn"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.AbnormalFinallyBlockReturn" sourcefile="AbnormalFinallyBlockReturn.java" sourcepath="com/mebigfatguy/fbcontrib/detect/AbnormalFinallyBlockReturn.java"/> + <BugInstance type="ABC_ARRAY_BASED_COLLECTIONS" priority="2" abbrev="ABC" category="CORRECTNESS"> + <Class classname="ABC_Sample"> + <SourceLine classname="ABC_Sample" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.AbnormalFinallyBlockReturn" name="fbInfo" signature="Ljava/util/List;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.AbnormalFinallyBlockReturn" sourcefile="AbnormalFinallyBlockReturn.java" sourcepath="com/mebigfatguy/fbcontrib/detect/AbnormalFinallyBlockReturn.java"/> - </Field> + <Method classname="ABC_Sample" name="testLists" signature="(Ljava/util/List;[Ljava/lang/String;)Z" isStatic="false"> + <SourceLine classname="ABC_Sample" start="29" end="29" startBytecode="0" endBytecode="7" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> + </Method> + <SourceLine classname="ABC_Sample" start="29" end="29" startBytecode="2" endBytecode="2" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.AbstractOverriddenMethod"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.AbstractOverriddenMethod" sourcefile="AbstractOverriddenMethod.java" sourcepath="com/mebigfatguy/fbcontrib/detect/AbstractOverriddenMethod.java"/> + <BugInstance type="ABC_ARRAY_BASED_COLLECTIONS" priority="2" abbrev="ABC" category="CORRECTNESS"> + <Class classname="ABC_Sample"> + <SourceLine classname="ABC_Sample" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.AbstractOverriddenMethod" name="superClasses" signature="[Lorg/apache/bcel/classfile/JavaClass;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.AbstractOverriddenMethod" sourcefile="AbstractOverriddenMethod.java" sourcepath="com/mebigfatguy/fbcontrib/detect/AbstractOverriddenMethod.java"/> - </Field> + <Method classname="ABC_Sample" name="testMaps" signature="([Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map;" isStatic="false"> + <SourceLine classname="ABC_Sample" start="15" end="17" startBytecode="0" endBytecode="18" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> + </Method> + <SourceLine classname="ABC_Sample" start="16" end="16" startBytecode="11" endBytecode="11" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ArrayBasedCollections"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayBasedCollections" sourcefile="ArrayBasedCollections.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayBasedCollections.java"/> + <BugInstance type="ABC_ARRAY_BASED_COLLECTIONS" priority="2" abbrev="ABC" category="CORRECTNESS"> + <Class classname="ABC_Sample"> + <SourceLine classname="ABC_Sample" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.ArrayBasedCollections" name="stack" signature="Ledu/umd/cs/findbugs/OpcodeStack;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayBasedCollections" sourcefile="ArrayBasedCollections.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayBasedCollections.java"/> - </Field> + <Method classname="ABC_Sample" name="testSets" signature="([Ljava/lang/String;)Ljava/util/Set;" isStatic="false"> + <SourceLine classname="ABC_Sample" start="22" end="24" startBytecode="0" endBytecode="17" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> + </Method> + <SourceLine classname="ABC_Sample" start="23" end="23" startBytecode="10" endBytecode="10" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> </BugInstance> - <BugInstance type="CC_CYCLOMATIC_COMPLEXITY" priority="2" abbrev="CC" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" abbrev="SIC" category="PERFORMANCE"> + <Class classname="ABC_Sample$UseComparator$1"> + <SourceLine classname="ABC_Sample$UseComparator$1" sourcefile="ABC_Sample.java" sourcepath="ABC_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" start="118" end="228" startBytecode="0" endBytecode="917" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + </BugInstance> + <BugInstance type="ACEM_ABSTRACT_CLASS_EMPTY_METHODS" priority="2" abbrev="ACEM" category="STYLE"> + <Class classname="ACEM_Sample"> + <SourceLine classname="ACEM_Sample" sourcefile="ACEM_Sample.java" sourcepath="ACEM_Sample.java"/> + </Class> + <Method classname="ACEM_Sample" name="test" signature="()V" isStatic="false"> + <SourceLine classname="ACEM_Sample" start="7" end="7" startBytecode="0" endBytecode="0" sourcefile="ACEM_Sample.java" sourcepath="ACEM_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" start="118" end="118" startBytecode="0" endBytecode="0" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + <SourceLine classname="ACEM_Sample" start="7" end="7" startBytecode="0" endBytecode="0" sourcefile="ACEM_Sample.java" sourcepath="ACEM_Sample.java"/> </BugInstance> - <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" abbrev="PRMC" category="PERFORMANCE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + <BugInstance type="ACEM_ABSTRACT_CLASS_EMPTY_METHODS" priority="2" abbrev="ACEM" category="STYLE"> + <Class classname="ACEM_Sample"> + <SourceLine classname="ACEM_Sample" sourcefile="ACEM_Sample.java" sourcepath="ACEM_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" start="118" end="228" startBytecode="0" endBytecode="917" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + <Method classname="ACEM_Sample" name="test1" signature="()I" isStatic="false"> + <SourceLine classname="ACEM_Sample" start="11" end="11" startBytecode="0" endBytecode="9" sourcefile="ACEM_Sample.java" sourcepath="ACEM_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" start="143" end="143" startBytecode="186" endBytecode="186" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> - <String value="getRegisterNumber()I"/> + <SourceLine classname="ACEM_Sample" start="11" end="11" startBytecode="9" endBytecode="9" sourcefile="ACEM_Sample.java" sourcepath="ACEM_Sample.java"/> </BugInstance> - <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" abbrev="PRMC" category="PERFORMANCE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + <BugInstance type="AFBR_ABNORMAL_FINALLY_BLOCK_RETURN" priority="2" abbrev="AFBR" category="CORRECTNESS"> + <Class classname="AFBR_Sample"> + <SourceLine classname="AFBR_Sample" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" start="118" end="228" startBytecode="0" endBytecode="917" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + <Method classname="AFBR_Sample" name="test1" signature="(Z)I" isStatic="false"> + <SourceLine classname="AFBR_Sample" start="12" end="20" startBytecode="0" endBytecode="26" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" start="150" end="150" startBytecode="249" endBytecode="249" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> - <String value="getSignature()Ljava/lang/String;"/> + <SourceLine classname="AFBR_Sample" start="17" end="17" startBytecode="19" endBytecode="19" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + <BugInstance type="AFBR_ABNORMAL_FINALLY_BLOCK_RETURN" priority="2" abbrev="AFBR" category="CORRECTNESS"> + <Class classname="AFBR_Sample"> + <SourceLine classname="AFBR_Sample" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" name="stack" signature="Ledu/umd/cs/findbugs/OpcodeStack;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> - </Field> + <Method classname="AFBR_Sample" name="test2" signature="()I" isStatic="false"> + <SourceLine classname="AFBR_Sample" start="27" end="31" startBytecode="0" endBytecode="18" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> + </Method> + <SourceLine classname="AFBR_Sample" start="31" end="31" startBytecode="18" endBytecode="18" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> + <BugInstance type="AFBR_ABNORMAL_FINALLY_BLOCK_RETURN" priority="2" abbrev="AFBR" category="CORRECTNESS"> + <Class classname="AFBR_Sample"> + <SourceLine classname="AFBR_Sample" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" name="wrappers" signature="Ljava/util/Map;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ArrayWrappedCallByReference" sourcefile="ArrayWrappedCallByReference.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ArrayWrappedCallByReference.java"/> - </Field> + <Method classname="AFBR_Sample" name="test3" signature="()I" isStatic="false"> + <SourceLine classname="AFBR_Sample" start="39" end="43" startBytecode="0" endBytecode="18" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> + </Method> + <SourceLine classname="AFBR_Sample" start="43" end="43" startBytecode="18" endBytecode="18" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </BugInstance> - <BugInstance type="CC_CYCLOMATIC_COMPLEXITY" priority="2" abbrev="CC" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <BugInstance type="AFBR_ABNORMAL_FINALLY_BLOCK_RETURN" priority="2" abbrev="AFBR" category="CORRECTNESS"> + <Class classname="AFBR_Sample"> + <SourceLine classname="AFBR_Sample" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" start="135" end="251" startBytecode="0" endBytecode="971" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <Method classname="AFBR_Sample" name="test4" signature="()I" isStatic="false"> + <SourceLine classname="AFBR_Sample" start="51" end="59" startBytecode="0" endBytecode="15" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" start="135" end="135" startBytecode="0" endBytecode="0" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <SourceLine classname="AFBR_Sample" start="59" end="59" startBytecode="15" endBytecode="15" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </BugInstance> - <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" abbrev="FCBL" category="CORRECTNESS"> - <Class classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <BugInstance type="AFBR_ABNORMAL_FINALLY_BLOCK_RETURN" priority="3" abbrev="AFBR" category="CORRECTNESS"> + <Class classname="AFBR_Sample"> + <SourceLine classname="AFBR_Sample" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" name="dontReport" signature="Z" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> - </Field> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" start="114" end="114" startBytecode="184" endBytecode="184" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <Method classname="AFBR_Sample" name="test5" signature="()I" isStatic="false"> + <SourceLine classname="AFBR_Sample" start="65" end="80" startBytecode="0" endBytecode="56" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> + </Method> + <SourceLine classname="AFBR_Sample" start="78" end="78" startBytecode="50" endBytecode="50" sourcefile="AFBR_Sample.java" sourcepath="AFBR_Sample.java"/> </BugInstance> - <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" abbrev="PRMC" category="PERFORMANCE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <BugInstance type="AOM_ABSTRACT_OVERRIDDEN_METHOD" priority="2" abbrev="AOM" category="CORRECTNESS"> + <Class classname="AOM_Sample"> + <SourceLine classname="AOM_Sample" sourcefile="AOM_Sample.java" sourcepath="AOM_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" start="135" end="251" startBytecode="0" endBytecode="971" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <Method classname="AOM_Sample" name="test1" signature="()V" isStatic="false"> + <SourceLine classname="AOM_Sample" startBytecode="0" sourcefile="AOM_Sample.java" sourcepath="AOM_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" start="177" end="177" startBytecode="358" endBytecode="358" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> - <String value="getPC()I"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <BugInstance type="AWCBR_ARRAY_WRAPPED_CALL_BY_REFERENCE" priority="2" abbrev="AWCBR" category="STYLE"> + <Class classname="AWCBR_Sample"> + <SourceLine classname="AWCBR_Sample" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" name="catchHandlers" signature="Ljava/util/Set;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> - </Field> + <Method classname="AWCBR_Sample" name="testinitedalloc" signature="(I)I" isStatic="false"> + <SourceLine classname="AWCBR_Sample" start="20" end="23" startBytecode="0" endBytecode="18" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> + </Method> + <SourceLine classname="AWCBR_Sample" start="22" end="22" startBytecode="16" endBytecode="16" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <BugInstance type="AWCBR_ARRAY_WRAPPED_CALL_BY_REFERENCE" priority="2" abbrev="AWCBR" category="STYLE"> + <Class classname="AWCBR_Sample"> + <SourceLine classname="AWCBR_Sample" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" name="ignoreRegs" signature="Ljava/util/Set;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> - </Field> + <Method classname="AWCBR_Sample" name="testuninitedalloc" signature="(I)I" isStatic="false"> + <SourceLine classname="AWCBR_Sample" start="11" end="15" startBytecode="0" endBytecode="18" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> + </Method> + <SourceLine classname="AWCBR_Sample" start="14" end="14" startBytecode="16" endBytecode="16" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" abbrev="USBR" category="STYLE"> + <Class classname="AWCBR_Sample"> + <SourceLine classname="AWCBR_Sample" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" name="rootScopeBlock" signature="Lcom/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope$ScopeBlock;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> - </Field> + <Method classname="AWCBR_Sample" name="testNoCall" signature="(I)I" isStatic="false"> + <SourceLine classname="AWCBR_Sample" start="29" end="31" startBytecode="0" endBytecode="13" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> + </Method> + <SourceLine classname="AWCBR_Sample" start="31" end="31" startBytecode="13" endBytecode="13" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> + <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" abbrev="USBR" category="STYLE"> + <Class classname="AWCBR_Sample"> + <SourceLine classname="AWCBR_Sample" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" name="switchTargets" signature="Ljava/util/Set;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" sourcefile="BloatedAssignmentScope.java" sourcepath="com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java"/> - </Field> + <Method classname="AWCBR_Sample" name="testinitedalloc" signature="(I)I" isStatic="false"> + <SourceLine classname="AWCBR_Sample" start="20" end="23" startBytecode="0" endBytecode="18" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> + </Method> + <SourceLine classname="AWCBR_Sample" start="23" end="23" startBytecode="18" endBytecode="18" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </BugInstance> - <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" abbrev="SIC" category="PERFORMANCE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ClassEnvy$1"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ClassEnvy$1" sourcefile="ClassEnvy.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ClassEnvy.java"/> + <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" abbrev="USBR" category="STYLE"> + <Class classname="AWCBR_Sample"> + <SourceLine classname="AWCBR_Sample" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </Class> + <Method classname="AWCBR_Sample" name="testuninitedalloc" signature="(I)I" isStatic="false"> + <SourceLine classname="AWCBR_Sample" start="11" end="15" startBytecode="0" endBytecode="18" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> + </Method> + <SourceLine classname="AWCBR_Sample" start="15" end="15" startBytecode="18" endBytecode="18" sourcefile="AWCBR_Sample.java" sourcepath="AWCBR_Sample.java"/> </BugInstance> - <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" abbrev="PRMC" category="PERFORMANCE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading" sourcefile="ConfusingAutoboxedOverloading.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ConfusingAutoboxedOverloading.java"/> + <BugInstance type="BAS_BLOATED_ASSIGNMENT_SCOPE" priority="2" abbrev="BAS" category="PERFORMANCE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading" name="confusingSignatures" signature="(Ljava/lang/String;Ljava/lang/String;)Z" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading" start="111" end="138" startBytecode="0" endBytecode="148" sourcefile="ConfusingAutoboxedOverloading.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ConfusingAutoboxedOverloading.java"/> + <Method classname="BAS_Sample" name="testIfScope" signature="(Ljava/lang/String;)V" isStatic="false"> + <SourceLine classname="BAS_Sample" start="7" end="12" startBytecode="0" endBytecode="22" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading" start="126" end="126" startBytecode="77" endBytecode="77" sourcefile="ConfusingAutoboxedOverloading.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ConfusingAutoboxedOverloading.java"/> - <String value="getSignature()Ljava/lang/String;"/> + <SourceLine classname="BAS_Sample" start="7" end="7" startBytecode="7" endBytecode="7" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" abbrev="PRMC" category="PERFORMANCE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading" sourcefile="ConfusingAutoboxedOverloading.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ConfusingAutoboxedOverloading.java"/> + <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" abbrev="DLS" category="STYLE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading" name="confusingSignatures" signature="(Ljava/lang/String;Ljava/lang/String;)Z" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading" start="111" end="138" startBytecode="0" endBytecode="148" sourcefile="ConfusingAutoboxedOverloading.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ConfusingAutoboxedOverloading.java"/> + <Method classname="BAS_Sample" name="testFPForScope" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false"> + <SourceLine classname="BAS_Sample" start="16" end="22" startBytecode="0" endBytecode="18" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.ConfusingAutoboxedOverloading" start="127" end="127" startBytecode="91" endBytecode="91" sourcefile="ConfusingAutoboxedOverloading.java" sourcepath="com/mebigfatguy/fbcontrib/detect/ConfusingAutoboxedOverloading.java"/> - <String value="getSignature()Ljava/lang/String;"/> + <LocalVariable name="o" register="2" pc="8" role="LOCAL_VARIABLE_NAMED"/> + <SourceLine classname="BAS_Sample" start="16" end="16" startBytecode="7" endBytecode="7" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.CopiedOverriddenMethod"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.CopiedOverriddenMethod" sourcefile="CopiedOverriddenMethod.java" sourcepath="com/mebigfatguy/fbcontrib/detect/CopiedOverriddenMethod.java"/> + <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" abbrev="DLS" category="STYLE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.CopiedOverriddenMethod" name="superclassCode" signature="Ljava/util/Map;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.CopiedOverriddenMethod" sourcefile="CopiedOverriddenMethod.java" sourcepath="com/mebigfatguy/fbcontrib/detect/CopiedOverriddenMethod.java"/> - </Field> + <Method classname="BAS_Sample" name="testIfScope" signature="(Ljava/lang/String;)V" isStatic="false"> + <SourceLine classname="BAS_Sample" start="7" end="12" startBytecode="0" endBytecode="11" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> + </Method> + <LocalVariable name="s" register="1" pc="22" role="LOCAL_VARIABLE_NAMED"/> + <SourceLine classname="BAS_Sample" start="10" end="10" startBytecode="21" endBytecode="21" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.CyclomaticComplexity"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.CyclomaticComplexity" sourcefile="CyclomaticComplexity.java" sourcepath="com/mebigfatguy/fbcontrib/detect/CyclomaticComplexity.java"/> + <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" abbrev="DLS" category="STYLE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.CyclomaticComplexity" name="classContext" signature="Ledu/umd/cs/findbugs/ba/ClassContext;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.CyclomaticComplexity" sourcefile="CyclomaticComplexity.java" sourcepath="com/mebigfatguy/fbcontrib/detect/CyclomaticComplexity.java"/> - </Field> + <Method classname="BAS_Sample" name="testFPForScope" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false"> + <SourceLine classname="BAS_Sample" start="16" end="22" startBytecode="0" endBytecode="18" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> + </Method> + <LocalVariable name="o" register="2" pc="22" role="LOCAL_VARIABLE_NAMED"/> + <SourceLine classname="BAS_Sample" start="19" end="19" startBytecode="21" endBytecode="21" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="CC_CYCLOMATIC_COMPLEXITY" priority="2" abbrev="CC" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DateComparison"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DateComparison" sourcefile="DateComparison.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DateComparison.java"/> + <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="3" abbrev="LSC" category="STYLE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.DateComparison" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DateComparison" start="91" end="179" startBytecode="0" endBytecode="503" sourcefile="DateComparison.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DateComparison.java"/> + <Method classname="BAS_Sample" name="test2InnerScopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false"> + <SourceLine classname="BAS_Sample" start="38" end="47" startBytecode="0" endBytecode="44" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DateComparison" start="91" end="91" startBytecode="0" endBytecode="0" sourcefile="DateComparison.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DateComparison.java"/> + <SourceLine classname="BAS_Sample" start="41" end="41" startBytecode="15" endBytecode="15" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="NM_CLASS_NOT_EXCEPTION" priority="2" abbrev="Nm" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" sourcefile="DeclaredRuntimeException.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeclaredRuntimeException.java"/> + <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="3" abbrev="LSC" category="STYLE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> + <Method classname="BAS_Sample" name="test2InnerScopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false"> + <SourceLine classname="BAS_Sample" start="38" end="47" startBytecode="0" endBytecode="44" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> + </Method> + <SourceLine classname="BAS_Sample" start="43" end="43" startBytecode="32" endBytecode="32" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="PMB_POSSIBLE_MEMORY_BLOAT" priority="2" abbrev="PMB" category="CORRECTNESS"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" sourcefile="DeclaredRuntimeException.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeclaredRuntimeException.java"/> + <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="3" abbrev="LSC" category="STYLE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" start="96" end="96" startBytecode="99" endBytecode="99" sourcefile="DeclaredRuntimeException.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeclaredRuntimeException.java"/> - <Field classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" name="runtimeExceptions" signature="Ljava/util/Set;" isStatic="true"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" sourcefile="DeclaredRuntimeException.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeclaredRuntimeException.java"/> - </Field> + <Method classname="BAS_Sample" name="testFP2Scopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false"> + <SourceLine classname="BAS_Sample" start="27" end="33" startBytecode="0" endBytecode="40" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> + </Method> + <SourceLine classname="BAS_Sample" start="28" end="28" startBytecode="11" endBytecode="11" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="PMB_POSSIBLE_MEMORY_BLOAT" priority="2" abbrev="PMB" category="CORRECTNESS"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" sourcefile="DeclaredRuntimeException.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeclaredRuntimeException.java"/> + <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="3" abbrev="LSC" category="STYLE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" start="104" end="104" startBytecode="155" endBytecode="155" sourcefile="DeclaredRuntimeException.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeclaredRuntimeException.java"/> - <Field classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" name="notFoundExceptions" signature="Ljava/util/Set;" isStatic="true"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeclaredRuntimeException" sourcefile="DeclaredRuntimeException.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeclaredRuntimeException.java"/> - </Field> + <Method classname="BAS_Sample" name="testFP2Scopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false"> + <SourceLine classname="BAS_Sample" start="27" end="33" startBytecode="0" endBytecode="40" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> + </Method> + <SourceLine classname="BAS_Sample" start="30" end="30" startBytecode="28" endBytecode="28" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="CC_CYCLOMATIC_COMPLEXITY" priority="2" abbrev="CC" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="3" abbrev="LSC" category="STYLE"> + <Class classname="BAS_Sample"> + <SourceLine classname="BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" start="142" end="280" startBytecode="0" endBytecode="1077" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <Method classname="BAS_Sample" name="testIfScope" signature="(Ljava/lang/String;)V" isStatic="false"> + <SourceLine classname="BAS_Sample" start="7" end="12" startBytecode="0" endBytecode="22" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" start="142" end="142" startBytecode="0" endBytecode="0" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <SourceLine classname="BAS_Sample" start="8" end="8" startBytecode="11" endBytecode="11" sourcefile="BAS_Sample.java" sourcepath="BAS_Sample.java"/> </BugInstance> - <BugInstance type="LII_LIST_INDEXED_ITERATING" priority="2" abbrev="LII" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" abbrev="DLS" category="STYLE"> + <Class classname="BSB_Sample"> + <SourceLine classname="BSB_Sample" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" name="removeFromCollectionGroup" signature="(Ledu/umd/cs/findbugs/OpcodeStack$Item;)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" start="338" end="349" startBytecode="0" endBytecode="74" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <Method classname="BSB_Sample" name="accessSyncMap" signature="()V" isStatic="false"> + <SourceLine classname="BSB_Sample" start="70" end="77" startBytecode="0" endBytecode="33" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" start="341" end="341" startBytecode="23" endBytecode="71" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <LocalVariable name="?" register="5" pc="55" role="LOCAL_VARIABLE_UNKNOWN"/> + <SourceLine classname="BSB_Sample" start="74" end="74" startBytecode="55" endBytecode="55" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </BugInstance> - <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" abbrev="PRMC" category="PERFORMANCE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" abbrev="LSYC" category="CORRECTNESS"> + <Class classname="BSB_Sample"> + <SourceLine classname="BSB_Sample" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" start="142" end="280" startBytecode="0" endBytecode="1077" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <Method classname="BSB_Sample" name="testAliasedLocalBeginBloated" signature="(I)V" isStatic="false"> + <SourceLine classname="BSB_Sample" start="39" end="47" startBytecode="0" endBytecode="60" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" start="186" end="186" startBytecode="318" endBytecode="318" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> - <String value="intValue()I"/> + <SourceLine classname="BSB_Sample" start="42" end="42" startBytecode="19" endBytecode="19" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" abbrev="LSYC" category="CORRECTNESS"> + <Class classname="BSB_Sample"> + <SourceLine classname="BSB_Sample" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" name="collectionGroups" signature="Ljava/util/List;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> - </Field> + <Method classname="BSB_Sample" name="testBranchCutDown" signature="(I)V" isStatic="false"> + <SourceLine classname="BSB_Sample" start="51" end="62" startBytecode="0" endBytecode="65" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> + </Method> + <SourceLine classname="BSB_Sample" start="54" end="54" startBytecode="16" endBytecode="16" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" abbrev="LSYC" category="CORRECTNESS"> + <Class classname="BSB_Sample"> + <SourceLine classname="BSB_Sample" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" name="groupToIterator" signature="Ljava/util/Map;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> - </Field> + <Method classname="BSB_Sample" name="testFieldBeginBloated" signature="(II)V" isStatic="false"> + <SourceLine classname="BSB_Sample" start="16" end="23" startBytecode="0" endBytecode="58" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> + </Method> + <SourceLine classname="BSB_Sample" start="18" end="18" startBytecode="14" endBytecode="14" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" abbrev="LSYC" category="CORRECTNESS"> + <Class classname="BSB_Sample"> + <SourceLine classname="BSB_Sample" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" name="loops" signature="Ljava/util/Map;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> - </Field> + <Method classname="BSB_Sample" name="testLocalBeginBloated" signature="(I)V" isStatic="false"> + <SourceLine classname="BSB_Sample" start="27" end="35" startBytecode="0" endBytecode="57" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> + </Method> + <SourceLine classname="BSB_Sample" start="30" end="30" startBytecode="16" endBytecode="16" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <BugInstance type="NMCS_NEEDLESS_MEMBER_COLLECTION_SYNCHRONIZATION" priority="2" abbrev="NMCS" category="PERFORMANCE"> + <Class classname="BSB_Sample"> + <SourceLine classname="BSB_Sample" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" name="stack" signature="Ledu/umd/cs/findbugs/OpcodeStack;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" sourcefile="DeletingWhileIterating.java" sourcepath="com/mebigfatguy/fbcontrib/detect/DeletingWhileIterating.java"/> + <Field classname="BSB_Sample" name="synchMap" signature="Ljava/util/Map;" isStatic="false"> + <SourceLine classname="BSB_Sample" start="12" end="12" startBytecode="37" endBytecode="37" sourcefile="BSB_Sample.java" sourcepath="BSB_Sample.java"/> </Field> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" sourcefile="FieldCouldBeLocal.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FieldCouldBeLocal.java"/> + <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" abbrev="CAO" category="CORRECTNESS"> + <Class classname="CAO_Sample"> + <SourceLine classname="CAO_Sample" sourcefile="CAO_Sample.java" sourcepath="CAO_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" name="cfg" signature="Ledu/umd/cs/findbugs/ba/CFG;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" sourcefile="FieldCouldBeLocal.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FieldCouldBeLocal.java"/> - </Field> + <String value="testcd(D)V"/> + <String value="testcd(Ljava/lang/Character;)V"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" sourcefile="FieldCouldBeLocal.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FieldCouldBeLocal.java"/> + <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" abbrev="CAO" category="CORRECTNESS"> + <Class classname="CAO_Sample"> + <SourceLine classname="CAO_Sample" sourcefile="CAO_Sample.java" sourcepath="CAO_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" name="clsContext" signature="Ledu/umd/cs/findbugs/ba/ClassContext;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" sourcefile="FieldCouldBeLocal.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FieldCouldBeLocal.java"/> - </Field> + <String value="testcd(Ljava/lang/Character;)V"/> + <String value="testcd(D)V"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" sourcefile="FieldCouldBeLocal.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FieldCouldBeLocal.java"/> + <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" abbrev="CAO" category="CORRECTNESS"> + <Class classname="CAO_Sample"> + <SourceLine classname="CAO_Sample" sourcefile="CAO_Sample.java" sourcepath="CAO_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" name="localizableFields" signature="Ljava/util/Map;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" sourcefile="FieldCouldBeLocal.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FieldCouldBeLocal.java"/> - </Field> + <String value="testcf(F)V"/> + <String value="testcf(Ljava/lang/Character;)V"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" sourcefile="FieldCouldBeLocal.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FieldCouldBeLocal.java"/> + <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" abbrev="CAO" category="CORRECTNESS"> + <Class classname="CAO_Sample"> + <SourceLine classname="CAO_Sample" sourcefile="CAO_Sample.java" sourcepath="CAO_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" name="visitedBlocks" signature="Ljava/util/BitSet;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FieldCouldBeLocal" sourcefile="FieldCouldBeLocal.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FieldCouldBeLocal.java"/> - </Field> + <String value="testcf(Ljava/lang/Character;)V"/> + <String value="testcf(F)V"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.FinalParameters"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FinalParameters" sourcefile="FinalParameters.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FinalParameters.java"/> + <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" abbrev="CAO" category="CORRECTNESS"> + <Class classname="CAO_Sample"> + <SourceLine classname="CAO_Sample" sourcefile="CAO_Sample.java" sourcepath="CAO_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.FinalParameters" name="changedParms" signature="Ljava/util/Set;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.FinalParameters" sourcefile="FinalParameters.java" sourcepath="com/mebigfatguy/fbcontrib/detect/FinalParameters.java"/> - </Field> + <String value="testci(I)V"/> + <String value="testci(Ljava/lang/Character;)V"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.InefficientStringBuffering"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.InefficientStringBuffering" sourcefile="InefficientStringBuffering.java" sourcepath="com/mebigfatguy/fbcontrib/detect/InefficientStringBuffering.java"/> + <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" abbrev="CAO" category="CORRECTNESS"> + <Class classname="CAO_Sample"> + <SourceLine classname="CAO_Sample" sourcefile="CAO_Sample.java" sourcepath="CAO_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.InefficientStringBuffering" name="stack" signature="Ledu/umd/cs/findbugs/OpcodeStack;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.InefficientStringBuffering" sourcefile="InefficientStringBuffering.java" sourcepath="com/mebigfatguy/fbcontrib/detect/InefficientStringBuffering.java"/> - </Field> + <String value="testci(Ljava/lang/Character;)V"/> + <String value="testci(I)V"/> </BugInstance> - <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" abbrev="UwF" category="STYLE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.InheritanceTypeChecking"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.InheritanceTypeChecking" sourcefile="InheritanceTypeChecking.java" sourcepath="com/mebigfatguy/fbcontrib/detect/InheritanceTypeChecking.java"/> + <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" abbrev="CAO" category="CORRECTNESS"> + <Class classname="CAO_Sample"> + <SourceLine classname="CAO_Sample" sourcefile="CAO_Sample.java" sourcepath="CAO_Sample.java"/> </Class> - <Field classname="com.mebigfatguy.fbcontrib.detect.InheritanceTypeChecking" name="ifStatements" signature="Ljava/util/Set;" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.InheritanceTypeChecking" sourcefile="InheritanceTypeChecking.java" sourcepath="com/mebigfatguy/fbcontrib/detect/InheritanceTypeChecking.java"/> - </Field> + <String value="testcj(J)V"/> + <String value="testcj(Ljava/lang/Character;)V"/> </BugInstance> - <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="4" abbrev="PRMC" category="PERFORMANCE"> - <Class classname="com.mebigfatguy.fbcontrib.detect.JDBCVendorReliance"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.JDBCVendorReliance" sourcefile="JDBCVendorReliance.java" sourcepath="com/mebigfatguy/fbcontrib/detect/JDBCVendorReliance.java"/> + <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" abbrev="CAO" category="CORRECTNESS"> + <Class classname="CAO_Sample"> + <SourceLine classname="CAO_Sample" sourcefile="CAO_Sample.java" sourcepath="CAO_Sample.java"/> </Class> - <Method classname="com.mebigfatguy.fbcontrib.detect.JDBCVendorReliance" name="sawOpcode" signature="(I)V" isStatic="false"> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.JDBCVendorReliance" start="92" end="155" startBytecode="0" endBytecode="504" sourcefile="JDBCVendorReliance.java" sourcepath="com/mebigfatguy/fbcontrib/detect/JDBCVendorReliance.java"/> + <String value="testcj(Ljava/lang/Character;)V"/> + <String value="testcj(J)V"/> + </BugInstance> + <BugInstance type="CBX_CUSTOM_BUILT_XML" priority="3" abbrev="CBX" category="STYLE"> + <Class classname="CBX_Sample"> + <SourceLine classname="CBX_Sample" sourcefile="CBX_Sample.java" sourcepath="CBX_Sample.java"/> + </Class> + <Method classname="CBX_Sample" name="testBuildXML" signature="(ILjava/lang/String;)Ljava/lang/String;" isStatic="false"> + <SourceLine classname="CBX_Sample" start="6" end="10" startBytecode="0" endBytecode="64" sourcefile="CBX_Sample.java" sourcepath="CBX_Sample.java"/> </Method> - <SourceLine classname="com.mebigfatguy.fbcontrib.detect.JDBCVendorReliance" start="149" end="149" startBytecode="201" endBytecode="201" sourcefile="JDBCVendorReliance.java" sourcepath="com/mebigfatguy/fbcontrib/detect/JDBCVendorRe... [truncated message content] |