uy.fb-contrib.fb-contrib.7.2.1.source-code.samples.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fb-contrib Show documentation
Show all versions of fb-contrib Show documentation
An auxiliary findbugs.sourceforge.net plugin for java bug detectors that fall outside the narrow scope of detectors to be packaged with the product itself.
<?xml version="1.0" encoding="UTF-8"?> <BugCollection version="3.0.1" sequence="0" timestamp="1513438250950" analysisTimestamp="1513438251053" release=""> <Project projectName="Samples"> <Jar>/home/dave/dev/fb-contrib/target/classes/samples</Jar> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/asm-debug-all-5.0.2.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/javax.servlet.jsp-api-2.3.1.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/junit-4.12.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/jsr305-3.0.2.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/testng-6.9.10.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/javax.servlet-api-3.1.0.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/log4j-1.2.17.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/log4j-api-2.9.1.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/commons-lang3-3.4.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/commons-io-2.4.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/backport-util-concurrent-3.1.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/threetenbp-1.3.2.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/slf4j-api-1.7.21.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/guava-19.0.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/httpclient-cache-4.5.2.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/httpcore-4.4.5.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/httpclient-4.5.2.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/commons-codec-1.10.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/spring-beans-4.3.3.RELEASE.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/spring-context-4.3.3.RELEASE.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/spring-tx-4.3.3.RELEASE.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/javax.persistence-2.1.1.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/mockito-core-2.8.47.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/hamcrest-core-1.3.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/jena-shaded-guava-3.1.0.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/javax.ws.rs-api-2.0.1.jar</AuxClasspathEntry> <AuxClasspathEntry>/home/dave/dev/fb-contrib/lib/jersey-media-multipart-2.25.1.jar</AuxClasspathEntry> </Project> <BugInstance type="ABC_ARRAY_BASED_COLLECTIONS" priority="2" rank="7" abbrev="ABC" category="CORRECTNESS" instanceHash="c119924fdc9852642c13941116e4133a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses array as basis of collection</ShortMessage> <LongMessage>Method ex.ABC_Sample.testLists(List, String[]) uses array as basis of collection</LongMessage> <Class classname="ex.ABC_Sample" primary="true"> <SourceLine classname="ex.ABC_Sample" start="10" end="24" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[lines 10-24]</Message> </SourceLine> <Message>In class ex.ABC_Sample</Message> </Class> <Method classname="ex.ABC_Sample" name="testLists" signature="(Ljava/util/List;[Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.ABC_Sample" start="24" end="24" startBytecode="0" endBytecode="87" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"/> <Message>In method ex.ABC_Sample.testLists(List, String[])</Message> </Method> <SourceLine classname="ex.ABC_Sample" primary="true" start="24" end="24" startBytecode="2" endBytecode="2" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="ABC_ARRAY_BASED_COLLECTIONS" priority="2" rank="7" abbrev="ABC" category="CORRECTNESS" instanceHash="5022f7e5f22e85b8c09eb0698effc480" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses array as basis of collection</ShortMessage> <LongMessage>Method ex.ABC_Sample.testMaps(String[], String) uses array as basis of collection</LongMessage> <Class classname="ex.ABC_Sample" primary="true"> <SourceLine classname="ex.ABC_Sample" start="10" end="24" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[lines 10-24]</Message> </SourceLine> <Message>In class ex.ABC_Sample</Message> </Class> <Method classname="ex.ABC_Sample" name="testMaps" signature="([Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.ABC_Sample" start="12" end="14" startBytecode="0" endBytecode="116" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"/> <Message>In method ex.ABC_Sample.testMaps(String[], String)</Message> </Method> <SourceLine classname="ex.ABC_Sample" primary="true" start="13" end="13" startBytecode="11" endBytecode="11" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="ABC_ARRAY_BASED_COLLECTIONS" priority="2" rank="7" abbrev="ABC" category="CORRECTNESS" instanceHash="4072d21498fbe1619af1b99012438a3e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses array as basis of collection</ShortMessage> <LongMessage>Method ex.ABC_Sample.testSets(String[]) uses array as basis of collection</LongMessage> <Class classname="ex.ABC_Sample" primary="true"> <SourceLine classname="ex.ABC_Sample" start="10" end="24" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[lines 10-24]</Message> </SourceLine> <Message>In class ex.ABC_Sample</Message> </Class> <Method classname="ex.ABC_Sample" name="testSets" signature="([Ljava/lang/String;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.ABC_Sample" start="18" end="20" startBytecode="0" endBytecode="105" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"/> <Message>In method ex.ABC_Sample.testSets(String[])</Message> </Method> <SourceLine classname="ex.ABC_Sample" primary="true" start="19" end="19" startBytecode="10" endBytecode="10" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="b812994e88471986bcb49febe893981" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.ABC_Sample.testLists(List, String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.ABC_Sample" primary="true"> <SourceLine classname="ex.ABC_Sample" start="10" end="24" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[lines 10-24]</Message> </SourceLine> <Message>In class ex.ABC_Sample</Message> </Class> <Method classname="ex.ABC_Sample" name="testLists" signature="(Ljava/util/List;[Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.ABC_Sample" start="24" end="24" startBytecode="0" endBytecode="87" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"/> <Message>In method ex.ABC_Sample.testLists(List, String[])</Message> </Method> <SourceLine classname="ex.ABC_Sample" start="24" end="24" startBytecode="0" endBytecode="87" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java" synthetic="true"> <Message>At ABC_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="429323157d988fb6e44ff020f056b86a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.ABC_Sample.testSets(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.ABC_Sample" primary="true"> <SourceLine classname="ex.ABC_Sample" start="10" end="24" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[lines 10-24]</Message> </SourceLine> <Message>In class ex.ABC_Sample</Message> </Class> <Method classname="ex.ABC_Sample" name="testSets" signature="([Ljava/lang/String;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.ABC_Sample" start="18" end="20" startBytecode="0" endBytecode="105" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"/> <Message>In method ex.ABC_Sample.testSets(String[])</Message> </Method> <SourceLine classname="ex.ABC_Sample" start="18" end="20" startBytecode="0" endBytecode="105" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java" synthetic="true"> <Message>At ABC_Sample.java:[lines 18-20]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="77e4834d0124712408e4e088c71d9594" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.ABC_Sample$UseComparator$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.ABC_Sample$UseComparator$1" primary="true"> <SourceLine classname="ex.ABC_Sample$UseComparator$1" start="1" end="34" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java"> <Message>At ABC_Sample.java:[lines 1-34]</Message> </SourceLine> <Message>In class ex.ABC_Sample$UseComparator$1</Message> </Class> <SourceLine classname="ex.ABC_Sample$UseComparator$1" start="1" end="34" sourcefile="ABC_Sample.java" sourcepath="ex/ABC_Sample.java" synthetic="true"> <Message>At ABC_Sample.java:[lines 1-34]</Message> </SourceLine> </BugInstance> <BugInstance type="ACEM_ABSTRACT_CLASS_EMPTY_METHODS" priority="2" rank="19" abbrev="ACEM" category="STYLE" instanceHash="aad57247260e0468a77c14712f5304f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Empty method could be declared abstract</ShortMessage> <LongMessage>Empty method ex.ACEM_Sample.test() could be declared abstract</LongMessage> <Class classname="ex.ACEM_Sample" primary="true"> <SourceLine classname="ex.ACEM_Sample" start="3" end="13" sourcefile="ACEM_Sample.java" sourcepath="ex/ACEM_Sample.java"> <Message>At ACEM_Sample.java:[lines 3-13]</Message> </SourceLine> <Message>In class ex.ACEM_Sample</Message> </Class> <Method classname="ex.ACEM_Sample" name="test" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ACEM_Sample" start="5" end="5" startBytecode="0" endBytecode="42" sourcefile="ACEM_Sample.java" sourcepath="ex/ACEM_Sample.java"/> <Message>In method ex.ACEM_Sample.test()</Message> </Method> <SourceLine classname="ex.ACEM_Sample" primary="true" start="5" end="5" startBytecode="0" endBytecode="0" sourcefile="ACEM_Sample.java" sourcepath="ex/ACEM_Sample.java"> <Message>At ACEM_Sample.java:[line 5]</Message> </SourceLine> </BugInstance> <BugInstance type="ACEM_ABSTRACT_CLASS_EMPTY_METHODS" priority="2" rank="19" abbrev="ACEM" category="STYLE" instanceHash="e87d3eb59ec00415966480f172c1cfb6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Empty method could be declared abstract</ShortMessage> <LongMessage>Empty method ex.ACEM_Sample.test1() could be declared abstract</LongMessage> <Class classname="ex.ACEM_Sample" primary="true"> <SourceLine classname="ex.ACEM_Sample" start="3" end="13" sourcefile="ACEM_Sample.java" sourcepath="ex/ACEM_Sample.java"> <Message>At ACEM_Sample.java:[lines 3-13]</Message> </SourceLine> <Message>In class ex.ACEM_Sample</Message> </Class> <Method classname="ex.ACEM_Sample" name="test1" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.ACEM_Sample" start="8" end="8" startBytecode="0" endBytecode="51" sourcefile="ACEM_Sample.java" sourcepath="ex/ACEM_Sample.java"/> <Message>In method ex.ACEM_Sample.test1()</Message> </Method> <SourceLine classname="ex.ACEM_Sample" primary="true" start="8" end="8" startBytecode="9" endBytecode="9" sourcefile="ACEM_Sample.java" sourcepath="ex/ACEM_Sample.java"> <Message>At ACEM_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="3974c72a8ede5202c739fa557f4d32d6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.AFBR_Sample.test5() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.AFBR_Sample" primary="true"> <SourceLine classname="ex.AFBR_Sample" start="7" end="56" sourcefile="AFBR_Sample.java" sourcepath="ex/AFBR_Sample.java"> <Message>At AFBR_Sample.java:[lines 7-56]</Message> </SourceLine> <Message>In class ex.AFBR_Sample</Message> </Class> <Method classname="ex.AFBR_Sample" name="test5" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.AFBR_Sample" start="46" end="56" startBytecode="0" endBytecode="244" sourcefile="AFBR_Sample.java" sourcepath="ex/AFBR_Sample.java"/> <Message>In method ex.AFBR_Sample.test5()</Message> </Method> <SourceLine classname="ex.AFBR_Sample" primary="true" start="48" end="48" startBytecode="8" endBytecode="8" sourcefile="AFBR_Sample.java" sourcepath="ex/AFBR_Sample.java"> <Message>At AFBR_Sample.java:[line 48]</Message> </SourceLine> </BugInstance> <BugInstance type="UTWR_USE_TRY_WITH_RESOURCES" priority="2" rank="17" abbrev="UTWR" category="STYLE" instanceHash="ec7e6902ec57bf55eb9d354038d69126" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method manually handles closing an auto-closeable resource</ShortMessage> <LongMessage>Method ex.AFBR_Sample.test5() manually handles closing an auto-closeable resource</LongMessage> <Class classname="ex.AFBR_Sample" primary="true"> <SourceLine classname="ex.AFBR_Sample" start="7" end="56" sourcefile="AFBR_Sample.java" sourcepath="ex/AFBR_Sample.java"> <Message>At AFBR_Sample.java:[lines 7-56]</Message> </SourceLine> <Message>In class ex.AFBR_Sample</Message> </Class> <Method classname="ex.AFBR_Sample" name="test5" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.AFBR_Sample" start="46" end="56" startBytecode="0" endBytecode="244" sourcefile="AFBR_Sample.java" sourcepath="ex/AFBR_Sample.java"/> <Message>In method ex.AFBR_Sample.test5()</Message> </Method> <SourceLine classname="ex.AFBR_Sample" primary="true" start="54" end="54" startBytecode="48" endBytecode="48" sourcefile="AFBR_Sample.java" sourcepath="ex/AFBR_Sample.java"> <Message>At AFBR_Sample.java:[line 54]</Message> </SourceLine> </BugInstance> <BugInstance type="AIOB_ARRAY_INDEX_OUT_OF_BOUNDS" priority="1" rank="5" abbrev="AIOB" category="CORRECTNESS" instanceHash="27db0e3df2e5d04faa228833bdf78524" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to access an array element outside the array's size</ShortMessage> <LongMessage>Method ex.AIOB_Sample.testOutOfBounds() attempts to access an array element outside the array's size</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testOutOfBounds" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="10" end="14" startBytecode="0" endBytecode="79" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testOutOfBounds()</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="12" end="12" startBytecode="7" endBytecode="7" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="AIOB_ARRAY_STORE_TO_NULL_REFERENCE" priority="1" rank="5" abbrev="AIOB" category="CORRECTNESS" instanceHash="32fd3a9096a628f23868ee9eff245995" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to store an array element to an array that does not appear to be allocated</ShortMessage> <LongMessage>Method ex.AIOB_Sample.testUnallocated() attempts to store an array element to an array that does not appear to be allocated</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testUnallocated" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="25" end="29" startBytecode="0" endBytecode="77" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testUnallocated()</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="27" end="27" startBytecode="5" endBytecode="5" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="6fac8373ac4fb823f4ab0435e7682742" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.AIOB_Sample.fpPlusPlusNotRecognized(List)</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="fpPlusPlusNotRecognized" signature="(Ljava/util/List;)[I" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="39" end="48" startBytecode="0" endBytecode="22" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.fpPlusPlusNotRecognized(List)</Message> </Method> <LocalVariable name="s" register="3" pc="24" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.AIOB_Sample" primary="true" start="41" end="41" startBytecode="23" endBytecode="23" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 41]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="9ed31ce7be50cf6c395344650ac18826" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.AIOB_Sample does not implement a toString method</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java" synthetic="true"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_ALWAYS_NULL" priority="1" rank="5" abbrev="NP" category="CORRECTNESS" instanceHash="88b73cafc919a491edd8e40bd2402b76" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Null pointer dereference</ShortMessage> <LongMessage>Null pointer dereference of b in ex.AIOB_Sample.testUnallocated()</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testUnallocated" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="25" end="29" startBytecode="0" endBytecode="77" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testUnallocated()</Message> </Method> <LocalVariable name="b" register="1" pc="4" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from b</Message> </LocalVariable> <SourceLine classname="ex.AIOB_Sample" primary="true" start="27" end="27" startBytecode="5" endBytecode="5" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java" role="SOURCE_LINE_DEREF"> <Message>Dereferenced at AIOB_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_LOAD_OF_KNOWN_NULL_VALUE" priority="3" rank="19" abbrev="NP" category="STYLE" instanceHash="971c58d0e75c7353c36d3d94626f4d78" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Load of known null value</ShortMessage> <LongMessage>Load of known null value in ex.AIOB_Sample.testUnallocated()</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testUnallocated" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="25" end="29" startBytecode="0" endBytecode="11" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testUnallocated()</Message> </Method> <LocalVariable name="b" register="1" pc="2" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from b</Message> </LocalVariable> <SourceLine classname="ex.AIOB_Sample" primary="true" start="27" end="27" startBytecode="2" endBytecode="2" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="RANGE_ARRAY_INDEX" priority="2" rank="7" abbrev="RANGE" category="CORRECTNESS" instanceHash="bd3213e80365af3c2c41efc1e44ff3b5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Array index is out of bounds</ShortMessage> <LongMessage>Array index is out of bounds: 4</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testOutOfBounds" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="10" end="14" startBytecode="0" endBytecode="79" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testOutOfBounds()</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="12" end="12" startBytecode="7" endBytecode="7" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 12]</Message> </SourceLine> <Int value="4" role="INT_VALUE"> <Message>Value 4</Message> </Int> <Int value="3" role="INT_MAX_VALUE"> <Message>Maximum valid value 3</Message> </Int> <SourceLine classname="ex.AIOB_Sample" start="12" end="12" startBytecode="7" endBytecode="7" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="RANGE_ARRAY_LENGTH" priority="2" rank="7" abbrev="RANGE" category="CORRECTNESS" instanceHash="4f64baebaa0135f8ba31d38a98703020" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Array length is out of bounds</ShortMessage> <LongMessage>Array length is out of bounds: 4</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testSystemArrayCopy" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="32" end="36" startBytecode="0" endBytecode="114" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testSystemArrayCopy()</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="35" end="35" startBytecode="37" endBytecode="37" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 35]</Message> </SourceLine> <Int value="4" role="INT_VALUE"> <Message>Value 4</Message> </Int> <Int value="3" role="INT_MAX_VALUE"> <Message>Maximum valid value 3</Message> </Int> <Method classname="java.lang.System" name="arraycopy" signature="(Ljava/lang/Object;ILjava/lang/Object;II)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.System" sourcefile="System.java" sourcepath="java/lang/System.java"/> <Message>Called method System.arraycopy(Object, int, Object, int, int)</Message> </Method> <SourceLine classname="ex.AIOB_Sample" start="35" end="35" startBytecode="37" endBytecode="37" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="RANGE_ARRAY_OFFSET" priority="2" rank="7" abbrev="RANGE" category="CORRECTNESS" instanceHash="e0c386e88b1f509d18d82bacbe26361f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Array offset is out of bounds</ShortMessage> <LongMessage>Array offset is out of bounds: 0</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="fpCopyFieldOfUnknownSize" signature="()[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="78" end="81" startBytecode="0" endBytecode="85" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.fpCopyFieldOfUnknownSize()</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="79" end="79" startBytecode="21" endBytecode="21" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 79]</Message> </SourceLine> <Int value="0" role="INT_VALUE"> <Message>Value 0</Message> </Int> <Method classname="java.lang.System" name="arraycopy" signature="(Ljava/lang/Object;ILjava/lang/Object;II)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.System" sourcefile="System.java" sourcepath="java/lang/System.java"/> <Message>Called method System.arraycopy(Object, int, Object, int, int)</Message> </Method> <SourceLine classname="ex.AIOB_Sample" start="79" end="79" startBytecode="21" endBytecode="21" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 79]</Message> </SourceLine> </BugInstance> <BugInstance type="SACM_STATIC_ARRAY_CREATED_IN_METHOD" priority="2" rank="18" abbrev="SACM" category="PERFORMANCE" instanceHash="3170a05a89b18a7fcb1a6bd24ae470b3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates array using constants</ShortMessage> <LongMessage>Method ex.AIOB_Sample.testSystemArrayCopy() creates array using constants</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testSystemArrayCopy" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="32" end="36" startBytecode="0" endBytecode="114" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testSystemArrayCopy()</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="32" end="32" startBytecode="24" endBytecode="24" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="e06552569af9098f379c4bddcf386256" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable a of method ex.AIOB_Sample.fpPlusEquals(List)</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="fpPlusEquals" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="66" end="75" startBytecode="0" endBytecode="200" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.fpPlusEquals(List)</Message> </Method> <String value="a"> <Message>Value a</Message> </String> <Type descriptor="[I"> <Message>Type int[]</Message> </Type> <SourceLine classname="ex.AIOB_Sample" primary="true" start="72" end="72" startBytecode="42" endBytecode="42" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 72]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="262c6090072857c8c675eef4e0d24f8d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable a of method ex.AIOB_Sample.testOutOfBounds()</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testOutOfBounds" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="10" end="14" startBytecode="0" endBytecode="79" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testOutOfBounds()</Message> </Method> <String value="a"> <Message>Value a</Message> </String> <Type descriptor="[I"> <Message>Type int[]</Message> </Type> <SourceLine classname="ex.AIOB_Sample" primary="true" start="10" end="10" startBytecode="1" endBytecode="1" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="963cb0c80070ac0508fded68f4f6374" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.AIOB_Sample.fpPlusEquals(List) seems to be useless</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="fpPlusEquals" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="66" end="75" startBytecode="0" endBytecode="200" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.fpPlusEquals(List)</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="75" end="75" startBytecode="49" endBytecode="49" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 75]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="be7bc8c14e200124d620088b6a026350" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.AIOB_Sample.testSystemArrayCopy() seems to be useless</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testSystemArrayCopy" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="32" end="36" startBytecode="0" endBytecode="114" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testSystemArrayCopy()</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="36" end="36" startBytecode="40" endBytecode="40" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="891614c16ab7e00b465a5efd6498f0e2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.AIOB_Sample.testOutOfBoundsGuard() seems to be useless</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Method classname="ex.AIOB_Sample" name="testOutOfBoundsGuard" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="17" end="22" startBytecode="0" endBytecode="92" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"/> <Message>In method ex.AIOB_Sample.testOutOfBoundsGuard()</Message> </Method> <SourceLine classname="ex.AIOB_Sample" primary="true" start="22" end="22" startBytecode="14" endBytecode="14" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="749ba2cae52c2dcc163333d91c04af08" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.AIOB_Sample.fb</LongMessage> <Class classname="ex.AIOB_Sample" primary="true"> <SourceLine classname="ex.AIOB_Sample" start="4" end="81" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[lines 4-81]</Message> </SourceLine> <Message>In class ex.AIOB_Sample</Message> </Class> <Field classname="ex.AIOB_Sample" name="fb" signature="[I" isStatic="false" primary="true"> <SourceLine classname="ex.AIOB_Sample" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>In AIOB_Sample.java</Message> </SourceLine> <Message>Field ex.AIOB_Sample.fb</Message> </Field> <SourceLine classname="ex.AIOB_Sample" primary="true" start="28" end="28" startBytecode="7" endBytecode="7" sourcefile="AIOB_Sample.java" sourcepath="ex/AIOB_Sample.java"> <Message>At AIOB_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="8997fff7d130e44fa3336877e73ec213" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.AI_Sample.fpAnon() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.AI_Sample" primary="true"> <SourceLine classname="ex.AI_Sample" start="7" end="47" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"> <Message>At AI_Sample.java:[lines 7-47]</Message> </SourceLine> <Message>In class ex.AI_Sample</Message> </Class> <Method classname="ex.AI_Sample" name="fpAnon" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.AI_Sample" start="42" end="42" startBytecode="0" endBytecode="61" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"/> <Message>In method ex.AI_Sample.fpAnon()</Message> </Method> <SourceLine classname="ex.AI_Sample" start="42" end="42" startBytecode="0" endBytecode="61" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java" synthetic="true"> <Message>At AI_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="5137a654788eabfd87288e02e5d97d22" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.AI_Sample.getFoo2() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.AI_Sample" primary="true"> <SourceLine classname="ex.AI_Sample" start="7" end="47" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"> <Message>At AI_Sample.java:[lines 7-47]</Message> </SourceLine> <Message>In class ex.AI_Sample</Message> </Class> <Method classname="ex.AI_Sample" name="getFoo2" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.AI_Sample" start="15" end="15" startBytecode="0" endBytecode="46" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"/> <Message>In method ex.AI_Sample.getFoo2()</Message> </Method> <SourceLine classname="ex.AI_Sample" start="15" end="15" startBytecode="0" endBytecode="46" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java" synthetic="true"> <Message>At AI_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="a2329dbcb997792e9c8452d56dd06c8f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.AI_Sample.nullBecauseOfConditional() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.AI_Sample" primary="true"> <SourceLine classname="ex.AI_Sample" start="7" end="47" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"> <Message>At AI_Sample.java:[lines 7-47]</Message> </SourceLine> <Message>In class ex.AI_Sample</Message> </Class> <Method classname="ex.AI_Sample" name="nullBecauseOfConditional" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.AI_Sample" start="23" end="28" startBytecode="0" endBytecode="91" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"/> <Message>In method ex.AI_Sample.nullBecauseOfConditional()</Message> </Method> <SourceLine classname="ex.AI_Sample" start="23" end="28" startBytecode="0" endBytecode="91" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java" synthetic="true"> <Message>At AI_Sample.java:[lines 23-28]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="7be70d2b36f5fc44c80e4cfd33db7d33" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of f, which is known to be non-null in ex.AI_Sample.nullBecauseOfConditional()</LongMessage> <Class classname="ex.AI_Sample" primary="true"> <SourceLine classname="ex.AI_Sample" start="7" end="47" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"> <Message>At AI_Sample.java:[lines 7-47]</Message> </SourceLine> <Message>In class ex.AI_Sample</Message> </Class> <Method classname="ex.AI_Sample" name="nullBecauseOfConditional" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.AI_Sample" start="23" end="28" startBytecode="0" endBytecode="91" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"/> <Message>In method ex.AI_Sample.nullBecauseOfConditional()</Message> </Method> <LocalVariable name="f" register="1" pc="5" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from f</Message> </LocalVariable> <Method classname="ex.AI_Sample" name="getFoo3" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="ex.AI_Sample" start="19" end="19" startBytecode="0" endBytecode="44" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"/> <Message>Return value of ex.AI_Sample.getFoo3() of type String</Message> </Method> <SourceLine classname="ex.AI_Sample" primary="true" start="24" end="24" startBytecode="6" endBytecode="6" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at AI_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="ff70b4f8148a02742ee4b8cde54a4050" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.AI_Sample$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.AI_Sample$1" primary="true"> <SourceLine classname="ex.AI_Sample$1" start="1" end="45" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java"> <Message>At AI_Sample.java:[lines 1-45]</Message> </SourceLine> <Message>In class ex.AI_Sample$1</Message> </Class> <SourceLine classname="ex.AI_Sample$1" start="1" end="45" sourcefile="AI_Sample.java" sourcepath="ex/AI_Sample.java" synthetic="true"> <Message>At AI_Sample.java:[lines 1-45]</Message> </SourceLine> </BugInstance> <BugInstance type="AOM_ABSTRACT_OVERRIDDEN_METHOD" priority="2" rank="7" abbrev="AOM" category="CORRECTNESS" instanceHash="6741663e6374c0c0b6968eeb59450e3b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Abstract method overrides a concrete implementation</ShortMessage> <LongMessage>Abstract method ex.AOM_Sample.test1() overrides a concrete implementation</LongMessage> <Class classname="ex.AOM_Sample" primary="true"> <SourceLine classname="ex.AOM_Sample" start="13" end="13" sourcefile="AOM_Sample.java" sourcepath="ex/AOM_Sample.java"> <Message>At AOM_Sample.java:[line 13]</Message> </SourceLine> <Message>In class ex.AOM_Sample</Message> </Class> <Method classname="ex.AOM_Sample" name="test1" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.AOM_Sample" sourcefile="AOM_Sample.java" sourcepath="ex/AOM_Sample.java"/> <Message>In method ex.AOM_Sample.test1()</Message> </Method> <SourceLine classname="ex.AOM_Sample" sourcefile="AOM_Sample.java" sourcepath="ex/AOM_Sample.java" synthetic="true"> <Message>In AOM_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="AWCBR_ARRAY_WRAPPED_CALL_BY_REFERENCE" priority="2" rank="17" abbrev="AWCBR" category="STYLE" instanceHash="deecaec2ff6731aa59b0767ef57a272f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses 1 element array to simulate call by reference</ShortMessage> <LongMessage>Method ex.AWCBR_Sample.testinitedalloc(int) uses 1 element array to simulate call by reference</LongMessage> <Class classname="ex.AWCBR_Sample" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="6" end="41" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[lines 6-41]</Message> </SourceLine> <Message>In class ex.AWCBR_Sample</Message> </Class> <Method classname="ex.AWCBR_Sample" name="testinitedalloc" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="20" end="23" startBytecode="0" endBytecode="92" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"/> <Message>In method ex.AWCBR_Sample.testinitedalloc(int)</Message> </Method> <SourceLine classname="ex.AWCBR_Sample" primary="true" start="22" end="22" startBytecode="16" endBytecode="16" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="AWCBR_ARRAY_WRAPPED_CALL_BY_REFERENCE" priority="2" rank="17" abbrev="AWCBR" category="STYLE" instanceHash="9f1330e66bc6f1e61ff59883e3703601" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses 1 element array to simulate call by reference</ShortMessage> <LongMessage>Method ex.AWCBR_Sample.testuninitedalloc(int) uses 1 element array to simulate call by reference</LongMessage> <Class classname="ex.AWCBR_Sample" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="6" end="41" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[lines 6-41]</Message> </SourceLine> <Message>In class ex.AWCBR_Sample</Message> </Class> <Method classname="ex.AWCBR_Sample" name="testuninitedalloc" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="12" end="16" startBytecode="0" endBytecode="96" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"/> <Message>In method ex.AWCBR_Sample.testuninitedalloc(int)</Message> </Method> <SourceLine classname="ex.AWCBR_Sample" primary="true" start="15" end="15" startBytecode="16" endBytecode="16" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="70408dced7c8f5be58b911e71b125c6a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.AWCBR_Sample.m(int[]) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.AWCBR_Sample" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="6" end="41" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[lines 6-41]</Message> </SourceLine> <Message>In class ex.AWCBR_Sample</Message> </Class> <Method classname="ex.AWCBR_Sample" name="m" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="8" end="9" startBytecode="0" endBytecode="63" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"/> <Message>In method ex.AWCBR_Sample.m(int[])</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.AWCBR_Sample" start="8" end="9" startBytecode="0" endBytecode="63" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java" synthetic="true"> <Message>At AWCBR_Sample.java:[lines 8-9]</Message> </SourceLine> </BugInstance> <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" rank="17" abbrev="USBR" category="STYLE" instanceHash="72fa8bb10ec37aaedeb4d86d4f6d827e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stores return result in local before immediately returning it</ShortMessage> <LongMessage>Method ex.AWCBR_Sample.testNoCall(int) stores return result in local before immediately returning it</LongMessage> <Class classname="ex.AWCBR_Sample" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="6" end="41" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[lines 6-41]</Message> </SourceLine> <Message>In class ex.AWCBR_Sample</Message> </Class> <Method classname="ex.AWCBR_Sample" name="testNoCall" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="28" end="30" startBytecode="0" endBytecode="83" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"/> <Message>In method ex.AWCBR_Sample.testNoCall(int)</Message> </Method> <SourceLine classname="ex.AWCBR_Sample" primary="true" start="30" end="30" startBytecode="13" endBytecode="13" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" rank="17" abbrev="USBR" category="STYLE" instanceHash="161de482a44dc29ebcb49ca5f0ed711" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stores return result in local before immediately returning it</ShortMessage> <LongMessage>Method ex.AWCBR_Sample.testinitedalloc(int) stores return result in local before immediately returning it</LongMessage> <Class classname="ex.AWCBR_Sample" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="6" end="41" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[lines 6-41]</Message> </SourceLine> <Message>In class ex.AWCBR_Sample</Message> </Class> <Method classname="ex.AWCBR_Sample" name="testinitedalloc" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="20" end="23" startBytecode="0" endBytecode="92" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"/> <Message>In method ex.AWCBR_Sample.testinitedalloc(int)</Message> </Method> <SourceLine classname="ex.AWCBR_Sample" primary="true" start="23" end="23" startBytecode="18" endBytecode="18" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" rank="17" abbrev="USBR" category="STYLE" instanceHash="9bee43321f54c1112347001977c4a8c7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stores return result in local before immediately returning it</ShortMessage> <LongMessage>Method ex.AWCBR_Sample.testuninitedalloc(int) stores return result in local before immediately returning it</LongMessage> <Class classname="ex.AWCBR_Sample" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="6" end="41" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[lines 6-41]</Message> </SourceLine> <Message>In class ex.AWCBR_Sample</Message> </Class> <Method classname="ex.AWCBR_Sample" name="testuninitedalloc" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="12" end="16" startBytecode="0" endBytecode="96" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"/> <Message>In method ex.AWCBR_Sample.testuninitedalloc(int)</Message> </Method> <SourceLine classname="ex.AWCBR_Sample" primary="true" start="16" end="16" startBytecode="18" endBytecode="18" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="5fc2c0ea6951d02205e5ef90f4997d0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.AWCBR_Sample.m(int[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.AWCBR_Sample" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="6" end="41" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"> <Message>At AWCBR_Sample.java:[lines 6-41]</Message> </SourceLine> <Message>In class ex.AWCBR_Sample</Message> </Class> <Method classname="ex.AWCBR_Sample" name="m" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.AWCBR_Sample" start="8" end="9" startBytecode="0" endBytecode="63" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java"/> <Message>In method ex.AWCBR_Sample.m(int[])</Message> </Method> <SourceLine classname="ex.AWCBR_Sample" start="8" end="9" startBytecode="0" endBytecode="63" sourcefile="AWCBR_Sample.java" sourcepath="ex/AWCBR_Sample.java" synthetic="true"> <Message>At AWCBR_Sample.java:[lines 8-9]</Message> </SourceLine> </BugInstance> <BugInstance type="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" priority="2" rank="9" abbrev="FCCD" category="CORRECTNESS" instanceHash="4897e60fb3065f5dbd581a772aa46136" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class has a circular dependency with other classes</ShortMessage> <LongMessage>Class ex.Annot has a circular dependency with other classes</LongMessage> <Class classname="ex.Annot" primary="true"> <SourceLine classname="ex.Annot" start="119" end="119" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 119]</Message> </SourceLine> <Message>In class ex.Annot</Message> </Class> <Class classname="ex.ChildAnnot"> <SourceLine classname="ex.ChildAnnot" start="122" end="122" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 122]</Message> </SourceLine> <Message>In class ex.ChildAnnot</Message> </Class> <SourceLine classname="ex.Annot" start="119" end="119" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[line 119]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="fa23afba710182705db6423aea37dd8a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BAS_Sample.getList() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="getList" signature="()Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="70" end="70" startBytecode="0" endBytecode="43" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.getList()</Message> </Method> <SourceLine classname="ex.BAS_Sample" start="70" end="70" startBytecode="0" endBytecode="43" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>At BAS_Sample.java:[line 70]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="92e57e61cc45518deac85e60646b751a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BAS_Sample.testFPRefNull(boolean) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFPRefNull" signature="(Z)Ljava/lang/Long;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="154" end="161" startBytecode="0" endBytecode="109" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFPRefNull(boolean)</Message> </Method> <SourceLine classname="ex.BAS_Sample" start="154" end="161" startBytecode="0" endBytecode="109" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>At BAS_Sample.java:[lines 154-161]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="1e3e5af97f920b2e8dd86b8b9786b026" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BAS_Sample.testFPSynchronized(String, String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFPSynchronized" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="198" end="207" startBytecode="0" endBytecode="223" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFPSynchronized(String, String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" start="198" end="207" startBytecode="0" endBytecode="223" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>At BAS_Sample.java:[lines 198-207]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="244bf80ed6ef603c094abf2d69311ef4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BAS_Sample.testSwitch(int) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testSwitch" signature="(I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="74" end="94" startBytecode="0" endBytecode="170" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testSwitch(int)</Message> </Method> <SourceLine classname="ex.BAS_Sample" start="74" end="94" startBytecode="0" endBytecode="170" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>At BAS_Sample.java:[lines 74-94]</Message> </SourceLine> </BugInstance> <BugInstance type="BAS_BLOATED_ASSIGNMENT_SCOPE" priority="2" rank="18" abbrev="BAS" category="PERFORMANCE" instanceHash="a97cd1e49c2ead8a042cabf27b25a849" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method assigns a variable in a larger scope than is needed</ShortMessage> <LongMessage>Method ex.BAS_Sample.test2InnerScopes(String) assigns a variable in a larger scope than is needed</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="test2InnerScopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="49" end="58" startBytecode="0" endBytecode="145" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.test2InnerScopes(String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="49" end="49" startBytecode="7" endBytecode="7" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="BAS_BLOATED_ASSIGNMENT_SCOPE" priority="2" rank="18" abbrev="BAS" category="PERFORMANCE" instanceHash="9b5bb99dcd63160c26ccc31f8986c3de" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method assigns a variable in a larger scope than is needed</ShortMessage> <LongMessage>Method ex.BAS_Sample.testIfScope(String) assigns a variable in a larger scope than is needed</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testIfScope" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="22" end="26" startBytecode="0" endBytecode="110" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testIfScope(String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="22" end="22" startBytecode="7" endBytecode="7" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="ba5c498dc9666f2f7eef06806fe1882d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.BAS_Sample.testIfScope(String)</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testIfScope" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="22" end="26" startBytecode="0" endBytecode="11" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testIfScope(String)</Message> </Method> <LocalVariable name="s" register="1" pc="22" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.BAS_Sample" primary="true" start="24" end="24" startBytecode="21" endBytecode="21" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 24]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.IS_PARAMETER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.TWO_STORES_MULTIPLE_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="424bcb783c137c6e5bcf20ffb4e7ff29" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to h1 in ex.BAS_Sample.tstFPRefChange(BAS_Sample$Holder, BAS_Sample$Holder, boolean)</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="tstFPRefChange" signature="(Lex/BAS_Sample$Holder;Lex/BAS_Sample$Holder;Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="134" end="140" startBytecode="0" endBytecode="10" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.tstFPRefChange(BAS_Sample$Holder, BAS_Sample$Holder, boolean)</Message> </Method> <LocalVariable name="h1" register="1" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named h1</Message> </LocalVariable> <SourceLine classname="ex.BAS_Sample" primary="true" start="135" end="135" startBytecode="7" endBytecode="7" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 135]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.COPY_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.IS_PARAMETER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="h1"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.TWO_STORES_MULTIPLE_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="854c37254adc84a9f9380295b94aa357" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to h1 in ex.BAS_Sample.tstFPRefChangeThruMethodChain(BAS_Sample$Holder, BAS_Sample$Holder, boolean)</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="tstFPRefChangeThruMethodChain" signature="(Lex/BAS_Sample$Holder;Lex/BAS_Sample$Holder;Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="144" end="150" startBytecode="0" endBytecode="11" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.tstFPRefChangeThruMethodChain(BAS_Sample$Holder, BAS_Sample$Holder, boolean)</Message> </Method> <LocalVariable name="h1" register="1" pc="11" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named h1</Message> </LocalVariable> <SourceLine classname="ex.BAS_Sample" primary="true" start="145" end="145" startBytecode="10" endBytecode="10" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 145]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.COPY_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.IS_PARAMETER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="h1"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.TWO_STORES_MULTIPLE_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="b833456601b18ea7737f52b64400a7dd" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to o in ex.BAS_Sample.testFPForScope(String)</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFPForScope" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="29" end="34" startBytecode="0" endBytecode="18" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFPForScope(String)</Message> </Method> <LocalVariable name="o" register="2" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named o</Message> </LocalVariable> <SourceLine classname="ex.BAS_Sample" primary="true" start="29" end="29" startBytecode="7" endBytecode="7" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 29]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="o"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="b833456601b18ea7737f52b64400a7dd" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to o in ex.BAS_Sample.testFPForScope(String)</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFPForScope" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="29" end="34" startBytecode="0" endBytecode="18" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFPForScope(String)</Message> </Method> <LocalVariable name="o" register="2" pc="18" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named o</Message> </LocalVariable> <SourceLine classname="ex.BAS_Sample" start="29" end="34" startBytecode="0" endBytecode="18" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>At BAS_Sample.java:[lines 29-34]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="o"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="3ff9f4b160a43a6ee037a77f2fcd8e09" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to x in ex.BAS_Sample.testFPSynchronized(String, String)</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFPSynchronized" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="198" end="207" startBytecode="0" endBytecode="27" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFPSynchronized(String, String)</Message> </Method> <LocalVariable name="x" register="4" pc="11" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named x</Message> </LocalVariable> <SourceLine classname="ex.BAS_Sample" primary="true" start="199" end="199" startBytecode="9" endBytecode="9" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 199]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.COPY_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="x"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DMC_DUBIOUS_MAP_COLLECTION" priority="2" rank="7" abbrev="DMC" category="CORRECTNESS" instanceHash="f819075e10123fc3dc5d677d2cd0cd77" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class holds a map-type field, but uses it as only a List</ShortMessage> <LongMessage>Class ex.BAS_Sample holds a map-type field ex.BAS_Sample.m, but uses it as only a List</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Field classname="ex.BAS_Sample" name="m" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>In BAS_Sample.java</Message> </SourceLine> <Message>Field ex.BAS_Sample.m</Message> </Field> <SourceLine classname="ex.BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>In BAS_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="53c96bd222f455e784e5b54a6813bbc0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.BAS_Sample does not implement a toString method</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="a7fd7787ca5922682b19692f1807e1bf" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BAS_Sample.test2InnerScopes(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="test2InnerScopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="49" end="58" startBytecode="0" endBytecode="145" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.test2InnerScopes(String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="51" end="51" startBytecode="15" endBytecode="15" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 51]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="a7fd7787ca5922682b19692f1807e1bf" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BAS_Sample.test2InnerScopes(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="test2InnerScopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="49" end="58" startBytecode="0" endBytecode="145" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.test2InnerScopes(String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="53" end="53" startBytecode="32" endBytecode="32" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 53]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="5575caed6f0b8d6f170e9203a80177e5" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BAS_Sample.testFP2Scopes(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFP2Scopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="38" end="45" startBytecode="0" endBytecode="137" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFP2Scopes(String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="39" end="39" startBytecode="11" endBytecode="11" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="5575caed6f0b8d6f170e9203a80177e5" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BAS_Sample.testFP2Scopes(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFP2Scopes" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="38" end="45" startBytecode="0" endBytecode="137" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFP2Scopes(String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="41" end="41" startBytecode="28" endBytecode="28" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="d789cadb8a0eca0b5b532c73cd3435f7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BAS_Sample.testIfScope(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testIfScope" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="22" end="26" startBytecode="0" endBytecode="110" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testIfScope(String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="23" end="23" startBytecode="11" endBytecode="11" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="NOS_NON_OWNED_SYNCHRONIZATION" priority="2" rank="17" abbrev="NOS" category="STYLE" instanceHash="4aa8d28921aed7d3cecccc421da7065" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses non owned variables to synchronize on</ShortMessage> <LongMessage>Class ex.BAS_Sample uses non owned variables to synchronize on</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFPSynchronized" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="198" end="207" startBytecode="0" endBytecode="223" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFPSynchronized(String, String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="200" end="200" startBytecode="15" endBytecode="15" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 200]</Message> </SourceLine> </BugInstance> <BugInstance type="NOS_NON_OWNED_SYNCHRONIZATION" priority="3" rank="20" abbrev="NOS" category="STYLE" instanceHash="114eaac6021cb2c7a086bfd492cd7cce" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses non owned variables to synchronize on</ShortMessage> <LongMessage>Class ex.BAS_Sample uses non owned variables to synchronize on</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFPSync" signature="(Ljava/util/Set;Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="100" end="108" startBytecode="0" endBytecode="282" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFPSync(Set, Set)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="100" end="100" startBytecode="4" endBytecode="4" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 100]</Message> </SourceLine> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="2" rank="18" abbrev="PRMC" category="PERFORMANCE" instanceHash="e22ffe0ba41b8f843b7d64d0a57fa3cc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.BAS_Sample.testFPTwoCatches(List) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testFPTwoCatches" signature="(Ljava/util/List;)I" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="242" end="248" startBytecode="0" endBytecode="251" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testFPTwoCatches(List)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="248" end="248" startBytecode="65" endBytecode="65" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 248]</Message> </SourceLine> <String value="valueOf(Ljava/lang/Object;)Ljava/lang/String;"> <Message>Value valueOf(Ljava/lang/Object;)Ljava/lang/String;</Message> </String> </BugInstance> <BugInstance type="SPP_NON_USEFUL_TOSTRING" priority="3" rank="20" abbrev="SPP" category="STYLE" instanceHash="8bb05c5c86ad416712e3c9db17e5d75c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls toString() on an instance of a class that hasn't overridden toString()</ShortMessage> <LongMessage>Method ex.BAS_Sample.tstFPRefChangeThruMethodChain(BAS_Sample$Holder, BAS_Sample$Holder, boolean) calls toString() on an instance of a class that hasn't overridden toString()</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="tstFPRefChangeThruMethodChain" signature="(Lex/BAS_Sample$Holder;Lex/BAS_Sample$Holder;Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="144" end="150" startBytecode="0" endBytecode="135" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.tstFPRefChangeThruMethodChain(BAS_Sample$Holder, BAS_Sample$Holder, boolean)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="144" end="144" startBytecode="1" endBytecode="1" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 144]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="d28e476c0acc885949f3ab275110f2fa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.BAS_Sample.testIfScope(String) seems to be useless</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Method classname="ex.BAS_Sample" name="testIfScope" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" start="22" end="26" startBytecode="0" endBytecode="110" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"/> <Message>In method ex.BAS_Sample.testIfScope(String)</Message> </Method> <SourceLine classname="ex.BAS_Sample" primary="true" start="26" end="26" startBytecode="22" endBytecode="22" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="3" rank="20" abbrev="UrF" category="PERFORMANCE" instanceHash="d35059a55c59f3dd0914fa3c4e646c48" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.BAS_Sample.m</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Field classname="ex.BAS_Sample" name="m" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>In BAS_Sample.java</Message> </SourceLine> <Message>Field ex.BAS_Sample.m</Message> </Field> <SourceLine classname="ex.BAS_Sample" primary="true" start="16" end="16" startBytecode="12" endBytecode="12" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="33ca71ae07d501589d77a7f3dc4512c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.BAS_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.BAS_Sample" primary="true"> <SourceLine classname="ex.BAS_Sample" start="15" end="248" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 15-248]</Message> </SourceLine> <Message>In class ex.BAS_Sample</Message> </Class> <Field classname="ex.BAS_Sample" name="m" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>In BAS_Sample.java</Message> </SourceLine> <Message>Field ex.BAS_Sample.m</Message> </Field> <SourceLine classname="ex.BAS_Sample" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>In BAS_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="e86d3fa2bd059c3cc31626c746bd4b62" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.BAS_Sample$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.BAS_Sample$1" primary="true"> <SourceLine classname="ex.BAS_Sample$1" start="1" end="230" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[lines 1-230]</Message> </SourceLine> <Message>In class ex.BAS_Sample$1</Message> </Class> <SourceLine classname="ex.BAS_Sample$1" start="1" end="230" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java" synthetic="true"> <Message>At BAS_Sample.java:[lines 1-230]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="3" rank="15" abbrev="UwF" category="CORRECTNESS" instanceHash="aeddf7ad4fb630e1cf40dfd7cfa9429c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.BAS_Sample$Holder.member</LongMessage> <Class classname="ex.BAS_Sample$Holder" primary="true"> <SourceLine classname="ex.BAS_Sample$Holder" start="252" end="252" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 252]</Message> </SourceLine> <Message>In class ex.BAS_Sample$Holder</Message> </Class> <Field classname="ex.BAS_Sample$Holder" name="member" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.BAS_Sample$Holder" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>In BAS_Sample.java</Message> </SourceLine> <Message>Field ex.BAS_Sample$Holder.member</Message> </Field> <SourceLine classname="ex.BAS_Sample" primary="true" start="134" end="134" startBytecode="1" endBytecode="1" sourcefile="BAS_Sample.java" sourcepath="ex/BAS_Sample.java"> <Message>At BAS_Sample.java:[line 134]</Message> </SourceLine> </BugInstance> <BugInstance type="BAS_BLOATED_ASSIGNMENT_SCOPE" priority="2" rank="18" abbrev="BAS" category="PERFORMANCE" instanceHash="92c2afbe7595e2db43e00f25d3235db3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method assigns a variable in a larger scope than is needed</ShortMessage> <LongMessage>Method ex.BED_Sample.fpJustThrowIt(boolean, String) assigns a variable in a larger scope than is needed</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fpJustThrowIt" signature="(ZLjava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="73" end="77" startBytecode="0" endBytecode="103" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fpJustThrowIt(boolean, String)</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="73" end="73" startBytecode="8" endBytecode="8" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 73]</Message> </SourceLine> </BugInstance> <BugInstance type="BED_BOGUS_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="c991e88396cd757af3b0bf4d48ccb671" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Non derivable method declares throwing an exception that isn't thrown</ShortMessage> <LongMessage>Non derivable method new ex.BED_Sample() declares throwing an exception that isn't thrown</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="23" startBytecode="0" endBytecode="50" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method new ex.BED_Sample()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="21" end="21" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 21]</Message> </SourceLine> <String value="java.io.IOException"> <Message>Value java.io.IOException</Message> </String> </BugInstance> <BugInstance type="BED_BOGUS_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="2e65d65be6b256601facfbde92ac7a25" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Non derivable method declares throwing an exception that isn't thrown</ShortMessage> <LongMessage>Non derivable method ex.BED_Sample.badFinal() declares throwing an exception that isn't thrown</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="badFinal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="53" end="53" startBytecode="0" endBytecode="42" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.badFinal()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="53" end="53" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 53]</Message> </SourceLine> <String value="java.lang.ClassNotFoundException"> <Message>Value java.lang.ClassNotFoundException</Message> </String> </BugInstance> <BugInstance type="BED_BOGUS_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="4bfcc6342447f51d91f6003c761c7d88" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Non derivable method declares throwing an exception that isn't thrown</ShortMessage> <LongMessage>Non derivable method ex.BED_Sample.badStatic() declares throwing an exception that isn't thrown</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="badStatic" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="49" end="49" startBytecode="0" endBytecode="32" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.badStatic()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="49" end="49" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 49]</Message> </SourceLine> <String value="java.util.zip.DataFormatException"> <Message>Value java.util.zip.DataFormatException</Message> </String> </BugInstance> <BugInstance type="BED_BOGUS_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="4190bbf7c1e664eb5a5101db7305fb02" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Non derivable method declares throwing an exception that isn't thrown</ShortMessage> <LongMessage>Non derivable method ex.BED_Sample.badThrow() declares throwing an exception that isn't thrown</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="badThrow" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="45" end="45" startBytecode="0" endBytecode="42" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.badThrow()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="45" end="45" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 45]</Message> </SourceLine> <String value="java.sql.SQLException"> <Message>Value java.sql.SQLException</Message> </String> </BugInstance> <BugInstance type="BED_BOGUS_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="3344db176731102d33c1dd3b49087387" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Non derivable method declares throwing an exception that isn't thrown</ShortMessage> <LongMessage>Non derivable method ex.BED_Sample.doIt() declares throwing an exception that isn't thrown</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="doIt" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="56" end="57" startBytecode="0" endBytecode="56" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.doIt()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="56" end="56" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 56]</Message> </SourceLine> <String value="java.sql.SQLException"> <Message>Value java.sql.SQLException</Message> </String> </BugInstance> <BugInstance type="BED_BOGUS_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="485e5b7bd0e7e59dc799cb94ea116bcb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Non derivable method declares throwing an exception that isn't thrown</ShortMessage> <LongMessage>Non derivable method ex.BED_Sample.issue92a() declares throwing an exception that isn't thrown</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="issue92a" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="97" end="98" startBytecode="0" endBytecode="54" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.issue92a()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="97" end="97" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 97]</Message> </SourceLine> <String value="java.lang.InterruptedException"> <Message>Value java.lang.InterruptedException</Message> </String> </BugInstance> <BugInstance type="BED_BOGUS_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="3e27cd4f3088fec2f1f675c23f64fab1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Non derivable method declares throwing an exception that isn't thrown</ShortMessage> <LongMessage>Non derivable method ex.BED_Sample.issue92b() declares throwing an exception that isn't thrown</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="issue92b" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="101" end="102" startBytecode="0" endBytecode="44" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.issue92b()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="101" end="101" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 101]</Message> </SourceLine> <String value="java.lang.InterruptedException"> <Message>Value java.lang.InterruptedException</Message> </String> </BugInstance> <BugInstance type="BED_HIERARCHICAL_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="239da2c2e4d222fb1473750739949df3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares throwing two or more exceptions related by inheritance</ShortMessage> <LongMessage>Method ex.BED_Sample.doesTheNasty() declares throwing two or more exceptions related by inheritance</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="doesTheNasty" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="33" end="33" startBytecode="0" endBytecode="42" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.doesTheNasty()</Message> </Method> <String value="java.io.FileNotFoundException derives from java.io.IOException"> <Message>Value java.io.FileNotFoundException derives from java.io.IOException</Message> </String> <SourceLine classname="ex.BED_Sample" start="33" end="33" startBytecode="0" endBytecode="42" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" synthetic="true"> <Message>At BED_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="BED_HIERARCHICAL_EXCEPTION_DECLARATION" priority="2" rank="7" abbrev="BED" category="CORRECTNESS" instanceHash="d9d3e1606ced4857eb3ac095f97093e5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares throwing two or more exceptions related by inheritance</ShortMessage> <LongMessage>Method ex.BED_Sample.doesTheNasty2() declares throwing two or more exceptions related by inheritance</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="doesTheNasty2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="37" end="37" startBytecode="0" endBytecode="42" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.doesTheNasty2()</Message> </Method> <String value="java.io.FileNotFoundException derives from java.io.IOException"> <Message>Value java.io.FileNotFoundException derives from java.io.IOException</Message> </String> <SourceLine classname="ex.BED_Sample" start="37" end="37" startBytecode="0" endBytecode="42" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" synthetic="true"> <Message>At BED_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="3be28023c172117a63988b0ef1c76058" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "String.getBytes(String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: String.getBytes(Charset)</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="iThrowAnException" signature="()[B" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="92" end="93" startBytecode="0" endBytecode="61" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.iThrowAnException()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="93" end="93" startBytecode="12" endBytecode="12" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 93]</Message> </SourceLine> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/lang/String;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="917" end="918" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(String)</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/nio/charset/Charset;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="940" end="941" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(Charset)</Message> </Method> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="f3c46b069bbad2af6edd4a5e682c60c2" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to context in new ex.BED_Sample(String)</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="<init>" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="25" end="29" startBytecode="0" endBytecode="16" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method new ex.BED_Sample(String)</Message> </Method> <LocalVariable name="context" register="3" pc="29" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named context</Message> </LocalVariable> <SourceLine classname="ex.BED_Sample" primary="true" start="28" end="28" startBytecode="28" endBytecode="28" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 28]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="context"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="29c53588af41d111ba8328f0d1fa6a38" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to is in ex.BED_Sample.doIt()</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="doIt" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="56" end="57" startBytecode="0" endBytecode="5" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.doIt()</Message> </Method> <LocalVariable name="is" register="0" pc="10" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named is</Message> </LocalVariable> <SourceLine classname="ex.BED_Sample" primary="true" start="56" end="56" startBytecode="9" endBytecode="9" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 56]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="is"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="90e96f5c3a7d67da6df17a4aa2f81124" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to is in ex.BED_Sample.fp()</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fp" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="60" end="61" startBytecode="0" endBytecode="5" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fp()</Message> </Method> <LocalVariable name="is" register="0" pc="10" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named is</Message> </LocalVariable> <SourceLine classname="ex.BED_Sample" primary="true" start="60" end="60" startBytecode="9" endBytecode="9" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 60]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="is"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="af300d1a32e60684d240c29590d16e71" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to e in ex.BED_Sample.fpThrowField(boolean)</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fpThrowField" signature="(Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="64" end="68" startBytecode="0" endBytecode="10" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fpThrowField(boolean)</Message> </Method> <LocalVariable name="e" register="2" pc="14" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named e</Message> </LocalVariable> <SourceLine classname="ex.BED_Sample" primary="true" start="67" end="67" startBytecode="13" endBytecode="13" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 67]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.CACHING_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="e"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DMI_HARDCODED_ABSOLUTE_FILENAME" priority="2" rank="17" abbrev="DMI" category="STYLE" instanceHash="598cab7fbe6c33a0a06c960a2b4e0be5" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Code contains a hard coded reference to an absolute pathname</ShortMessage> <LongMessage>Hard coded reference to an absolute pathname in ex.BED_Sample.doIt()</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="doIt" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="56" end="57" startBytecode="0" endBytecode="5" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.doIt()</Message> </Method> <String value="c:\\temp.txt" role="FILE_NAME"> <Message>File name c:\\temp.txt</Message> </String> <SourceLine classname="ex.BED_Sample" primary="true" start="56" end="56" startBytecode="6" endBytecode="6" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="DMI_HARDCODED_ABSOLUTE_FILENAME" priority="2" rank="17" abbrev="DMI" category="STYLE" instanceHash="d7fc322c24f1ea834475292e2e8e8694" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Code contains a hard coded reference to an absolute pathname</ShortMessage> <LongMessage>Hard coded reference to an absolute pathname in ex.BED_Sample.fp()</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fp" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="60" end="61" startBytecode="0" endBytecode="5" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fp()</Message> </Method> <String value="c:\\temp.txt" role="FILE_NAME"> <Message>File name c:\\temp.txt</Message> </String> <SourceLine classname="ex.BED_Sample" primary="true" start="60" end="60" startBytecode="6" endBytecode="6" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="fc83cff0335d406d40bf68904f8a6946" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.BED_Sample does not implement a toString method</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" synthetic="true"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="89167984489570fe9ae28231872758e9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.BED_Sample.doIt() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="doIt" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="56" end="57" startBytecode="0" endBytecode="56" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.doIt()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="56" end="56" startBytecode="6" endBytecode="6" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="1894fd628f5578027a2ac6be533f7e07" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.BED_Sample.fp() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fp" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="60" end="61" startBytecode="0" endBytecode="56" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fp()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="60" end="60" startBytecode="6" endBytecode="6" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="dd36c3f101a6675219fdeec0336a71c7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method ex.BED_Sample.fpInterrupted(String) sleeps without timeout when calling Object.wait()</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fpInterrupted" signature="(Ljava/lang/String;)Ljava/lang/Process;" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="106" end="112" startBytecode="0" endBytecode="164" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fpInterrupted(String)</Message> </Method> <Method classname="java.lang.Object" name="wait" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="502" end="503" startBytecode="0" endBytecode="33" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.wait()</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="109" end="109" startBytecode="21" endBytecode="21" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="53ca49c4ba98499fa3e66c17a156f7b4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.BED_Sample.doIt() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="doIt" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="56" end="57" startBytecode="0" endBytecode="56" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.doIt()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.BED_Sample" primary="true" start="56" end="56" startBytecode="6" endBytecode="6" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at BED_Sample.java:[line 56] is not discharged</Message> </SourceLine> <SourceLine classname="ex.BED_Sample" start="57" end="57" startBytecode="10" endBytecode="10" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at BED_Sample.java:[line 57]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="589f7783f1fd518b8866949c21f51734" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.BED_Sample.fp() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fp" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="60" end="61" startBytecode="0" endBytecode="56" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fp()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.BED_Sample" primary="true" start="60" end="60" startBytecode="6" endBytecode="6" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at BED_Sample.java:[line 60] is not discharged</Message> </SourceLine> <SourceLine classname="ex.BED_Sample" start="61" end="61" startBytecode="10" endBytecode="10" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at BED_Sample.java:[line 61]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="b5cc17715a55b998edd315fe12759a54" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.BED_Sample.doIt() may fail to close stream</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="doIt" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="56" end="57" startBytecode="0" endBytecode="5" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.doIt()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.BED_Sample" primary="true" start="56" end="56" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="7b013f9c94242124da2da942bd172368" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.BED_Sample.fp() may fail to close stream</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fp" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="60" end="61" startBytecode="0" endBytecode="5" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fp()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.BED_Sample" primary="true" start="60" end="60" startBytecode="0" endBytecode="0" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="2a806e7eb10e078f26aeb23fb36b2e20" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.BED_Sample.badThrow() is never called</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="badThrow" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="45" end="45" startBytecode="0" endBytecode="42" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.badThrow()</Message> </Method> <SourceLine classname="ex.BED_Sample" start="45" end="45" startBytecode="0" endBytecode="42" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" synthetic="true"> <Message>At BED_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="4422222bd844dbc2ebb722c7cc834be1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.BED_Sample.fpThrowField(boolean) is never called</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fpThrowField" signature="(Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="64" end="68" startBytecode="0" endBytecode="101" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fpThrowField(boolean)</Message> </Method> <SourceLine classname="ex.BED_Sample" start="64" end="68" startBytecode="0" endBytecode="101" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" synthetic="true"> <Message>At BED_Sample.java:[lines 64-68]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="2c9ac539ebeb340ce9a1c4ea3fe6582d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.BED_Sample.getHashFromChecksum217(Optional) is never called</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="getHashFromChecksum217" signature="(Ljava/util/Optional;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="80" end="80" startBytecode="0" endBytecode="82" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.getHashFromChecksum217(Optional)</Message> </Method> <SourceLine classname="ex.BED_Sample" start="80" end="80" startBytecode="0" endBytecode="82" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" synthetic="true"> <Message>At BED_Sample.java:[line 80]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="1e3748b8981f43a4cb6e031034698fc8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.BED_Sample.issue92a() is never called</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="issue92a" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" start="97" end="98" startBytecode="0" endBytecode="54" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.issue92a()</Message> </Method> <SourceLine classname="ex.BED_Sample" start="97" end="98" startBytecode="0" endBytecode="54" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" synthetic="true"> <Message>At BED_Sample.java:[lines 97-98]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="1e0ff47c45e28542c367d7e99e75463f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.BED_Sample.ioe</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Field classname="ex.BED_Sample" name="ioe" signature="Ljava/io/IOException;" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>In BED_Sample.java</Message> </SourceLine> <Message>Field ex.BED_Sample.ioe</Message> </Field> <SourceLine classname="ex.BED_Sample" primary="true" start="65" end="65" startBytecode="5" endBytecode="5" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="UW_UNCOND_WAIT" priority="2" rank="14" abbrev="UW" category="MT_CORRECTNESS" instanceHash="d19c2c0c7136012b683ec0258b4d0700" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unconditional wait</ShortMessage> <LongMessage>Unconditional wait in ex.BED_Sample.fpInterrupted(String)</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fpInterrupted" signature="(Ljava/lang/String;)Ljava/lang/Process;" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="106" end="112" startBytecode="0" endBytecode="164" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fpInterrupted(String)</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="109" end="109" startBytecode="21" endBytecode="21" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="WA_NOT_IN_LOOP" priority="2" rank="14" abbrev="Wa" category="MT_CORRECTNESS" instanceHash="e477aa4d62eee8522f7651b9167c5739" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Wait not in loop </ShortMessage> <LongMessage>Wait not in loop in ex.BED_Sample.fpInterrupted(String)</LongMessage> <Class classname="ex.BED_Sample" primary="true"> <SourceLine classname="ex.BED_Sample" start="21" end="112" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 21-112]</Message> </SourceLine> <Message>In class ex.BED_Sample</Message> </Class> <Method classname="ex.BED_Sample" name="fpInterrupted" signature="(Ljava/lang/String;)Ljava/lang/Process;" isStatic="true" primary="true"> <SourceLine classname="ex.BED_Sample" start="106" end="112" startBytecode="0" endBytecode="164" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample.fpInterrupted(String)</Message> </Method> <SourceLine classname="ex.BED_Sample" primary="true" start="109" end="109" startBytecode="21" endBytecode="21" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="756dad209fda4e11835737f6581fc035" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.BED_Sample$1.iHaveToThrowAnException() is never called</LongMessage> <Class classname="ex.BED_Sample$1" primary="true"> <SourceLine classname="ex.BED_Sample$1" start="1" end="86" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 1-86]</Message> </SourceLine> <Message>In class ex.BED_Sample$1</Message> </Class> <Method classname="ex.BED_Sample$1" name="iHaveToThrowAnException" signature="()[B" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample$1" start="86" end="86" startBytecode="0" endBytecode="49" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method ex.BED_Sample$1.iHaveToThrowAnException()</Message> </Method> <SourceLine classname="ex.BED_Sample$1" start="86" end="86" startBytecode="0" endBytecode="49" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java" synthetic="true"> <Message>At BED_Sample.java:[line 86]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="3947ae3bbe163f67638ece3d05237710" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in new ex.BED_Sample$FPAnonBase(InputStream)</LongMessage> <Class classname="ex.BED_Sample$FPAnonBase" primary="true"> <SourceLine classname="ex.BED_Sample$FPAnonBase" start="117" end="122" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[lines 117-122]</Message> </SourceLine> <Message>In class ex.BED_Sample$FPAnonBase</Message> </Class> <Method classname="ex.BED_Sample$FPAnonBase" name="<init>" signature="(Ljava/io/InputStream;)V" isStatic="false" primary="true"> <SourceLine classname="ex.BED_Sample$FPAnonBase" start="117" end="119" startBytecode="0" endBytecode="5" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"/> <Message>In method new ex.BED_Sample$FPAnonBase(InputStream)</Message> </Method> <LocalVariable name="i" register="2" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.BED_Sample$FPAnonBase" primary="true" start="118" end="118" startBytecode="8" endBytecode="8" sourcefile="BED_Sample.java" sourcepath="ex/BED_Sample.java"> <Message>At BED_Sample.java:[line 118]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="87a83087ecbc554ea3f704d3f3c1599f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BL_Sample.fpDoublyNestedReturnInIf(String, String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpDoublyNestedReturnInIf" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="116" end="126" startBytecode="0" endBytecode="131" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpDoublyNestedReturnInIf(String, String)</Message> </Method> <SourceLine classname="ex.BL_Sample" start="116" end="126" startBytecode="0" endBytecode="131" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[lines 116-126]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="7c236056892855cc01af3f9f33348ff3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BL_Sample.fpIfElseReturnChain(Object) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpIfElseReturnChain" signature="(Ljava/lang/Object;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="60" end="68" startBytecode="0" endBytecode="178" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpIfElseReturnChain(Object)</Message> </Method> <SourceLine classname="ex.BL_Sample" start="60" end="68" startBytecode="0" endBytecode="178" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[lines 60-68]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="b05423ae6f9d5224be427d1cc8628918" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BL_Sample.fpIfElseTailReturnChain(Object) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpIfElseTailReturnChain" signature="(Ljava/lang/Object;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="73" end="81" startBytecode="0" endBytecode="204" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpIfElseTailReturnChain(Object)</Message> </Method> <SourceLine classname="ex.BL_Sample" start="73" end="81" startBytecode="0" endBytecode="204" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[lines 73-81]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="2491cdaa6938ae7a65c37ffab94439b0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BL_Sample.fpNonReturnedIfChain(String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpNonReturnedIfChain" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="36" end="42" startBytecode="0" endBytecode="142" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpNonReturnedIfChain(String)</Message> </Method> <SourceLine classname="ex.BL_Sample" start="36" end="42" startBytecode="0" endBytecode="142" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[lines 36-42]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="f0bed0b97d87fe33b39abb23ebdb4b85" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BL_Sample.fpSwitchInReturningIfChain(String, int) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpSwitchInReturningIfChain" signature="(Ljava/lang/String;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="85" end="111" startBytecode="0" endBytecode="397" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpSwitchInReturningIfChain(String, int)</Message> </Method> <SourceLine classname="ex.BL_Sample" start="85" end="111" startBytecode="0" endBytecode="397" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[lines 85-111]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="44daaf1863aa758b829f5d531c49d871" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BL_Sample.getDetails() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="getDetails" signature="()Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="153" end="153" startBytecode="0" endBytecode="43" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.getDetails()</Message> </Method> <SourceLine classname="ex.BL_Sample" start="153" end="153" startBytecode="0" endBytecode="43" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[line 153]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="529106d7b87af453c450619d4cee1103" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.BL_Sample.testSimpleBurying() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="testSimpleBurying" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="11" end="22" startBytecode="0" endBytecode="221" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.testSimpleBurying()</Message> </Method> <SourceLine classname="ex.BL_Sample" start="11" end="22" startBytecode="0" endBytecode="221" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[lines 11-22]</Message> </SourceLine> </BugInstance> <BugInstance type="BL_BURYING_LOGIC" priority="2" rank="17" abbrev="BL" category="STYLE" instanceHash="d70c6325192003c2c354d58eda2e1a36" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method buries logic to the right (indented) more than it needs to be</ShortMessage> <LongMessage>Method ex.BL_Sample.fpSwitchInReturningIfChain(String, int) buries logic to the right (indented) more than it needs to be</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpSwitchInReturningIfChain" signature="(Ljava/lang/String;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="85" end="111" startBytecode="0" endBytecode="397" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpSwitchInReturningIfChain(String, int)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="90" end="111" startBytecode="67" endBytecode="197" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 90-111]</Message> </SourceLine> </BugInstance> <BugInstance type="BL_BURYING_LOGIC" priority="3" rank="20" abbrev="BL" category="STYLE" instanceHash="d73ef21da3138aee548f7642bd35022e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method buries logic to the right (indented) more than it needs to be</ShortMessage> <LongMessage>Method ex.BL_Sample.testSimpleBurying() buries logic to the right (indented) more than it needs to be</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="testSimpleBurying" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="11" end="22" startBytecode="0" endBytecode="221" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.testSimpleBurying()</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="13" end="22" startBytecode="9" endBytecode="60" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 13-22]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="12bc7b88c0ea3547f37471ceb65a86ef" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.BL_Sample.fpIfElseTailReturnChain(Object)</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpIfElseTailReturnChain" signature="(Ljava/lang/Object;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="73" end="81" startBytecode="0" endBytecode="42" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpIfElseTailReturnChain(Object)</Message> </Method> <LocalVariable name="s" register="2" pc="30" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.BL_Sample" primary="true" start="74" end="74" startBytecode="29" endBytecode="29" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 74]</Message> </SourceLine> <SourceLine classname="ex.BL_Sample" start="76" end="76" startBytecode="62" endBytecode="62" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at BL_Sample.java:[line 76]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="336b8f35119723df4c3075e3aee2566" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.BL_Sample does not implement a toString method</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> </BugInstance> <BugInstance type="ITC_INHERITANCE_TYPE_CHECKING" priority="3" rank="20" abbrev="ITC" category="STYLE" instanceHash="eb3d362d14c2ee70759993dd1298a903" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses instanceof on multiple types to arbitrate logic</ShortMessage> <LongMessage>Method ex.BL_Sample.fpIfElseReturnChain(Object) uses instanceof on multiple types to arbitrate logic</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpIfElseReturnChain" signature="(Ljava/lang/Object;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="60" end="68" startBytecode="0" endBytecode="178" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpIfElseReturnChain(Object)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="60" end="60" startBytecode="0" endBytecode="0" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="ITC_INHERITANCE_TYPE_CHECKING" priority="3" rank="20" abbrev="ITC" category="STYLE" instanceHash="7006ff240de2893fcba33dccea31116e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses instanceof on multiple types to arbitrate logic</ShortMessage> <LongMessage>Method ex.BL_Sample.fpIfElseTailReturnChain(Object) uses instanceof on multiple types to arbitrate logic</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpIfElseTailReturnChain" signature="(Ljava/lang/Object;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="73" end="81" startBytecode="0" endBytecode="204" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpIfElseTailReturnChain(Object)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="73" end="73" startBytecode="0" endBytecode="0" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 73]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="7af71eefda029993e4e27563e67577bf" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BL_Sample.fpDoublyNestedReturnInIf(String, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpDoublyNestedReturnInIf" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="116" end="126" startBytecode="0" endBytecode="131" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpDoublyNestedReturnInIf(String, String)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="117" end="117" startBytecode="15" endBytecode="15" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 117]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="7af71eefda029993e4e27563e67577bf" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BL_Sample.fpDoublyNestedReturnInIf(String, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpDoublyNestedReturnInIf" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="116" end="126" startBytecode="0" endBytecode="131" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpDoublyNestedReturnInIf(String, String)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="121" end="121" startBytecode="30" endBytecode="30" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 121]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="a9f7b7c4b95a063e6805e13e0ce08c09" instanceOccurrenceNum="0" instanceOccurrenceMax="2"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BL_Sample.fpSwitchInReturningIfChain(String, int) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpSwitchInReturningIfChain" signature="(Ljava/lang/String;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="85" end="111" startBytecode="0" endBytecode="397" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpSwitchInReturningIfChain(String, int)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="85" end="85" startBytecode="3" endBytecode="3" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 85]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="a9f7b7c4b95a063e6805e13e0ce08c09" instanceOccurrenceNum="1" instanceOccurrenceMax="2"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BL_Sample.fpSwitchInReturningIfChain(String, int) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpSwitchInReturningIfChain" signature="(Ljava/lang/String;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="85" end="111" startBytecode="0" endBytecode="397" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpSwitchInReturningIfChain(String, int)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="87" end="87" startBytecode="32" endBytecode="32" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 87]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="a9f7b7c4b95a063e6805e13e0ce08c09" instanceOccurrenceNum="2" instanceOccurrenceMax="2"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.BL_Sample.fpSwitchInReturningIfChain(String, int) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpSwitchInReturningIfChain" signature="(Ljava/lang/String;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="85" end="111" startBytecode="0" endBytecode="397" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpSwitchInReturningIfChain(String, int)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="89" end="89" startBytecode="61" endBytecode="61" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 89]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="db384117b6f5756285482583b197c787" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.BL_Sample.fpBuryingSwitch(String) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpBuryingSwitch" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="46" end="56" startBytecode="0" endBytecode="358" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpBuryingSwitch(String)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.BL_Sample" start="46" end="56" startBytecode="0" endBytecode="358" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java" synthetic="true"> <Message>At BL_Sample.java:[lines 46-56]</Message> </SourceLine> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="2" rank="18" abbrev="PRMC" category="PERFORMANCE" instanceHash="96e8d3c724076f95e370ac7f0d165319" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.BL_Sample.fpNonAbsoluteReturn(Throwable) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpNonAbsoluteReturn" signature="(Ljava/lang/Throwable;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="26" end="32" startBytecode="0" endBytecode="116" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpNonAbsoluteReturn(Throwable)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="27" end="27" startBytecode="12" endBytecode="12" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 27]</Message> </SourceLine> <String value="getCause()Ljava/lang/Throwable;"> <Message>Value getCause()Ljava/lang/Throwable;</Message> </String> </BugInstance> <BugInstance type="SBSC_USE_STRINGBUFFER_CONCATENATION" priority="2" rank="18" abbrev="SBSC" category="PERFORMANCE" instanceHash="d524244079c19cebfbb48655e3e28ad2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method concatenates strings using + in a loop</ShortMessage> <LongMessage>ex.BL_Sample.fpSwitchInReturningIfChain(String, int) concatenates strings using + in a loop</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Method classname="ex.BL_Sample" name="fpSwitchInReturningIfChain" signature="(Ljava/lang/String;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" start="85" end="111" startBytecode="0" endBytecode="397" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"/> <Message>In method ex.BL_Sample.fpSwitchInReturningIfChain(String, int)</Message> </Method> <SourceLine classname="ex.BL_Sample" primary="true" start="93" end="93" startBytecode="97" endBytecode="97" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 93]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="8a3ed955b35c54a69de9501a5cba05b9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.BL_Sample.f1</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Field classname="ex.BL_Sample" name="f1" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>In BL_Sample.java</Message> </SourceLine> <Message>Field ex.BL_Sample.f1</Message> </Field> <SourceLine classname="ex.BL_Sample" primary="true" start="149" end="149" startBytecode="15" endBytecode="15" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 149]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="d01a8241db9ad3e146e97960ca481686" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.BL_Sample.f2</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Field classname="ex.BL_Sample" name="f2" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>In BL_Sample.java</Message> </SourceLine> <Message>Field ex.BL_Sample.f2</Message> </Field> <SourceLine classname="ex.BL_Sample" primary="true" start="149" end="149" startBytecode="29" endBytecode="29" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 149]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="ddb7ca5da92a5f0643627ee45ae2931b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.BL_Sample.f3</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Field classname="ex.BL_Sample" name="f3" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>In BL_Sample.java</Message> </SourceLine> <Message>Field ex.BL_Sample.f3</Message> </Field> <SourceLine classname="ex.BL_Sample" primary="true" start="149" end="149" startBytecode="43" endBytecode="43" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 149]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="be512007c5361d89bed53030baff35f1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.BL_Sample.f4</LongMessage> <Class classname="ex.BL_Sample" primary="true"> <SourceLine classname="ex.BL_Sample" start="5" end="153" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[lines 5-153]</Message> </SourceLine> <Message>In class ex.BL_Sample</Message> </Class> <Field classname="ex.BL_Sample" name="f4" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.BL_Sample" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>In BL_Sample.java</Message> </SourceLine> <Message>Field ex.BL_Sample.f4</Message> </Field> <SourceLine classname="ex.BL_Sample" primary="true" start="149" end="149" startBytecode="57" endBytecode="57" sourcefile="BL_Sample.java" sourcepath="ex/BL_Sample.java"> <Message>At BL_Sample.java:[line 149]</Message> </SourceLine> </BugInstance> <BugInstance type="BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS" priority="2" rank="18" abbrev="BRPI" category="PERFORMANCE" instanceHash="3504c4e6ea7c88e20e185b07a9cf6b42" instanceOccurrenceNum="0" instanceOccurrenceMax="2"> <ShortMessage>Method uses backported libraries that are now built in</ShortMessage> <LongMessage>Method ex.BRPI_Sample.emory() uses backported libraries that are now built in</LongMessage> <Class classname="ex.BRPI_Sample" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="9" end="18" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[lines 9-18]</Message> </SourceLine> <Message>In class ex.BRPI_Sample</Message> </Class> <Method classname="ex.BRPI_Sample" name="emory" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="11" end="14" startBytecode="0" endBytecode="68" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"/> <Message>In method ex.BRPI_Sample.emory()</Message> </Method> <SourceLine classname="ex.BRPI_Sample" primary="true" start="11" end="11" startBytecode="0" endBytecode="0" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[line 11]</Message> </SourceLine> <String value="EMORY"> <Message>Value EMORY</Message> </String> </BugInstance> <BugInstance type="BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS" priority="2" rank="18" abbrev="BRPI" category="PERFORMANCE" instanceHash="3504c4e6ea7c88e20e185b07a9cf6b42" instanceOccurrenceNum="1" instanceOccurrenceMax="2"> <ShortMessage>Method uses backported libraries that are now built in</ShortMessage> <LongMessage>Method ex.BRPI_Sample.emory() uses backported libraries that are now built in</LongMessage> <Class classname="ex.BRPI_Sample" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="9" end="18" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[lines 9-18]</Message> </SourceLine> <Message>In class ex.BRPI_Sample</Message> </Class> <Method classname="ex.BRPI_Sample" name="emory" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="11" end="14" startBytecode="0" endBytecode="68" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"/> <Message>In method ex.BRPI_Sample.emory()</Message> </Method> <SourceLine classname="ex.BRPI_Sample" primary="true" start="12" end="12" startBytecode="4" endBytecode="4" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[line 12]</Message> </SourceLine> <String value="EMORY"> <Message>Value EMORY</Message> </String> </BugInstance> <BugInstance type="BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS" priority="2" rank="18" abbrev="BRPI" category="PERFORMANCE" instanceHash="3504c4e6ea7c88e20e185b07a9cf6b42" instanceOccurrenceNum="2" instanceOccurrenceMax="2"> <ShortMessage>Method uses backported libraries that are now built in</ShortMessage> <LongMessage>Method ex.BRPI_Sample.emory() uses backported libraries that are now built in</LongMessage> <Class classname="ex.BRPI_Sample" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="9" end="18" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[lines 9-18]</Message> </SourceLine> <Message>In class ex.BRPI_Sample</Message> </Class> <Method classname="ex.BRPI_Sample" name="emory" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="11" end="14" startBytecode="0" endBytecode="68" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"/> <Message>In method ex.BRPI_Sample.emory()</Message> </Method> <SourceLine classname="ex.BRPI_Sample" primary="true" start="13" end="13" startBytecode="11" endBytecode="11" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[line 13]</Message> </SourceLine> <String value="EMORY"> <Message>Value EMORY</Message> </String> </BugInstance> <BugInstance type="BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS" priority="2" rank="18" abbrev="BRPI" category="PERFORMANCE" instanceHash="e75bb55e7889ce2ad9ae0288fe41280c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses backported libraries that are now built in</ShortMessage> <LongMessage>Method ex.BRPI_Sample.threeten() uses backported libraries that are now built in</LongMessage> <Class classname="ex.BRPI_Sample" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="9" end="18" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[lines 9-18]</Message> </SourceLine> <Message>In class ex.BRPI_Sample</Message> </Class> <Method classname="ex.BRPI_Sample" name="threeten" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="17" end="18" startBytecode="0" endBytecode="60" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"/> <Message>In method ex.BRPI_Sample.threeten()</Message> </Method> <SourceLine classname="ex.BRPI_Sample" primary="true" start="17" end="17" startBytecode="0" endBytecode="0" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[line 17]</Message> </SourceLine> <String value="THREETEN"> <Message>Value THREETEN</Message> </String> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="8ae1f7aeb9aa1157cbbb8b63ad73e578" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.BRPI_Sample.threeten()</LongMessage> <Class classname="ex.BRPI_Sample" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="9" end="18" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[lines 9-18]</Message> </SourceLine> <Message>In class ex.BRPI_Sample</Message> </Class> <Method classname="ex.BRPI_Sample" name="threeten" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="17" end="18" startBytecode="0" endBytecode="2" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"/> <Message>In method ex.BRPI_Sample.threeten()</Message> </Method> <LocalVariable name="d" register="1" pc="4" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.BRPI_Sample" primary="true" start="17" end="17" startBytecode="3" endBytecode="3" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[line 17]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="d71d6202a8cda36ace5647992b27ec7b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of edu.emory.mathcs.backport.java.util.Collections.emptySet() ignored, but method has no side effect</LongMessage> <Class classname="ex.BRPI_Sample" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="9" end="18" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[lines 9-18]</Message> </SourceLine> <Message>In class ex.BRPI_Sample</Message> </Class> <Method classname="ex.BRPI_Sample" name="emory" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="11" end="14" startBytecode="0" endBytecode="68" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"/> <Message>In method ex.BRPI_Sample.emory()</Message> </Method> <Method classname="edu.emory.mathcs.backport.java.util.Collections" name="emptySet" signature="()Ljava/util/Set;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="edu.emory.mathcs.backport.java.util.Collections" start="191" end="191" startBytecode="0" endBytecode="27" sourcefile="Collections.java" sourcepath="edu/emory/mathcs/backport/java/util/Collections.java"/> <Message>Called method edu.emory.mathcs.backport.java.util.Collections.emptySet()</Message> </Method> <SourceLine classname="ex.BRPI_Sample" primary="true" start="11" end="11" startBytecode="0" endBytecode="0" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="SEC_SIDE_EFFECT_CONSTRUCTOR" priority="2" rank="17" abbrev="SEC" category="STYLE" instanceHash="aa68eeab53876584edf5ff52434da9e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a Side Effect Constructor</ShortMessage> <LongMessage>Method ex.BRPI_Sample.emory() uses a Side Effect Constructor</LongMessage> <Class classname="ex.BRPI_Sample" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="9" end="18" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[lines 9-18]</Message> </SourceLine> <Message>In class ex.BRPI_Sample</Message> </Class> <Method classname="ex.BRPI_Sample" name="emory" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BRPI_Sample" start="11" end="14" startBytecode="0" endBytecode="68" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"/> <Message>In method ex.BRPI_Sample.emory()</Message> </Method> <SourceLine classname="ex.BRPI_Sample" primary="true" start="14" end="14" startBytecode="14" endBytecode="14" sourcefile="BRPI_Sample.java" sourcepath="ex/BRPI_Sample.java"> <Message>At BRPI_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="8307d6808c9c10be7e576aa57175feba" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.BSB_Sample does not implement a toString method</LongMessage> <Class classname="ex.BSB_Sample" primary="true"> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> <Message>In class ex.BSB_Sample</Message> </Class> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java" synthetic="true"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="c658f8cea68d583603082f2b94682cd9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.BSB_Sample.testAliasedLocalBeginBloated(int) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.BSB_Sample" primary="true"> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> <Message>In class ex.BSB_Sample</Message> </Class> <Method classname="ex.BSB_Sample" name="testAliasedLocalBeginBloated" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.BSB_Sample" start="35" end="42" startBytecode="0" endBytecode="221" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"/> <Message>In method ex.BSB_Sample.testAliasedLocalBeginBloated(int)</Message> </Method> <SourceLine classname="ex.BSB_Sample" primary="true" start="37" end="37" startBytecode="19" endBytecode="19" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="97a8983fc35936aa5a820fa18b8c1b81" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.BSB_Sample.testBranchCutDown(int) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.BSB_Sample" primary="true"> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> <Message>In class ex.BSB_Sample</Message> </Class> <Method classname="ex.BSB_Sample" name="testBranchCutDown" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.BSB_Sample" start="45" end="54" startBytecode="0" endBytecode="223" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"/> <Message>In method ex.BSB_Sample.testBranchCutDown(int)</Message> </Method> <SourceLine classname="ex.BSB_Sample" primary="true" start="47" end="47" startBytecode="16" endBytecode="16" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="297df583fa311da990b2914cc99c56c7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.BSB_Sample.testFieldBeginBloated(int, int) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.BSB_Sample" primary="true"> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> <Message>In class ex.BSB_Sample</Message> </Class> <Method classname="ex.BSB_Sample" name="testFieldBeginBloated" signature="(II)V" isStatic="false" primary="true"> <SourceLine classname="ex.BSB_Sample" start="16" end="22" startBytecode="0" endBytecode="195" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"/> <Message>In method ex.BSB_Sample.testFieldBeginBloated(int, int)</Message> </Method> <SourceLine classname="ex.BSB_Sample" primary="true" start="17" end="17" startBytecode="14" endBytecode="14" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="ed82693bada9c564d7cbe48414efa5ef" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.BSB_Sample.testLocalBeginBloated(int) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.BSB_Sample" primary="true"> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> <Message>In class ex.BSB_Sample</Message> </Class> <Method classname="ex.BSB_Sample" name="testLocalBeginBloated" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.BSB_Sample" start="25" end="32" startBytecode="0" endBytecode="218" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"/> <Message>In method ex.BSB_Sample.testLocalBeginBloated(int)</Message> </Method> <SourceLine classname="ex.BSB_Sample" primary="true" start="27" end="27" startBytecode="16" endBytecode="16" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="NMCS_NEEDLESS_MEMBER_COLLECTION_SYNCHRONIZATION" priority="2" rank="18" abbrev="NMCS" category="PERFORMANCE" instanceHash="6bc3d5ad356b2a841f991309c9ac38d7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines unneeded synchronization on member collection</ShortMessage> <LongMessage>Class ex.BSB_Sample defines unneeded synchronization on member collection</LongMessage> <Class classname="ex.BSB_Sample" primary="true"> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> <Message>In class ex.BSB_Sample</Message> </Class> <Field classname="ex.BSB_Sample" name="synchMap" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.BSB_Sample" start="13" end="13" startBytecode="37" endBytecode="37" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[line 13]</Message> </SourceLine> <Message>Field ex.BSB_Sample.synchMap</Message> </Field> <SourceLine classname="ex.BSB_Sample" start="13" end="13" startBytecode="37" endBytecode="37" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java" synthetic="true"> <Message>At BSB_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_TOSTRING_STORED_IN_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="48d22a3bac7b29bbc3a76e721a447f89" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method stores the value of a toString() call into a field</ShortMessage> <LongMessage>This method ex.BSB_Sample stores the value of a toString() call into a field</LongMessage> <Class classname="ex.BSB_Sample" primary="true"> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> <Message>In class ex.BSB_Sample</Message> </Class> <Method classname="ex.BSB_Sample" name="testFieldBeginBloated" signature="(II)V" isStatic="false" primary="true"> <SourceLine classname="ex.BSB_Sample" start="16" end="22" startBytecode="0" endBytecode="195" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"/> <Message>In method ex.BSB_Sample.testFieldBeginBloated(int, int)</Message> </Method> <SourceLine classname="ex.BSB_Sample" primary="true" start="20" end="20" startBytecode="40" endBytecode="40" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="WMI_WRONG_MAP_ITERATOR" priority="2" rank="18" abbrev="WMI" category="PERFORMANCE" instanceHash="905441b11f9d1f1bf7d1cb952f6980ac" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Inefficient use of keySet iterator instead of entrySet iterator</ShortMessage> <LongMessage>ex.BSB_Sample.accessSyncMap() makes inefficient use of keySet iterator instead of entrySet iterator</LongMessage> <Class classname="ex.BSB_Sample" primary="true"> <SourceLine classname="ex.BSB_Sample" start="10" end="68" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[lines 10-68]</Message> </SourceLine> <Message>In class ex.BSB_Sample</Message> </Class> <Method classname="ex.BSB_Sample" name="accessSyncMap" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.BSB_Sample" start="61" end="68" startBytecode="0" endBytecode="227" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"/> <Message>In method ex.BSB_Sample.accessSyncMap()</Message> </Method> <Field classname="ex.BSB_Sample" name="synchMap" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.BSB_Sample" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>In BSB_Sample.java</Message> </SourceLine> <Message>Field ex.BSB_Sample.synchMap</Message> </Field> <SourceLine classname="ex.BSB_Sample" primary="true" start="65" end="65" startBytecode="44" endBytecode="44" sourcefile="BSB_Sample.java" sourcepath="ex/BSB_Sample.java"> <Message>At BSB_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="CAAL_CONFUSING_ARRAY_AS_LIST" priority="2" rank="7" abbrev="CAAL" category="CORRECTNESS" instanceHash="fbf59948bfac48474999a5bb40e02668" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Array.asList on an array of primitive values</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(byte[]) calls Array.asList on an array of primitive values</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([B)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="16" end="17" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(byte[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="16" end="16" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="CAAL_CONFUSING_ARRAY_AS_LIST" priority="2" rank="7" abbrev="CAAL" category="CORRECTNESS" instanceHash="ebe96a078951ba3e2af250bb08185e5d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Array.asList on an array of primitive values</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(char[]) calls Array.asList on an array of primitive values</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([C)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="12" end="13" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(char[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="12" end="12" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="CAAL_CONFUSING_ARRAY_AS_LIST" priority="2" rank="7" abbrev="CAAL" category="CORRECTNESS" instanceHash="65fbff1fe697238f6d0a36def65d847f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Array.asList on an array of primitive values</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(double[]) calls Array.asList on an array of primitive values</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([D)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="32" end="33" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(double[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="32" end="32" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="CAAL_CONFUSING_ARRAY_AS_LIST" priority="2" rank="7" abbrev="CAAL" category="CORRECTNESS" instanceHash="883bdcfd4884492707474cbf193e3799" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Array.asList on an array of primitive values</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(float[]) calls Array.asList on an array of primitive values</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([F)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="28" end="29" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(float[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="28" end="28" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="CAAL_CONFUSING_ARRAY_AS_LIST" priority="2" rank="7" abbrev="CAAL" category="CORRECTNESS" instanceHash="501fa238ef7d955fbd271c650c9a1031" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Array.asList on an array of primitive values</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(int[]) calls Array.asList on an array of primitive values</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="8" end="9" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(int[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="8" end="8" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="CAAL_CONFUSING_ARRAY_AS_LIST" priority="2" rank="7" abbrev="CAAL" category="CORRECTNESS" instanceHash="72de88a74c0be83d5b36d6c67440d2e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Array.asList on an array of primitive values</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(long[]) calls Array.asList on an array of primitive values</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([J)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="24" end="25" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(long[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="24" end="24" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="CAAL_CONFUSING_ARRAY_AS_LIST" priority="2" rank="7" abbrev="CAAL" category="CORRECTNESS" instanceHash="e0be7d770f4e197bc109a3f746653fa1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Array.asList on an array of primitive values</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(short[]) calls Array.asList on an array of primitive values</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([S)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="20" end="21" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(short[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="20" end="20" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="CAAL_CONFUSING_ARRAY_AS_LIST" priority="2" rank="7" abbrev="CAAL" category="CORRECTNESS" instanceHash="549f97a1734e67789b2e6b93159d9e13" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Array.asList on an array of primitive values</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(boolean[]) calls Array.asList on an array of primitive values</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="36" end="37" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(boolean[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="36" end="36" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="8c6d80443e0f3807fe3fc57fa38bf1e9" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testCAAL(byte[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([B)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="16" end="17" startBytecode="0" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(byte[])</Message> </Method> <LocalVariable name="l" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="16" end="16" startBytecode="11" endBytecode="11" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 16]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="f203b63a15da669a10e0f0eb7987c87d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testCAAL(char[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([C)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="12" end="13" startBytecode="0" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(char[])</Message> </Method> <LocalVariable name="l" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="12" end="12" startBytecode="11" endBytecode="11" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 12]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="48111479ef572db1af9b64a1ca20d9b1" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testCAAL(double[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([D)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="32" end="33" startBytecode="0" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(double[])</Message> </Method> <LocalVariable name="l" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="32" end="32" startBytecode="11" endBytecode="11" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 32]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="2f67802fa6097b68fd2af79706d52f0d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testCAAL(float[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([F)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="28" end="29" startBytecode="0" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(float[])</Message> </Method> <LocalVariable name="l" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="28" end="28" startBytecode="11" endBytecode="11" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 28]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="49e3957b6157ca10b631e008d261e146" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testCAAL(int[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="8" end="9" startBytecode="0" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(int[])</Message> </Method> <LocalVariable name="l" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="8" end="8" startBytecode="11" endBytecode="11" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 8]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="5a9fef802b894bd6651d3ea25e9cb14a" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testCAAL(long[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([J)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="24" end="25" startBytecode="0" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(long[])</Message> </Method> <LocalVariable name="l" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="24" end="24" startBytecode="11" endBytecode="11" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 24]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="3fa109f8bd2b6ed84c58f4805cf4255c" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testCAAL(short[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([S)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="20" end="21" startBytecode="0" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(short[])</Message> </Method> <LocalVariable name="l" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="20" end="20" startBytecode="11" endBytecode="11" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 20]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="b6734f589048646bb4d4bb717b0bb37e" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testCAAL(boolean[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="36" end="37" startBytecode="0" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(boolean[])</Message> </Method> <LocalVariable name="l" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="36" end="36" startBytecode="11" endBytecode="11" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 36]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="abac224cc800ff254e2c975ebf3a61a2" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.CAAL_Sample.testFPTwoArrays(char[], char[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testFPTwoArrays" signature="([C[C)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="40" end="41" startBytecode="0" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testFPTwoArrays(char[], char[])</Message> </Method> <LocalVariable name="l" register="3" pc="16" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.CAAL_Sample" primary="true" start="40" end="40" startBytecode="15" endBytecode="15" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 40]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="c41127f41293b8c092a531a442556156" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testFPTwoArrays(char[], char[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testFPTwoArrays" signature="([C[C)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="40" end="41" startBytecode="0" endBytecode="92" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testFPTwoArrays(char[], char[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="41" end="41" startBytecode="16" endBytecode="16" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="24515f96ad88e6175ea94a79f5de39e2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(byte[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([B)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="16" end="17" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(byte[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="17" end="17" startBytecode="12" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="233794f2741adcefca1adf657283ef0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(char[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([C)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="12" end="13" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(char[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="13" end="13" startBytecode="12" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="5e051647882f67a03a43d824dede9253" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(double[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([D)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="32" end="33" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(double[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="33" end="33" startBytecode="12" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="de3aced71cfa32034e3f9f8fedeacdae" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(float[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([F)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="28" end="29" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(float[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="29" end="29" startBytecode="12" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="8efd0da1dc57b23bb2151b20b2c031e8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(int[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="8" end="9" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(int[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="9" end="9" startBytecode="12" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="b7d540b8635f3abdb5a54582032ea1eb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(long[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([J)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="24" end="25" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(long[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="25" end="25" startBytecode="12" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="d74847e8aa24d9a0ae9153270fefe6c7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(short[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([S)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="20" end="21" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(short[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="21" end="21" startBytecode="12" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="99412d2e861a0924c82b9f217f9a58e6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(boolean[]) seems to be useless</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="36" end="37" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(boolean[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="37" end="37" startBytecode="12" endBytecode="12" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="7c62840767877fd308443a9308e7048d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(double[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([D)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="32" end="33" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(double[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" start="32" end="33" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java" synthetic="true"> <Message>At CAAL_Sample.java:[lines 32-33]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="807d7b81e31803cd906ed374a6a73edc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(float[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([F)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="28" end="29" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(float[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" start="28" end="29" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java" synthetic="true"> <Message>At CAAL_Sample.java:[lines 28-29]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="1762ef2b6ec5a7547d7656fe017a2ee9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(int[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="8" end="9" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(int[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" start="8" end="9" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java" synthetic="true"> <Message>At CAAL_Sample.java:[lines 8-9]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="2f2b1594e3ccec2d4c1ff323c6d99b75" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(long[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([J)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="24" end="25" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(long[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" start="24" end="25" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java" synthetic="true"> <Message>At CAAL_Sample.java:[lines 24-25]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="f0c1cc06d607e711202759ee7205a77f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(short[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([S)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="20" end="21" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(short[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" start="20" end="21" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java" synthetic="true"> <Message>At CAAL_Sample.java:[lines 20-21]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="dd38d0a0fc3c380e3cb93a8a319694f0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.CAAL_Sample.testCAAL(boolean[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="36" end="37" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(boolean[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" start="36" end="37" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java" synthetic="true"> <Message>At CAAL_Sample.java:[lines 36-37]</Message> </SourceLine> </BugInstance> <BugInstance type="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" priority="1" rank="7" abbrev="VA" category="CORRECTNESS" instanceHash="d9993dcb31c3c2526f9b997ea7230fd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Primitive array passed to function expecting a variable number of object arguments</ShortMessage> <LongMessage>byte[] passed to varargs method java.util.Arrays.asList(Object[]) in ex.CAAL_Sample.testCAAL(byte[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([B)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="16" end="17" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(byte[])</Message> </Method> <Type descriptor="[B" role="TYPE_FOUND"> <Message>Actual type byte[]</Message> </Type> <Method classname="java.util.Arrays" name="asList" signature="([Ljava/lang/Object;)Ljava/util/List;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.util.Arrays" start="3800" end="3800" startBytecode="0" endBytecode="32" sourcefile="Arrays.java" sourcepath="java/util/Arrays.java"/> <Message>Called method java.util.Arrays.asList(Object[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="16" end="16" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" priority="1" rank="7" abbrev="VA" category="CORRECTNESS" instanceHash="e5642fabba8d8ab77a051723e168540b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Primitive array passed to function expecting a variable number of object arguments</ShortMessage> <LongMessage>char[] passed to varargs method java.util.Arrays.asList(Object[]) in ex.CAAL_Sample.testCAAL(char[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([C)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="12" end="13" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(char[])</Message> </Method> <Type descriptor="[C" role="TYPE_FOUND"> <Message>Actual type char[]</Message> </Type> <Method classname="java.util.Arrays" name="asList" signature="([Ljava/lang/Object;)Ljava/util/List;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.util.Arrays" start="3800" end="3800" startBytecode="0" endBytecode="32" sourcefile="Arrays.java" sourcepath="java/util/Arrays.java"/> <Message>Called method java.util.Arrays.asList(Object[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="12" end="12" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" priority="1" rank="7" abbrev="VA" category="CORRECTNESS" instanceHash="afd02de1c3c238313cbaa368e28f6536" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Primitive array passed to function expecting a variable number of object arguments</ShortMessage> <LongMessage>double[] passed to varargs method java.util.Arrays.asList(Object[]) in ex.CAAL_Sample.testCAAL(double[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([D)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="32" end="33" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(double[])</Message> </Method> <Type descriptor="[D" role="TYPE_FOUND"> <Message>Actual type double[]</Message> </Type> <Method classname="java.util.Arrays" name="asList" signature="([Ljava/lang/Object;)Ljava/util/List;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.util.Arrays" start="3800" end="3800" startBytecode="0" endBytecode="32" sourcefile="Arrays.java" sourcepath="java/util/Arrays.java"/> <Message>Called method java.util.Arrays.asList(Object[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="32" end="32" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" priority="1" rank="7" abbrev="VA" category="CORRECTNESS" instanceHash="17193578cc915e1e9796f5b7195a7ff5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Primitive array passed to function expecting a variable number of object arguments</ShortMessage> <LongMessage>float[] passed to varargs method java.util.Arrays.asList(Object[]) in ex.CAAL_Sample.testCAAL(float[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([F)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="28" end="29" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(float[])</Message> </Method> <Type descriptor="[F" role="TYPE_FOUND"> <Message>Actual type float[]</Message> </Type> <Method classname="java.util.Arrays" name="asList" signature="([Ljava/lang/Object;)Ljava/util/List;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.util.Arrays" start="3800" end="3800" startBytecode="0" endBytecode="32" sourcefile="Arrays.java" sourcepath="java/util/Arrays.java"/> <Message>Called method java.util.Arrays.asList(Object[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="28" end="28" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" priority="1" rank="7" abbrev="VA" category="CORRECTNESS" instanceHash="df5433cff3ba68f2f08e9b8266341855" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Primitive array passed to function expecting a variable number of object arguments</ShortMessage> <LongMessage>int[] passed to varargs method java.util.Arrays.asList(Object[]) in ex.CAAL_Sample.testCAAL(int[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="8" end="9" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(int[])</Message> </Method> <Type descriptor="[I" role="TYPE_FOUND"> <Message>Actual type int[]</Message> </Type> <Method classname="java.util.Arrays" name="asList" signature="([Ljava/lang/Object;)Ljava/util/List;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.util.Arrays" start="3800" end="3800" startBytecode="0" endBytecode="32" sourcefile="Arrays.java" sourcepath="java/util/Arrays.java"/> <Message>Called method java.util.Arrays.asList(Object[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="8" end="8" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" priority="1" rank="7" abbrev="VA" category="CORRECTNESS" instanceHash="296f3bf82b7beec5605f9aa26364d07d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Primitive array passed to function expecting a variable number of object arguments</ShortMessage> <LongMessage>long[] passed to varargs method java.util.Arrays.asList(Object[]) in ex.CAAL_Sample.testCAAL(long[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([J)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="24" end="25" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(long[])</Message> </Method> <Type descriptor="[J" role="TYPE_FOUND"> <Message>Actual type long[]</Message> </Type> <Method classname="java.util.Arrays" name="asList" signature="([Ljava/lang/Object;)Ljava/util/List;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.util.Arrays" start="3800" end="3800" startBytecode="0" endBytecode="32" sourcefile="Arrays.java" sourcepath="java/util/Arrays.java"/> <Message>Called method java.util.Arrays.asList(Object[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="24" end="24" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" priority="1" rank="7" abbrev="VA" category="CORRECTNESS" instanceHash="2cefda2edc8e8a460ec19cbd20ead5da" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Primitive array passed to function expecting a variable number of object arguments</ShortMessage> <LongMessage>short[] passed to varargs method java.util.Arrays.asList(Object[]) in ex.CAAL_Sample.testCAAL(short[])</LongMessage> <Class classname="ex.CAAL_Sample" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="5" end="41" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[lines 5-41]</Message> </SourceLine> <Message>In class ex.CAAL_Sample</Message> </Class> <Method classname="ex.CAAL_Sample" name="testCAAL" signature="([S)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAAL_Sample" start="20" end="21" startBytecode="0" endBytecode="78" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"/> <Message>In method ex.CAAL_Sample.testCAAL(short[])</Message> </Method> <Type descriptor="[S" role="TYPE_FOUND"> <Message>Actual type short[]</Message> </Type> <Method classname="java.util.Arrays" name="asList" signature="([Ljava/lang/Object;)Ljava/util/List;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.util.Arrays" start="3800" end="3800" startBytecode="0" endBytecode="32" sourcefile="Arrays.java" sourcepath="java/util/Arrays.java"/> <Message>Called method java.util.Arrays.asList(Object[])</Message> </Method> <SourceLine classname="ex.CAAL_Sample" primary="true" start="20" end="20" startBytecode="8" endBytecode="8" sourcefile="CAAL_Sample.java" sourcepath="ex/CAAL_Sample.java"> <Message>At CAAL_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" rank="7" abbrev="CAO" category="CORRECTNESS" instanceHash="d52164c346f88fb68251970c91001c14" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines methods which confuse Character with int parameters</ShortMessage> <LongMessage>Class ex.CAO_Sample defines methods which confuse Character with int parameters</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <String value="testcd(D)V"> <Message>Value testcd(D)V</Message> </String> <String value="testcd(Ljava/lang/Character;)V"> <Message>Value testcd(Ljava/lang/Character;)V</Message> </String> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> </BugInstance> <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" rank="7" abbrev="CAO" category="CORRECTNESS" instanceHash="5d583dfa8cce8be27a0f229edf921050" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines methods which confuse Character with int parameters</ShortMessage> <LongMessage>Class ex.CAO_Sample defines methods which confuse Character with int parameters</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <String value="testcd(Ljava/lang/Character;)V"> <Message>Value testcd(Ljava/lang/Character;)V</Message> </String> <String value="testcd(D)V"> <Message>Value testcd(D)V</Message> </String> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> </BugInstance> <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" rank="7" abbrev="CAO" category="CORRECTNESS" instanceHash="a6f137309a0d6ce40c5eac86ca2535f1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines methods which confuse Character with int parameters</ShortMessage> <LongMessage>Class ex.CAO_Sample defines methods which confuse Character with int parameters</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <String value="testcf(F)V"> <Message>Value testcf(F)V</Message> </String> <String value="testcf(Ljava/lang/Character;)V"> <Message>Value testcf(Ljava/lang/Character;)V</Message> </String> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> </BugInstance> <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" rank="7" abbrev="CAO" category="CORRECTNESS" instanceHash="1b3a00fd716525b3ebf407aa2250cdb2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines methods which confuse Character with int parameters</ShortMessage> <LongMessage>Class ex.CAO_Sample defines methods which confuse Character with int parameters</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <String value="testcf(Ljava/lang/Character;)V"> <Message>Value testcf(Ljava/lang/Character;)V</Message> </String> <String value="testcf(F)V"> <Message>Value testcf(F)V</Message> </String> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> </BugInstance> <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" rank="7" abbrev="CAO" category="CORRECTNESS" instanceHash="6310beac60e89676bd26255899a282f7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines methods which confuse Character with int parameters</ShortMessage> <LongMessage>Class ex.CAO_Sample defines methods which confuse Character with int parameters</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <String value="testci(I)V"> <Message>Value testci(I)V</Message> </String> <String value="testci(Ljava/lang/Character;)V"> <Message>Value testci(Ljava/lang/Character;)V</Message> </String> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> </BugInstance> <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" rank="7" abbrev="CAO" category="CORRECTNESS" instanceHash="cb84fa72a9cc7d7891d837e73c808bcd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines methods which confuse Character with int parameters</ShortMessage> <LongMessage>Class ex.CAO_Sample defines methods which confuse Character with int parameters</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <String value="testci(Ljava/lang/Character;)V"> <Message>Value testci(Ljava/lang/Character;)V</Message> </String> <String value="testci(I)V"> <Message>Value testci(I)V</Message> </String> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> </BugInstance> <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" rank="7" abbrev="CAO" category="CORRECTNESS" instanceHash="15e4ea5b953f384d2cfafca8125fb786" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines methods which confuse Character with int parameters</ShortMessage> <LongMessage>Class ex.CAO_Sample defines methods which confuse Character with int parameters</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <String value="testcj(J)V"> <Message>Value testcj(J)V</Message> </String> <String value="testcj(Ljava/lang/Character;)V"> <Message>Value testcj(Ljava/lang/Character;)V</Message> </String> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> </BugInstance> <BugInstance type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" priority="2" rank="7" abbrev="CAO" category="CORRECTNESS" instanceHash="2691d9c58875cc54f78b39a5c0d1e367" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines methods which confuse Character with int parameters</ShortMessage> <LongMessage>Class ex.CAO_Sample defines methods which confuse Character with int parameters</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <String value="testcj(Ljava/lang/Character;)V"> <Message>Value testcj(Ljava/lang/Character;)V</Message> </String> <String value="testcj(J)V"> <Message>Value testcj(J)V</Message> </String> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="9c0ca600924aabcb4a9e1b014f41e0f3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.CAO_Sample.testcd(double) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <Method classname="ex.CAO_Sample" name="testcd" signature="(D)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAO_Sample" start="25" end="26" startBytecode="0" endBytecode="64" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"/> <Message>In method ex.CAO_Sample.testcd(double)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.CAO_Sample" start="25" end="26" startBytecode="0" endBytecode="64" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 25-26]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="e75787b3b2c871c901c44a4ca30ebfe8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.CAO_Sample.testcf(float) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <Method classname="ex.CAO_Sample" name="testcf" signature="(F)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAO_Sample" start="33" end="34" startBytecode="0" endBytecode="64" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"/> <Message>In method ex.CAO_Sample.testcf(float)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.CAO_Sample" start="33" end="34" startBytecode="0" endBytecode="64" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 33-34]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="9d2b9f49bcc3f88f4a4863f4e8fea422" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.CAO_Sample.testci(int) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <Method classname="ex.CAO_Sample" name="testci" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAO_Sample" start="9" end="10" startBytecode="0" endBytecode="64" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"/> <Message>In method ex.CAO_Sample.testci(int)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.CAO_Sample" start="9" end="10" startBytecode="0" endBytecode="64" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 9-10]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="57128ad666a2ab118f24e3aded0ad0a9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.CAO_Sample.testcj(long) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.CAO_Sample" primary="true"> <SourceLine classname="ex.CAO_Sample" start="3" end="42" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"> <Message>At CAO_Sample.java:[lines 3-42]</Message> </SourceLine> <Message>In class ex.CAO_Sample</Message> </Class> <Method classname="ex.CAO_Sample" name="testcj" signature="(J)V" isStatic="false" primary="true"> <SourceLine classname="ex.CAO_Sample" start="17" end="18" startBytecode="0" endBytecode="64" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java"/> <Message>In method ex.CAO_Sample.testcj(long)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.CAO_Sample" start="17" end="18" startBytecode="0" endBytecode="64" sourcefile="CAO_Sample.java" sourcepath="ex/CAO_Sample.java" synthetic="true"> <Message>At CAO_Sample.java:[lines 17-18]</Message> </SourceLine> </BugInstance> <BugInstance type="CBC_CONTAINS_BASED_CONDITIONAL" priority="2" rank="17" abbrev="CBC" category="STYLE" instanceHash="f20a9a952495b1f1f586442ab0937f46" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method uses an excessively complex conditional that can be replaced with Set.contains</ShortMessage> <LongMessage>This method ex.CBC_Sample.testCBCEnum(CBC_Sample$Giant) uses an excessively complex conditional that can be replaced with Set.contains</LongMessage> <Class classname="ex.CBC_Sample" primary="true"> <SourceLine classname="ex.CBC_Sample" start="3" end="47" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[lines 3-47]</Message> </SourceLine> <Message>In class ex.CBC_Sample</Message> </Class> <Method classname="ex.CBC_Sample" name="testCBCEnum" signature="(Lex/CBC_Sample$Giant;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CBC_Sample" start="26" end="29" startBytecode="0" endBytecode="118" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"/> <Message>In method ex.CBC_Sample.testCBCEnum(CBC_Sample$Giant)</Message> </Method> <SourceLine classname="ex.CBC_Sample" primary="true" start="26" end="26" startBytecode="0" endBytecode="0" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="CBC_CONTAINS_BASED_CONDITIONAL" priority="3" rank="20" abbrev="CBC" category="STYLE" instanceHash="46035799dc6879f2855ea439c6ae4e62" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method uses an excessively complex conditional that can be replaced with Set.contains</ShortMessage> <LongMessage>This method ex.CBC_Sample.testCBCClass(Class) uses an excessively complex conditional that can be replaced with Set.contains</LongMessage> <Class classname="ex.CBC_Sample" primary="true"> <SourceLine classname="ex.CBC_Sample" start="3" end="47" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[lines 3-47]</Message> </SourceLine> <Message>In class ex.CBC_Sample</Message> </Class> <Method classname="ex.CBC_Sample" name="testCBCClass" signature="(Ljava/lang/Class;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CBC_Sample" start="20" end="23" startBytecode="0" endBytecode="123" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"/> <Message>In method ex.CBC_Sample.testCBCClass(Class)</Message> </Method> <SourceLine classname="ex.CBC_Sample" primary="true" start="20" end="20" startBytecode="0" endBytecode="0" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="CBC_CONTAINS_BASED_CONDITIONAL" priority="3" rank="20" abbrev="CBC" category="STYLE" instanceHash="6a04477fda0643bbd092f385079a1037" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method uses an excessively complex conditional that can be replaced with Set.contains</ShortMessage> <LongMessage>This method ex.CBC_Sample.testCBCInteger(Integer) uses an excessively complex conditional that can be replaced with Set.contains</LongMessage> <Class classname="ex.CBC_Sample" primary="true"> <SourceLine classname="ex.CBC_Sample" start="3" end="47" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[lines 3-47]</Message> </SourceLine> <Message>In class ex.CBC_Sample</Message> </Class> <Method classname="ex.CBC_Sample" name="testCBCInteger" signature="(Ljava/lang/Integer;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CBC_Sample" start="38" end="41" startBytecode="0" endBytecode="108" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"/> <Message>In method ex.CBC_Sample.testCBCInteger(Integer)</Message> </Method> <SourceLine classname="ex.CBC_Sample" primary="true" start="38" end="38" startBytecode="0" endBytecode="0" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="CBC_CONTAINS_BASED_CONDITIONAL" priority="3" rank="20" abbrev="CBC" category="STYLE" instanceHash="d05b45dc6f06496fd64bd5dec452f98e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method uses an excessively complex conditional that can be replaced with Set.contains</ShortMessage> <LongMessage>This method ex.CBC_Sample.testCBCPrimitiveInt(int) uses an excessively complex conditional that can be replaced with Set.contains</LongMessage> <Class classname="ex.CBC_Sample" primary="true"> <SourceLine classname="ex.CBC_Sample" start="3" end="47" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[lines 3-47]</Message> </SourceLine> <Message>In class ex.CBC_Sample</Message> </Class> <Method classname="ex.CBC_Sample" name="testCBCPrimitiveInt" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.CBC_Sample" start="44" end="47" startBytecode="0" endBytecode="93" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"/> <Message>In method ex.CBC_Sample.testCBCPrimitiveInt(int)</Message> </Method> <SourceLine classname="ex.CBC_Sample" primary="true" start="44" end="44" startBytecode="0" endBytecode="0" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[line 44]</Message> </SourceLine> </BugInstance> <BugInstance type="CBC_CONTAINS_BASED_CONDITIONAL" priority="3" rank="20" abbrev="CBC" category="STYLE" instanceHash="e6746a182082e831b85e0f19b653b092" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method uses an excessively complex conditional that can be replaced with Set.contains</ShortMessage> <LongMessage>This method ex.CBC_Sample.testCBCStrings(String) uses an excessively complex conditional that can be replaced with Set.contains</LongMessage> <Class classname="ex.CBC_Sample" primary="true"> <SourceLine classname="ex.CBC_Sample" start="3" end="47" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[lines 3-47]</Message> </SourceLine> <Message>In class ex.CBC_Sample</Message> </Class> <Method classname="ex.CBC_Sample" name="testCBCStrings" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CBC_Sample" start="14" end="17" startBytecode="0" endBytecode="105" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"/> <Message>In method ex.CBC_Sample.testCBCStrings(String)</Message> </Method> <SourceLine classname="ex.CBC_Sample" primary="true" start="14" end="14" startBytecode="0" endBytecode="0" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="e6f8f008cdac8dc3795e91532fe81045" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.CBC_Sample.testCBCStrings(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.CBC_Sample" primary="true"> <SourceLine classname="ex.CBC_Sample" start="3" end="47" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[lines 3-47]</Message> </SourceLine> <Message>In class ex.CBC_Sample</Message> </Class> <Method classname="ex.CBC_Sample" name="testCBCStrings" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CBC_Sample" start="14" end="17" startBytecode="0" endBytecode="105" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"/> <Message>In method ex.CBC_Sample.testCBCStrings(String)</Message> </Method> <SourceLine classname="ex.CBC_Sample" primary="true" start="14" end="14" startBytecode="3" endBytecode="3" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_EQUALS_ON_ENUM" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="589c86a22dbdf8bdf7e117e0e45c4ec7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls equals on an enum instance</ShortMessage> <LongMessage>Method ex.CBC_Sample.testCBCEnum(CBC_Sample$Giant) calls equals on an enum instance</LongMessage> <Class classname="ex.CBC_Sample" primary="true"> <SourceLine classname="ex.CBC_Sample" start="3" end="47" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[lines 3-47]</Message> </SourceLine> <Message>In class ex.CBC_Sample</Message> </Class> <Method classname="ex.CBC_Sample" name="testCBCEnum" signature="(Lex/CBC_Sample$Giant;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CBC_Sample" start="26" end="29" startBytecode="0" endBytecode="118" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"/> <Message>In method ex.CBC_Sample.testCBCEnum(CBC_Sample$Giant)</Message> </Method> <SourceLine classname="ex.CBC_Sample" primary="true" start="26" end="26" startBytecode="4" endBytecode="4" sourcefile="CBC_Sample.java" sourcepath="ex/CBC_Sample.java"> <Message>At CBC_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="b03614d49b24d671b187d3173acc19b8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.CBX_Sample.testBuildXML(int, String) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.CBX_Sample" primary="true"> <SourceLine classname="ex.CBX_Sample" start="2" end="8" sourcefile="CBX_Sample.java" sourcepath="ex/CBX_Sample.java"> <Message>At CBX_Sample.java:[lines 2-8]</Message> </SourceLine> <Message>In class ex.CBX_Sample</Message> </Class> <Method classname="ex.CBX_Sample" name="testBuildXML" signature="(ILjava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CBX_Sample" start="4" end="8" startBytecode="0" endBytecode="149" sourcefile="CBX_Sample.java" sourcepath="ex/CBX_Sample.java"/> <Message>In method ex.CBX_Sample.testBuildXML(int, String)</Message> </Method> <SourceLine classname="ex.CBX_Sample" primary="true" start="4" end="4" startBytecode="7" endBytecode="7" sourcefile="CBX_Sample.java" sourcepath="ex/CBX_Sample.java"> <Message>At CBX_Sample.java:[line 4]</Message> </SourceLine> </BugInstance> <BugInstance type="CCI_CONCURRENT_COLLECTION_ISSUES_USE_PUT_IS_RACY" priority="2" rank="7" abbrev="CCI" category="CORRECTNESS" instanceHash="75caf430b329c3c4c20c3d758ba51916" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method gets and sets a value of a ConcurrentHashMap in a racy manner</ShortMessage> <LongMessage>Method ex.CCI_Sample.update(String, String) gets and sets a value of a ConcurrentHashMap in a racy manner </LongMessage> <Class classname="ex.CCI_Sample" primary="true"> <SourceLine classname="ex.CCI_Sample" start="7" end="21" sourcefile="CCI_Sample.java" sourcepath="ex/CCI_Sample.java"> <Message>At CCI_Sample.java:[lines 7-21]</Message> </SourceLine> <Message>In class ex.CCI_Sample</Message> </Class> <Method classname="ex.CCI_Sample" name="update" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CCI_Sample" start="13" end="21" startBytecode="0" endBytecode="173" sourcefile="CCI_Sample.java" sourcepath="ex/CCI_Sample.java"/> <Message>In method ex.CCI_Sample.update(String, String)</Message> </Method> <SourceLine classname="ex.CCI_Sample" primary="true" start="17" end="17" startBytecode="35" endBytecode="35" sourcefile="CCI_Sample.java" sourcepath="ex/CCI_Sample.java"> <Message>At CCI_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="35d2ec7531081d8627964e73be85e40e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.CCI_Sample does not implement a toString method</LongMessage> <Class classname="ex.CCI_Sample" primary="true"> <SourceLine classname="ex.CCI_Sample" start="7" end="21" sourcefile="CCI_Sample.java" sourcepath="ex/CCI_Sample.java"> <Message>At CCI_Sample.java:[lines 7-21]</Message> </SourceLine> <Message>In class ex.CCI_Sample</Message> </Class> <SourceLine classname="ex.CCI_Sample" start="7" end="21" sourcefile="CCI_Sample.java" sourcepath="ex/CCI_Sample.java" synthetic="true"> <Message>At CCI_Sample.java:[lines 7-21]</Message> </SourceLine> </BugInstance> <BugInstance type="CCNE_COMPARE_CLASS_EQUALS_NAME" priority="2" rank="7" abbrev="CCNE" category="CORRECTNESS" instanceHash="ec038b2c5261cc5073bea7893192fbe1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method compares class name instead of comparing class</ShortMessage> <LongMessage>Method ex.CCNE_Sample.compareClassEquals() compares class name instead of comparing the class</LongMessage> <Class classname="ex.CCNE_Sample" primary="true"> <SourceLine classname="ex.CCNE_Sample" start="2" end="14" sourcefile="CCNE_Sample.java" sourcepath="ex/CCNE_Sample.java"> <Message>At CCNE_Sample.java:[lines 2-14]</Message> </SourceLine> <Message>In class ex.CCNE_Sample</Message> </Class> <Method classname="ex.CCNE_Sample" name="compareClassEquals" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CCNE_Sample" start="4" end="7" startBytecode="0" endBytecode="113" sourcefile="CCNE_Sample.java" sourcepath="ex/CCNE_Sample.java"/> <Message>In method ex.CCNE_Sample.compareClassEquals()</Message> </Method> <SourceLine classname="ex.CCNE_Sample" primary="true" start="6" end="6" startBytecode="33" endBytecode="33" sourcefile="CCNE_Sample.java" sourcepath="ex/CCNE_Sample.java"> <Message>At CCNE_Sample.java:[line 6]</Message> </SourceLine> </BugInstance> <BugInstance type="CEBE_COMMONS_EQUALS_BUILDER_ISEQUALS" priority="1" rank="5" abbrev="CEBE" category="CORRECTNESS" instanceHash="e5e6cceaafae1b62bafd0741c987f95d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns the result of invoking equals() on EqualsBuilder</ShortMessage> <LongMessage>Method ex.CEBE_EqualsToEqualsSample.equals(Object) returns the result of invoking equals() in EqualsBuilder</LongMessage> <Class classname="ex.CEBE_EqualsToEqualsSample" primary="true"> <SourceLine classname="ex.CEBE_EqualsToEqualsSample" start="9" end="28" sourcefile="CEBE_EqualsToEqualsSample.java" sourcepath="ex/CEBE_EqualsToEqualsSample.java"> <Message>At CEBE_EqualsToEqualsSample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.CEBE_EqualsToEqualsSample</Message> </Class> <Method classname="ex.CEBE_EqualsToEqualsSample" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.CEBE_EqualsToEqualsSample" start="21" end="28" startBytecode="0" endBytecode="165" sourcefile="CEBE_EqualsToEqualsSample.java" sourcepath="ex/CEBE_EqualsToEqualsSample.java"/> <Message>In method ex.CEBE_EqualsToEqualsSample.equals(Object)</Message> </Method> <SourceLine classname="ex.CEBE_EqualsToEqualsSample" primary="true" start="28" end="28" startBytecode="61" endBytecode="61" sourcefile="CEBE_EqualsToEqualsSample.java" sourcepath="ex/CEBE_EqualsToEqualsSample.java"> <Message>At CEBE_EqualsToEqualsSample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS" priority="1" rank="14" abbrev="Eq" category="BAD_PRACTICE" instanceHash="d198faa7c108d98d772ae04172d744b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Equals checks for incompatible operand</ShortMessage> <LongMessage>ex.CEBE_EqualsToEqualsSample.equals(Object) checks for operand being a org.apache.commons.lang3.builder.EqualsBuilder </LongMessage> <Class classname="ex.CEBE_EqualsToEqualsSample" primary="true"> <SourceLine classname="ex.CEBE_EqualsToEqualsSample" start="9" end="28" sourcefile="CEBE_EqualsToEqualsSample.java" sourcepath="ex/CEBE_EqualsToEqualsSample.java"> <Message>At CEBE_EqualsToEqualsSample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.CEBE_EqualsToEqualsSample</Message> </Class> <Method classname="ex.CEBE_EqualsToEqualsSample" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.CEBE_EqualsToEqualsSample" start="21" end="28" startBytecode="0" endBytecode="165" sourcefile="CEBE_EqualsToEqualsSample.java" sourcepath="ex/CEBE_EqualsToEqualsSample.java"/> <Message>In method ex.CEBE_EqualsToEqualsSample.equals(Object)</Message> </Method> <Type descriptor="Lorg/apache/commons/lang3/builder/EqualsBuilder;" role="TYPE_FOUND"> <SourceLine classname="org.apache.commons.lang3.builder.EqualsBuilder" start="84" end="953" sourcefile="EqualsBuilder.java" sourcepath="org/apache/commons/lang3/builder/EqualsBuilder.java"> <Message>At EqualsBuilder.java:[lines 84-953]</Message> </SourceLine> <Message>Actual type org.apache.commons.lang3.builder.EqualsBuilder</Message> </Type> <SourceLine classname="ex.CEBE_EqualsToEqualsSample" primary="true" start="28" end="28" startBytecode="61" endBytecode="61" sourcefile="CEBE_EqualsToEqualsSample.java" sourcepath="ex/CEBE_EqualsToEqualsSample.java"> <Message>At CEBE_EqualsToEqualsSample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="e24520896c34d150e453eeaf146dec4f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.CEBE_EqualsToEqualsSample does not implement a toString method</LongMessage> <Class classname="ex.CEBE_EqualsToEqualsSample" primary="true"> <SourceLine classname="ex.CEBE_EqualsToEqualsSample" start="9" end="28" sourcefile="CEBE_EqualsToEqualsSample.java" sourcepath="ex/CEBE_EqualsToEqualsSample.java"> <Message>At CEBE_EqualsToEqualsSample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.CEBE_EqualsToEqualsSample</Message> </Class> <SourceLine classname="ex.CEBE_EqualsToEqualsSample" start="9" end="28" sourcefile="CEBE_EqualsToEqualsSample.java" sourcepath="ex/CEBE_EqualsToEqualsSample.java" synthetic="true"> <Message>At CEBE_EqualsToEqualsSample.java:[lines 9-28]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="7cc2f7c9a398e645d1173421e33bc5c1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.CE_Sample.test2() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.CE_Sample" primary="true"> <SourceLine classname="ex.CE_Sample" start="3" end="17" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"> <Message>At CE_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.CE_Sample</Message> </Class> <Method classname="ex.CE_Sample" name="test2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CE_Sample" start="17" end="17" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"/> <Message>In method ex.CE_Sample.test2()</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.CE_Sample" start="17" end="17" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java" synthetic="true"> <Message>At CE_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="c9ef761051ec222322936f6534adc131" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.CFS_Sample.fpCreateScrollView(CFS_Sample$View, CFS_Sample$View) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.CFS_Sample" primary="true"> <SourceLine classname="ex.CFS_Sample" start="4" end="26" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"> <Message>At CFS_Sample.java:[lines 4-26]</Message> </SourceLine> <Message>In class ex.CFS_Sample</Message> </Class> <Method classname="ex.CFS_Sample" name="fpCreateScrollView" signature="(Lex/CFS_Sample$View;Lex/CFS_Sample$View;)Lex/CFS_Sample$View;" isStatic="false" primary="true"> <SourceLine classname="ex.CFS_Sample" start="20" end="26" startBytecode="0" endBytecode="121" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"/> <Message>In method ex.CFS_Sample.fpCreateScrollView(CFS_Sample$View, CFS_Sample$View)</Message> </Method> <SourceLine classname="ex.CFS_Sample" start="20" end="26" startBytecode="0" endBytecode="121" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java" synthetic="true"> <Message>At CFS_Sample.java:[lines 20-26]</Message> </SourceLine> </BugInstance> <BugInstance type="CFS_CONFUSING_FUNCTION_SEMANTICS" priority="2" rank="17" abbrev="CFS" category="STYLE" instanceHash="b79f1396745fb72307bf7c197031e580" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns modified parameter</ShortMessage> <LongMessage>Method ex.CFS_Sample.getNextDate(Date) returns modified parameter</LongMessage> <Class classname="ex.CFS_Sample" primary="true"> <SourceLine classname="ex.CFS_Sample" start="4" end="26" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"> <Message>At CFS_Sample.java:[lines 4-26]</Message> </SourceLine> <Message>In class ex.CFS_Sample</Message> </Class> <Method classname="ex.CFS_Sample" name="getNextDate" signature="(Ljava/util/Date;)Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.CFS_Sample" start="7" end="8" startBytecode="0" endBytecode="62" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"/> <Message>In method ex.CFS_Sample.getNextDate(Date)</Message> </Method> <SourceLine classname="ex.CFS_Sample" primary="true" start="8" end="8" startBytecode="6" endBytecode="6" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"> <Message>At CFS_Sample.java:[line 8]</Message> </SourceLine> <SourceLine classname="ex.CFS_Sample" start="7" end="7" startBytecode="2" endBytecode="2" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"> <Message>At CFS_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="e1628eaab93289d582188c81a9da6501" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.CFS_Sample$View.createScroller(Object, CFS_Sample$View) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.CFS_Sample$View" primary="true"> <SourceLine classname="ex.CFS_Sample$View" start="29" end="43" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"> <Message>At CFS_Sample.java:[lines 29-43]</Message> </SourceLine> <Message>In class ex.CFS_Sample$View</Message> </Class> <Method classname="ex.CFS_Sample$View" name="createScroller" signature="(Ljava/lang/Object;Lex/CFS_Sample$View;)Lex/CFS_Sample$View;" isStatic="true" primary="true"> <SourceLine classname="ex.CFS_Sample$View" start="32" end="32" startBytecode="0" endBytecode="53" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"/> <Message>In method ex.CFS_Sample$View.createScroller(Object, CFS_Sample$View)</Message> </Method> <SourceLine classname="ex.CFS_Sample$View" start="32" end="32" startBytecode="0" endBytecode="53" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java" synthetic="true"> <Message>At CFS_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="1d46497c380ee5fdd7b84094e925d758" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.CFS_Sample$View.getChild() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.CFS_Sample$View" primary="true"> <SourceLine classname="ex.CFS_Sample$View" start="29" end="43" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"> <Message>At CFS_Sample.java:[lines 29-43]</Message> </SourceLine> <Message>In class ex.CFS_Sample$View</Message> </Class> <Method classname="ex.CFS_Sample$View" name="getChild" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.CFS_Sample$View" start="43" end="43" startBytecode="0" endBytecode="43" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"/> <Message>In method ex.CFS_Sample$View.getChild()</Message> </Method> <SourceLine classname="ex.CFS_Sample$View" start="43" end="43" startBytecode="0" endBytecode="43" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java" synthetic="true"> <Message>At CFS_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="4384f7d8f7c6c67b1fb0938e4b5d2da6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.CFS_Sample$View.createScroller(Object, CFS_Sample$View) has unused parameters</LongMessage> <Class classname="ex.CFS_Sample$View" primary="true"> <SourceLine classname="ex.CFS_Sample$View" start="29" end="43" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"> <Message>At CFS_Sample.java:[lines 29-43]</Message> </SourceLine> <Message>In class ex.CFS_Sample$View</Message> </Class> <Method classname="ex.CFS_Sample$View" name="createScroller" signature="(Ljava/lang/Object;Lex/CFS_Sample$View;)Lex/CFS_Sample$View;" isStatic="true" primary="true"> <SourceLine classname="ex.CFS_Sample$View" start="32" end="32" startBytecode="0" endBytecode="53" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"/> <Message>In method ex.CFS_Sample$View.createScroller(Object, CFS_Sample$View)</Message> </Method> <String value="Parameter 1: child"> <Message>Value Parameter 1: child</Message> </String> <SourceLine classname="ex.CFS_Sample$View" start="32" end="32" startBytecode="0" endBytecode="53" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java" synthetic="true"> <Message>At CFS_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="33677a14debfb32427da779d4da7aa1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.CFS_Sample$View.createScroller(Object, CFS_Sample$View) has unused parameters</LongMessage> <Class classname="ex.CFS_Sample$View" primary="true"> <SourceLine classname="ex.CFS_Sample$View" start="29" end="43" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"> <Message>At CFS_Sample.java:[lines 29-43]</Message> </SourceLine> <Message>In class ex.CFS_Sample$View</Message> </Class> <Method classname="ex.CFS_Sample$View" name="createScroller" signature="(Ljava/lang/Object;Lex/CFS_Sample$View;)Lex/CFS_Sample$View;" isStatic="true" primary="true"> <SourceLine classname="ex.CFS_Sample$View" start="32" end="32" startBytecode="0" endBytecode="53" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java"/> <Message>In method ex.CFS_Sample$View.createScroller(Object, CFS_Sample$View)</Message> </Method> <String value="Parameter 2: content"> <Message>Value Parameter 2: content</Message> </String> <SourceLine classname="ex.CFS_Sample$View" start="32" end="32" startBytecode="0" endBytecode="53" sourcefile="CFS_Sample.java" sourcepath="ex/CFS_Sample.java" synthetic="true"> <Message>At CFS_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="CHTH_COMMONS_HASHCODE_BUILDER_TOHASHCODE" priority="1" rank="5" abbrev="CHTH" category="CORRECTNESS" instanceHash="bf2c680544b7de3082f507340982e767" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns the result of invoking hashCode() on HashCodeBuilder</ShortMessage> <LongMessage>Method ex.CHBH_HashcodeToHashcodeSample.hashCode() returns the result of invoking hashCode() in HashCodeBuilder</LongMessage> <Class classname="ex.CHBH_HashcodeToHashcodeSample" primary="true"> <SourceLine classname="ex.CHBH_HashcodeToHashcodeSample" start="9" end="28" sourcefile="CHBH_HashcodeToHashcodeSample.java" sourcepath="ex/CHBH_HashcodeToHashcodeSample.java"> <Message>At CHBH_HashcodeToHashcodeSample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.CHBH_HashcodeToHashcodeSample</Message> </Class> <Method classname="ex.CHBH_HashcodeToHashcodeSample" name="hashCode" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.CHBH_HashcodeToHashcodeSample" start="16" end="16" startBytecode="0" endBytecode="66" sourcefile="CHBH_HashcodeToHashcodeSample.java" sourcepath="ex/CHBH_HashcodeToHashcodeSample.java"/> <Message>In method ex.CHBH_HashcodeToHashcodeSample.hashCode()</Message> </Method> <SourceLine classname="ex.CHBH_HashcodeToHashcodeSample" primary="true" start="16" end="16" startBytecode="21" endBytecode="21" sourcefile="CHBH_HashcodeToHashcodeSample.java" sourcepath="ex/CHBH_HashcodeToHashcodeSample.java"> <Message>At CHBH_HashcodeToHashcodeSample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="9b077d62c3f079690c45ae440c81a88e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.CHBH_HashcodeToHashcodeSample does not implement a toString method</LongMessage> <Class classname="ex.CHBH_HashcodeToHashcodeSample" primary="true"> <SourceLine classname="ex.CHBH_HashcodeToHashcodeSample" start="9" end="28" sourcefile="CHBH_HashcodeToHashcodeSample.java" sourcepath="ex/CHBH_HashcodeToHashcodeSample.java"> <Message>At CHBH_HashcodeToHashcodeSample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.CHBH_HashcodeToHashcodeSample</Message> </Class> <SourceLine classname="ex.CHBH_HashcodeToHashcodeSample" start="9" end="28" sourcefile="CHBH_HashcodeToHashcodeSample.java" sourcepath="ex/CHBH_HashcodeToHashcodeSample.java" synthetic="true"> <Message>At CHBH_HashcodeToHashcodeSample.java:[lines 9-28]</Message> </SourceLine> </BugInstance> <BugInstance type="CLI_CONSTANT_LIST_INDEX" priority="2" rank="7" abbrev="CLI" category="CORRECTNESS" instanceHash="c359bf88d3c21a77ee1cf720909eb672" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method accesses list or array with constant index</ShortMessage> <LongMessage>Method ex.CLI_Sample.test1(String[]) accesses list or array with constant index</LongMessage> <Class classname="ex.CLI_Sample" primary="true"> <SourceLine classname="ex.CLI_Sample" start="6" end="26" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.CLI_Sample</Message> </Class> <Method classname="ex.CLI_Sample" name="test1" signature="([Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CLI_Sample" start="8" end="11" startBytecode="0" endBytecode="173" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"/> <Message>In method ex.CLI_Sample.test1(String[])</Message> </Method> <SourceLine classname="ex.CLI_Sample" primary="true" start="10" end="10" startBytecode="35" endBytecode="35" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="CLI_CONSTANT_LIST_INDEX" priority="2" rank="7" abbrev="CLI" category="CORRECTNESS" instanceHash="526860fa7f9e7cd94c0bf02528ca030e" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method accesses list or array with constant index</ShortMessage> <LongMessage>Method ex.CLI_Sample.test2(String[]) accesses list or array with constant index</LongMessage> <Class classname="ex.CLI_Sample" primary="true"> <SourceLine classname="ex.CLI_Sample" start="6" end="26" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.CLI_Sample</Message> </Class> <Method classname="ex.CLI_Sample" name="test2" signature="([Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CLI_Sample" start="15" end="18" startBytecode="0" endBytecode="130" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"/> <Message>In method ex.CLI_Sample.test2(String[])</Message> </Method> <SourceLine classname="ex.CLI_Sample" primary="true" start="16" end="16" startBytecode="6" endBytecode="6" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="CLI_CONSTANT_LIST_INDEX" priority="2" rank="7" abbrev="CLI" category="CORRECTNESS" instanceHash="526860fa7f9e7cd94c0bf02528ca030e" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method accesses list or array with constant index</ShortMessage> <LongMessage>Method ex.CLI_Sample.test2(String[]) accesses list or array with constant index</LongMessage> <Class classname="ex.CLI_Sample" primary="true"> <SourceLine classname="ex.CLI_Sample" start="6" end="26" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.CLI_Sample</Message> </Class> <Method classname="ex.CLI_Sample" name="test2" signature="([Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CLI_Sample" start="15" end="18" startBytecode="0" endBytecode="130" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"/> <Message>In method ex.CLI_Sample.test2(String[])</Message> </Method> <SourceLine classname="ex.CLI_Sample" primary="true" start="17" end="17" startBytecode="10" endBytecode="10" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="8925a2e5841b9ec3a2254310c321fbdd" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to element in ex.CLI_Sample.test1(String[])</LongMessage> <Class classname="ex.CLI_Sample" primary="true"> <SourceLine classname="ex.CLI_Sample" start="6" end="26" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.CLI_Sample</Message> </Class> <Method classname="ex.CLI_Sample" name="test1" signature="([Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CLI_Sample" start="8" end="11" startBytecode="0" endBytecode="30" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"/> <Message>In method ex.CLI_Sample.test1(String[])</Message> </Method> <LocalVariable name="element" register="3" pc="22" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named element</Message> </LocalVariable> <SourceLine classname="ex.CLI_Sample" primary="true" start="9" end="9" startBytecode="21" endBytecode="21" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[line 9]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="element"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="SBSC_USE_STRINGBUFFER_CONCATENATION" priority="2" rank="18" abbrev="SBSC" category="PERFORMANCE" instanceHash="58cf8d61e766df99cce8f48195e16570" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method concatenates strings using + in a loop</ShortMessage> <LongMessage>ex.CLI_Sample.test1(String[]) concatenates strings using + in a loop</LongMessage> <Class classname="ex.CLI_Sample" primary="true"> <SourceLine classname="ex.CLI_Sample" start="6" end="26" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.CLI_Sample</Message> </Class> <Method classname="ex.CLI_Sample" name="test1" signature="([Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CLI_Sample" start="8" end="11" startBytecode="0" endBytecode="173" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"/> <Message>In method ex.CLI_Sample.test1(String[])</Message> </Method> <SourceLine classname="ex.CLI_Sample" primary="true" start="10" end="10" startBytecode="22" endBytecode="22" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="c4809a1fbd75026cc7a1b2d3315faf37" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.CLI_Sample.test1(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.CLI_Sample" primary="true"> <SourceLine classname="ex.CLI_Sample" start="6" end="26" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.CLI_Sample</Message> </Class> <Method classname="ex.CLI_Sample" name="test1" signature="([Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CLI_Sample" start="8" end="11" startBytecode="0" endBytecode="173" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"/> <Message>In method ex.CLI_Sample.test1(String[])</Message> </Method> <SourceLine classname="ex.CLI_Sample" start="8" end="11" startBytecode="0" endBytecode="173" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java" synthetic="true"> <Message>At CLI_Sample.java:[lines 8-11]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="af6fe1c81f1f67ddf5c8dc7490ee75ff" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.CLI_Sample.test2(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.CLI_Sample" primary="true"> <SourceLine classname="ex.CLI_Sample" start="6" end="26" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.CLI_Sample</Message> </Class> <Method classname="ex.CLI_Sample" name="test2" signature="([Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CLI_Sample" start="15" end="18" startBytecode="0" endBytecode="130" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"/> <Message>In method ex.CLI_Sample.test2(String[])</Message> </Method> <SourceLine classname="ex.CLI_Sample" start="15" end="18" startBytecode="0" endBytecode="130" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java" synthetic="true"> <Message>At CLI_Sample.java:[lines 15-18]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="de0803b905171d08790787a211d976e5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.CLI_Sample$FPHander.invoke(Object, Method, Object[]) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.CLI_Sample$FPHander" primary="true"> <SourceLine classname="ex.CLI_Sample$FPHander" start="29" end="35" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 29-35]</Message> </SourceLine> <Message>In class ex.CLI_Sample$FPHander</Message> </Class> <Method classname="ex.CLI_Sample$FPHander" name="invoke" signature="(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.CLI_Sample$FPHander" start="31" end="35" startBytecode="0" endBytecode="125" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"/> <Message>In method ex.CLI_Sample$FPHander.invoke(Object, Method, Object[])</Message> </Method> <SourceLine classname="ex.CLI_Sample$FPHander" start="31" end="35" startBytecode="0" endBytecode="125" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java" synthetic="true"> <Message>At CLI_Sample.java:[lines 31-35]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="4c5be9ef81d72b247946ad3ddceae1ab" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.CLI_Sample$FPHander be a _static_ inner class?</LongMessage> <Class classname="ex.CLI_Sample$FPHander" primary="true"> <SourceLine classname="ex.CLI_Sample$FPHander" start="29" end="35" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java"> <Message>At CLI_Sample.java:[lines 29-35]</Message> </SourceLine> <Message>In class ex.CLI_Sample$FPHander</Message> </Class> <SourceLine classname="ex.CLI_Sample$FPHander" start="29" end="35" sourcefile="CLI_Sample.java" sourcepath="ex/CLI_Sample.java" synthetic="true"> <Message>At CLI_Sample.java:[lines 29-35]</Message> </SourceLine> </BugInstance> <BugInstance type="CNC_COLLECTION_NAMING_CONFUSION" priority="2" rank="17" abbrev="CNC" category="STYLE" instanceHash="cd72ba7b27caf9bd6364612f945edb1f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Collection variable is named with a different type of collection in the name</ShortMessage> <LongMessage>Collection variable ex.CNC_Sample.argList is named with a different type of collection in the name</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <Field classname="ex.CNC_Sample" name="argList" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>In CNC_Sample.java</Message> </SourceLine> <Message>Field ex.CNC_Sample.argList</Message> </Field> <String value="argList"> <Message>Value argList</Message> </String> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java" synthetic="true"> <Message>In CNC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="CNC_COLLECTION_NAMING_CONFUSION" priority="2" rank="17" abbrev="CNC" category="STYLE" instanceHash="ba1f26c89a31ba7e79a86fcf8ba8d07a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Collection variable is named with a different type of collection in the name</ShortMessage> <LongMessage>Collection variable ex.CNC_Sample.bernoulliSet is named with a different type of collection in the name</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <Field classname="ex.CNC_Sample" name="bernoulliSet" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>In CNC_Sample.java</Message> </SourceLine> <Message>Field ex.CNC_Sample.bernoulliSet</Message> </Field> <String value="bernoulliSet"> <Message>Value bernoulliSet</Message> </String> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java" synthetic="true"> <Message>In CNC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="CNC_COLLECTION_NAMING_CONFUSION" priority="2" rank="17" abbrev="CNC" category="STYLE" instanceHash="c1c9e022230fe3eec3cb98a1f4655576" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Collection variable is named with a different type of collection in the name</ShortMessage> <LongMessage>Collection variable ex.CNC_Sample.targetMap is named with a different type of collection in the name</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <Field classname="ex.CNC_Sample" name="targetMap" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>In CNC_Sample.java</Message> </SourceLine> <Message>Field ex.CNC_Sample.targetMap</Message> </Field> <String value="targetMap"> <Message>Value targetMap</Message> </String> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java" synthetic="true"> <Message>In CNC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="CNC_COLLECTION_NAMING_CONFUSION" priority="2" rank="17" abbrev="CNC" category="STYLE" instanceHash="42baef9df02a25b8ab4d1af966cde757" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Collection variable is named with a different type of collection in the name</ShortMessage> <LongMessage>Collection variable argSet is named with a different type of collection in the name</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <String value="argSet"> <Message>Value argSet</Message> </String> <SourceLine classname="ex.CNC_Sample" primary="true" start="23" end="23" startBytecode="0" endBytecode="0" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="CNC_COLLECTION_NAMING_CONFUSION" priority="2" rank="17" abbrev="CNC" category="STYLE" instanceHash="547bf7a054d1cdec619de32c6531c12e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Collection variable is named with a different type of collection in the name</ShortMessage> <LongMessage>Collection variable nameList is named with a different type of collection in the name</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <String value="nameList"> <Message>Value nameList</Message> </String> <SourceLine classname="ex.CNC_Sample" primary="true" start="23" end="23" startBytecode="0" endBytecode="0" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="CNC_COLLECTION_NAMING_CONFUSION" priority="2" rank="17" abbrev="CNC" category="STYLE" instanceHash="55abd0ea0b981e66e3748bfacb902149" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Collection variable is named with a different type of collection in the name</ShortMessage> <LongMessage>Collection variable nameMap is named with a different type of collection in the name</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <String value="nameMap"> <Message>Value nameMap</Message> </String> <SourceLine classname="ex.CNC_Sample" primary="true" start="23" end="23" startBytecode="0" endBytecode="0" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="CNC_COLLECTION_NAMING_CONFUSION" priority="2" rank="17" abbrev="CNC" category="STYLE" instanceHash="fb63d72179451b7cb537ae569c382c61" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Collection variable is named with a different type of collection in the name</ShortMessage> <LongMessage>Collection variable newList is named with a different type of collection in the name</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <String value="newList"> <Message>Value newList</Message> </String> <SourceLine classname="ex.CNC_Sample" primary="true" start="32" end="32" startBytecode="21" endBytecode="21" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="b30c257f5d28fda94f21a953c04a9007" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.CNC_Sample does not implement a toString method</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java" synthetic="true"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="14a40281c55f2a4f0a279f4064c71f37" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.CNC_Sample.transferData(List) does not presize the allocation of a collection</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <Method classname="ex.CNC_Sample" name="transferData" signature="(Ljava/util/List;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.CNC_Sample" start="27" end="35" startBytecode="0" endBytecode="216" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"/> <Message>In method ex.CNC_Sample.transferData(List)</Message> </Method> <SourceLine classname="ex.CNC_Sample" primary="true" start="33" end="33" startBytecode="45" endBytecode="45" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="367e49f54dfb3810a3f4a9fdfb97eb51" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.CNC_Sample.mLinkedList</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <Field classname="ex.CNC_Sample" name="mLinkedList" signature="Ljava/util/LinkedList;" isStatic="false" primary="true"> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>In CNC_Sample.java</Message> </SourceLine> <Message>Field ex.CNC_Sample.mLinkedList</Message> </Field> <SourceLine classname="ex.CNC_Sample" primary="true" start="18" end="18" startBytecode="12" endBytecode="12" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="7d5fac6f13a588679db2ba051e6ae3ff" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.CNC_Sample.argList</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <Field classname="ex.CNC_Sample" name="argList" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>In CNC_Sample.java</Message> </SourceLine> <Message>Field ex.CNC_Sample.argList</Message> </Field> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java" synthetic="true"> <Message>In CNC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="f3ce7836af3a630e156703d4fcbfdd1b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.CNC_Sample.bernoulliSet</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <Field classname="ex.CNC_Sample" name="bernoulliSet" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>In CNC_Sample.java</Message> </SourceLine> <Message>Field ex.CNC_Sample.bernoulliSet</Message> </Field> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java" synthetic="true"> <Message>In CNC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="8685c1b2c728c36ece6c97549221cc5c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.CNC_Sample.targetMap</LongMessage> <Class classname="ex.CNC_Sample" primary="true"> <SourceLine classname="ex.CNC_Sample" start="10" end="35" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>At CNC_Sample.java:[lines 10-35]</Message> </SourceLine> <Message>In class ex.CNC_Sample</Message> </Class> <Field classname="ex.CNC_Sample" name="targetMap" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java"> <Message>In CNC_Sample.java</Message> </SourceLine> <Message>Field ex.CNC_Sample.targetMap</Message> </Field> <SourceLine classname="ex.CNC_Sample" sourcefile="CNC_Sample.java" sourcepath="ex/CNC_Sample.java" synthetic="true"> <Message>In CNC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="4b8b9e502c9fdc7ed3b99b7b7147db36" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.COM_Sample.test4(int, double, String, boolean) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.COM_Sample" primary="true"> <SourceLine classname="ex.COM_Sample" start="6" end="28" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 6-28]</Message> </SourceLine> <Message>In class ex.COM_Sample</Message> </Class> <Method classname="ex.COM_Sample" name="test4" signature="(IDLjava/lang/String;Z)Z" isStatic="false" primary="true"> <SourceLine classname="ex.COM_Sample" start="24" end="24" startBytecode="0" endBytecode="84" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"/> <Message>In method ex.COM_Sample.test4(int, double, String, boolean)</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.COM_Sample" start="24" end="24" startBytecode="0" endBytecode="84" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="COM_COPIED_OVERRIDDEN_METHOD" priority="2" rank="17" abbrev="COM" category="STYLE" instanceHash="6cd2c86d15e47f1a7264e560a1e49722" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method is implemented with an exact copy of its superclass's method</ShortMessage> <LongMessage>Method ex.COM_Sample$Derived.test1() is implemented with an exact copy of its superclass's method</LongMessage> <Class classname="ex.COM_Sample$Derived" primary="true"> <SourceLine classname="ex.COM_Sample$Derived" start="30" end="56" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 30-56]</Message> </SourceLine> <Message>In class ex.COM_Sample$Derived</Message> </Class> <Method classname="ex.COM_Sample$Derived" name="test1" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.COM_Sample$Derived" start="33" end="33" startBytecode="0" endBytecode="42" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"/> <Message>In method ex.COM_Sample$Derived.test1()</Message> </Method> <SourceLine classname="ex.COM_Sample$Derived" primary="true" start="33" end="33" startBytecode="1" endBytecode="1" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="COM_COPIED_OVERRIDDEN_METHOD" priority="2" rank="17" abbrev="COM" category="STYLE" instanceHash="bb6130830520c10ceb5c443c5664a8bc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method is implemented with an exact copy of its superclass's method</ShortMessage> <LongMessage>Method ex.COM_Sample$Derived.test2(int) is implemented with an exact copy of its superclass's method</LongMessage> <Class classname="ex.COM_Sample$Derived" primary="true"> <SourceLine classname="ex.COM_Sample$Derived" start="30" end="56" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 30-56]</Message> </SourceLine> <Message>In class ex.COM_Sample$Derived</Message> </Class> <Method classname="ex.COM_Sample$Derived" name="test2" signature="(I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.COM_Sample$Derived" start="46" end="46" startBytecode="0" endBytecode="56" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"/> <Message>In method ex.COM_Sample$Derived.test2(int)</Message> </Method> <SourceLine classname="ex.COM_Sample$Derived" primary="true" start="46" end="46" startBytecode="0" endBytecode="0" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="COM_PARENT_DELEGATED_CALL" priority="2" rank="17" abbrev="COM" category="STYLE" instanceHash="eb15f432c7949ae27ef964f0f2fcf873" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method merely delegates to its superclass's version</ShortMessage> <LongMessage>Method ex.COM_Sample$Derived.test4(int, double, String, boolean) merely delegates to its superclass's version</LongMessage> <Class classname="ex.COM_Sample$Derived" primary="true"> <SourceLine classname="ex.COM_Sample$Derived" start="30" end="56" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 30-56]</Message> </SourceLine> <Message>In class ex.COM_Sample$Derived</Message> </Class> <Method classname="ex.COM_Sample$Derived" name="test4" signature="(IDLjava/lang/String;Z)Z" isStatic="false" primary="true"> <SourceLine classname="ex.COM_Sample$Derived" start="51" end="51" startBytecode="0" endBytecode="92" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"/> <Message>In method ex.COM_Sample$Derived.test4(int, double, String, boolean)</Message> </Method> <SourceLine classname="ex.COM_Sample$Derived" primary="true" start="51" end="51" startBytecode="10" endBytecode="10" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[line 51]</Message> </SourceLine> </BugInstance> <BugInstance type="CRF_CONFLATING_RESOURCES_AND_FILES" priority="2" rank="7" abbrev="CRF" category="CORRECTNESS" instanceHash="58df66948c3037b5ce6747f8cd701e42" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method accesses URL resources using the File API</ShortMessage> <LongMessage>This method ex.CRF_Sample.testFileFromCPURL() accesses URL resources using the File API</LongMessage> <Class classname="ex.CRF_Sample" primary="true"> <SourceLine classname="ex.CRF_Sample" start="7" end="25" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"> <Message>At CRF_Sample.java:[lines 7-25]</Message> </SourceLine> <Message>In class ex.CRF_Sample</Message> </Class> <Method classname="ex.CRF_Sample" name="testFileFromCPURL" signature="()J" isStatic="false" primary="true"> <SourceLine classname="ex.CRF_Sample" start="11" end="13" startBytecode="0" endBytecode="94" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"/> <Message>In method ex.CRF_Sample.testFileFromCPURL()</Message> </Method> <SourceLine classname="ex.CRF_Sample" primary="true" start="12" end="12" startBytecode="16" endBytecode="16" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"> <Message>At CRF_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="CRF_CONFLATING_RESOURCES_AND_FILES" priority="2" rank="7" abbrev="CRF" category="CORRECTNESS" instanceHash="a97e0bc32fa315b5b213588e150325d5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method accesses URL resources using the File API</ShortMessage> <LongMessage>This method ex.CRF_Sample.testFileFromCPURL2() accesses URL resources using the File API</LongMessage> <Class classname="ex.CRF_Sample" primary="true"> <SourceLine classname="ex.CRF_Sample" start="7" end="25" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"> <Message>At CRF_Sample.java:[lines 7-25]</Message> </SourceLine> <Message>In class ex.CRF_Sample</Message> </Class> <Method classname="ex.CRF_Sample" name="testFileFromCPURL2" signature="()J" isStatic="false" primary="true"> <SourceLine classname="ex.CRF_Sample" start="17" end="19" startBytecode="0" endBytecode="94" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"/> <Message>In method ex.CRF_Sample.testFileFromCPURL2()</Message> </Method> <SourceLine classname="ex.CRF_Sample" primary="true" start="18" end="18" startBytecode="16" endBytecode="16" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"> <Message>At CRF_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="CRF_CONFLATING_RESOURCES_AND_FILES" priority="2" rank="7" abbrev="CRF" category="CORRECTNESS" instanceHash="8438fb9a0b47c2a7497abb075d873a95" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method accesses URL resources using the File API</ShortMessage> <LongMessage>This method ex.CRF_Sample.testFileFromCPURL3() accesses URL resources using the File API</LongMessage> <Class classname="ex.CRF_Sample" primary="true"> <SourceLine classname="ex.CRF_Sample" start="7" end="25" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"> <Message>At CRF_Sample.java:[lines 7-25]</Message> </SourceLine> <Message>In class ex.CRF_Sample</Message> </Class> <Method classname="ex.CRF_Sample" name="testFileFromCPURL3" signature="()J" isStatic="false" primary="true"> <SourceLine classname="ex.CRF_Sample" start="23" end="25" startBytecode="0" endBytecode="96" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"/> <Message>In method ex.CRF_Sample.testFileFromCPURL3()</Message> </Method> <SourceLine classname="ex.CRF_Sample" primary="true" start="24" end="24" startBytecode="18" endBytecode="18" sourcefile="CRF_Sample.java" sourcepath="ex/CRF_Sample.java"> <Message>At CRF_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="CSBTS_COMMONS_STRING_BUILDER_TOSTRING" priority="1" rank="5" abbrev="CSBTS" category="CORRECTNESS" instanceHash="ba8852b4300bb96b532a51c5281902db" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method returns the result of invoking toString() without intermediate invocation of append() in ToStringBuilder</ShortMessage> <LongMessage>Method ex.CSBTS_StringToStringSample.main(String[]) returns the result of invoking toString() without intermediate invocation of append() in ToStringBuilder</LongMessage> <Class classname="ex.CSBTS_StringToStringSample" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="4" end="54" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[lines 4-54]</Message> </SourceLine> <Message>In class ex.CSBTS_StringToStringSample</Message> </Class> <Method classname="ex.CSBTS_StringToStringSample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="40" end="54" startBytecode="0" endBytecode="347" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"/> <Message>In method ex.CSBTS_StringToStringSample.main(String[])</Message> </Method> <SourceLine classname="ex.CSBTS_StringToStringSample" primary="true" start="44" end="44" startBytecode="49" endBytecode="49" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[line 44]</Message> </SourceLine> </BugInstance> <BugInstance type="CSBTS_COMMONS_STRING_BUILDER_TOSTRING" priority="1" rank="5" abbrev="CSBTS" category="CORRECTNESS" instanceHash="ba8852b4300bb96b532a51c5281902db" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method returns the result of invoking toString() without intermediate invocation of append() in ToStringBuilder</ShortMessage> <LongMessage>Method ex.CSBTS_StringToStringSample.main(String[]) returns the result of invoking toString() without intermediate invocation of append() in ToStringBuilder</LongMessage> <Class classname="ex.CSBTS_StringToStringSample" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="4" end="54" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[lines 4-54]</Message> </SourceLine> <Message>In class ex.CSBTS_StringToStringSample</Message> </Class> <Method classname="ex.CSBTS_StringToStringSample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="40" end="54" startBytecode="0" endBytecode="347" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"/> <Message>In method ex.CSBTS_StringToStringSample.main(String[])</Message> </Method> <SourceLine classname="ex.CSBTS_StringToStringSample" primary="true" start="53" end="53" startBytecode="213" endBytecode="213" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[line 53]</Message> </SourceLine> </BugInstance> <BugInstance type="ISB_TOSTRING_APPENDING" priority="2" rank="7" abbrev="ISB" category="CORRECTNESS" instanceHash="759962ed3df660ae215c5b1c208503a4" instanceOccurrenceNum="0" instanceOccurrenceMax="3"> <ShortMessage>Method concatenates the result of a toString() call</ShortMessage> <LongMessage>Method ex.CSBTS_StringToStringSample.main(String[]) concatenates the result of a toString() call</LongMessage> <Class classname="ex.CSBTS_StringToStringSample" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="4" end="54" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[lines 4-54]</Message> </SourceLine> <Message>In class ex.CSBTS_StringToStringSample</Message> </Class> <Method classname="ex.CSBTS_StringToStringSample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="40" end="54" startBytecode="0" endBytecode="347" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"/> <Message>In method ex.CSBTS_StringToStringSample.main(String[])</Message> </Method> <SourceLine classname="ex.CSBTS_StringToStringSample" primary="true" start="44" end="44" startBytecode="52" endBytecode="52" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[line 44]</Message> </SourceLine> </BugInstance> <BugInstance type="ISB_TOSTRING_APPENDING" priority="2" rank="7" abbrev="ISB" category="CORRECTNESS" instanceHash="759962ed3df660ae215c5b1c208503a4" instanceOccurrenceNum="1" instanceOccurrenceMax="3"> <ShortMessage>Method concatenates the result of a toString() call</ShortMessage> <LongMessage>Method ex.CSBTS_StringToStringSample.main(String[]) concatenates the result of a toString() call</LongMessage> <Class classname="ex.CSBTS_StringToStringSample" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="4" end="54" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[lines 4-54]</Message> </SourceLine> <Message>In class ex.CSBTS_StringToStringSample</Message> </Class> <Method classname="ex.CSBTS_StringToStringSample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="40" end="54" startBytecode="0" endBytecode="347" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"/> <Message>In method ex.CSBTS_StringToStringSample.main(String[])</Message> </Method> <SourceLine classname="ex.CSBTS_StringToStringSample" primary="true" start="49" end="49" startBytecode="155" endBytecode="155" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="ISB_TOSTRING_APPENDING" priority="2" rank="7" abbrev="ISB" category="CORRECTNESS" instanceHash="759962ed3df660ae215c5b1c208503a4" instanceOccurrenceNum="2" instanceOccurrenceMax="3"> <ShortMessage>Method concatenates the result of a toString() call</ShortMessage> <LongMessage>Method ex.CSBTS_StringToStringSample.main(String[]) concatenates the result of a toString() call</LongMessage> <Class classname="ex.CSBTS_StringToStringSample" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="4" end="54" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[lines 4-54]</Message> </SourceLine> <Message>In class ex.CSBTS_StringToStringSample</Message> </Class> <Method classname="ex.CSBTS_StringToStringSample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="40" end="54" startBytecode="0" endBytecode="347" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"/> <Message>In method ex.CSBTS_StringToStringSample.main(String[])</Message> </Method> <SourceLine classname="ex.CSBTS_StringToStringSample" primary="true" start="52" end="52" startBytecode="191" endBytecode="191" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[line 52]</Message> </SourceLine> </BugInstance> <BugInstance type="ISB_TOSTRING_APPENDING" priority="2" rank="7" abbrev="ISB" category="CORRECTNESS" instanceHash="759962ed3df660ae215c5b1c208503a4" instanceOccurrenceNum="3" instanceOccurrenceMax="3"> <ShortMessage>Method concatenates the result of a toString() call</ShortMessage> <LongMessage>Method ex.CSBTS_StringToStringSample.main(String[]) concatenates the result of a toString() call</LongMessage> <Class classname="ex.CSBTS_StringToStringSample" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="4" end="54" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[lines 4-54]</Message> </SourceLine> <Message>In class ex.CSBTS_StringToStringSample</Message> </Class> <Method classname="ex.CSBTS_StringToStringSample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.CSBTS_StringToStringSample" start="40" end="54" startBytecode="0" endBytecode="347" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"/> <Message>In method ex.CSBTS_StringToStringSample.main(String[])</Message> </Method> <SourceLine classname="ex.CSBTS_StringToStringSample" primary="true" start="53" end="53" startBytecode="216" endBytecode="216" sourcefile="CSBTS_StringToStringSample.java" sourcepath="ex/CSBTS_StringToStringSample.java"> <Message>At CSBTS_StringToStringSample.java:[line 53]</Message> </SourceLine> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_UNKNOWN_ENCODING" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="1feedfb7edb3bfc30ca4ef79ea84cd50" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method uses an unknown character encoding literal</ShortMessage> <LongMessage>This method java.net.URLEncoder.encode(String, String) uses an unknown character encoding literal "FOO"</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUnknownEncoding" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="46" end="46" startBytecode="0" endBytecode="58" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUnknownEncoding(String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="46" end="46" startBytecode="3" endBytecode="3" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 46]</Message> </SourceLine> <Method classname="java.net.URLEncoder" name="encode" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.net.URLEncoder" start="203" end="290" startBytecode="0" endBytecode="696" sourcefile="URLEncoder.java" sourcepath="java/net/URLEncoder.java"/> <Message>Called method java.net.URLEncoder.encode(String, String)</Message> </Method> <String value="FOO"> <Message>Value FOO</Message> </String> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="18e5e236c09ed5059144b175fdf98b4f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "new java.io.InputStreamReader(InputStream, String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: new java.io.InputStreamReader(InputStream, Charset)</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testLowerCaseEncoding" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="50" end="55" startBytecode="0" endBytecode="258" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testLowerCaseEncoding(String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="50" end="50" startBytecode="18" endBytecode="18" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 50]</Message> </SourceLine> <Method classname="java.io.InputStreamReader" name="<init>" signature="(Ljava/io/InputStream;Ljava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.InputStreamReader" start="97" end="101" startBytecode="0" endBytecode="93" sourcefile="InputStreamReader.java" sourcepath="java/io/InputStreamReader.java"/> <Message>Called method new java.io.InputStreamReader(InputStream, String)</Message> </Method> <Method classname="java.io.InputStreamReader" name="<init>" signature="(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.InputStreamReader" start="113" end="117" startBytecode="0" endBytecode="93" sourcefile="InputStreamReader.java" sourcepath="java/io/InputStreamReader.java"/> <Message>Called method new java.io.InputStreamReader(InputStream, Charset)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="932982edb0a3eb7f0427351210d51c6b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "new java.io.InputStreamReader(InputStream, String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: new java.io.InputStreamReader(InputStream, Charset)</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testReaderCS" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="25" end="42" startBytecode="0" endBytecode="335" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testReaderCS(String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="25" end="25" startBytecode="18" endBytecode="18" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 25]</Message> </SourceLine> <Method classname="java.io.InputStreamReader" name="<init>" signature="(Ljava/io/InputStream;Ljava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.InputStreamReader" start="97" end="101" startBytecode="0" endBytecode="93" sourcefile="InputStreamReader.java" sourcepath="java/io/InputStreamReader.java"/> <Message>Called method new java.io.InputStreamReader(InputStream, String)</Message> </Method> <Method classname="java.io.InputStreamReader" name="<init>" signature="(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.InputStreamReader" start="113" end="117" startBytecode="0" endBytecode="93" sourcefile="InputStreamReader.java" sourcepath="java/io/InputStreamReader.java"/> <Message>Called method new java.io.InputStreamReader(InputStream, Charset)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="a26089193bb5768ab0dd0bb8a9bdc71a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "String.getBytes(String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: String.getBytes(Charset)</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testReaderCS" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="25" end="42" startBytecode="0" endBytecode="335" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testReaderCS(String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="32" end="32" startBytecode="91" endBytecode="91" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 32]</Message> </SourceLine> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/lang/String;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="917" end="918" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(String)</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/nio/charset/Charset;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="940" end="941" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(Charset)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="86733b1ab096afdc2d6ac1585004c8f0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "new String(byte[], String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: new String(byte[], Charset)</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testReaderCS" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="25" end="42" startBytecode="0" endBytecode="335" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testReaderCS(String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="35" end="35" startBytecode="102" endBytecode="102" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 35]</Message> </SourceLine> <Method classname="java.lang.String" name="<init>" signature="([BLjava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="491" end="492" startBytecode="0" endBytecode="37" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method new String(byte[], String)</Message> </Method> <Method classname="java.lang.String" name="<init>" signature="([BLjava/nio/charset/Charset;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="515" end="516" startBytecode="0" endBytecode="37" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method new String(byte[], Charset)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="3b2e2c9adc68d2cd54bf22bfdb9b5f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "new String(byte[], int, int, String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: new String(byte[], int, int, Charset)</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testReaderCS" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="25" end="42" startBytecode="0" endBytecode="335" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testReaderCS(String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="41" end="41" startBytecode="124" endBytecode="124" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 41]</Message> </SourceLine> <Method classname="java.lang.String" name="<init>" signature="([BIILjava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="422" end="427" startBytecode="0" endBytecode="107" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method new String(byte[], int, int, String)</Message> </Method> <Method classname="java.lang.String" name="<init>" signature="([BIILjava/nio/charset/Charset;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="459" end="464" startBytecode="0" endBytecode="107" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method new String(byte[], int, int, Charset)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="3211b8aec01c99c6e9141244ec77040a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortMessage> <LongMessage>This method new java.io.PrintWriter(File, String) should use a StandardCharsets.XXX.name() to specify an encoding</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="60" end="60" startBytecode="11" endBytecode="11" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 60]</Message> </SourceLine> <Method classname="java.io.PrintWriter" name="<init>" signature="(Ljava/io/File;Ljava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.PrintWriter" start="303" end="304" startBytecode="0" endBytecode="37" sourcefile="PrintWriter.java" sourcepath="java/io/PrintWriter.java"/> <Message>Called method new java.io.PrintWriter(File, String)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="2e250e75236ed58b1e066d8b382dfe60" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortMessage> <LongMessage>This method new java.util.Scanner(File, String) should use a StandardCharsets.XXX.name() to specify an encoding</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="64" end="64" startBytecode="82" endBytecode="82" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 64]</Message> </SourceLine> <Method classname="java.util.Scanner" name="<init>" signature="(Ljava/io/File;Ljava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Scanner" start="629" end="630" startBytecode="0" endBytecode="43" sourcefile="Scanner.java" sourcepath="java/util/Scanner.java"/> <Message>Called method new java.util.Scanner(File, String)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="5643635066dfe1e1c00927ec5af1e5db" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortMessage> <LongMessage>This method new java.util.Scanner(InputStream, String) should use a StandardCharsets.XXX.name() to specify an encoding</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="70" end="70" startBytecode="168" endBytecode="168" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 70]</Message> </SourceLine> <Method classname="java.util.Scanner" name="<init>" signature="(Ljava/io/InputStream;Ljava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Scanner" start="578" end="580" startBytecode="0" endBytecode="51" sourcefile="Scanner.java" sourcepath="java/util/Scanner.java"/> <Message>Called method new java.util.Scanner(InputStream, String)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="254a054e370f39c2b419c6a223266b3c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortMessage> <LongMessage>This method new java.beans.XMLEncoder(OutputStream, String, boolean, int) should use a StandardCharsets.XXX.name() to specify an encoding</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="75" end="75" startBytecode="190" endBytecode="190" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 75]</Message> </SourceLine> <Method classname="java.beans.XMLEncoder" name="<init>" signature="(Ljava/io/OutputStream;Ljava/lang/String;ZI)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.beans.XMLEncoder" start="277" end="293" startBytecode="0" endBytecode="248" sourcefile="XMLEncoder.java" sourcepath="java/beans/XMLEncoder.java"/> <Message>Called method new java.beans.XMLEncoder(OutputStream, String, boolean, int)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="2151d10f3c2a3e937f0eb4d4a66da175" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortMessage> <LongMessage>This method java.util.logging.MemoryHandler.setEncoding(String) should use a StandardCharsets.XXX.name() to specify an encoding</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="78" end="78" startBytecode="207" endBytecode="207" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 78]</Message> </SourceLine> <Method classname="java.util.logging.MemoryHandler" name="setEncoding" signature="(Ljava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.logging.MemoryHandler" sourcefile="MemoryHandler.java" sourcepath="java/util/logging/MemoryHandler.java"/> <Message>Called method java.util.logging.MemoryHandler.setEncoding(String)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="18c6449c8bae4ee96777371d91766ec" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortMessage> <LongMessage>This method java.util.logging.StreamHandler.setEncoding(String) should use a StandardCharsets.XXX.name() to specify an encoding</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="80" end="80" startBytecode="219" endBytecode="219" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 80]</Message> </SourceLine> <Method classname="java.util.logging.StreamHandler" name="setEncoding" signature="(Ljava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.logging.StreamHandler" start="174" end="185" startBytecode="0" endBytecode="118" sourcefile="StreamHandler.java" sourcepath="java/util/logging/StreamHandler.java"/> <Message>Called method java.util.logging.StreamHandler.setEncoding(String)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="db605b59e402e4b03ac3e1dd6a4944c7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortMessage> <LongMessage>This method java.nio.channels.Channels.newReader(ReadableByteChannel, String) should use a StandardCharsets.XXX.name() to specify an encoding</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="82" end="82" startBytecode="225" endBytecode="225" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 82]</Message> </SourceLine> <Method classname="java.nio.channels.Channels" name="newReader" signature="(Ljava/nio/channels/ReadableByteChannel;Ljava/lang/String;)Ljava/io/Reader;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.nio.channels.Channels" start="543" end="544" startBytecode="0" endBytecode="46" sourcefile="Channels.java" sourcepath="java/nio/channels/Channels.java"/> <Message>Called method java.nio.channels.Channels.newReader(ReadableByteChannel, String)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="7d49537ee6454f22e04deb45a7ce0b63" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortMessage> <LongMessage>This method java.nio.channels.Channels.newWriter(WritableByteChannel, String) should use a StandardCharsets.XXX.name() to specify an encoding</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="84" end="84" startBytecode="232" endBytecode="232" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 84]</Message> </SourceLine> <Method classname="java.nio.channels.Channels" name="newWriter" signature="(Ljava/nio/channels/WritableByteChannel;Ljava/lang/String;)Ljava/io/Writer;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.nio.channels.Channels" start="612" end="613" startBytecode="0" endBytecode="46" sourcefile="Channels.java" sourcepath="java/nio/channels/Channels.java"/> <Message>Called method java.nio.channels.Channels.newWriter(WritableByteChannel, String)</Message> </Method> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="26a72c8dedeb8ea2ceef6c9eddbaf9f4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.CSI_Sample does not implement a toString method</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java" synthetic="true"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="a71232002bed1f4d02505ebd66dcf8e4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.CSI_Sample.testLowerCaseEncoding(String) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testLowerCaseEncoding" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="50" end="55" startBytecode="0" endBytecode="258" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testLowerCaseEncoding(String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="50" end="50" startBytecode="13" endBytecode="13" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="e82eb4e0a9b806d8c20bea02937dcba5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.CSI_Sample.testReaderCS(String) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testReaderCS" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="25" end="42" startBytecode="0" endBytecode="335" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testReaderCS(String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="25" end="25" startBytecode="13" endBytecode="13" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="2731c96f5524ed00272a8b872df57fe3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.CSI_Sample.testUseConstants(File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="70" end="70" startBytecode="163" endBytecode="163" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 70]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_NULL_PARAM_DEREF_NONVIRTUAL" priority="1" rank="6" abbrev="NP" category="CORRECTNESS" instanceHash="ea12b83d85f4efc7f3020c285c2228a5" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Non-virtual method call passes null for non-null parameter</ShortMessage> <LongMessage>Non-virtual method call in ex.CSI_Sample.testUseConstants(File) passes null for non-null parameter of java.nio.channels.Channels.newReader(ReadableByteChannel, String)</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testUseConstants" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="60" end="85" startBytecode="0" endBytecode="493" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testUseConstants(File)</Message> </Method> <Method classname="java.nio.channels.Channels" name="newReader" signature="(Ljava/nio/channels/ReadableByteChannel;Ljava/lang/String;)Ljava/io/Reader;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.nio.channels.Channels" start="543" end="544" startBytecode="0" endBytecode="46" sourcefile="Channels.java" sourcepath="java/nio/channels/Channels.java"/> <Message>Called method java.nio.channels.Channels.newReader(ReadableByteChannel, String)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="82" end="82" startBytecode="225" endBytecode="225" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 82]</Message> </SourceLine> <Int value="1" role="INT_NULL_ARG"> <Message>Argument 1 is definitely null but must not be null</Message> </Int> <Property name="edu.umd.cs.findbugs.detect.NullArgumentWarningProperty.ACTUAL_PARAMETER_GUARANTEED_NULL" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullArgumentWarningProperty.ALL_DANGEROUS_TARGETS" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullArgumentWarningProperty.ARG_DEFINITELY_NULL" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullArgumentWarningProperty.MONOMORPHIC_CALL_SITE" value="true"/> </BugInstance> <BugInstance type="RR_NOT_CHECKED" priority="2" rank="16" abbrev="RR" category="BAD_PRACTICE" instanceHash="3484bb4049012409bf4874d07a60cd0a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores results of InputStream.read()</ShortMessage> <LongMessage>ex.CSI_Sample.testLowerCaseEncoding(String) ignores result of java.io.Reader.read(char[])</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testLowerCaseEncoding" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="50" end="55" startBytecode="0" endBytecode="258" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testLowerCaseEncoding(String)</Message> </Method> <Method classname="java.io.Reader" name="read" signature="([C)I" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.Reader" start="140" end="140" startBytecode="0" endBytecode="32" sourcefile="Reader.java" sourcepath="java/io/Reader.java"/> <Message>Called method java.io.Reader.read(char[])</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="52" end="52" startBytecode="34" endBytecode="34" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 52]</Message> </SourceLine> </BugInstance> <BugInstance type="RR_NOT_CHECKED" priority="2" rank="16" abbrev="RR" category="BAD_PRACTICE" instanceHash="1722accefd90d37adf9d0d14e950afd5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores results of InputStream.read()</ShortMessage> <LongMessage>ex.CSI_Sample.testReaderCS(String) ignores result of java.io.Reader.read(char[])</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testReaderCS" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="25" end="42" startBytecode="0" endBytecode="335" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testReaderCS(String)</Message> </Method> <Method classname="java.io.Reader" name="read" signature="([C)I" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.Reader" start="140" end="140" startBytecode="0" endBytecode="32" sourcefile="Reader.java" sourcepath="java/io/Reader.java"/> <Message>Called method java.io.Reader.read(char[])</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="27" end="27" startBytecode="34" endBytecode="34" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED" priority="3" rank="8" abbrev="RV" category="CORRECTNESS" instanceHash="dcc9a8a6a106755660cf50ae2a5c9626" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Method ignores return value</ShortMessage> <LongMessage>Return value of String.getBytes(Charset) ignored in ex.CSI_Sample.testReaderCS(String)</LongMessage> <Class classname="ex.CSI_Sample" primary="true"> <SourceLine classname="ex.CSI_Sample" start="18" end="85" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[lines 18-85]</Message> </SourceLine> <Message>In class ex.CSI_Sample</Message> </Class> <Method classname="ex.CSI_Sample" name="testReaderCS" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.CSI_Sample" start="25" end="42" startBytecode="0" endBytecode="335" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"/> <Message>In method ex.CSI_Sample.testReaderCS(String)</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/nio/charset/Charset;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="940" end="941" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(Charset)</Message> </Method> <SourceLine classname="ex.CSI_Sample" primary="true" start="38" end="38" startBytecode="110" endBytecode="110" sourcefile="CSI_Sample.java" sourcepath="ex/CSI_Sample.java"> <Message>At CSI_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="CTU_CONFLICTING_TIME_UNITS" priority="2" rank="7" abbrev="CTU" category="CORRECTNESS" instanceHash="916e5f783f5e472596a8d781894c2a6e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method performs arithmetic operations on time values with different units</ShortMessage> <LongMessage>This method ex.CTU_Sample.badUseOfConvert() performs arithmetic operations on time values with different units</LongMessage> <Class classname="ex.CTU_Sample" primary="true"> <SourceLine classname="ex.CTU_Sample" start="4" end="24" sourcefile="CTU_Sample.java" sourcepath="ex/CTU_Sample.java"> <Message>At CTU_Sample.java:[lines 4-24]</Message> </SourceLine> <Message>In class ex.CTU_Sample</Message> </Class> <Method classname="ex.CTU_Sample" name="badUseOfConvert" signature="()J" isStatic="false" primary="true"> <SourceLine classname="ex.CTU_Sample" start="14" end="17" startBytecode="0" endBytecode="90" sourcefile="CTU_Sample.java" sourcepath="ex/CTU_Sample.java"/> <Message>In method ex.CTU_Sample.badUseOfConvert()</Message> </Method> <SourceLine classname="ex.CTU_Sample" primary="true" start="17" end="17" startBytecode="19" endBytecode="19" sourcefile="CTU_Sample.java" sourcepath="ex/CTU_Sample.java"> <Message>At CTU_Sample.java:[line 17]</Message> </SourceLine> <String value="MILLIS"> <Message>Value MILLIS</Message> </String> <String value="SECONDS"> <Message>Value SECONDS</Message> </String> </BugInstance> <BugInstance type="CTU_CONFLICTING_TIME_UNITS" priority="2" rank="7" abbrev="CTU" category="CORRECTNESS" instanceHash="8af6175f3846d58ee6d8ac4635f154f8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method performs arithmetic operations on time values with different units</ShortMessage> <LongMessage>This method ex.CTU_Sample.simpleMillisAndNanos() performs arithmetic operations on time values with different units</LongMessage> <Class classname="ex.CTU_Sample" primary="true"> <SourceLine classname="ex.CTU_Sample" start="4" end="24" sourcefile="CTU_Sample.java" sourcepath="ex/CTU_Sample.java"> <Message>At CTU_Sample.java:[lines 4-24]</Message> </SourceLine> <Message>In class ex.CTU_Sample</Message> </Class> <Method classname="ex.CTU_Sample" name="simpleMillisAndNanos" signature="()J" isStatic="false" primary="true"> <SourceLine classname="ex.CTU_Sample" start="7" end="10" startBytecode="0" endBytecode="81" sourcefile="CTU_Sample.java" sourcepath="ex/CTU_Sample.java"/> <Message>In method ex.CTU_Sample.simpleMillisAndNanos()</Message> </Method> <SourceLine classname="ex.CTU_Sample" primary="true" start="10" end="10" startBytecode="10" endBytecode="10" sourcefile="CTU_Sample.java" sourcepath="ex/CTU_Sample.java"> <Message>At CTU_Sample.java:[line 10]</Message> </SourceLine> <String value="NANOS"> <Message>Value NANOS</Message> </String> <String value="MILLIS"> <Message>Value MILLIS</Message> </String> </BugInstance> <BugInstance type="CU_CLONE_USABILITY_OBJECT_RETURN" priority="2" rank="17" abbrev="CU" category="STYLE" instanceHash="b4f13d509919604254255b300e2d2b16" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Clone method declares it returns an Object</ShortMessage> <LongMessage>Clone method ex.CU_Sample.clone() declares it returns an Object</LongMessage> <Class classname="ex.CU_Sample" primary="true"> <SourceLine classname="ex.CU_Sample" start="2" end="6" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 2-6]</Message> </SourceLine> <Message>In class ex.CU_Sample</Message> </Class> <Method classname="ex.CU_Sample" name="clone" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.CU_Sample" start="6" end="6" startBytecode="0" endBytecode="46" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"/> <Message>In method ex.CU_Sample.clone()</Message> </Method> <SourceLine classname="ex.CU_Sample" start="6" end="6" startBytecode="0" endBytecode="46" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java" synthetic="true"> <Message>At CU_Sample.java:[line 6]</Message> </SourceLine> </BugInstance> <BugInstance type="CU_CLONE_USABILITY_THROWS" priority="2" rank="17" abbrev="CU" category="STYLE" instanceHash="25fc081d292aac9610856f60619337e7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Clone method declares it throws CloneNotSupportedException</ShortMessage> <LongMessage>Clone method ex.CU_Sample.clone() declares it throws CloneNotSupportedException</LongMessage> <Class classname="ex.CU_Sample" primary="true"> <SourceLine classname="ex.CU_Sample" start="2" end="6" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 2-6]</Message> </SourceLine> <Message>In class ex.CU_Sample</Message> </Class> <Method classname="ex.CU_Sample" name="clone" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.CU_Sample" start="6" end="6" startBytecode="0" endBytecode="46" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"/> <Message>In method ex.CU_Sample.clone()</Message> </Method> <SourceLine classname="ex.CU_Sample" start="6" end="6" startBytecode="0" endBytecode="46" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java" synthetic="true"> <Message>At CU_Sample.java:[line 6]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="3715ddcf09674653888a687ce3039c25" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.CU_Sample$CU_FP.clone() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.CU_Sample$CU_FP" primary="true"> <SourceLine classname="ex.CU_Sample$CU_FP" start="1" end="15" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-15]</Message> </SourceLine> <Message>In class ex.CU_Sample$CU_FP</Message> </Class> <Method classname="ex.CU_Sample$CU_FP" name="clone" signature="()Lex/CU_Sample$CU_FP;" isStatic="false" primary="true"> <SourceLine classname="ex.CU_Sample$CU_FP" start="13" end="15" startBytecode="0" endBytecode="98" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"/> <Message>In method ex.CU_Sample$CU_FP.clone()</Message> </Method> <SourceLine classname="ex.CU_Sample$CU_FP" primary="true" start="15" end="15" startBytecode="18" endBytecode="18" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="514781b630396f969608d57c956bf5a1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.CU_Sample$CU_FP be a _static_ inner class?</LongMessage> <Class classname="ex.CU_Sample$CU_FP" primary="true"> <SourceLine classname="ex.CU_Sample$CU_FP" start="1" end="15" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-15]</Message> </SourceLine> <Message>In class ex.CU_Sample$CU_FP</Message> </Class> <SourceLine classname="ex.CU_Sample$CU_FP" start="1" end="15" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java" synthetic="true"> <Message>At CU_Sample.java:[lines 1-15]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="2db44061640bd4808f4c517394cc52b4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.CU_Sample$FPActuallyThrow be a _static_ inner class?</LongMessage> <Class classname="ex.CU_Sample$FPActuallyThrow" primary="true"> <SourceLine classname="ex.CU_Sample$FPActuallyThrow" start="1" end="49" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.CU_Sample$FPActuallyThrow</Message> </Class> <SourceLine classname="ex.CU_Sample$FPActuallyThrow" start="1" end="49" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java" synthetic="true"> <Message>At CU_Sample.java:[lines 1-49]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="5d2d06851afba680558bbf4276001d28" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.CU_Sample$FPActuallyThrow.clone() throws exception with static message string</LongMessage> <Class classname="ex.CU_Sample$FPActuallyThrow" primary="true"> <SourceLine classname="ex.CU_Sample$FPActuallyThrow" start="1" end="49" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.CU_Sample$FPActuallyThrow</Message> </Class> <Method classname="ex.CU_Sample$FPActuallyThrow" name="clone" signature="()Lex/CU_Sample$FPActuallyThrow;" isStatic="false" primary="true"> <SourceLine classname="ex.CU_Sample$FPActuallyThrow" start="49" end="49" startBytecode="0" endBytecode="51" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"/> <Message>In method ex.CU_Sample$FPActuallyThrow.clone()</Message> </Method> <SourceLine classname="ex.CU_Sample$FPActuallyThrow" primary="true" start="49" end="49" startBytecode="9" endBytecode="9" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="684840f8a2543236ef2c1e2657b1645f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.CU_Sample$FPCloneInterface.clone() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.CU_Sample$FPCloneInterface" primary="true"> <SourceLine classname="ex.CU_Sample$FPCloneInterface" start="1" end="43" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-43]</Message> </SourceLine> <Message>In class ex.CU_Sample$FPCloneInterface</Message> </Class> <Method classname="ex.CU_Sample$FPCloneInterface" name="clone" signature="()Ljava/lang/Runnable;" isStatic="false" primary="true"> <SourceLine classname="ex.CU_Sample$FPCloneInterface" start="35" end="37" startBytecode="0" endBytecode="98" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"/> <Message>In method ex.CU_Sample$FPCloneInterface.clone()</Message> </Method> <SourceLine classname="ex.CU_Sample$FPCloneInterface" primary="true" start="37" end="37" startBytecode="18" endBytecode="18" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="4edddf771e5505f78d70d3dea037cbb7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.CU_Sample$FPCloneInterface be a _static_ inner class?</LongMessage> <Class classname="ex.CU_Sample$FPCloneInterface" primary="true"> <SourceLine classname="ex.CU_Sample$FPCloneInterface" start="1" end="43" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-43]</Message> </SourceLine> <Message>In class ex.CU_Sample$FPCloneInterface</Message> </Class> <SourceLine classname="ex.CU_Sample$FPCloneInterface" start="1" end="43" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java" synthetic="true"> <Message>At CU_Sample.java:[lines 1-43]</Message> </SourceLine> </BugInstance> <BugInstance type="CU_CLONE_USABILITY_MISMATCHED_RETURN" priority="1" rank="15" abbrev="CU" category="STYLE" instanceHash="e3f1b77a43fe00625c1b03b9fdca8fa3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Clone method declares it returns a type different than the owning class</ShortMessage> <LongMessage>Clone method ex.CU_Sample$Unrelated.clone() declares it returns a type different than the owning class</LongMessage> <Class classname="ex.CU_Sample$Unrelated" primary="true"> <SourceLine classname="ex.CU_Sample$Unrelated" start="1" end="26" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-26]</Message> </SourceLine> <Message>In class ex.CU_Sample$Unrelated</Message> </Class> <Method classname="ex.CU_Sample$Unrelated" name="clone" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CU_Sample$Unrelated" start="24" end="26" startBytecode="0" endBytecode="98" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"/> <Message>In method ex.CU_Sample$Unrelated.clone()</Message> </Method> <SourceLine classname="ex.CU_Sample$Unrelated" start="24" end="26" startBytecode="0" endBytecode="98" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java" synthetic="true"> <Message>At CU_Sample.java:[lines 24-26]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="b213af0e7e2d458d42f565879ad34e4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.CU_Sample$Unrelated.clone() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.CU_Sample$Unrelated" primary="true"> <SourceLine classname="ex.CU_Sample$Unrelated" start="1" end="26" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-26]</Message> </SourceLine> <Message>In class ex.CU_Sample$Unrelated</Message> </Class> <Method classname="ex.CU_Sample$Unrelated" name="clone" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.CU_Sample$Unrelated" start="24" end="26" startBytecode="0" endBytecode="98" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"/> <Message>In method ex.CU_Sample$Unrelated.clone()</Message> </Method> <SourceLine classname="ex.CU_Sample$Unrelated" primary="true" start="26" end="26" startBytecode="18" endBytecode="18" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="5bef95bc7aad9311ee67dfeb6791d953" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.CU_Sample$Unrelated be a _static_ inner class?</LongMessage> <Class classname="ex.CU_Sample$Unrelated" primary="true"> <SourceLine classname="ex.CU_Sample$Unrelated" start="1" end="26" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java"> <Message>At CU_Sample.java:[lines 1-26]</Message> </SourceLine> <Message>In class ex.CU_Sample$Unrelated</Message> </Class> <SourceLine classname="ex.CU_Sample$Unrelated" start="1" end="26" sourcefile="CU_Sample.java" sourcepath="ex/CU_Sample.java" synthetic="true"> <Message>At CU_Sample.java:[lines 1-26]</Message> </SourceLine> </BugInstance> <BugInstance type="CVAA_CONTRAVARIANT_ELEMENT_ASSIGNMENT" priority="2" rank="7" abbrev="CVAA" category="CORRECTNESS" instanceHash="47895d5f21fedc281c145799a3f15e0e" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method performs a contravariant array element assignment</ShortMessage> <LongMessage>Method ex.CVAA_Sample.cvaa() performs a contravariant array element assignment</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="cvaa" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="15" end="26" startBytecode="0" endBytecode="187" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.cvaa()</Message> </Method> <SourceLine classname="ex.CVAA_Sample" primary="true" start="16" end="16" startBytecode="6" endBytecode="6" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="CVAA_CONTRAVARIANT_ELEMENT_ASSIGNMENT" priority="2" rank="7" abbrev="CVAA" category="CORRECTNESS" instanceHash="47895d5f21fedc281c145799a3f15e0e" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method performs a contravariant array element assignment</ShortMessage> <LongMessage>Method ex.CVAA_Sample.cvaa() performs a contravariant array element assignment</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="cvaa" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="15" end="26" startBytecode="0" endBytecode="187" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.cvaa()</Message> </Method> <SourceLine classname="ex.CVAA_Sample" primary="true" start="17" end="17" startBytecode="9" endBytecode="9" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="CVAA_CONTRAVARIANT_ELEMENT_ASSIGNMENT" priority="2" rank="7" abbrev="CVAA" category="CORRECTNESS" instanceHash="dda83d5c69d421e13f065f14e6107fcf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method performs a contravariant array element assignment</ShortMessage> <LongMessage>Method ex.CVAA_Sample.generics() performs a contravariant array element assignment</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="generics" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="33" end="35" startBytecode="0" endBytecode="80" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.generics()</Message> </Method> <SourceLine classname="ex.CVAA_Sample" primary="true" start="33" end="33" startBytecode="4" endBytecode="4" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="950e5e1d262e2cd30b2bd59644fa4b7b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to myStringSets in ex.CVAA_Sample.generics()</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="generics" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="33" end="35" startBytecode="0" endBytecode="6" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.generics()</Message> </Method> <LocalVariable name="myStringSets" register="1" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named myStringSets</Message> </LocalVariable> <SourceLine classname="ex.CVAA_Sample" primary="true" start="33" end="33" startBytecode="4" endBytecode="4" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 33]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="myStringSets"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="afc2b987df866809a1fa4ec5ddf056bb" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to myStringSets2 in ex.CVAA_Sample.generics()</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="generics" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="33" end="35" startBytecode="0" endBytecode="6" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.generics()</Message> </Method> <LocalVariable name="myStringSets2" register="2" pc="10" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named myStringSets2</Message> </LocalVariable> <SourceLine classname="ex.CVAA_Sample" primary="true" start="34" end="34" startBytecode="9" endBytecode="9" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 34]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="myStringSets2"/> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="2ca0c3f3fa2491206ef11d5112c04201" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.CVAA_Sample does not implement a toString method</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java" synthetic="true"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> </BugInstance> <BugInstance type="RANGE_ARRAY_LENGTH" priority="2" rank="7" abbrev="RANGE" category="CORRECTNESS" instanceHash="4cc2b074b71a678487764ab7eb78e0b1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Array length is out of bounds</ShortMessage> <LongMessage>Array length is out of bounds: 1</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="cvaa" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="15" end="26" startBytecode="0" endBytecode="187" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.cvaa()</Message> </Method> <SourceLine classname="ex.CVAA_Sample" primary="true" start="25" end="25" startBytecode="62" endBytecode="62" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 25]</Message> </SourceLine> <Int value="1" role="INT_VALUE"> <Message>Value 1</Message> </Int> <Int value="0" role="INT_MAX_VALUE"> <Message>Maximum valid value 0</Message> </Int> <Method classname="java.lang.System" name="arraycopy" signature="(Ljava/lang/Object;ILjava/lang/Object;II)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.System" sourcefile="System.java" sourcepath="java/lang/System.java"/> <Message>Called method System.arraycopy(Object, int, Object, int, int)</Message> </Method> <SourceLine classname="ex.CVAA_Sample" start="25" end="25" startBytecode="62" endBytecode="62" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="RANGE_ARRAY_OFFSET" priority="2" rank="7" abbrev="RANGE" category="CORRECTNESS" instanceHash="3cf3ad897f7c1e35db313ab6c1879fbb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Array offset is out of bounds</ShortMessage> <LongMessage>Array offset is out of bounds: 1</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="cvaa" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="15" end="26" startBytecode="0" endBytecode="187" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.cvaa()</Message> </Method> <SourceLine classname="ex.CVAA_Sample" primary="true" start="25" end="25" startBytecode="62" endBytecode="62" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 25]</Message> </SourceLine> <Int value="1" role="INT_VALUE"> <Message>Value 1</Message> </Int> <Int value="0" role="INT_MAX_VALUE"> <Message>Maximum valid value 0</Message> </Int> <Method classname="java.lang.System" name="arraycopy" signature="(Ljava/lang/Object;ILjava/lang/Object;II)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.System" sourcefile="System.java" sourcepath="java/lang/System.java"/> <Message>Called method System.arraycopy(Object, int, Object, int, int)</Message> </Method> <SourceLine classname="ex.CVAA_Sample" start="25" end="25" startBytecode="62" endBytecode="62" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_ARRAY_PARM" priority="1" rank="5" abbrev="SPP" category="CORRECTNESS" instanceHash="c614ee0fe3fdc2cd20900ef39b8e23d8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes a non array object to a parameter that expects an array</ShortMessage> <LongMessage>Method ex.CVAA_Sample.cvaa() passes a non array object to a parameter that expects an array</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="cvaa" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="15" end="26" startBytecode="0" endBytecode="187" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.cvaa()</Message> </Method> <SourceLine classname="ex.CVAA_Sample" primary="true" start="25" end="25" startBytecode="62" endBytecode="62" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="c098c8c2769f82d2971e5560c848d559" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.CVAA_Sample.generics() seems to be useless</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Method classname="ex.CVAA_Sample" name="generics" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="33" end="35" startBytecode="0" endBytecode="80" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"/> <Message>In method ex.CVAA_Sample.generics()</Message> </Method> <SourceLine classname="ex.CVAA_Sample" primary="true" start="35" end="35" startBytecode="10" endBytecode="10" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="152f9a391d1d015345a142cace67401c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.CVAA_Sample.b2</LongMessage> <Class classname="ex.CVAA_Sample" primary="true"> <SourceLine classname="ex.CVAA_Sample" start="5" end="38" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[lines 5-38]</Message> </SourceLine> <Message>In class ex.CVAA_Sample</Message> </Class> <Field classname="ex.CVAA_Sample" name="b2" signature="[Lex/CVAA_Sample$Base;" isStatic="false" primary="true"> <SourceLine classname="ex.CVAA_Sample" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>In CVAA_Sample.java</Message> </SourceLine> <Message>Field ex.CVAA_Sample.b2</Message> </Field> <SourceLine classname="ex.CVAA_Sample" primary="true" start="17" end="17" startBytecode="9" endBytecode="9" sourcefile="CVAA_Sample.java" sourcepath="ex/CVAA_Sample.java"> <Message>At CVAA_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_NEVER_SHUTDOWN" priority="2" rank="7" abbrev="HES" category="CORRECTNESS" instanceHash="b1d6b3aaa3656263b7809b3f73a5dd5d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>ExecutorService field doesn't ever get shutdown</ShortMessage> <LongMessage>ExecutorService ex.CachedThreadPoolMehProblem.executor is instantiated, but never shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.CachedThreadPoolMehProblem" primary="true"> <SourceLine classname="ex.CachedThreadPoolMehProblem" start="161" end="168" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 161-168]</Message> </SourceLine> <Message>In class ex.CachedThreadPoolMehProblem</Message> </Class> <Field classname="ex.CachedThreadPoolMehProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.CachedThreadPoolMehProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.CachedThreadPoolMehProblem.executor</Message> </Field> <Field classname="ex.CachedThreadPoolMehProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false"> <SourceLine classname="ex.CachedThreadPoolMehProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.CachedThreadPoolMehProblem.executor</Message> </Field> <SourceLine classname="ex.CachedThreadPoolMehProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>In HES_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="a5898280f801d08a225d44984dd93014" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.CachedThreadPoolMehProblem does not implement a toString method</LongMessage> <Class classname="ex.CachedThreadPoolMehProblem" primary="true"> <SourceLine classname="ex.CachedThreadPoolMehProblem" start="161" end="168" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 161-168]</Message> </SourceLine> <Message>In class ex.CachedThreadPoolMehProblem</Message> </Class> <SourceLine classname="ex.CachedThreadPoolMehProblem" start="161" end="168" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 161-168]</Message> </SourceLine> </BugInstance> <BugInstance type="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" priority="2" rank="9" abbrev="FCCD" category="CORRECTNESS" instanceHash="f7d1594c1350bde127256f6b0a89268f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class has a circular dependency with other classes</ShortMessage> <LongMessage>Class ex.Child has a circular dependency with other classes</LongMessage> <Class classname="ex.Child" primary="true"> <SourceLine classname="ex.Child" start="16" end="21" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 16-21]</Message> </SourceLine> <Message>In class ex.Child</Message> </Class> <Class classname="ex.SubChild"> <SourceLine classname="ex.SubChild" start="24" end="29" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 24-29]</Message> </SourceLine> <Message>In class ex.SubChild</Message> </Class> <Class classname="ex.FCCD_Sample"> <SourceLine classname="ex.FCCD_Sample" start="8" end="13" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 8-13]</Message> </SourceLine> <Message>In class ex.FCCD_Sample</Message> </Class> <SourceLine classname="ex.Child" start="16" end="21" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 16-21]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="f7e941adf02e3b7f11369739f2f6b823" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.Child does not implement a toString method</LongMessage> <Class classname="ex.Child" primary="true"> <SourceLine classname="ex.Child" start="16" end="21" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 16-21]</Message> </SourceLine> <Message>In class ex.Child</Message> </Class> <SourceLine classname="ex.Child" start="16" end="21" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 16-21]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="3aed7faf6c8d175d54b3b21646a069c5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.Child.childTest() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.Child" primary="true"> <SourceLine classname="ex.Child" start="16" end="21" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 16-21]</Message> </SourceLine> <Message>In class ex.Child</Message> </Class> <Method classname="ex.Child" name="childTest" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.Child" start="20" end="21" startBytecode="0" endBytecode="53" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"/> <Message>In method ex.Child.childTest()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.Child" start="20" end="21" startBytecode="0" endBytecode="53" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 20-21]</Message> </SourceLine> </BugInstance> <BugInstance type="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" priority="2" rank="9" abbrev="FCCD" category="CORRECTNESS" instanceHash="37d064b298899547456aae527a27b9cf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class has a circular dependency with other classes</ShortMessage> <LongMessage>Class ex.ChildWithUsedClassObj has a circular dependency with other classes</LongMessage> <Class classname="ex.ChildWithUsedClassObj" primary="true"> <SourceLine classname="ex.ChildWithUsedClassObj" start="81" end="81" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 81]</Message> </SourceLine> <Message>In class ex.ChildWithUsedClassObj</Message> </Class> <Class classname="ex.GitHubIssue101"> <SourceLine classname="ex.GitHubIssue101" start="71" end="78" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 71-78]</Message> </SourceLine> <Message>In class ex.GitHubIssue101</Message> </Class> <SourceLine classname="ex.ChildWithUsedClassObj" start="81" end="81" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[line 81]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="cf2966e7889a040efc0e9e2442a7cc2d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ClassWithInnerInterface does not implement a toString method</LongMessage> <Class classname="ex.ClassWithInnerInterface" primary="true"> <SourceLine classname="ex.ClassWithInnerInterface" start="89" end="102" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 89-102]</Message> </SourceLine> <Message>In class ex.ClassWithInnerInterface</Message> </Class> <SourceLine classname="ex.ClassWithInnerInterface" start="89" end="102" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 89-102]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="7591aadf2d1273da1d0ee7554231f500" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field o in ex.ClassWithInnerInterface.m()</LongMessage> <Class classname="ex.ClassWithInnerInterface" primary="true"> <SourceLine classname="ex.ClassWithInnerInterface" start="89" end="102" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 89-102]</Message> </SourceLine> <Message>In class ex.ClassWithInnerInterface</Message> </Class> <Method classname="ex.ClassWithInnerInterface" name="m" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ClassWithInnerInterface" start="97" end="102" startBytecode="0" endBytecode="61" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"/> <Message>In method ex.ClassWithInnerInterface.m()</Message> </Method> <Field classname="ex.ClassWithInnerInterface" name="o" signature="Lex/ClassUsingInnerInterface;" isStatic="false" primary="true"> <SourceLine classname="ex.ClassWithInnerInterface" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>In FCCD_Sample.java</Message> </SourceLine> <Message>Field ex.ClassWithInnerInterface.o</Message> </Field> <SourceLine classname="ex.ClassWithInnerInterface" primary="true" start="97" end="97" startBytecode="12" endBytecode="12" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="e5e09ddf2c6f9a5f0ea2b4924df12664" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.ClassWithInnerInterface.o</LongMessage> <Class classname="ex.ClassWithInnerInterface" primary="true"> <SourceLine classname="ex.ClassWithInnerInterface" start="89" end="102" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 89-102]</Message> </SourceLine> <Message>In class ex.ClassWithInnerInterface</Message> </Class> <Field classname="ex.ClassWithInnerInterface" name="o" signature="Lex/ClassUsingInnerInterface;" isStatic="false" primary="true"> <SourceLine classname="ex.ClassWithInnerInterface" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>In FCCD_Sample.java</Message> </SourceLine> <Message>Field ex.ClassWithInnerInterface.o</Message> </Field> <SourceLine classname="ex.ClassWithInnerInterface" primary="true" start="97" end="97" startBytecode="1" endBytecode="1" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="8d5c16340ed96eb1a1c08f25abed70c1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.ClassWithInnerInterface$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.ClassWithInnerInterface$1" primary="true"> <SourceLine classname="ex.ClassWithInnerInterface$1" start="1" end="100" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 1-100]</Message> </SourceLine> <Message>In class ex.ClassWithInnerInterface$1</Message> </Class> <SourceLine classname="ex.ClassWithInnerInterface$1" start="1" end="100" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 1-100]</Message> </SourceLine> </BugInstance> <BugInstance type="DDC_DOUBLE_DATE_COMPARISON" priority="2" rank="18" abbrev="DDC" category="PERFORMANCE" instanceHash="f20aba3acc5b9e5bb00048a38f150252" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses two date comparisons when one would do</ShortMessage> <LongMessage>Method ex.DDC_Sample.test1(Date, Date) uses two date comparisons when one would do</LongMessage> <Class classname="ex.DDC_Sample" primary="true"> <SourceLine classname="ex.DDC_Sample" start="4" end="24" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"> <Message>At DDC_Sample.java:[lines 4-24]</Message> </SourceLine> <Message>In class ex.DDC_Sample</Message> </Class> <Method classname="ex.DDC_Sample" name="test1" signature="(Ljava/util/Date;Ljava/util/Date;)V" isStatic="false" primary="true"> <SourceLine classname="ex.DDC_Sample" start="6" end="10" startBytecode="0" endBytecode="120" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"/> <Message>In method ex.DDC_Sample.test1(Date, Date)</Message> </Method> <SourceLine classname="ex.DDC_Sample" primary="true" start="6" end="6" startBytecode="13" endBytecode="13" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"> <Message>At DDC_Sample.java:[line 6]</Message> </SourceLine> </BugInstance> <BugInstance type="DDC_DOUBLE_DATE_COMPARISON" priority="2" rank="18" abbrev="DDC" category="PERFORMANCE" instanceHash="2fe5dbb89af22eb2184149f3b63a2f53" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses two date comparisons when one would do</ShortMessage> <LongMessage>Method ex.DDC_Sample.test2(Date, Date) uses two date comparisons when one would do</LongMessage> <Class classname="ex.DDC_Sample" primary="true"> <SourceLine classname="ex.DDC_Sample" start="4" end="24" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"> <Message>At DDC_Sample.java:[lines 4-24]</Message> </SourceLine> <Message>In class ex.DDC_Sample</Message> </Class> <Method classname="ex.DDC_Sample" name="test2" signature="(Ljava/util/Date;Ljava/util/Date;)V" isStatic="false" primary="true"> <SourceLine classname="ex.DDC_Sample" start="13" end="17" startBytecode="0" endBytecode="120" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"/> <Message>In method ex.DDC_Sample.test2(Date, Date)</Message> </Method> <SourceLine classname="ex.DDC_Sample" primary="true" start="13" end="13" startBytecode="13" endBytecode="13" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"> <Message>At DDC_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="DDC_DOUBLE_DATE_COMPARISON" priority="2" rank="18" abbrev="DDC" category="PERFORMANCE" instanceHash="466dcbc8bfadf91e081454cc0f840d7f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses two date comparisons when one would do</ShortMessage> <LongMessage>Method ex.DDC_Sample.test3(Date, Date) uses two date comparisons when one would do</LongMessage> <Class classname="ex.DDC_Sample" primary="true"> <SourceLine classname="ex.DDC_Sample" start="4" end="24" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"> <Message>At DDC_Sample.java:[lines 4-24]</Message> </SourceLine> <Message>In class ex.DDC_Sample</Message> </Class> <Method classname="ex.DDC_Sample" name="test3" signature="(Ljava/util/Date;Ljava/util/Date;)V" isStatic="false" primary="true"> <SourceLine classname="ex.DDC_Sample" start="20" end="24" startBytecode="0" endBytecode="120" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"/> <Message>In method ex.DDC_Sample.test3(Date, Date)</Message> </Method> <SourceLine classname="ex.DDC_Sample" primary="true" start="20" end="20" startBytecode="13" endBytecode="13" sourcefile="DDC_Sample.java" sourcepath="ex/DDC_Sample.java"> <Message>At DDC_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="DLC_DUBIOUS_LIST_COLLECTION" priority="2" rank="18" abbrev="DLC" category="PERFORMANCE" instanceHash="6a1dae75c02998623d7cc57e3684c7d7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines List based fields but uses them like Sets</ShortMessage> <LongMessage>Class ex.DLC_Sample defines List based fields but uses them like Sets</LongMessage> <Class classname="ex.DLC_Sample" primary="true"> <SourceLine classname="ex.DLC_Sample" start="5" end="31" sourcefile="DLC_Sample.java" sourcepath="ex/DLC_Sample.java"> <Message>At DLC_Sample.java:[lines 5-31]</Message> </SourceLine> <Message>In class ex.DLC_Sample</Message> </Class> <Field classname="ex.DLC_Sample" name="badList" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.DLC_Sample" sourcefile="DLC_Sample.java" sourcepath="ex/DLC_Sample.java"> <Message>In DLC_Sample.java</Message> </SourceLine> <Message>Field ex.DLC_Sample.badList</Message> </Field> <SourceLine classname="ex.DLC_Sample" primary="true" start="11" end="11" startBytecode="5" endBytecode="5" sourcefile="DLC_Sample.java" sourcepath="ex/DLC_Sample.java"> <Message>At DLC_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="2712653f0926a203342f71d4c06c5bcd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.DLC_Sample does not implement a toString method</LongMessage> <Class classname="ex.DLC_Sample" primary="true"> <SourceLine classname="ex.DLC_Sample" start="5" end="31" sourcefile="DLC_Sample.java" sourcepath="ex/DLC_Sample.java"> <Message>At DLC_Sample.java:[lines 5-31]</Message> </SourceLine> <Message>In class ex.DLC_Sample</Message> </Class> <SourceLine classname="ex.DLC_Sample" start="5" end="31" sourcefile="DLC_Sample.java" sourcepath="ex/DLC_Sample.java" synthetic="true"> <Message>At DLC_Sample.java:[lines 5-31]</Message> </SourceLine> </BugInstance> <BugInstance type="DMC_DUBIOUS_MAP_COLLECTION" priority="2" rank="7" abbrev="DMC" category="CORRECTNESS" instanceHash="4a593fad7308764ab7d633742997d557" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class holds a map-type field, but uses it as only a List</ShortMessage> <LongMessage>Class ex.DMC_Sample holds a map-type field ex.DMC_Sample.STUFF, but uses it as only a List</LongMessage> <Class classname="ex.DMC_Sample" primary="true"> <SourceLine classname="ex.DMC_Sample" start="5" end="34" sourcefile="DMC_Sample.java" sourcepath="ex/DMC_Sample.java"> <Message>At DMC_Sample.java:[lines 5-34]</Message> </SourceLine> <Message>In class ex.DMC_Sample</Message> </Class> <Field classname="ex.DMC_Sample" name="STUFF" signature="Ljava/util/Map;" isStatic="true" primary="true"> <SourceLine classname="ex.DMC_Sample" sourcefile="DMC_Sample.java" sourcepath="ex/DMC_Sample.java"> <Message>In DMC_Sample.java</Message> </SourceLine> <Message>Field ex.DMC_Sample.STUFF</Message> </Field> <SourceLine classname="ex.DMC_Sample" sourcefile="DMC_Sample.java" sourcepath="ex/DMC_Sample.java" synthetic="true"> <Message>In DMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SBSC_USE_STRINGBUFFER_CONCATENATION" priority="2" rank="18" abbrev="SBSC" category="PERFORMANCE" instanceHash="1b368a2612cca05965aef5db8c4866ff" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method concatenates strings using + in a loop</ShortMessage> <LongMessage>ex.DMC_Sample.getInfo(boolean) concatenates strings using + in a loop</LongMessage> <Class classname="ex.DMC_Sample" primary="true"> <SourceLine classname="ex.DMC_Sample" start="5" end="34" sourcefile="DMC_Sample.java" sourcepath="ex/DMC_Sample.java"> <Message>At DMC_Sample.java:[lines 5-34]</Message> </SourceLine> <Message>In class ex.DMC_Sample</Message> </Class> <Method classname="ex.DMC_Sample" name="getInfo" signature="(Z)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.DMC_Sample" start="22" end="30" startBytecode="0" endBytecode="223" sourcefile="DMC_Sample.java" sourcepath="ex/DMC_Sample.java"/> <Message>In method ex.DMC_Sample.getInfo(boolean)</Message> </Method> <SourceLine classname="ex.DMC_Sample" primary="true" start="26" end="26" startBytecode="48" endBytecode="48" sourcefile="DMC_Sample.java" sourcepath="ex/DMC_Sample.java"> <Message>At DMC_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="DRE_DECLARED_RUNTIME_EXCEPTION" priority="2" rank="17" abbrev="DRE" category="STYLE" instanceHash="db8a06964d8f29c3a6a0f48d64d79c7a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares RuntimeException in throws clause</ShortMessage> <LongMessage>Method ex.DRE_Sample.test1(int) declares RuntimeException in throws clause</LongMessage> <Class classname="ex.DRE_Sample" primary="true"> <SourceLine classname="ex.DRE_Sample" start="6" end="26" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"> <Message>At DRE_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.DRE_Sample</Message> </Class> <Method classname="ex.DRE_Sample" name="test1" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.DRE_Sample" start="8" end="8" startBytecode="0" endBytecode="52" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"/> <Message>In method ex.DRE_Sample.test1(int)</Message> </Method> <String value="java.lang.NullPointerException"> <Message>Value java.lang.NullPointerException</Message> </String> <SourceLine classname="ex.DRE_Sample" start="8" end="8" startBytecode="0" endBytecode="52" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java" synthetic="true"> <Message>At DRE_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="DRE_DECLARED_RUNTIME_EXCEPTION" priority="2" rank="17" abbrev="DRE" category="STYLE" instanceHash="5ca0e2988c794ea05a128c726b69a992" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares RuntimeException in throws clause</ShortMessage> <LongMessage>Method ex.DRE_Sample.test2(int) declares RuntimeException in throws clause</LongMessage> <Class classname="ex.DRE_Sample" primary="true"> <SourceLine classname="ex.DRE_Sample" start="6" end="26" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"> <Message>At DRE_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.DRE_Sample</Message> </Class> <Method classname="ex.DRE_Sample" name="test2" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.DRE_Sample" start="11" end="14" startBytecode="0" endBytecode="83" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"/> <Message>In method ex.DRE_Sample.test2(int)</Message> </Method> <String value="java.lang.IllegalMonitorStateException"> <Message>Value java.lang.IllegalMonitorStateException</Message> </String> <String value="java.lang.ClassCastException"> <Message>Value java.lang.ClassCastException</Message> </String> <SourceLine classname="ex.DRE_Sample" start="11" end="14" startBytecode="0" endBytecode="83" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java" synthetic="true"> <Message>At DRE_Sample.java:[lines 11-14]</Message> </SourceLine> </BugInstance> <BugInstance type="DRE_DECLARED_RUNTIME_EXCEPTION" priority="3" rank="20" abbrev="DRE" category="STYLE" instanceHash="2e71295db99634e584c92d726e67d009" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares RuntimeException in throws clause</ShortMessage> <LongMessage>Method ex.DRE_Sample.test4(int) declares RuntimeException in throws clause</LongMessage> <Class classname="ex.DRE_Sample" primary="true"> <SourceLine classname="ex.DRE_Sample" start="6" end="26" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"> <Message>At DRE_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.DRE_Sample</Message> </Class> <Method classname="ex.DRE_Sample" name="test4" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.DRE_Sample" start="23" end="26" startBytecode="0" endBytecode="81" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"/> <Message>In method ex.DRE_Sample.test4(int)</Message> </Method> <String value="ex.CustomRuntimeException"> <Message>Value ex.CustomRuntimeException</Message> </String> <SourceLine classname="ex.DRE_Sample" start="23" end="26" startBytecode="0" endBytecode="81" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java" synthetic="true"> <Message>At DRE_Sample.java:[lines 23-26]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="ae2c8a00f78812c44a866317a03eb832" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.DRE_Sample.test2(int) throws exception with static message string</LongMessage> <Class classname="ex.DRE_Sample" primary="true"> <SourceLine classname="ex.DRE_Sample" start="6" end="26" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"> <Message>At DRE_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.DRE_Sample</Message> </Class> <Method classname="ex.DRE_Sample" name="test2" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.DRE_Sample" start="11" end="14" startBytecode="0" endBytecode="83" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"/> <Message>In method ex.DRE_Sample.test2(int)</Message> </Method> <SourceLine classname="ex.DRE_Sample" primary="true" start="12" end="12" startBytecode="13" endBytecode="13" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"> <Message>At DRE_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="58da13eb120f4998513c98c17daeab20" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.DRE_Sample.test3(int) throws exception with static message string</LongMessage> <Class classname="ex.DRE_Sample" primary="true"> <SourceLine classname="ex.DRE_Sample" start="6" end="26" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"> <Message>At DRE_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.DRE_Sample</Message> </Class> <Method classname="ex.DRE_Sample" name="test3" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.DRE_Sample" start="17" end="20" startBytecode="0" endBytecode="83" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"/> <Message>In method ex.DRE_Sample.test3(int)</Message> </Method> <SourceLine classname="ex.DRE_Sample" primary="true" start="18" end="18" startBytecode="13" endBytecode="13" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"> <Message>At DRE_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="DSOC_DUBIOUS_SET_OF_COLLECTIONS" priority="2" rank="18" abbrev="DSOC" category="PERFORMANCE" instanceHash="f05bb5244765856d722d4bc632890281" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a set of collections</ShortMessage> <LongMessage>Method ex.DSOC_Sample.testSetOfLists() uses a set of collections</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testSetOfLists" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="11" end="14" startBytecode="0" endBytecode="126" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testSetOfLists()</Message> </Method> <SourceLine classname="ex.DSOC_Sample" primary="true" start="13" end="13" startBytecode="18" endBytecode="18" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="ad76beda07fbbe20d0fff78184d956f1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable l of method ex.DSOC_Sample.testFPListOfSets()</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testFPListOfSets" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="24" end="28" startBytecode="0" endBytecode="126" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testFPListOfSets()</Message> </Method> <String value="l"> <Message>Value l</Message> </String> <Type descriptor="Ljava/util/ArrayList;"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Type java.util.ArrayList</Message> </Type> <SourceLine classname="ex.DSOC_Sample" primary="true" start="25" end="25" startBytecode="12" endBytecode="12" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="f55f68b1176b606f9db0ef3bcaa8aa1e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable m of method ex.DSOC_Sample.testKeySetOfSets()</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testKeySetOfSets" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="17" end="21" startBytecode="0" endBytecode="128" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testKeySetOfSets()</Message> </Method> <String value="m"> <Message>Value m</Message> </String> <Type descriptor="Ljava/util/HashMap;"> <SourceLine classname="java.util.HashMap" start="338" end="1789" sourcefile="HashMap.java" sourcepath="java/util/HashMap.java"> <Message>At HashMap.java:[lines 338-1789]</Message> </SourceLine> <Message>Type java.util.HashMap</Message> </Type> <SourceLine classname="ex.DSOC_Sample" primary="true" start="18" end="18" startBytecode="12" endBytecode="12" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="ec2b42a5a2da92fb85e3f91a93628771" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.DSOC_Sample.testSetOfLists()</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testSetOfLists" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="11" end="14" startBytecode="0" endBytecode="126" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testSetOfLists()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.DSOC_Sample" primary="true" start="12" end="12" startBytecode="12" endBytecode="12" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="b7ce87217c760bf5269272f8ef07a1e5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.DSOC_Sample.testFPListOfSets() seems to be useless</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testFPListOfSets" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="24" end="28" startBytecode="0" endBytecode="126" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testFPListOfSets()</Message> </Method> <SourceLine classname="ex.DSOC_Sample" primary="true" start="28" end="28" startBytecode="24" endBytecode="24" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="2848e9f1f83f6c2ad357b88a04579e35" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.DSOC_Sample.testKeySetOfSets() seems to be useless</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testKeySetOfSets" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="17" end="21" startBytecode="0" endBytecode="128" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testKeySetOfSets()</Message> </Method> <SourceLine classname="ex.DSOC_Sample" primary="true" start="21" end="21" startBytecode="26" endBytecode="26" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="d6d917268ac28cc081536715dabfdf9c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.DSOC_Sample.testSetOfLists() seems to be useless</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testSetOfLists" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="11" end="14" startBytecode="0" endBytecode="126" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testSetOfLists()</Message> </Method> <SourceLine classname="ex.DSOC_Sample" primary="true" start="14" end="14" startBytecode="24" endBytecode="24" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="1b7736c1f74f13d9d2b0330ef02ce772" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.DSOC_Sample.testFPListOfSets() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testFPListOfSets" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="24" end="28" startBytecode="0" endBytecode="126" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testFPListOfSets()</Message> </Method> <SourceLine classname="ex.DSOC_Sample" primary="true" start="25" end="25" startBytecode="15" endBytecode="15" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="c58f4ab7957b4fcffe31dd72aa7c7b11" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.DSOC_Sample.testKeySetOfSets() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testKeySetOfSets" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="17" end="21" startBytecode="0" endBytecode="128" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testKeySetOfSets()</Message> </Method> <SourceLine classname="ex.DSOC_Sample" primary="true" start="18" end="18" startBytecode="15" endBytecode="15" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="a60ae9e7c59edf121dc982d0f914543" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.DSOC_Sample.testSetOfLists() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.DSOC_Sample" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="9" end="28" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[lines 9-28]</Message> </SourceLine> <Message>In class ex.DSOC_Sample</Message> </Class> <Method classname="ex.DSOC_Sample" name="testSetOfLists" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DSOC_Sample" start="11" end="14" startBytecode="0" endBytecode="126" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"/> <Message>In method ex.DSOC_Sample.testSetOfLists()</Message> </Method> <SourceLine classname="ex.DSOC_Sample" primary="true" start="12" end="12" startBytecode="15" endBytecode="15" sourcefile="DSOC_Sample.java" sourcepath="ex/DSOC_Sample.java"> <Message>At DSOC_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="259d8634706b2b2edcfd7241aba19665" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.DWI_Sample does not implement a toString method</LongMessage> <Class classname="ex.DWI_Sample" primary="true"> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> <Message>In class ex.DWI_Sample</Message> </Class> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java" synthetic="true"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="d2dfb6a2711282fead7377d22173f89d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.DWI_Sample.addIf(Set, Collection) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.DWI_Sample" primary="true"> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> <Message>In class ex.DWI_Sample</Message> </Class> <Method classname="ex.DWI_Sample" name="addIf" signature="(Ljava/util/Set;Ljava/util/Collection;)V" isStatic="false" primary="true"> <SourceLine classname="ex.DWI_Sample" start="24" end="29" startBytecode="0" endBytecode="194" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"/> <Message>In method ex.DWI_Sample.addIf(Set, Collection)</Message> </Method> <SourceLine classname="ex.DWI_Sample" primary="true" start="25" end="25" startBytecode="25" endBytecode="25" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="7e42ce1806c6705eac49572a066ca65e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.DWI_Sample.fpClearWithBreak(Set) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.DWI_Sample" primary="true"> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> <Message>In class ex.DWI_Sample</Message> </Class> <Method classname="ex.DWI_Sample" name="fpClearWithBreak" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.DWI_Sample" start="50" end="56" startBytecode="0" endBytecode="186" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"/> <Message>In method ex.DWI_Sample.fpClearWithBreak(Set)</Message> </Method> <SourceLine classname="ex.DWI_Sample" primary="true" start="51" end="51" startBytecode="23" endBytecode="23" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[line 51]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="8503997ffe57272603075758fb280d1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.DWI_Sample.fpRemoveWithReturn(Set) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.DWI_Sample" primary="true"> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> <Message>In class ex.DWI_Sample</Message> </Class> <Method classname="ex.DWI_Sample" name="fpRemoveWithReturn" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.DWI_Sample" start="59" end="65" startBytecode="0" endBytecode="174" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"/> <Message>In method ex.DWI_Sample.fpRemoveWithReturn(Set)</Message> </Method> <SourceLine classname="ex.DWI_Sample" primary="true" start="60" end="60" startBytecode="23" endBytecode="23" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="943bebac4f8a46289425d5c9499b243d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.DWI_Sample.fpRemoveWithReturn2(Set) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.DWI_Sample" primary="true"> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> <Message>In class ex.DWI_Sample</Message> </Class> <Method classname="ex.DWI_Sample" name="fpRemoveWithReturn2" signature="(Ljava/util/Set;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.DWI_Sample" start="68" end="75" startBytecode="0" endBytecode="176" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"/> <Message>In method ex.DWI_Sample.fpRemoveWithReturn2(Set)</Message> </Method> <SourceLine classname="ex.DWI_Sample" primary="true" start="69" end="69" startBytecode="23" endBytecode="23" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[line 69]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="d3fb91309c3621072269ec0adb30cd7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.DWI_Sample.fpWithBreak(Set) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.DWI_Sample" primary="true"> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> <Message>In class ex.DWI_Sample</Message> </Class> <Method classname="ex.DWI_Sample" name="fpWithBreak" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.DWI_Sample" start="41" end="47" startBytecode="0" endBytecode="189" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"/> <Message>In method ex.DWI_Sample.fpWithBreak(Set)</Message> </Method> <SourceLine classname="ex.DWI_Sample" primary="true" start="42" end="42" startBytecode="23" endBytecode="23" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="3e83fe22d367b4b999b064a9babcb23d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.DWI_Sample.fpUnaliased() does not presize the allocation of a collection</LongMessage> <Class classname="ex.DWI_Sample" primary="true"> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> <Message>In class ex.DWI_Sample</Message> </Class> <Method classname="ex.DWI_Sample" name="fpUnaliased" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DWI_Sample" start="32" end="38" startBytecode="0" endBytecode="175" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"/> <Message>In method ex.DWI_Sample.fpUnaliased()</Message> </Method> <SourceLine classname="ex.DWI_Sample" primary="true" start="36" end="36" startBytecode="55" endBytecode="55" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="33b3f5b535836c29c36abd3c104bb14c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field not initialized in constructor but dereferenced without null check</ShortMessage> <LongMessage>DWI_Sample.avail not initialized in constructor and dereferenced in ex.DWI_Sample.fpUnaliased()</LongMessage> <Class classname="ex.DWI_Sample" primary="true"> <SourceLine classname="ex.DWI_Sample" start="9" end="84" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[lines 9-84]</Message> </SourceLine> <Message>In class ex.DWI_Sample</Message> </Class> <Field classname="ex.DWI_Sample" name="avail" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.DWI_Sample" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>In DWI_Sample.java</Message> </SourceLine> <Message>Field ex.DWI_Sample.avail</Message> </Field> <Method classname="ex.DWI_Sample" name="fpUnaliased" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.DWI_Sample" start="32" end="38" startBytecode="0" endBytecode="175" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"/> <Message>In method ex.DWI_Sample.fpUnaliased()</Message> </Method> <SourceLine classname="ex.DWI_Sample" primary="true" start="32" end="32" startBytecode="4" endBytecode="4" sourcefile="DWI_Sample.java" sourcepath="ex/DWI_Sample.java"> <Message>At DWI_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="76afce34c48acf930a54f2aced3b8b0c" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.EXS_Sample.constrainedByRuntime()</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="38" end="42" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedByRuntime()</Message> </Method> <LocalVariable name="ioe" register="1" pc="14" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.EXS_Sample" primary="true" start="38" end="38" startBytecode="9" endBytecode="9" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 38]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="a9fac99888b9d9b40719fc467561e3e4" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.EXS_Sample.constrainedNon()</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="21" end="25" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNon()</Message> </Method> <LocalVariable name="ioe" register="1" pc="14" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.EXS_Sample" primary="true" start="21" end="21" startBytecode="9" endBytecode="9" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 21]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="82ee7b80ebd9efe5ae501073b35f4ccb" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.EXS_Sample.constrainedNone()</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNone" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="12" end="16" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNone()</Message> </Method> <LocalVariable name="ioe" register="1" pc="14" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.EXS_Sample" primary="true" start="12" end="12" startBytecode="9" endBytecode="9" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 12]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="3c032751e177292de107af2d642aa0ce" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.EXS_Sample.notConstrained()</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="notConstrained" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="29" end="33" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.notConstrained()</Message> </Method> <LocalVariable name="ioe" register="1" pc="14" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.EXS_Sample" primary="true" start="29" end="29" startBytecode="9" endBytecode="9" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 29]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="bbc9d218538410b4de8d4afb77e2e57b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to cls in ex.EXS_Sample.fpReturnFalseOnEx(int)</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="fpReturnFalseOnEx" signature="(I)Z" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="69" end="75" startBytecode="0" endBytecode="11" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.fpReturnFalseOnEx(int)</Message> </Method> <LocalVariable name="cls" register="2" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named cls</Message> </LocalVariable> <SourceLine classname="ex.EXS_Sample" primary="true" start="72" end="72" startBytecode="11" endBytecode="11" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 72]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="cls"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DMI_HARDCODED_ABSOLUTE_FILENAME" priority="2" rank="17" abbrev="DMI" category="STYLE" instanceHash="213907309e2c8029d46eaee038575077" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Code contains a hard coded reference to an absolute pathname</ShortMessage> <LongMessage>Hard coded reference to an absolute pathname in ex.EXS_Sample.constrainedByRuntime()</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="38" end="42" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedByRuntime()</Message> </Method> <String value="c:\\test.txt" role="FILE_NAME"> <Message>File name c:\\test.txt</Message> </String> <SourceLine classname="ex.EXS_Sample" primary="true" start="38" end="38" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="DMI_HARDCODED_ABSOLUTE_FILENAME" priority="2" rank="17" abbrev="DMI" category="STYLE" instanceHash="7e80a31652f2e6093f01a125ffe83c0" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Code contains a hard coded reference to an absolute pathname</ShortMessage> <LongMessage>Hard coded reference to an absolute pathname in ex.EXS_Sample.constrainedNon()</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="21" end="25" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNon()</Message> </Method> <String value="c:\\test.txt" role="FILE_NAME"> <Message>File name c:\\test.txt</Message> </String> <SourceLine classname="ex.EXS_Sample" primary="true" start="21" end="21" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="DMI_HARDCODED_ABSOLUTE_FILENAME" priority="2" rank="17" abbrev="DMI" category="STYLE" instanceHash="30c064ab67a3813299acc85e20acc987" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Code contains a hard coded reference to an absolute pathname</ShortMessage> <LongMessage>Hard coded reference to an absolute pathname in ex.EXS_Sample.constrainedNone()</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNone" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="12" end="16" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNone()</Message> </Method> <String value="c:\\test.txt" role="FILE_NAME"> <Message>File name c:\\test.txt</Message> </String> <SourceLine classname="ex.EXS_Sample" primary="true" start="12" end="12" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="DMI_HARDCODED_ABSOLUTE_FILENAME" priority="2" rank="17" abbrev="DMI" category="STYLE" instanceHash="ce4c879d95082ae7552574eedd34548e" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Code contains a hard coded reference to an absolute pathname</ShortMessage> <LongMessage>Hard coded reference to an absolute pathname in ex.EXS_Sample.notConstrained()</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="notConstrained" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="29" end="33" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.notConstrained()</Message> </Method> <String value="c:\\test.txt" role="FILE_NAME"> <Message>File name c:\\test.txt</Message> </String> <SourceLine classname="ex.EXS_Sample" primary="true" start="29" end="29" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_HAS_CHECKED" priority="2" rank="17" abbrev="EXS" category="STYLE" instanceHash="fe48f05ff15bf22ee95ba4a8c4fcb53d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Constrained method converts checked exception to unchecked instead of another allowable checked exception</ShortMessage> <LongMessage>Constrained method ex.EXS_Sample.constrainedNon() converts checked exception to unchecked instead of another allowable checked exception</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="21" end="25" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNon()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="23" end="23" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_NO_CHECKED" priority="2" rank="17" abbrev="EXS" category="STYLE" instanceHash="21a91b61381734ded75215689470678d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Constrained method converts checked exception to unchecked</ShortMessage> <LongMessage>Constrained method ex.EXS_Sample.constrainedByRuntime() converts checked exception to unchecked</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="38" end="42" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedByRuntime()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="40" end="40" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_NO_CHECKED" priority="2" rank="17" abbrev="EXS" category="STYLE" instanceHash="3a171b65c806f91760eef6e94488a58e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Constrained method converts checked exception to unchecked</ShortMessage> <LongMessage>Constrained method ex.EXS_Sample.constrainedNone() converts checked exception to unchecked</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNone" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="12" end="16" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNone()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="14" end="14" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS" priority="1" rank="15" abbrev="EXS" category="STYLE" instanceHash="c324c1f5f422f8cb9741bc171d0ac75d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unconstrained method converts checked exception to unchecked</ShortMessage> <LongMessage>Unconstrained method ex.EXS_Sample.notConstrained() converts checked exception to unchecked</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="notConstrained" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="29" end="33" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.notConstrained()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="31" end="31" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_RETURN_FALSE" priority="2" rank="17" abbrev="EXS" category="STYLE" instanceHash="1c2c0521518511322e4d6b36b922699c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>method converts an exception into a boolean 'error code' value</ShortMessage> <LongMessage>method ex.EXS_Sample.returnFalseOnEx() converts an exception into a boolean 'error code' value</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="returnFalseOnEx" signature="()Z" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="60" end="63" startBytecode="0" endBytecode="94" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.returnFalseOnEx()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="63" end="63" startBytecode="10" endBytecode="10" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 63]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="c49443b23d215ef72b80fb7162a9e673" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.EXS_Sample.testFPBug2646424(String[]) prints the stack trace to the console</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="testFPBug2646424" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.EXS_Sample" start="45" end="56" startBytecode="0" endBytecode="128" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.testFPBug2646424(String[])</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="49" end="49" startBytecode="16" endBytecode="16" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="ee984ba8be977dc0119e0281322213bc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedByRuntime() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="38" end="42" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedByRuntime()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="38" end="38" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="cbe57f9a87c24229ae8c98e4bed256a9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedNon() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="21" end="25" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNon()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="21" end="21" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="e39f8abed53cc81f375bd4e2b7d2f17e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedNone() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNone" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="12" end="16" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNone()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="12" end="12" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="98fe5e22311cb73104d8616b1d1de939" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.EXS_Sample.notConstrained() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="notConstrained" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="29" end="33" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.notConstrained()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="29" end="29" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="a0e23642c091c7e807e0bb0c62df05f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedByRuntime() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="38" end="42" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedByRuntime()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="40" end="40" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="bfea0f93c6b67e125ee8906fb13221ff" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedNon() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="21" end="25" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNon()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="23" end="23" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="12ae10d76c9342ae1998738ac070cec" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedNone() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNone" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="12" end="16" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNone()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="14" end="14" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="3fdec7dc7b2de803af960ae55e3718f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.EXS_Sample.notConstrained() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="notConstrained" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="29" end="33" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.notConstrained()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="31" end="31" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="36243d77813ae234e67e86855bb8f211" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.EXS_Sample.constrainedByRuntime() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="38" end="42" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedByRuntime()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.EXS_Sample" primary="true" start="38" end="38" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at EXS_Sample.java:[line 38] is not discharged</Message> </SourceLine> <SourceLine classname="ex.EXS_Sample" start="39" end="39" startBytecode="10" endBytecode="10" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at EXS_Sample.java:[line 39]</Message> </SourceLine> <SourceLine classname="ex.EXS_Sample" start="42" end="42" startBytecode="24" endBytecode="24" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at EXS_Sample.java:[line 42]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="b801b1241698df6c24f38cfc71fea7a0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.EXS_Sample.constrainedNon() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="21" end="25" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNon()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.EXS_Sample" primary="true" start="21" end="21" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at EXS_Sample.java:[line 21] is not discharged</Message> </SourceLine> <SourceLine classname="ex.EXS_Sample" start="22" end="22" startBytecode="10" endBytecode="10" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at EXS_Sample.java:[line 22]</Message> </SourceLine> <SourceLine classname="ex.EXS_Sample" start="25" end="25" startBytecode="24" endBytecode="24" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at EXS_Sample.java:[line 25]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="5fea511e92ec3e50bdd14cfaaf2af5ff" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.EXS_Sample.constrainedNone() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNone" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="12" end="16" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNone()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.EXS_Sample" primary="true" start="12" end="12" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at EXS_Sample.java:[line 12] is not discharged</Message> </SourceLine> <SourceLine classname="ex.EXS_Sample" start="13" end="13" startBytecode="10" endBytecode="10" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at EXS_Sample.java:[line 13]</Message> </SourceLine> <SourceLine classname="ex.EXS_Sample" start="16" end="16" startBytecode="24" endBytecode="24" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at EXS_Sample.java:[line 16]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="f712fa7a011b6c993b8c702c04fd26b2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.EXS_Sample.notConstrained() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="notConstrained" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="29" end="33" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.notConstrained()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.EXS_Sample" primary="true" start="29" end="29" startBytecode="6" endBytecode="6" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at EXS_Sample.java:[line 29] is not discharged</Message> </SourceLine> <SourceLine classname="ex.EXS_Sample" start="30" end="30" startBytecode="10" endBytecode="10" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at EXS_Sample.java:[line 30]</Message> </SourceLine> <SourceLine classname="ex.EXS_Sample" start="33" end="33" startBytecode="24" endBytecode="24" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at EXS_Sample.java:[line 33]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="479fa20ff484f3efac9725629b211da2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.EXS_Sample.constrainedByRuntime() may fail to close stream</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="38" end="42" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedByRuntime()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.EXS_Sample" primary="true" start="38" end="38" startBytecode="0" endBytecode="0" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="3a7a56c982695f822e6cf983ee6dc129" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.EXS_Sample.constrainedNon() may fail to close stream</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="21" end="25" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNon()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.EXS_Sample" primary="true" start="21" end="21" startBytecode="0" endBytecode="0" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="e030af8b5dcd2a3ea3c80363effc6d91" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.EXS_Sample.constrainedNone() may fail to close stream</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNone" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="12" end="16" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNone()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.EXS_Sample" primary="true" start="12" end="12" startBytecode="0" endBytecode="0" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="c8311d0460926a0219d2f9d01823e4e0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.EXS_Sample.notConstrained() may fail to close stream</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="notConstrained" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="29" end="33" startBytecode="0" endBytecode="12" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.notConstrained()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.EXS_Sample" primary="true" start="29" end="29" startBytecode="0" endBytecode="0" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="940eba7879afb5b40443dee796f1759a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.EXS_Sample.testFPBug2646424(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="testFPBug2646424" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.EXS_Sample" start="45" end="56" startBytecode="0" endBytecode="128" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.testFPBug2646424(String[])</Message> </Method> <SourceLine classname="ex.EXS_Sample" start="45" end="56" startBytecode="0" endBytecode="128" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" synthetic="true"> <Message>At EXS_Sample.java:[lines 45-56]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="db70c459547c865e40203e66c4986f2a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedByRuntime() throws exception with static message string</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="38" end="42" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedByRuntime()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="40" end="40" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="e7862655188fd119a28a38a603d5de7b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedNon() throws exception with static message string</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="21" end="25" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNon()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="23" end="23" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="1e2a42004eeec1c2bbc04e7af81d1bb8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.EXS_Sample.constrainedNone() throws exception with static message string</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="constrainedNone" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="12" end="16" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.constrainedNone()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="14" end="14" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="bcad1fe13fdf0d017932ba15ee45a473" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.EXS_Sample.notConstrained() throws exception with static message string</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="notConstrained" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.EXS_Sample" start="29" end="33" startBytecode="0" endBytecode="109" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.notConstrained()</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="31" end="31" startBytecode="23" endBytecode="23" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="139ecebe653924fb7da5e1e05a256413" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.EXS_Sample.testFPBug2646424(String[]) throws exception with static message string</LongMessage> <Class classname="ex.EXS_Sample" primary="true"> <SourceLine classname="ex.EXS_Sample" start="8" end="83" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 8-83]</Message> </SourceLine> <Message>In class ex.EXS_Sample</Message> </Class> <Method classname="ex.EXS_Sample" name="testFPBug2646424" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.EXS_Sample" start="45" end="56" startBytecode="0" endBytecode="128" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.EXS_Sample.testFPBug2646424(String[])</Message> </Method> <SourceLine classname="ex.EXS_Sample" primary="true" start="53" end="53" startBytecode="29" endBytecode="29" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[line 53]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="e8a992bc6cf0e42923c21ac72072235e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.Envy.a() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.Envy" primary="true"> <SourceLine classname="ex.Envy" start="20" end="37" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"> <Message>At CE_Sample.java:[lines 20-37]</Message> </SourceLine> <Message>In class ex.Envy</Message> </Class> <Method classname="ex.Envy" name="a" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.Envy" start="22" end="22" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"/> <Message>In method ex.Envy.a()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.Envy" start="22" end="22" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java" synthetic="true"> <Message>At CE_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="dce03a491472215f5f243a4bf1d29cd6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.Envy.b() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.Envy" primary="true"> <SourceLine classname="ex.Envy" start="20" end="37" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"> <Message>At CE_Sample.java:[lines 20-37]</Message> </SourceLine> <Message>In class ex.Envy</Message> </Class> <Method classname="ex.Envy" name="b" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.Envy" start="25" end="25" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"/> <Message>In method ex.Envy.b()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.Envy" start="25" end="25" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java" synthetic="true"> <Message>At CE_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="32d6176c8fbbafa0b9beff82c5d9f8e4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.Envy.c() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.Envy" primary="true"> <SourceLine classname="ex.Envy" start="20" end="37" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"> <Message>At CE_Sample.java:[lines 20-37]</Message> </SourceLine> <Message>In class ex.Envy</Message> </Class> <Method classname="ex.Envy" name="c" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.Envy" start="28" end="28" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"/> <Message>In method ex.Envy.c()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.Envy" start="28" end="28" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java" synthetic="true"> <Message>At CE_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="55b83d561d0991aa3c6b59a515327fdf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.Envy.d() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.Envy" primary="true"> <SourceLine classname="ex.Envy" start="20" end="37" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"> <Message>At CE_Sample.java:[lines 20-37]</Message> </SourceLine> <Message>In class ex.Envy</Message> </Class> <Method classname="ex.Envy" name="d" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.Envy" start="31" end="31" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"/> <Message>In method ex.Envy.d()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.Envy" start="31" end="31" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java" synthetic="true"> <Message>At CE_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="330dc85c0e5691908ac652e540ba151d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.Envy.e() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.Envy" primary="true"> <SourceLine classname="ex.Envy" start="20" end="37" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"> <Message>At CE_Sample.java:[lines 20-37]</Message> </SourceLine> <Message>In class ex.Envy</Message> </Class> <Method classname="ex.Envy" name="e" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.Envy" start="34" end="34" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"/> <Message>In method ex.Envy.e()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.Envy" start="34" end="34" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java" synthetic="true"> <Message>At CE_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="50bb6d161acbb6cd12309c635bea6a2d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.Envy.f() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.Envy" primary="true"> <SourceLine classname="ex.Envy" start="20" end="37" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"> <Message>At CE_Sample.java:[lines 20-37]</Message> </SourceLine> <Message>In class ex.Envy</Message> </Class> <Method classname="ex.Envy" name="f" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.Envy" start="37" end="37" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java"/> <Message>In method ex.Envy.f()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.Envy" start="37" end="37" startBytecode="0" endBytecode="42" sourcefile="CE_Sample.java" sourcepath="ex/CE_Sample.java" synthetic="true"> <Message>At CE_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="217686b78fd9392d331e11df84b97e9c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.ExecutorAsBean defines fields that are used only as locals</LongMessage> <Class classname="ex.ExecutorAsBean" primary="true"> <SourceLine classname="ex.ExecutorAsBean" start="415" end="417" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 415-417]</Message> </SourceLine> <Message>In class ex.ExecutorAsBean</Message> </Class> <Field classname="ex.ExecutorAsBean" name="executorService" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.ExecutorAsBean" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ExecutorAsBean.executorService</Message> </Field> <SourceLine classname="ex.ExecutorAsBean" primary="true" start="416" end="416" startBytecode="6" endBytecode="6" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 416]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="1ef83c0d4508d4f6e4210a8b44821d72" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ExecutorAsBean does not implement a toString method</LongMessage> <Class classname="ex.ExecutorAsBean" primary="true"> <SourceLine classname="ex.ExecutorAsBean" start="415" end="417" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 415-417]</Message> </SourceLine> <Message>In class ex.ExecutorAsBean</Message> </Class> <SourceLine classname="ex.ExecutorAsBean" start="415" end="417" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 415-417]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="d5b31cac52a41c0d01fc9be65e76b865" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.ExecutorAsBean.executorService</LongMessage> <Class classname="ex.ExecutorAsBean" primary="true"> <SourceLine classname="ex.ExecutorAsBean" start="415" end="417" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 415-417]</Message> </SourceLine> <Message>In class ex.ExecutorAsBean</Message> </Class> <Field classname="ex.ExecutorAsBean" name="executorService" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.ExecutorAsBean" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ExecutorAsBean.executorService</Message> </Field> <SourceLine classname="ex.ExecutorAsBean" primary="true" start="416" end="416" startBytecode="6" endBytecode="6" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 416]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="a0f17a306d9b3b79ef89c12cfa474c5b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="boo" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.boo</Message> </Field> <SourceLine classname="ex.FCBL_Sample" primary="true" start="39" end="39" startBytecode="47" endBytecode="47" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="8fbcff14d918e39b95608c6fedf3ee04" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="checkMethodCall" signature="Z" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.checkMethodCall</Message> </Field> <SourceLine classname="ex.FCBL_Sample" primary="true" start="127" end="127" startBytecode="2" endBytecode="2" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 127]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="8ca5be976afd2582c8a14057f550cb45" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="fooS" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.fooS</Message> </Field> <SourceLine classname="ex.FCBL_Sample" primary="true" start="31" end="31" startBytecode="17" endBytecode="17" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="71d4be87b2029921a63e607b296103df" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="moo" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.moo</Message> </Field> <SourceLine classname="ex.FCBL_Sample" primary="true" start="38" end="38" startBytecode="42" endBytecode="42" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="590c240e885b75d51f12059588b7a1d3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="multiMethodFP" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.multiMethodFP</Message> </Field> <SourceLine classname="ex.FCBL_Sample" primary="true" start="114" end="114" startBytecode="2" endBytecode="2" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 114]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="88420951f7eb90f126e397209e3ad41e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="notUsed" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.notUsed</Message> </Field> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java" synthetic="true"> <Message>In FCBL_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="c1884a3674eed925c412c119998d2828" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="ret" signature="Z" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.ret</Message> </Field> <SourceLine classname="ex.FCBL_Sample" primary="true" start="43" end="43" startBytecode="68" endBytecode="68" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="5c5fc3309abd28c398a609c1602eddcd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="test" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.test</Message> </Field> <SourceLine classname="ex.FCBL_Sample" primary="true" start="74" end="74" startBytecode="14" endBytecode="14" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 74]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="96ad948807ee7622f3221a6e74b73640" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FCBL_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Field classname="ex.FCBL_Sample" name="x" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>In FCBL_Sample.java</Message> </SourceLine> <Message>Field ex.FCBL_Sample.x</Message> </Field> <SourceLine classname="ex.FCBL_Sample" primary="true" start="23" end="23" startBytecode="6" endBytecode="6" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="99a82e67383cd2a664b7e9145da5e831" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.FCBL_Sample does not implement a toString method</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java" synthetic="true"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="46bded9f28b420355d653268c3e09eb3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.FCBL_Sample.mm2FP(int) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Method classname="ex.FCBL_Sample" name="mm2FP" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="123" end="124" startBytecode="0" endBytecode="61" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"/> <Message>In method ex.FCBL_Sample.mm2FP(int)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.FCBL_Sample" start="123" end="124" startBytecode="0" endBytecode="61" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java" synthetic="true"> <Message>At FCBL_Sample.java:[lines 123-124]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="a76d9ff722141d2ba720fe175d348f84" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.FCBL_Sample.setCheckMethod() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Method classname="ex.FCBL_Sample" name="setCheckMethod" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="136" end="139" startBytecode="0" endBytecode="74" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"/> <Message>In method ex.FCBL_Sample.setCheckMethod()</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.FCBL_Sample" start="136" end="139" startBytecode="0" endBytecode="74" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java" synthetic="true"> <Message>At FCBL_Sample.java:[lines 136-139]</Message> </SourceLine> </BugInstance> <BugInstance type="SEO_SUBOPTIMAL_EXPRESSION_ORDER" priority="2" rank="18" abbrev="SEO" category="PERFORMANCE" instanceHash="1131344ed4dc96020d512b9d1260dcd7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method orders expressions in a conditional in a sub optimal way</ShortMessage> <LongMessage>Method ex.FCBL_Sample.test3(String) orders expressions in a conditional in a sub optimal way</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Method classname="ex.FCBL_Sample" name="test3" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="72" end="90" startBytecode="0" endBytecode="223" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"/> <Message>In method ex.FCBL_Sample.test3(String)</Message> </Method> <SourceLine classname="ex.FCBL_Sample" primary="true" start="78" end="78" startBytecode="57" endBytecode="57" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="SEO_SUBOPTIMAL_EXPRESSION_ORDER" priority="2" rank="18" abbrev="SEO" category="PERFORMANCE" instanceHash="85ceb5ca0aef7c09616333853e5ac908" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method orders expressions in a conditional in a sub optimal way</ShortMessage> <LongMessage>Method ex.FCBL_Sample.testNestedIfs(String) orders expressions in a conditional in a sub optimal way</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Method classname="ex.FCBL_Sample" name="testNestedIfs" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="93" end="111" startBytecode="0" endBytecode="234" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"/> <Message>In method ex.FCBL_Sample.testNestedIfs(String)</Message> </Method> <SourceLine classname="ex.FCBL_Sample" primary="true" start="99" end="99" startBytecode="57" endBytecode="57" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 99]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_CONVERSION_OF_STRING_LITERAL" priority="3" rank="10" abbrev="SPP" category="CORRECTNESS" instanceHash="81f53b38b89509260a25f4d6a311f81e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts a String literal</ShortMessage> <LongMessage>Method ex.FCBL_Sample.test3(String) calls String.toLowerCase(Locale) on a String Literal</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Method classname="ex.FCBL_Sample" name="test3" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="72" end="90" startBytecode="0" endBytecode="223" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"/> <Message>In method ex.FCBL_Sample.test3(String)</Message> </Method> <SourceLine classname="ex.FCBL_Sample" primary="true" start="83" end="83" startBytecode="68" endBytecode="68" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 83]</Message> </SourceLine> <Method classname="java.lang.String" name="toLowerCase" signature="(Ljava/util/Locale;)Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="2562" end="2647" startBytecode="0" endBytecode="913" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.toLowerCase(Locale)</Message> </Method> </BugInstance> <BugInstance type="SPP_CONVERSION_OF_STRING_LITERAL" priority="3" rank="10" abbrev="SPP" category="CORRECTNESS" instanceHash="e370af823532b005fb3038f4f9012e84" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts a String literal</ShortMessage> <LongMessage>Method ex.FCBL_Sample.testNestedIfs(String) calls String.toLowerCase(Locale) on a String Literal</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Method classname="ex.FCBL_Sample" name="testNestedIfs" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="93" end="111" startBytecode="0" endBytecode="234" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"/> <Message>In method ex.FCBL_Sample.testNestedIfs(String)</Message> </Method> <SourceLine classname="ex.FCBL_Sample" primary="true" start="104" end="104" startBytecode="93" endBytecode="93" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 104]</Message> </SourceLine> <Method classname="java.lang.String" name="toLowerCase" signature="(Ljava/util/Locale;)Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="2562" end="2647" startBytecode="0" endBytecode="913" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.toLowerCase(Locale)</Message> </Method> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="1214301a2ec09a7279b7ad0dbcaf2f69" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.FCBL_Sample.testInArray() seems to be useless</LongMessage> <Class classname="ex.FCBL_Sample" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="23" end="139" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[lines 23-139]</Message> </SourceLine> <Message>In class ex.FCBL_Sample</Message> </Class> <Method classname="ex.FCBL_Sample" name="testInArray" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.FCBL_Sample" start="63" end="65" startBytecode="0" endBytecode="98" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"/> <Message>In method ex.FCBL_Sample.testInArray()</Message> </Method> <SourceLine classname="ex.FCBL_Sample" primary="true" start="65" end="65" startBytecode="27" endBytecode="27" sourcefile="FCBL_Sample.java" sourcepath="ex/FCBL_Sample.java"> <Message>At FCBL_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="11d2a289d4cb3e09663923bfd3fbd17e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.FCCD_Sample does not implement a toString method</LongMessage> <Class classname="ex.FCCD_Sample" primary="true"> <SourceLine classname="ex.FCCD_Sample" start="8" end="13" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 8-13]</Message> </SourceLine> <Message>In class ex.FCCD_Sample</Message> </Class> <SourceLine classname="ex.FCCD_Sample" start="8" end="13" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 8-13]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="ab34a45e3f15ea11a5f4db38ab9b64fa" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to f in ex.FPEnumValueOf.fpWithValueOf()</LongMessage> <Class classname="ex.FPEnumValueOf" primary="true"> <SourceLine classname="ex.FPEnumValueOf" start="1" end="78" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 1-78]</Message> </SourceLine> <Message>In class ex.FPEnumValueOf</Message> </Class> <Method classname="ex.FPEnumValueOf" name="fpWithValueOf" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.FPEnumValueOf" start="77" end="78" startBytecode="0" endBytecode="4" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.FPEnumValueOf.fpWithValueOf()</Message> </Method> <LocalVariable name="f" register="0" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named f</Message> </LocalVariable> <SourceLine classname="ex.FPEnumValueOf" primary="true" start="77" end="77" startBytecode="8" endBytecode="8" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[line 77]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="f"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="3d698f9d793a6328066b2ac543cea29e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.FPEnumValueOf.valueOf(String) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.FPEnumValueOf" primary="true"> <SourceLine classname="ex.FPEnumValueOf" start="1" end="78" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 1-78]</Message> </SourceLine> <Message>In class ex.FPEnumValueOf</Message> </Class> <Method classname="ex.FPEnumValueOf" name="valueOf" signature="(Ljava/lang/String;)Lex/FPEnumValueOf;" isStatic="true" primary="true"> <SourceLine classname="ex.FPEnumValueOf" start="1" end="1" startBytecode="0" endBytecode="41" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.FPEnumValueOf.valueOf(String)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.FPEnumValueOf" start="1" end="1" startBytecode="0" endBytecode="41" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java" synthetic="true"> <Message>At OPM_Sample.java:[line 1]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="1ddcde67d2db9b7bbb3f6e3c1f69a7af" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FPIMCEntity defines fields that are used only as locals</LongMessage> <Class classname="ex.FPIMCEntity" primary="true"> <SourceLine classname="ex.FPIMCEntity" start="70" end="70" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 70]</Message> </SourceLine> <Message>In class ex.FPIMCEntity</Message> </Class> <Field classname="ex.FPIMCEntity" name="id" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.FPIMCEntity" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.FPIMCEntity.id</Message> </Field> <SourceLine classname="ex.FPIMCEntity" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="c612ead57e5db021f3ffcc8da9b95d8c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.FPIMCEntity defines fields that are used only as locals</LongMessage> <Class classname="ex.FPIMCEntity" primary="true"> <SourceLine classname="ex.FPIMCEntity" start="70" end="70" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 70]</Message> </SourceLine> <Message>In class ex.FPIMCEntity</Message> </Class> <Field classname="ex.FPIMCEntity" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.FPIMCEntity" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.FPIMCEntity.name</Message> </Field> <SourceLine classname="ex.FPIMCEntity" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="5495377610b9d11593d5835a22bc13bc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.FPIMCEntity.id</LongMessage> <Class classname="ex.FPIMCEntity" primary="true"> <SourceLine classname="ex.FPIMCEntity" start="70" end="70" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 70]</Message> </SourceLine> <Message>In class ex.FPIMCEntity</Message> </Class> <Field classname="ex.FPIMCEntity" name="id" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.FPIMCEntity" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.FPIMCEntity.id</Message> </Field> <SourceLine classname="ex.FPIMCEntity" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="f69dfa585f976cca76a6332e2d92650b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.FPIMCEntity.name</LongMessage> <Class classname="ex.FPIMCEntity" primary="true"> <SourceLine classname="ex.FPIMCEntity" start="70" end="70" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 70]</Message> </SourceLine> <Message>In class ex.FPIMCEntity</Message> </Class> <Field classname="ex.FPIMCEntity" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.FPIMCEntity" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.FPIMCEntity.name</Message> </Field> <SourceLine classname="ex.FPIMCEntity" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="3" rank="15" abbrev="UwF" category="CORRECTNESS" instanceHash="f15e2daddb7d9c98b3270a8f3c2ad6de" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.FPIMCTestClass.data1</LongMessage> <Class classname="ex.FPIMCTestClass" primary="true"> <SourceLine classname="ex.FPIMCTestClass" start="59" end="66" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 59-66]</Message> </SourceLine> <Message>In class ex.FPIMCTestClass</Message> </Class> <Field classname="ex.FPIMCTestClass" name="data1" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.FPIMCTestClass" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.FPIMCTestClass.data1</Message> </Field> <SourceLine classname="ex.FPIMCTestClass" primary="true" start="65" end="65" startBytecode="1" endBytecode="1" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="3" rank="15" abbrev="UwF" category="CORRECTNESS" instanceHash="e66847784c5b76f48017ba89bd447f40" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.FPIMCTestClass.data2</LongMessage> <Class classname="ex.FPIMCTestClass" primary="true"> <SourceLine classname="ex.FPIMCTestClass" start="59" end="66" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 59-66]</Message> </SourceLine> <Message>In class ex.FPIMCTestClass</Message> </Class> <Field classname="ex.FPIMCTestClass" name="data2" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.FPIMCTestClass" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.FPIMCTestClass.data2</Message> </Field> <SourceLine classname="ex.FPIMCTestClass" primary="true" start="65" end="65" startBytecode="6" endBytecode="6" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="2b1b9fc63c4c32c89bf887589e350a3a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.FPL_Sample.testTougherFloat(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.FPL_Sample" primary="true"> <SourceLine classname="ex.FPL_Sample" start="3" end="18" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"> <Message>At FPL_Sample.java:[lines 3-18]</Message> </SourceLine> <Message>In class ex.FPL_Sample</Message> </Class> <Method classname="ex.FPL_Sample" name="testTougherFloat" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.FPL_Sample" start="15" end="18" startBytecode="0" endBytecode="101" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"/> <Message>In method ex.FPL_Sample.testTougherFloat(String)</Message> </Method> <SourceLine classname="ex.FPL_Sample" primary="true" start="15" end="15" startBytecode="15" endBytecode="15" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"> <Message>At FPL_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="2a4ac43c1d0c5d52fac1dcdface53a6e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.FPL_Sample.testDouble() seems to be useless</LongMessage> <Class classname="ex.FPL_Sample" primary="true"> <SourceLine classname="ex.FPL_Sample" start="3" end="18" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"> <Message>At FPL_Sample.java:[lines 3-18]</Message> </SourceLine> <Message>In class ex.FPL_Sample</Message> </Class> <Method classname="ex.FPL_Sample" name="testDouble" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.FPL_Sample" start="10" end="12" startBytecode="0" endBytecode="86" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"/> <Message>In method ex.FPL_Sample.testDouble()</Message> </Method> <SourceLine classname="ex.FPL_Sample" primary="true" start="12" end="12" startBytecode="17" endBytecode="17" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"> <Message>At FPL_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="c9ab2219e5051b7edf8ca9baa39fe593" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.FPL_Sample.testFloat() seems to be useless</LongMessage> <Class classname="ex.FPL_Sample" primary="true"> <SourceLine classname="ex.FPL_Sample" start="3" end="18" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"> <Message>At FPL_Sample.java:[lines 3-18]</Message> </SourceLine> <Message>In class ex.FPL_Sample</Message> </Class> <Method classname="ex.FPL_Sample" name="testFloat" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.FPL_Sample" start="5" end="7" startBytecode="0" endBytecode="85" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"/> <Message>In method ex.FPL_Sample.testFloat()</Message> </Method> <SourceLine classname="ex.FPL_Sample" primary="true" start="7" end="7" startBytecode="16" endBytecode="16" sourcefile="FPL_Sample.java" sourcepath="ex/FPL_Sample.java"> <Message>At FPL_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="ACEM_ABSTRACT_CLASS_EMPTY_METHODS" priority="2" rank="19" abbrev="ACEM" category="STYLE" instanceHash="5920090ef2b17b7058f7f864e640f7c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Empty method could be declared abstract</ShortMessage> <LongMessage>Empty method ex.FP_Sample.testLongDouble(int, long, double, char) could be declared abstract</LongMessage> <Class classname="ex.FP_Sample" primary="true"> <SourceLine classname="ex.FP_Sample" start="3" end="23" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"> <Message>At FP_Sample.java:[lines 3-23]</Message> </SourceLine> <Message>In class ex.FP_Sample</Message> </Class> <Method classname="ex.FP_Sample" name="testLongDouble" signature="(IJDC)V" isStatic="false" primary="true"> <SourceLine classname="ex.FP_Sample" start="23" end="23" startBytecode="0" endBytecode="82" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"/> <Message>In method ex.FP_Sample.testLongDouble(int, long, double, char)</Message> </Method> <SourceLine classname="ex.FP_Sample" primary="true" start="23" end="23" startBytecode="0" endBytecode="0" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"> <Message>At FP_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN" priority="3" rank="11" abbrev="IP" category="CORRECTNESS" instanceHash="9953b922132f6929ebbbd73c4fcb1f96" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>A parameter is dead upon entry to a method but overwritten</ShortMessage> <LongMessage>The parameter a to ex.FP_Sample.test2(String) is dead upon entry but overwritten</LongMessage> <Class classname="ex.FP_Sample" primary="true"> <SourceLine classname="ex.FP_Sample" start="3" end="23" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"> <Message>At FP_Sample.java:[lines 3-23]</Message> </SourceLine> <Message>In class ex.FP_Sample</Message> </Class> <Method classname="ex.FP_Sample" name="test2" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.FP_Sample" start="9" end="11" startBytecode="0" endBytecode="5" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"/> <Message>In method ex.FP_Sample.test2(String)</Message> </Method> <LocalVariable name="a" register="1" pc="3" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named a</Message> </LocalVariable> <SourceLine classname="ex.FP_Sample" primary="true" start="9" end="9" startBytecode="2" endBytecode="2" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"> <Message>At FP_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN" priority="3" rank="11" abbrev="IP" category="CORRECTNESS" instanceHash="298f959ad6aa1981e3a486e5984f0952" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>A parameter is dead upon entry to a method but overwritten</ShortMessage> <LongMessage>The parameter a to ex.FP_Sample.test4(String, String, String) is dead upon entry but overwritten</LongMessage> <Class classname="ex.FP_Sample" primary="true"> <SourceLine classname="ex.FP_Sample" start="3" end="23" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"> <Message>At FP_Sample.java:[lines 3-23]</Message> </SourceLine> <Message>In class ex.FP_Sample</Message> </Class> <Method classname="ex.FP_Sample" name="test4" signature="(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.FP_Sample" start="16" end="19" startBytecode="0" endBytecode="18" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"/> <Message>In method ex.FP_Sample.test4(String, String, String)</Message> </Method> <LocalVariable name="a" register="1" pc="2" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named a</Message> </LocalVariable> <SourceLine classname="ex.FP_Sample" primary="true" start="16" end="16" startBytecode="1" endBytecode="1" sourcefile="FP_Sample.java" sourcepath="ex/FP_Sample.java"> <Message>At FP_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_NEVER_SHUTDOWN" priority="2" rank="7" abbrev="HES" category="CORRECTNESS" instanceHash="4521d143861b51511c0085f7d4a35d55" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>ExecutorService field doesn't ever get shutdown</ShortMessage> <LongMessage>ExecutorService ex.FixedThreadPoolProblem.executor is instantiated, but never shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.FixedThreadPoolProblem" primary="true"> <SourceLine classname="ex.FixedThreadPoolProblem" start="146" end="153" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 146-153]</Message> </SourceLine> <Message>In class ex.FixedThreadPoolProblem</Message> </Class> <Field classname="ex.FixedThreadPoolProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.FixedThreadPoolProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.FixedThreadPoolProblem.executor</Message> </Field> <Field classname="ex.FixedThreadPoolProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false"> <SourceLine classname="ex.FixedThreadPoolProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.FixedThreadPoolProblem.executor</Message> </Field> <SourceLine classname="ex.FixedThreadPoolProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>In HES_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="eb35a6ca472b8273ff3d67e5959a4a9d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.FixedThreadPoolProblem does not implement a toString method</LongMessage> <Class classname="ex.FixedThreadPoolProblem" primary="true"> <SourceLine classname="ex.FixedThreadPoolProblem" start="146" end="153" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 146-153]</Message> </SourceLine> <Message>In class ex.FixedThreadPoolProblem</Message> </Class> <SourceLine classname="ex.FixedThreadPoolProblem" start="146" end="153" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 146-153]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="dd3a96f412b3bad6e7e34dad40ff797e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.GitHubIssue101.startActivity(Intent) has unused parameters</LongMessage> <Class classname="ex.GitHubIssue101" primary="true"> <SourceLine classname="ex.GitHubIssue101" start="71" end="78" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 71-78]</Message> </SourceLine> <Message>In class ex.GitHubIssue101</Message> </Class> <Method classname="ex.GitHubIssue101" name="startActivity" signature="(Lex/Intent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue101" start="78" end="78" startBytecode="0" endBytecode="52" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"/> <Message>In method ex.GitHubIssue101.startActivity(Intent)</Message> </Method> <String value="Parameter 1: i"> <Message>Value Parameter 1: i</Message> </String> <SourceLine classname="ex.GitHubIssue101" start="78" end="78" startBytecode="0" endBytecode="52" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="551bd51d8be9b9844ee2eee35223ba1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.GitHubIssue109$StrutsAction.execute() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.GitHubIssue109$StrutsAction" primary="true"> <SourceLine classname="ex.GitHubIssue109$StrutsAction" start="249" end="261" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 249-261]</Message> </SourceLine> <Message>In class ex.GitHubIssue109$StrutsAction</Message> </Class> <Method classname="ex.GitHubIssue109$StrutsAction" name="execute" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue109$StrutsAction" start="253" end="253" startBytecode="0" endBytecode="43" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.GitHubIssue109$StrutsAction.execute()</Message> </Method> <SourceLine classname="ex.GitHubIssue109$StrutsAction" start="253" end="253" startBytecode="0" endBytecode="43" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java" synthetic="true"> <Message>At UTAO_Sample.java:[line 253]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="186f7c58c0ff19d11db9386804c2f15f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.GitHubIssue109$StrutsAction.getDomainObject() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.GitHubIssue109$StrutsAction" primary="true"> <SourceLine classname="ex.GitHubIssue109$StrutsAction" start="249" end="261" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 249-261]</Message> </SourceLine> <Message>In class ex.GitHubIssue109$StrutsAction</Message> </Class> <Method classname="ex.GitHubIssue109$StrutsAction" name="getDomainObject" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue109$StrutsAction" start="257" end="257" startBytecode="0" endBytecode="43" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.GitHubIssue109$StrutsAction.getDomainObject()</Message> </Method> <SourceLine classname="ex.GitHubIssue109$StrutsAction" start="257" end="257" startBytecode="0" endBytecode="43" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java" synthetic="true"> <Message>At UTAO_Sample.java:[line 257]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="ccab02d1cf2ababd3c7ca30ba668714f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.GitHubIssue109$StrutsAction be a _static_ inner class?</LongMessage> <Class classname="ex.GitHubIssue109$StrutsAction" primary="true"> <SourceLine classname="ex.GitHubIssue109$StrutsAction" start="249" end="261" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 249-261]</Message> </SourceLine> <Message>In class ex.GitHubIssue109$StrutsAction</Message> </Class> <SourceLine classname="ex.GitHubIssue109$StrutsAction" start="249" end="261" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java" synthetic="true"> <Message>At UTAO_Sample.java:[lines 249-261]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="d53f9916bb8fcf9bbffb2b0f5ed7c8e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.GitHubIssue206.createRuleBatch(String, String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.GitHubIssue206" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="90" end="101" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 90-101]</Message> </SourceLine> <Message>In class ex.GitHubIssue206</Message> </Class> <Method classname="ex.GitHubIssue206" name="createRuleBatch" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="101" end="101" startBytecode="0" endBytecode="63" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.GitHubIssue206.createRuleBatch(String, String)</Message> </Method> <SourceLine classname="ex.GitHubIssue206" start="101" end="101" startBytecode="0" endBytecode="63" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java" synthetic="true"> <Message>At OPM_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_BOOLEAN_RETURN_NULL" priority="2" rank="14" abbrev="NP" category="BAD_PRACTICE" instanceHash="49a933591d3f20f5b9b8755933e89070" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Method with Boolean return type returns explicit null</ShortMessage> <LongMessage>ex.GitHubIssue206.createRuleBatch(String, String) has Boolean return type and returns explicit null</LongMessage> <Class classname="ex.GitHubIssue206" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="90" end="101" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 90-101]</Message> </SourceLine> <Message>In class ex.GitHubIssue206</Message> </Class> <Method classname="ex.GitHubIssue206" name="createRuleBatch" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="101" end="101" startBytecode="0" endBytecode="63" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.GitHubIssue206.createRuleBatch(String, String)</Message> </Method> <SourceLine classname="ex.GitHubIssue206" primary="true" start="101" end="101" startBytecode="1" endBytecode="1" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="e04ca6382267f5e86a5599570d8c3635" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field service in ex.GitHubIssue206.testCustomMatcher()</LongMessage> <Class classname="ex.GitHubIssue206" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="90" end="101" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 90-101]</Message> </SourceLine> <Message>In class ex.GitHubIssue206</Message> </Class> <Method classname="ex.GitHubIssue206" name="testCustomMatcher" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="97" end="98" startBytecode="0" endBytecode="91" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.GitHubIssue206.testCustomMatcher()</Message> </Method> <Field classname="ex.GitHubIssue206" name="service" signature="Lex/GitHubIssue206;" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue206" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>In OPM_Sample.java</Message> </SourceLine> <Message>Field ex.GitHubIssue206.service</Message> </Field> <SourceLine classname="ex.GitHubIssue206" primary="true" start="97" end="97" startBytecode="30" endBytecode="30" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="a2425438adc62ce191465fef21953ae0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.GitHubIssue206.createRuleBatch(String, String) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.GitHubIssue206" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="90" end="101" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 90-101]</Message> </SourceLine> <Message>In class ex.GitHubIssue206</Message> </Class> <Method classname="ex.GitHubIssue206" name="createRuleBatch" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="101" end="101" startBytecode="0" endBytecode="63" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.GitHubIssue206.createRuleBatch(String, String)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.GitHubIssue206" start="101" end="101" startBytecode="0" endBytecode="63" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java" synthetic="true"> <Message>At OPM_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="TBP_TRISTATE_BOOLEAN_PATTERN" priority="2" rank="17" abbrev="TBP" category="STYLE" instanceHash="b8cb6af8c4e55edc493449688cc7bce1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns null for Boolean type</ShortMessage> <LongMessage>Method ex.GitHubIssue206.createRuleBatch(String, String) returns null for Boolean type</LongMessage> <Class classname="ex.GitHubIssue206" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="90" end="101" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 90-101]</Message> </SourceLine> <Message>In class ex.GitHubIssue206</Message> </Class> <Method classname="ex.GitHubIssue206" name="createRuleBatch" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="101" end="101" startBytecode="0" endBytecode="63" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.GitHubIssue206.createRuleBatch(String, String)</Message> </Method> <SourceLine classname="ex.GitHubIssue206" primary="true" start="101" end="101" startBytecode="1" endBytecode="1" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="cc0f3ce67232e02932b765ababd38d2f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.GitHubIssue206.service</LongMessage> <Class classname="ex.GitHubIssue206" primary="true"> <SourceLine classname="ex.GitHubIssue206" start="90" end="101" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 90-101]</Message> </SourceLine> <Message>In class ex.GitHubIssue206</Message> </Class> <Field classname="ex.GitHubIssue206" name="service" signature="Lex/GitHubIssue206;" isStatic="false" primary="true"> <SourceLine classname="ex.GitHubIssue206" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>In OPM_Sample.java</Message> </SourceLine> <Message>Field ex.GitHubIssue206.service</Message> </Field> <SourceLine classname="ex.GitHubIssue206" primary="true" start="97" end="97" startBytecode="1" endBytecode="1" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="HCP_HTTP_REQUEST_RESOURCES_NOT_FREED_FIELD" priority="2" rank="7" abbrev="HCP" category="CORRECTNESS" instanceHash="be8c93a0af2ab6346bc7767539139de5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unreleased HttpRequest network resources (field)</ShortMessage> <LongMessage>The HttpRequest field ex.HCP_Sample.httpPost does not release its network resources, which could freeze the running code</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Field classname="ex.HCP_Sample" name="httpPost" signature="Lorg/apache/http/client/methods/HttpPost;" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>In HCP_Sample.java</Message> </SourceLine> <Message>Field ex.HCP_Sample.httpPost</Message> </Field> <SourceLine classname="ex.HCP_Sample" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java" synthetic="true"> <Message>In HCP_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="HCP_HTTP_REQUEST_RESOURCES_NOT_FREED_LOCAL" priority="3" rank="14" abbrev="HCP" category="CORRECTNESS" instanceHash="cd22bc229bc25623051b327df03d48ef" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unreleased HttpRequest network resources (local)</ShortMessage> <LongMessage>The local HttpRequest ex.HCP_Sample.forgotToResetGet() does not release its network resources before being garbage collected, which could freeze the running code</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="forgotToResetGet" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" start="20" end="29" startBytecode="0" endBytecode="289" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.forgotToResetGet()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="20" end="20" startBytecode="16" endBytecode="16" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="HCP_HTTP_REQUEST_RESOURCES_NOT_FREED_LOCAL" priority="3" rank="14" abbrev="HCP" category="CORRECTNESS" instanceHash="75c7476bc1cac6f01811ae6bb23d614f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unreleased HttpRequest network resources (local)</ShortMessage> <LongMessage>The local HttpRequest ex.HCP_Sample.forgotToResetPut() does not release its network resources before being garbage collected, which could freeze the running code</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="forgotToResetPut" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" start="33" end="45" startBytecode="0" endBytecode="340" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.forgotToResetPut()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="33" end="33" startBytecode="16" endBytecode="16" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="84f0f9f16b6aa7ea28f9b9d8f05d338b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.HCP_Sample.forgotToResetGet() prints the stack trace to the console</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="forgotToResetGet" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" start="20" end="29" startBytecode="0" endBytecode="289" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.forgotToResetGet()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="27" end="27" startBytecode="107" endBytecode="107" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="ad4094ec83274ce18706df7a10b39853" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.HCP_Sample.forgotToResetPut() prints the stack trace to the console</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="forgotToResetPut" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" start="33" end="45" startBytecode="0" endBytecode="340" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.forgotToResetPut()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="43" end="43" startBytecode="133" endBytecode="133" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="33c98843af0b8b24807c98d3cd7df7d8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.HCP_Sample.main() prints the stack trace to the console</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="main" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.HCP_Sample" start="116" end="129" startBytecode="0" endBytecode="334" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.main()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="127" end="127" startBytecode="155" endBytecode="155" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 127]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="1c0141aae6b5de4071bb38907aff0af6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.HCP_Sample.resetGet1() prints the stack trace to the console</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="resetGet1" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" start="49" end="59" startBytecode="0" endBytecode="342" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.resetGet1()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="55" end="55" startBytecode="107" endBytecode="107" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="661bddad3d5adf1bb2522afe7dac2455" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.HCP_Sample.resetGet2() prints the stack trace to the console</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="resetGet2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" start="63" end="73" startBytecode="0" endBytecode="342" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.resetGet2()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="69" end="69" startBytecode="107" endBytecode="107" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 69]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="aff7fa23fa20fb72c7648fd845248439" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.HCP_Sample.resetPut1() prints the stack trace to the console</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="resetPut1" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" start="77" end="91" startBytecode="0" endBytecode="393" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.resetPut1()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="87" end="87" startBytecode="133" endBytecode="133" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 87]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="7287b357deff86ae09796e1e85d87b26" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.HCP_Sample.resetPut2() prints the stack trace to the console</LongMessage> <Class classname="ex.HCP_Sample" primary="true"> <SourceLine classname="ex.HCP_Sample" start="14" end="129" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[lines 14-129]</Message> </SourceLine> <Message>In class ex.HCP_Sample</Message> </Class> <Method classname="ex.HCP_Sample" name="resetPut2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.HCP_Sample" start="95" end="109" startBytecode="0" endBytecode="393" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"/> <Message>In method ex.HCP_Sample.resetPut2()</Message> </Method> <SourceLine classname="ex.HCP_Sample" primary="true" start="105" end="105" startBytecode="133" endBytecode="133" sourcefile="HCP_Sample.java" sourcepath="ex/HCP_Sample.java"> <Message>At HCP_Sample.java:[line 105]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="4bddce32e6ea5728772e804bd2f5e356" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to sb in ex.ICA_Sample.fpICA()</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="fpICA" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="59" end="64" startBytecode="0" endBytecode="27" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.fpICA()</Message> </Method> <LocalVariable name="sb" register="2" pc="52" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named sb</Message> </LocalVariable> <SourceLine classname="ex.ICA_Sample" primary="true" start="63" end="63" startBytecode="51" endBytecode="51" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 63]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="sb"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="3fdd0491e6104a1dcd91a3b65aef82da" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.ICA_Sample.testJScrollBar()</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testJScrollBar" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="36" end="37" startBytecode="0" endBytecode="5" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testJScrollBar()</Message> </Method> <LocalVariable name="b" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.ICA_Sample" primary="true" start="36" end="36" startBytecode="8" endBytecode="8" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 36]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="67b4d9ab52659e4fcf974e77f217fe5a" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.ICA_Sample.fpICA()</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="fpICA" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="59" end="64" startBytecode="0" endBytecode="27" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.fpICA()</Message> </Method> <LocalVariable name="b" register="1" pc="14" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.ICA_Sample" primary="true" start="61" end="61" startBytecode="24" endBytecode="24" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 61]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="bdcda1848a221cd2425fece12b8659e0" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.ICA_Sample.testBorder()</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testBorder" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="26" end="28" startBytecode="0" endBytecode="10" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testBorder()</Message> </Method> <LocalVariable name="b" register="1" pc="11" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.ICA_Sample" primary="true" start="27" end="27" startBytecode="21" endBytecode="21" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 27]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="67b4d9ab52659e4fcf974e77f217fe5a" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.ICA_Sample.fpICA()</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="fpICA" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="59" end="64" startBytecode="0" endBytecode="27" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.fpICA()</Message> </Method> <LocalVariable name="b" register="1" pc="25" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.ICA_Sample" primary="true" start="60" end="60" startBytecode="13" endBytecode="13" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 60]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="bdcda1848a221cd2425fece12b8659e0" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.ICA_Sample.testBorder()</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testBorder" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="26" end="28" startBytecode="0" endBytecode="10" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testBorder()</Message> </Method> <LocalVariable name="b" register="1" pc="22" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.ICA_Sample" primary="true" start="26" end="26" startBytecode="10" endBytecode="10" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 26]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DM_USELESS_THREAD" priority="3" rank="17" abbrev="Dm" category="MT_CORRECTNESS" instanceHash="95da16f12789d3851db3b27fe28a9ae0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>A thread was created using the default empty run method</ShortMessage> <LongMessage>ex.ICA_Sample.fpICA() creates a thread using the default empty run method</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="fpICA" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="59" end="64" startBytecode="0" endBytecode="134" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.fpICA()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="62" end="62" startBytecode="29" endBytecode="29" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_USELESS_THREAD" priority="3" rank="17" abbrev="Dm" category="MT_CORRECTNESS" instanceHash="10f0828413f83e190bfaac192c183fe7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>A thread was created using the default empty run method</ShortMessage> <LongMessage>ex.ICA_Sample.testThread() creates a thread using the default empty run method</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testThread" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="31" end="33" startBytecode="0" endBytecode="74" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testThread()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="31" end="31" startBytecode="4" endBytecode="4" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="4e4b5703c3c87f3107f5cbe072efe5bf" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testBigDecimalDivide() passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testBigDecimalDivide" signature="()Ljava/math/BigDecimal;" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="40" end="46" startBytecode="0" endBytecode="138" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testBigDecimalDivide()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="43" end="43" startBytecode="24" endBytecode="24" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 43]</Message> </SourceLine> <String value="Parameter 2"> <Message>Value Parameter 2</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="829f9e11e30ecf2ae8b931bd7a12f260" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testBigDecimalDivide() passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testBigDecimalDivide" signature="()Ljava/math/BigDecimal;" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="40" end="46" startBytecode="0" endBytecode="138" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testBigDecimalDivide()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="44" end="44" startBytecode="33" endBytecode="33" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 44]</Message> </SourceLine> <String value="Parameter 3"> <Message>Value Parameter 3</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="4e4b5703c3c87f3107f5cbe072efe5bf" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testBigDecimalDivide() passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testBigDecimalDivide" signature="()Ljava/math/BigDecimal;" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="40" end="46" startBytecode="0" endBytecode="138" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testBigDecimalDivide()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="45" end="45" startBytecode="41" endBytecode="41" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 45]</Message> </SourceLine> <String value="Parameter 2"> <Message>Value Parameter 2</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="184069062d06785e9c9947deb7ad5083" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testBorder() passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testBorder" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="26" end="28" startBytecode="0" endBytecode="82" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testBorder()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="26" end="26" startBytecode="7" endBytecode="7" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 26]</Message> </SourceLine> <String value="Parameter 1"> <Message>Value Parameter 1</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="184069062d06785e9c9947deb7ad5083" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testBorder() passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testBorder" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="26" end="28" startBytecode="0" endBytecode="82" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testBorder()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="27" end="27" startBytecode="18" endBytecode="18" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 27]</Message> </SourceLine> <String value="Parameter 1"> <Message>Value Parameter 1</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="15911efa857182d4582990b46536d8cc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testJOptionPane() passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testJOptionPane" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="22" end="23" startBytecode="0" endBytecode="56" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testJOptionPane()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="22" end="22" startBytecode="7" endBytecode="7" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 22]</Message> </SourceLine> <String value="Parameter 4"> <Message>Value Parameter 4</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="9eadaa65da18bc77cf67feff6ab3c59b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testJScrollBar() passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testJScrollBar" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="36" end="37" startBytecode="0" endBytecode="65" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testJScrollBar()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="36" end="36" startBytecode="5" endBytecode="5" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 36]</Message> </SourceLine> <String value="Parameter 1"> <Message>Value Parameter 1</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="d414ab16a5c476d835832fefb190db26" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testSQLStatement(Connection) passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testSQLStatement" signature="(Ljava/sql/Connection;)V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="51" end="56" startBytecode="0" endBytecode="328" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testSQLStatement(Connection)</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="51" end="51" startBytecode="11" endBytecode="11" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 51]</Message> </SourceLine> <String value="Parameter 1"> <Message>Value Parameter 1</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="acc9ccd2a9931c87335c6330e0323264" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testSQLStatement(Connection) passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testSQLStatement" signature="(Ljava/sql/Connection;)V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="51" end="56" startBytecode="0" endBytecode="328" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testSQLStatement(Connection)</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="54" end="54" startBytecode="83" endBytecode="83" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 54]</Message> </SourceLine> <String value="Parameter 3"> <Message>Value Parameter 3</Message> </String> </BugInstance> <BugInstance type="ICA_INVALID_CONSTANT_ARGUMENT" priority="2" rank="7" abbrev="ICA" category="CORRECTNESS" instanceHash="2279e7ca494ee797d9215ff3f1eb247e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an invalid value as a method argument</ShortMessage> <LongMessage>Method ex.ICA_Sample.testThread() passes an invalid value as a method argument</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testThread" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="31" end="33" startBytecode="0" endBytecode="74" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testThread()</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="32" end="32" startBytecode="11" endBytecode="11" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 32]</Message> </SourceLine> <String value="Parameter 1"> <Message>Value Parameter 1</Message> </String> </BugInstance> <BugInstance type="MDM_THREAD_PRIORITIES" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="6ff077c372708474bae5c916d0e7a6d7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses suspicious thread priorities</ShortMessage> <LongMessage>Method ex.ICA_Sample.fpICA() uses suspicious thread priorities by calling method Thread.setPriority(int)</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="fpICA" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="59" end="64" startBytecode="0" endBytecode="134" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.fpICA()</Message> </Method> <Method classname="java.lang.Thread" name="setPriority" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" start="1087" end="1097" startBytecode="0" endBytecode="124" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.setPriority(int)</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="62" end="62" startBytecode="34" endBytecode="34" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_PRIORITIES" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="8ff895aaf1f45f8a943401c6fa2d7325" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses suspicious thread priorities</ShortMessage> <LongMessage>Method ex.ICA_Sample.testThread() uses suspicious thread priorities by calling method Thread.setPriority(int)</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testThread" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="31" end="33" startBytecode="0" endBytecode="74" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testThread()</Message> </Method> <Method classname="java.lang.Thread" name="setPriority" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" start="1087" end="1097" startBytecode="0" endBytecode="124" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.setPriority(int)</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="32" end="32" startBytecode="11" endBytecode="11" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED" priority="1" rank="3" abbrev="RV" category="CORRECTNESS" instanceHash="46601cd80e0da349b5af4f9a35c6618b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Method ignores return value</ShortMessage> <LongMessage>Return value of java.math.BigDecimal.setScale(int, int) ignored in ex.ICA_Sample.testBigDecimalDivide()</LongMessage> <Class classname="ex.ICA_Sample" primary="true"> <SourceLine classname="ex.ICA_Sample" start="19" end="64" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[lines 19-64]</Message> </SourceLine> <Message>In class ex.ICA_Sample</Message> </Class> <Method classname="ex.ICA_Sample" name="testBigDecimalDivide" signature="()Ljava/math/BigDecimal;" isStatic="false" primary="true"> <SourceLine classname="ex.ICA_Sample" start="40" end="46" startBytecode="0" endBytecode="138" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"/> <Message>In method ex.ICA_Sample.testBigDecimalDivide()</Message> </Method> <Method classname="java.math.BigDecimal" name="setScale" signature="(II)Ljava/math/BigDecimal;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.math.BigDecimal" start="2430" end="2470" startBytecode="0" endBytecode="584" sourcefile="BigDecimal.java" sourcepath="java/math/BigDecimal.java"/> <Message>Called method java.math.BigDecimal.setScale(int, int)</Message> </Method> <SourceLine classname="ex.ICA_Sample" primary="true" start="45" end="45" startBytecode="41" endBytecode="41" sourcefile="ICA_Sample.java" sourcepath="ex/ICA_Sample.java"> <Message>At ICA_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="5bdbc9f12d62b4165c407c8696f1e336" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to cal in ex.IICU_Sample.test()</LongMessage> <Class classname="ex.IICU_Sample" primary="true"> <SourceLine classname="ex.IICU_Sample" start="7" end="10" sourcefile="IICU_Sample.java" sourcepath="ex/IICU_Sample.java"> <Message>At IICU_Sample.java:[lines 7-10]</Message> </SourceLine> <Message>In class ex.IICU_Sample</Message> </Class> <Method classname="ex.IICU_Sample" name="test" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.IICU_Sample" start="9" end="10" startBytecode="0" endBytecode="4" sourcefile="IICU_Sample.java" sourcepath="ex/IICU_Sample.java"/> <Message>In method ex.IICU_Sample.test()</Message> </Method> <LocalVariable name="cal" register="1" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named cal</Message> </LocalVariable> <SourceLine classname="ex.IICU_Sample" primary="true" start="9" end="9" startBytecode="7" endBytecode="7" sourcefile="IICU_Sample.java" sourcepath="ex/IICU_Sample.java"> <Message>At IICU_Sample.java:[line 9]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="cal"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="SSCU_SUSPICIOUS_SHADED_CLASS_USE" priority="2" rank="7" abbrev="SSCU" category="CORRECTNESS" instanceHash="121ebf2ca0dd1536034c0334fb898052" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls a method from a class that has been shaded by a 3rdparty jar</ShortMessage> <LongMessage>Method ex.IICU_Sample.test() calls a method from a class that has been shaded by a 3rdparty jar</LongMessage> <Class classname="ex.IICU_Sample" primary="true"> <SourceLine classname="ex.IICU_Sample" start="7" end="10" sourcefile="IICU_Sample.java" sourcepath="ex/IICU_Sample.java"> <Message>At IICU_Sample.java:[lines 7-10]</Message> </SourceLine> <Message>In class ex.IICU_Sample</Message> </Class> <Method classname="ex.IICU_Sample" name="test" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.IICU_Sample" start="9" end="10" startBytecode="0" endBytecode="64" sourcefile="IICU_Sample.java" sourcepath="ex/IICU_Sample.java"/> <Message>In method ex.IICU_Sample.test()</Message> </Method> <SourceLine classname="ex.IICU_Sample" primary="true" start="9" end="9" startBytecode="4" endBytecode="4" sourcefile="IICU_Sample.java" sourcepath="ex/IICU_Sample.java"> <Message>At IICU_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="f789385c9f0694ea2e92b940c4e78039" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to id in ex.IKNC_Sample.doGet(HttpServletRequest, HttpServletResponse)</LongMessage> <Class classname="ex.IKNC_Sample" primary="true"> <SourceLine classname="ex.IKNC_Sample" start="7" end="22" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[lines 7-22]</Message> </SourceLine> <Message>In class ex.IKNC_Sample</Message> </Class> <Method classname="ex.IKNC_Sample" name="doGet" signature="(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V" isStatic="false" primary="true"> <SourceLine classname="ex.IKNC_Sample" start="9" end="10" startBytecode="0" endBytecode="4" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"/> <Message>In method ex.IKNC_Sample.doGet(HttpServletRequest, HttpServletResponse)</Message> </Method> <LocalVariable name="id" register="3" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named id</Message> </LocalVariable> <SourceLine classname="ex.IKNC_Sample" primary="true" start="9" end="9" startBytecode="8" endBytecode="8" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[line 9]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="id"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="f8cba3ae243b29781147b0499552750d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to id in ex.IKNC_Sample.doPost(HttpServletRequest, HttpServletResponse)</LongMessage> <Class classname="ex.IKNC_Sample" primary="true"> <SourceLine classname="ex.IKNC_Sample" start="7" end="22" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[lines 7-22]</Message> </SourceLine> <Message>In class ex.IKNC_Sample</Message> </Class> <Method classname="ex.IKNC_Sample" name="doPost" signature="(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V" isStatic="false" primary="true"> <SourceLine classname="ex.IKNC_Sample" start="13" end="14" startBytecode="0" endBytecode="4" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"/> <Message>In method ex.IKNC_Sample.doPost(HttpServletRequest, HttpServletResponse)</Message> </Method> <LocalVariable name="id" register="3" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named id</Message> </LocalVariable> <SourceLine classname="ex.IKNC_Sample" primary="true" start="13" end="13" startBytecode="8" endBytecode="8" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[line 13]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="id"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="IKNC_INCONSISTENT_HTTP_PARAM_CASING" priority="2" rank="17" abbrev="IKNC" category="STYLE" instanceHash="63fb1cb8556b622e8633a7b61094f0a1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses the same HttpRequest parameter name but with different casing</ShortMessage> <LongMessage>Method ex.IKNC_Sample.doGet(HttpServletRequest, HttpServletResponse) uses the same HttpRequest parameter name but with different casing</LongMessage> <Class classname="ex.IKNC_Sample" primary="true"> <SourceLine classname="ex.IKNC_Sample" start="7" end="22" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[lines 7-22]</Message> </SourceLine> <Message>In class ex.IKNC_Sample</Message> </Class> <Method classname="ex.IKNC_Sample" name="doGet" signature="(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V" isStatic="false" primary="true"> <SourceLine classname="ex.IKNC_Sample" start="9" end="10" startBytecode="0" endBytecode="85" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"/> <Message>In method ex.IKNC_Sample.doGet(HttpServletRequest, HttpServletResponse)</Message> </Method> <SourceLine classname="ex.IKNC_Sample" primary="true" start="9" end="9" startBytecode="3" endBytecode="3" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[line 9]</Message> </SourceLine> <String value="id"> <Message>Value id</Message> </String> <Class classname="ex.IKNC_Sample"> <SourceLine classname="ex.IKNC_Sample" start="7" end="22" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[lines 7-22]</Message> </SourceLine> <Message>In class ex.IKNC_Sample</Message> </Class> <Method classname="ex.IKNC_Sample" name="doPost" signature="(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V" isStatic="false"> <SourceLine classname="ex.IKNC_Sample" start="13" end="14" startBytecode="0" endBytecode="85" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"/> <Message>In method ex.IKNC_Sample.doPost(HttpServletRequest, HttpServletResponse)</Message> </Method> <SourceLine classname="ex.IKNC_Sample" start="13" end="13" startBytecode="3" endBytecode="3" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[line 13]</Message> </SourceLine> <String value="ID"> <Message>Value ID</Message> </String> </BugInstance> <BugInstance type="IKNC_INCONSISTENT_HTTP_PARAM_CASING" priority="2" rank="17" abbrev="IKNC" category="STYLE" instanceHash="ae5b825c429e683580b3562858b3956" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses the same HttpRequest parameter name but with different casing</ShortMessage> <LongMessage>Method ex.IKNC_Sample.getScore1(HttpSession) uses the same HttpRequest parameter name but with different casing</LongMessage> <Class classname="ex.IKNC_Sample" primary="true"> <SourceLine classname="ex.IKNC_Sample" start="7" end="22" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[lines 7-22]</Message> </SourceLine> <Message>In class ex.IKNC_Sample</Message> </Class> <Method classname="ex.IKNC_Sample" name="getScore1" signature="(Ljavax/servlet/http/HttpSession;)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.IKNC_Sample" start="17" end="17" startBytecode="0" endBytecode="60" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"/> <Message>In method ex.IKNC_Sample.getScore1(HttpSession)</Message> </Method> <SourceLine classname="ex.IKNC_Sample" primary="true" start="17" end="17" startBytecode="3" endBytecode="3" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[line 17]</Message> </SourceLine> <String value="score"> <Message>Value score</Message> </String> <Class classname="ex.IKNC_Sample"> <SourceLine classname="ex.IKNC_Sample" start="7" end="22" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[lines 7-22]</Message> </SourceLine> <Message>In class ex.IKNC_Sample</Message> </Class> <Method classname="ex.IKNC_Sample" name="putScore" signature="(Ljavax/servlet/http/HttpSession;)V" isStatic="false"> <SourceLine classname="ex.IKNC_Sample" start="21" end="22" startBytecode="0" endBytecode="65" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"/> <Message>In method ex.IKNC_Sample.putScore(HttpSession)</Message> </Method> <SourceLine classname="ex.IKNC_Sample" start="21" end="21" startBytecode="4" endBytecode="4" sourcefile="IKNC_Sample.java" sourcepath="ex/IKNC_Sample.java"> <Message>At IKNC_Sample.java:[line 21]</Message> </SourceLine> <String value="Score"> <Message>Value Score</Message> </String> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="8cb33f619b4e9bc0b06c3a1216787e99" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.IMCFPHasAToString.toString() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.IMCFPHasAToString" primary="true"> <SourceLine classname="ex.IMCFPHasAToString" start="44" end="50" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 44-50]</Message> </SourceLine> <Message>In class ex.IMCFPHasAToString</Message> </Class> <Method classname="ex.IMCFPHasAToString" name="toString" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.IMCFPHasAToString" start="50" end="50" startBytecode="0" endBytecode="46" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"/> <Message>In method ex.IMCFPHasAToString.toString()</Message> </Method> <SourceLine classname="ex.IMCFPHasAToString" start="50" end="50" startBytecode="0" endBytecode="46" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>At IMC_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="9fa9beeedcf3e9299c8934bce3bde639" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.IMC_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.IMC_Sample" primary="true"> <SourceLine classname="ex.IMC_Sample" start="19" end="41" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 19-41]</Message> </SourceLine> <Message>In class ex.IMC_Sample</Message> </Class> <Field classname="ex.IMC_Sample" name="reportMe" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.IMC_Sample" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.IMC_Sample.reportMe</Message> </Field> <SourceLine classname="ex.IMC_Sample" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="3ef7eacabe58bbeeea1653a1f28545e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.IMC_Sample does not implement a toString method</LongMessage> <Class classname="ex.IMC_Sample" primary="true"> <SourceLine classname="ex.IMC_Sample" start="19" end="41" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 19-41]</Message> </SourceLine> <Message>In class ex.IMC_Sample</Message> </Class> <SourceLine classname="ex.IMC_Sample" start="19" end="41" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>At IMC_Sample.java:[lines 19-41]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="9319c0e1e6a85ff5f9b0c17435909c17" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.IMC_Sample.psf(File) prints the stack trace to the console</LongMessage> <Class classname="ex.IMC_Sample" primary="true"> <SourceLine classname="ex.IMC_Sample" start="19" end="41" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 19-41]</Message> </SourceLine> <Message>In class ex.IMC_Sample</Message> </Class> <Method classname="ex.IMC_Sample" name="psf" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.IMC_Sample" start="36" end="41" startBytecode="0" endBytecode="244" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"/> <Message>In method ex.IMC_Sample.psf(File)</Message> </Method> <SourceLine classname="ex.IMC_Sample" primary="true" start="39" end="39" startBytecode="70" endBytecode="70" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_WRONG_FIELD_ORDER" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="a34382d9cd1e51840314cb7bc67f11b8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class orders instance fields before static fields</ShortMessage> <LongMessage>Class ex.IMC_Sample orders instance fields before static fields</LongMessage> <Class classname="ex.IMC_Sample" primary="true"> <SourceLine classname="ex.IMC_Sample" start="19" end="41" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 19-41]</Message> </SourceLine> <Message>In class ex.IMC_Sample</Message> </Class> <Field classname="ex.IMC_Sample" name="OUT_OF_PLACE_STATIC" signature="I" isStatic="true" primary="true"> <SourceLine classname="ex.IMC_Sample" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.IMC_Sample.OUT_OF_PLACE_STATIC</Message> </Field> <SourceLine classname="ex.IMC_Sample" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="39bec430114a4c3d795b699dee14e375" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.IMC_Sample.psf(File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.IMC_Sample" primary="true"> <SourceLine classname="ex.IMC_Sample" start="19" end="41" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 19-41]</Message> </SourceLine> <Message>In class ex.IMC_Sample</Message> </Class> <Method classname="ex.IMC_Sample" name="psf" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.IMC_Sample" start="36" end="41" startBytecode="0" endBytecode="244" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"/> <Message>In method ex.IMC_Sample.psf(File)</Message> </Method> <SourceLine classname="ex.IMC_Sample" primary="true" start="36" end="36" startBytecode="9" endBytecode="9" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="69391d1d6efc8b13772a865102cb4fa6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.IMC_Sample.reportMe</LongMessage> <Class classname="ex.IMC_Sample" primary="true"> <SourceLine classname="ex.IMC_Sample" start="19" end="41" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 19-41]</Message> </SourceLine> <Message>In class ex.IMC_Sample</Message> </Class> <Field classname="ex.IMC_Sample" name="reportMe" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.IMC_Sample" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.IMC_Sample.reportMe</Message> </Field> <SourceLine classname="ex.IMC_Sample" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="18527fc851708da31a1fcb01169e6d44" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.IMC_Sample$FPClassIMC defines fields that are used only as locals</LongMessage> <Class classname="ex.IMC_Sample$FPClassIMC" primary="true"> <SourceLine classname="ex.IMC_Sample$FPClassIMC" start="26" end="26" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 26]</Message> </SourceLine> <Message>In class ex.IMC_Sample$FPClassIMC</Message> </Class> <Field classname="ex.IMC_Sample$FPClassIMC" name="dontReportMe" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.IMC_Sample$FPClassIMC" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.IMC_Sample$FPClassIMC.dontReportMe</Message> </Field> <SourceLine classname="ex.IMC_Sample$FPClassIMC" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="88bb24869ebcb5cd3659a4041c5c862d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.IMC_Sample$FPClassIMC be a _static_ inner class?</LongMessage> <Class classname="ex.IMC_Sample$FPClassIMC" primary="true"> <SourceLine classname="ex.IMC_Sample$FPClassIMC" start="26" end="26" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 26]</Message> </SourceLine> <Message>In class ex.IMC_Sample$FPClassIMC</Message> </Class> <SourceLine classname="ex.IMC_Sample$FPClassIMC" start="26" end="26" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>At IMC_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="49e84971716d60ced762ae88e2c77f53" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.IMC_Sample$FPClassIMC.dontReportMe</LongMessage> <Class classname="ex.IMC_Sample$FPClassIMC" primary="true"> <SourceLine classname="ex.IMC_Sample$FPClassIMC" start="26" end="26" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 26]</Message> </SourceLine> <Message>In class ex.IMC_Sample$FPClassIMC</Message> </Class> <Field classname="ex.IMC_Sample$FPClassIMC" name="dontReportMe" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.IMC_Sample$FPClassIMC" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.IMC_Sample$FPClassIMC.dontReportMe</Message> </Field> <SourceLine classname="ex.IMC_Sample$FPClassIMC" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="348090635376bfb40ba49d9303614983" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.IMC_Sample$FPFieldIMC defines fields that are used only as locals</LongMessage> <Class classname="ex.IMC_Sample$FPFieldIMC" primary="true"> <SourceLine classname="ex.IMC_Sample$FPFieldIMC" start="30" end="30" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 30]</Message> </SourceLine> <Message>In class ex.IMC_Sample$FPFieldIMC</Message> </Class> <Field classname="ex.IMC_Sample$FPFieldIMC" name="dontReportMe" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.IMC_Sample$FPFieldIMC" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.IMC_Sample$FPFieldIMC.dontReportMe</Message> </Field> <SourceLine classname="ex.IMC_Sample$FPFieldIMC" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>In IMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="f28d37b0002f5aad66a48196ebbd18f8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.IMC_Sample$FPFieldIMC be a _static_ inner class?</LongMessage> <Class classname="ex.IMC_Sample$FPFieldIMC" primary="true"> <SourceLine classname="ex.IMC_Sample$FPFieldIMC" start="30" end="30" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 30]</Message> </SourceLine> <Message>In class ex.IMC_Sample$FPFieldIMC</Message> </Class> <SourceLine classname="ex.IMC_Sample$FPFieldIMC" start="30" end="30" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>At IMC_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_DEFAULT_ENCODING" priority="1" rank="19" abbrev="Dm" category="I18N" instanceHash="c3e85cac0419db5d10f649bc38f8a1f1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Reliance on default encoding</ShortMessage> <LongMessage>Found reliance on default encoding in ex.IOI_Sample.getIOIReaderData(File): new java.io.FileReader(File)</LongMessage> <Class classname="ex.IOI_Sample" primary="true"> <SourceLine classname="ex.IOI_Sample" start="15" end="46" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[lines 15-46]</Message> </SourceLine> <Message>In class ex.IOI_Sample</Message> </Class> <Method classname="ex.IOI_Sample" name="getIOIReaderData" signature="(Ljava/io/File;)[B" isStatic="false" primary="true"> <SourceLine classname="ex.IOI_Sample" start="27" end="32" startBytecode="0" endBytecode="316" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"/> <Message>In method ex.IOI_Sample.getIOIReaderData(File)</Message> </Method> <Method classname="java.io.FileReader" name="<init>" signature="(Ljava/io/File;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.FileReader" start="72" end="73" startBytecode="0" endBytecode="40" sourcefile="FileReader.java" sourcepath="java/io/FileReader.java"/> <Message>Called method new java.io.FileReader(File)</Message> </Method> <SourceLine classname="ex.IOI_Sample" primary="true" start="27" end="27" startBytecode="9" endBytecode="9" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_COPY_WITH_READER" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="dabfb4d911b0df164d63d5237f39c7ab" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method performs bulk stream copy with a java.io.Reader derived input</ShortMessage> <LongMessage>Method ex.IOI_Sample.getIOIReaderData(File) performs bulk stream copy with a java.io.Reader derived input</LongMessage> <Class classname="ex.IOI_Sample" primary="true"> <SourceLine classname="ex.IOI_Sample" start="15" end="46" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[lines 15-46]</Message> </SourceLine> <Message>In class ex.IOI_Sample</Message> </Class> <Method classname="ex.IOI_Sample" name="getIOIReaderData" signature="(Ljava/io/File;)[B" isStatic="false" primary="true"> <SourceLine classname="ex.IOI_Sample" start="27" end="32" startBytecode="0" endBytecode="316" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"/> <Message>In method ex.IOI_Sample.getIOIReaderData(File)</Message> </Method> <SourceLine classname="ex.IOI_Sample" primary="true" start="29" end="29" startBytecode="27" endBytecode="27" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_DOUBLE_BUFFER_COPY" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="d0480a5335440c4063a25760a0ffdcc8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes a Buffered Stream/Reader/Writer to a already buffering copy method</ShortMessage> <LongMessage>Method ex.IOI_Sample.getIOIData(File) passes a Buffered Stream/Reader/Writer to a already buffering copy method</LongMessage> <Class classname="ex.IOI_Sample" primary="true"> <SourceLine classname="ex.IOI_Sample" start="15" end="46" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[lines 15-46]</Message> </SourceLine> <Message>In class ex.IOI_Sample</Message> </Class> <Method classname="ex.IOI_Sample" name="getIOIData" signature="(Ljava/io/File;)[B" isStatic="false" primary="true"> <SourceLine classname="ex.IOI_Sample" start="18" end="23" startBytecode="0" endBytecode="324" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"/> <Message>In method ex.IOI_Sample.getIOIData(File)</Message> </Method> <SourceLine classname="ex.IOI_Sample" primary="true" start="20" end="20" startBytecode="34" endBytecode="34" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="b8410c9dbf970f02ea7e7a5d8e36193b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.IOI_Sample.copy(String, String) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.IOI_Sample" primary="true"> <SourceLine classname="ex.IOI_Sample" start="15" end="46" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[lines 15-46]</Message> </SourceLine> <Message>In class ex.IOI_Sample</Message> </Class> <Method classname="ex.IOI_Sample" name="copy" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.IOI_Sample" start="36" end="46" startBytecode="0" endBytecode="433" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"/> <Message>In method ex.IOI_Sample.copy(String, String)</Message> </Method> <SourceLine classname="ex.IOI_Sample" primary="true" start="38" end="38" startBytecode="17" endBytecode="17" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="7a3d35397a2452e10d95e8e83c5c7c16" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.IOI_Sample.getIOIData(File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.IOI_Sample" primary="true"> <SourceLine classname="ex.IOI_Sample" start="15" end="46" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[lines 15-46]</Message> </SourceLine> <Message>In class ex.IOI_Sample</Message> </Class> <Method classname="ex.IOI_Sample" name="getIOIData" signature="(Ljava/io/File;)[B" isStatic="false" primary="true"> <SourceLine classname="ex.IOI_Sample" start="18" end="23" startBytecode="0" endBytecode="324" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"/> <Message>In method ex.IOI_Sample.getIOIData(File)</Message> </Method> <SourceLine classname="ex.IOI_Sample" primary="true" start="18" end="18" startBytecode="13" endBytecode="13" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="b00ccb48d906ac4aa3565872c8b6a4e3" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of is, which is known to be non-null in ex.IOI_Sample.getIOIData(File)</LongMessage> <Class classname="ex.IOI_Sample" primary="true"> <SourceLine classname="ex.IOI_Sample" start="15" end="46" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[lines 15-46]</Message> </SourceLine> <Message>In class ex.IOI_Sample</Message> </Class> <Method classname="ex.IOI_Sample" name="getIOIData" signature="(Ljava/io/File;)[B" isStatic="false" primary="true"> <SourceLine classname="ex.IOI_Sample" start="18" end="23" startBytecode="0" endBytecode="324" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"/> <Message>In method ex.IOI_Sample.getIOIData(File)</Message> </Method> <LocalVariable name="is" register="4" pc="97" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from is</Message> </LocalVariable> <Method classname="java.io.BufferedInputStream" name="<init>" signature="(Ljava/io/InputStream;)V" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="java.io.BufferedInputStream" start="183" end="184" startBytecode="0" endBytecode="36" sourcefile="BufferedInputStream.java" sourcepath="java/io/BufferedInputStream.java"/> <Message>Return value of new java.io.BufferedInputStream(InputStream) of type void</Message> </Method> <SourceLine classname="ex.IOI_Sample" primary="true" start="23" end="23" startBytecode="99" endBytecode="99" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at IOI_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="245c57394825fe138193afcf21e52849" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of r, which is known to be non-null in ex.IOI_Sample.getIOIReaderData(File)</LongMessage> <Class classname="ex.IOI_Sample" primary="true"> <SourceLine classname="ex.IOI_Sample" start="15" end="46" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[lines 15-46]</Message> </SourceLine> <Message>In class ex.IOI_Sample</Message> </Class> <Method classname="ex.IOI_Sample" name="getIOIReaderData" signature="(Ljava/io/File;)[B" isStatic="false" primary="true"> <SourceLine classname="ex.IOI_Sample" start="27" end="32" startBytecode="0" endBytecode="316" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"/> <Message>In method ex.IOI_Sample.getIOIReaderData(File)</Message> </Method> <LocalVariable name="r" register="4" pc="89" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from r</Message> </LocalVariable> <Method classname="java.io.FileReader" name="<init>" signature="(Ljava/io/File;)V" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="java.io.FileReader" start="72" end="73" startBytecode="0" endBytecode="40" sourcefile="FileReader.java" sourcepath="java/io/FileReader.java"/> <Message>Return value of new java.io.FileReader(File) of type void</Message> </Method> <SourceLine classname="ex.IOI_Sample" primary="true" start="32" end="32" startBytecode="91" endBytecode="91" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at IOI_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="bd6f22b61ae313c5384124dfc9f0ce9e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.IOI_Sample$FPBofoStream be a _static_ inner class?</LongMessage> <Class classname="ex.IOI_Sample$FPBofoStream" primary="true"> <SourceLine classname="ex.IOI_Sample$FPBofoStream" start="50" end="52" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java"> <Message>At IOI_Sample.java:[lines 50-52]</Message> </SourceLine> <Message>In class ex.IOI_Sample$FPBofoStream</Message> </Class> <SourceLine classname="ex.IOI_Sample$FPBofoStream" start="50" end="52" sourcefile="IOI_Sample.java" sourcepath="ex/IOI_Sample.java" synthetic="true"> <Message>At IOI_Sample.java:[lines 50-52]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="98c77b1b2779f664a5b89fffe8021e01" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.IPU_Sample.testIPUSimple() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.IPU_Sample" primary="true"> <SourceLine classname="ex.IPU_Sample" start="4" end="19" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"> <Message>At IPU_Sample.java:[lines 4-19]</Message> </SourceLine> <Message>In class ex.IPU_Sample</Message> </Class> <Method classname="ex.IPU_Sample" name="testIPUSimple" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.IPU_Sample" start="7" end="9" startBytecode="0" endBytecode="83" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"/> <Message>In method ex.IPU_Sample.testIPUSimple()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.IPU_Sample" primary="true" start="8" end="8" startBytecode="16" endBytecode="16" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"> <Message>At IPU_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="IPU_IMPROPER_PROPERTIES_USE" priority="2" rank="7" abbrev="IPU" category="CORRECTNESS" instanceHash="26e65c7d593d4de0fa7617c0abed7ddf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method puts non-String values into a Properties object</ShortMessage> <LongMessage>Method ex.IPU_Sample.testIPUSimple() puts non-String values into a Properties object</LongMessage> <Class classname="ex.IPU_Sample" primary="true"> <SourceLine classname="ex.IPU_Sample" start="4" end="19" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"> <Message>At IPU_Sample.java:[lines 4-19]</Message> </SourceLine> <Message>In class ex.IPU_Sample</Message> </Class> <Method classname="ex.IPU_Sample" name="testIPUSimple" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.IPU_Sample" start="7" end="9" startBytecode="0" endBytecode="83" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"/> <Message>In method ex.IPU_Sample.testIPUSimple()</Message> </Method> <SourceLine classname="ex.IPU_Sample" primary="true" start="8" end="8" startBytecode="19" endBytecode="19" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"> <Message>At IPU_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="IPU_IMPROPER_PROPERTIES_USE_SETPROPERTY" priority="2" rank="7" abbrev="IPU" category="CORRECTNESS" instanceHash="dd1f4df42d701e08544c686278d2364a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses Properties.put instead of Properties.setProperty</ShortMessage> <LongMessage>Method ex.IPU_Sample.testIPUUseSetProperty(Object) uses Properties.put instead of Properties.setProperty</LongMessage> <Class classname="ex.IPU_Sample" primary="true"> <SourceLine classname="ex.IPU_Sample" start="4" end="19" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"> <Message>At IPU_Sample.java:[lines 4-19]</Message> </SourceLine> <Message>In class ex.IPU_Sample</Message> </Class> <Method classname="ex.IPU_Sample" name="testIPUUseSetProperty" signature="(Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.IPU_Sample" start="12" end="14" startBytecode="0" endBytecode="86" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"/> <Message>In method ex.IPU_Sample.testIPUUseSetProperty(Object)</Message> </Method> <SourceLine classname="ex.IPU_Sample" primary="true" start="13" end="13" startBytecode="12" endBytecode="12" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"> <Message>At IPU_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="IPU_IMPROPER_PROPERTIES_USE_SETPROPERTY" priority="3" rank="10" abbrev="IPU" category="CORRECTNESS" instanceHash="ec57c40eb8dd7e8e04e7e4235afd7b45" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses Properties.put instead of Properties.setProperty</ShortMessage> <LongMessage>Method ex.IPU_Sample.testIPUUseMinorSetProperty() uses Properties.put instead of Properties.setProperty</LongMessage> <Class classname="ex.IPU_Sample" primary="true"> <SourceLine classname="ex.IPU_Sample" start="4" end="19" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"> <Message>At IPU_Sample.java:[lines 4-19]</Message> </SourceLine> <Message>In class ex.IPU_Sample</Message> </Class> <Method classname="ex.IPU_Sample" name="testIPUUseMinorSetProperty" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.IPU_Sample" start="17" end="19" startBytecode="0" endBytecode="77" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"/> <Message>In method ex.IPU_Sample.testIPUUseMinorSetProperty()</Message> </Method> <SourceLine classname="ex.IPU_Sample" primary="true" start="18" end="18" startBytecode="13" endBytecode="13" sourcefile="IPU_Sample.java" sourcepath="ex/IPU_Sample.java"> <Message>At IPU_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="e38b1d432878ce7abdd9662606e1d1c3" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to sb1 in ex.ISB_Sample.testCtorIssue(String)</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testCtorIssue" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="86" end="88" startBytecode="0" endBytecode="23" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testCtorIssue(String)</Message> </Method> <LocalVariable name="sb1" register="2" pc="27" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named sb1</Message> </LocalVariable> <SourceLine classname="ex.ISB_Sample" primary="true" start="86" end="86" startBytecode="26" endBytecode="26" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 86]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="sb1"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="7968c60dc5859a55d85dcca2dda08a84" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to sb2 in ex.ISB_Sample.testCtorIssue(String)</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testCtorIssue" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="86" end="88" startBytecode="0" endBytecode="23" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testCtorIssue(String)</Message> </Method> <LocalVariable name="sb2" register="3" pc="51" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named sb2</Message> </LocalVariable> <SourceLine classname="ex.ISB_Sample" primary="true" start="87" end="87" startBytecode="50" endBytecode="50" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 87]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="sb2"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="ISB_INEFFICIENT_STRING_BUFFERING" priority="2" rank="18" abbrev="ISB" category="PERFORMANCE" instanceHash="4bf6779119bf797bc4e8a0684f20ca8e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes simple concatenating string in StringBuffer or StringBuilder append</ShortMessage> <LongMessage>Method ex.ISB_Sample.testISB2(Map) passes simple concatenating string in StringBuffer or StringBuilder append</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testISB2" signature="(Ljava/util/Map;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="15" end="21" startBytecode="0" endBytecode="230" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testISB2(Map)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="18" end="18" startBytecode="67" endBytecode="67" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="ISB_TOSTRING_APPENDING" priority="2" rank="7" abbrev="ISB" category="CORRECTNESS" instanceHash="9cc49884d0650368aa2ce056f3989bb1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method concatenates the result of a toString() call</ShortMessage> <LongMessage>Method ex.ISB_Sample.speak(ISB_Sample$MonsterSpeak) concatenates the result of a toString() call</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="speak" signature="(Lex/ISB_Sample$MonsterSpeak;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="124" end="124" startBytecode="0" endBytecode="71" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.speak(ISB_Sample$MonsterSpeak)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="124" end="124" startBytecode="13" endBytecode="13" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 124]</Message> </SourceLine> </BugInstance> <BugInstance type="ISB_TOSTRING_APPENDING" priority="2" rank="7" abbrev="ISB" category="CORRECTNESS" instanceHash="6bbbba73e9b376ba0923b468b13566f3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method concatenates the result of a toString() call</ShortMessage> <LongMessage>Method ex.ISB_Sample.testTOStringAppending(Map) concatenates the result of a toString() call</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testTOStringAppending" signature="(Ljava/util/Map;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="64" end="70" startBytecode="0" endBytecode="122" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testTOStringAppending(Map)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="69" end="69" startBytecode="22" endBytecode="22" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 69]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="3651d6a2ac7e0bbff321c26fbf63f870" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.ISB_Sample.testCtorIssue(String) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testCtorIssue" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="86" end="88" startBytecode="0" endBytecode="131" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testCtorIssue(String)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="86" end="86" startBytecode="26" endBytecode="26" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 86]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="efd9a67da8d931f06205875bb6082b49" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.ISB_Sample.testFPISB9(int) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testFPISB9" signature="(I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="57" end="60" startBytecode="0" endBytecode="99" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testFPISB9(int)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="57" end="57" startBytecode="7" endBytecode="7" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 57]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="74240890db2eea27917f6ec16edc29ea" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.ISB_Sample.testISB1(String, String) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testISB1" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="8" end="11" startBytecode="0" endBytecode="146" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testISB1(String, String)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="8" end="8" startBytecode="7" endBytecode="7" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="83d7c7cf44defc8510ee4375aacfa493" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.ISB_Sample.testISB2(Map) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testISB2" signature="(Ljava/util/Map;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="15" end="21" startBytecode="0" endBytecode="230" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testISB2(Map)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="15" end="15" startBytecode="7" endBytecode="7" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="e88da87c3baa5188d8e37d28ac4d446f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.ISB_Sample.testISB3(String) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testISB3" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="25" end="26" startBytecode="0" endBytecode="79" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testISB3(String)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="25" end="25" startBytecode="8" endBytecode="8" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="1ff2bcb87060cc8258e0b3136d9891ab" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.ISB_Sample.testISB4(int) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testISB4" signature="(I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="30" end="31" startBytecode="0" endBytecode="79" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testISB4(int)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="30" end="30" startBytecode="8" endBytecode="8" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="6a6d1be783cb57a61d2b0fd2d1f6702f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.ISB_Sample.testISB7(String) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testISB7" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="43" end="46" startBytecode="0" endBytecode="102" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testISB7(String)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="43" end="43" startBytecode="7" endBytecode="7" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="24ab91414d8fbb9bbea192487bff07ca" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.ISB_Sample.toString() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="toString" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="77" end="82" startBytecode="0" endBytecode="151" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.toString()</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="79" end="79" startBytecode="19" endBytecode="19" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 79]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="8050110375212cea183a3156744ef739" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.ISB_Sample.xform(String) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="xform" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="118" end="118" startBytecode="0" endBytecode="53" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.xform(String)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.ISB_Sample" start="118" end="118" startBytecode="0" endBytecode="53" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java" synthetic="true"> <Message>At ISB_Sample.java:[line 118]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="e78e93d04619df2196bfbdbeeb1f14c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable sb2 of method ex.ISB_Sample.testCtorIssue(String)</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testCtorIssue" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="86" end="88" startBytecode="0" endBytecode="131" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testCtorIssue(String)</Message> </Method> <String value="sb2"> <Message>Value sb2</Message> </String> <Type descriptor="Ljava/lang/StringBuilder;"> <SourceLine classname="java.lang.StringBuilder" start="76" end="437" sourcefile="StringBuilder.java" sourcepath="java/lang/StringBuilder.java"> <Message>At StringBuilder.java:[lines 76-437]</Message> </SourceLine> <Message>Type StringBuilder</Message> </Type> <SourceLine classname="ex.ISB_Sample" primary="true" start="87" end="87" startBytecode="47" endBytecode="47" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 87]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="451fbd977d40ca005ea1e1ee67c77508" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.ISB_Sample.testCtorIssue(String) seems to be useless</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testCtorIssue" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="86" end="88" startBytecode="0" endBytecode="131" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testCtorIssue(String)</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="88" end="88" startBytecode="51" endBytecode="51" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 88]</Message> </SourceLine> </BugInstance> <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" rank="17" abbrev="USBR" category="STYLE" instanceHash="9df141e7b756a845c916dd401104534f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stores return result in local before immediately returning it</ShortMessage> <LongMessage>Method ex.ISB_Sample.testISB8() stores return result in local before immediately returning it</LongMessage> <Class classname="ex.ISB_Sample" primary="true"> <SourceLine classname="ex.ISB_Sample" start="6" end="128" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[lines 6-128]</Message> </SourceLine> <Message>In class ex.ISB_Sample</Message> </Class> <Method classname="ex.ISB_Sample" name="testISB8" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ISB_Sample" start="50" end="53" startBytecode="0" endBytecode="84" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"/> <Message>In method ex.ISB_Sample.testISB8()</Message> </Method> <SourceLine classname="ex.ISB_Sample" primary="true" start="53" end="53" startBytecode="24" endBytecode="24" sourcefile="ISB_Sample.java" sourcepath="ex/ISB_Sample.java"> <Message>At ISB_Sample.java:[line 53]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="67eca035227da8177273016e1082fb6b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.ITC_Sample.testOthers(List) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.ITC_Sample" primary="true"> <SourceLine classname="ex.ITC_Sample" start="8" end="36" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java"> <Message>At ITC_Sample.java:[lines 8-36]</Message> </SourceLine> <Message>In class ex.ITC_Sample</Message> </Class> <Method classname="ex.ITC_Sample" name="testOthers" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ITC_Sample" start="20" end="27" startBytecode="0" endBytecode="162" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java"/> <Message>In method ex.ITC_Sample.testOthers(List)</Message> </Method> <SourceLine classname="ex.ITC_Sample" start="20" end="27" startBytecode="0" endBytecode="162" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java" synthetic="true"> <Message>At ITC_Sample.java:[lines 20-27]</Message> </SourceLine> </BugInstance> <BugInstance type="ITC_INHERITANCE_TYPE_CHECKING" priority="2" rank="17" abbrev="ITC" category="STYLE" instanceHash="8213fd482353c290021189ab02bc4f2e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses instanceof on multiple types to arbitrate logic</ShortMessage> <LongMessage>Method ex.ITC_Sample.testMine(ITC_Sample$A) uses instanceof on multiple types to arbitrate logic</LongMessage> <Class classname="ex.ITC_Sample" primary="true"> <SourceLine classname="ex.ITC_Sample" start="8" end="36" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java"> <Message>At ITC_Sample.java:[lines 8-36]</Message> </SourceLine> <Message>In class ex.ITC_Sample</Message> </Class> <Method classname="ex.ITC_Sample" name="testMine" signature="(Lex/ITC_Sample$A;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ITC_Sample" start="31" end="36" startBytecode="0" endBytecode="100" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java"/> <Message>In method ex.ITC_Sample.testMine(ITC_Sample$A)</Message> </Method> <SourceLine classname="ex.ITC_Sample" primary="true" start="31" end="31" startBytecode="0" endBytecode="0" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java"> <Message>At ITC_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="ITC_INHERITANCE_TYPE_CHECKING" priority="3" rank="20" abbrev="ITC" category="STYLE" instanceHash="924cd07e7c6ae48c22c5f862aa029f84" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses instanceof on multiple types to arbitrate logic</ShortMessage> <LongMessage>Method ex.ITC_Sample.testOthers(List) uses instanceof on multiple types to arbitrate logic</LongMessage> <Class classname="ex.ITC_Sample" primary="true"> <SourceLine classname="ex.ITC_Sample" start="8" end="36" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java"> <Message>At ITC_Sample.java:[lines 8-36]</Message> </SourceLine> <Message>In class ex.ITC_Sample</Message> </Class> <Method classname="ex.ITC_Sample" name="testOthers" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ITC_Sample" start="20" end="27" startBytecode="0" endBytecode="162" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java"/> <Message>In method ex.ITC_Sample.testOthers(List)</Message> </Method> <SourceLine classname="ex.ITC_Sample" primary="true" start="20" end="20" startBytecode="0" endBytecode="0" sourcefile="ITC_Sample.java" sourcepath="ex/ITC_Sample.java"> <Message>At ITC_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="e2c23ab98192206456303248a728d38e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.ITU_Sample.processList2() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.ITU_Sample" primary="true"> <SourceLine classname="ex.ITU_Sample" start="4" end="26" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>At ITU_Sample.java:[lines 4-26]</Message> </SourceLine> <Message>In class ex.ITU_Sample</Message> </Class> <Method classname="ex.ITU_Sample" name="processList2" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ITU_Sample" start="13" end="17" startBytecode="0" endBytecode="99" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"/> <Message>In method ex.ITU_Sample.processList2()</Message> </Method> <SourceLine classname="ex.ITU_Sample" start="13" end="17" startBytecode="0" endBytecode="99" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java" synthetic="true"> <Message>At ITU_Sample.java:[lines 13-17]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="b4e61e3819f44e14aa46f707a8071818" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field l in ex.ITU_Sample.processList()</LongMessage> <Class classname="ex.ITU_Sample" primary="true"> <SourceLine classname="ex.ITU_Sample" start="4" end="26" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>At ITU_Sample.java:[lines 4-26]</Message> </SourceLine> <Message>In class ex.ITU_Sample</Message> </Class> <Method classname="ex.ITU_Sample" name="processList" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ITU_Sample" start="9" end="9" startBytecode="0" endBytecode="55" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"/> <Message>In method ex.ITU_Sample.processList()</Message> </Method> <Field classname="ex.ITU_Sample" name="l" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.ITU_Sample" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>In ITU_Sample.java</Message> </SourceLine> <Message>Field ex.ITU_Sample.l</Message> </Field> <SourceLine classname="ex.ITU_Sample" primary="true" start="9" end="9" startBytecode="4" endBytecode="4" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>At ITU_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="3b580e7152a7697bba2613c1413bcc69" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field l in ex.ITU_Sample.processList2()</LongMessage> <Class classname="ex.ITU_Sample" primary="true"> <SourceLine classname="ex.ITU_Sample" start="4" end="26" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>At ITU_Sample.java:[lines 4-26]</Message> </SourceLine> <Message>In class ex.ITU_Sample</Message> </Class> <Method classname="ex.ITU_Sample" name="processList2" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ITU_Sample" start="13" end="17" startBytecode="0" endBytecode="99" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"/> <Message>In method ex.ITU_Sample.processList2()</Message> </Method> <Field classname="ex.ITU_Sample" name="l" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.ITU_Sample" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>In ITU_Sample.java</Message> </SourceLine> <Message>Field ex.ITU_Sample.l</Message> </Field> <SourceLine classname="ex.ITU_Sample" primary="true" start="13" end="13" startBytecode="4" endBytecode="4" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>At ITU_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="5bc21847aa77984381ef2d689fc10958" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of s, which is known to be non-null in ex.ITU_Sample.processList2()</LongMessage> <Class classname="ex.ITU_Sample" primary="true"> <SourceLine classname="ex.ITU_Sample" start="4" end="26" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>At ITU_Sample.java:[lines 4-26]</Message> </SourceLine> <Message>In class ex.ITU_Sample</Message> </Class> <Method classname="ex.ITU_Sample" name="processList2" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.ITU_Sample" start="13" end="17" startBytecode="0" endBytecode="99" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"/> <Message>In method ex.ITU_Sample.processList2()</Message> </Method> <LocalVariable name="s" register="1" pc="8" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from s</Message> </LocalVariable> <Method classname="java.lang.Object" name="toString" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="java.lang.Object" start="236" end="236" startBytecode="0" endBytecode="59" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Return value of Object.toString() of type String</Message> </Method> <SourceLine classname="ex.ITU_Sample" primary="true" start="14" end="14" startBytecode="9" endBytecode="9" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at ITU_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="a966471b639e1d12d4cee3c491bd4647" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.ITU_Sample.l</LongMessage> <Class classname="ex.ITU_Sample" primary="true"> <SourceLine classname="ex.ITU_Sample" start="4" end="26" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>At ITU_Sample.java:[lines 4-26]</Message> </SourceLine> <Message>In class ex.ITU_Sample</Message> </Class> <Field classname="ex.ITU_Sample" name="l" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.ITU_Sample" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>In ITU_Sample.java</Message> </SourceLine> <Message>Field ex.ITU_Sample.l</Message> </Field> <SourceLine classname="ex.ITU_Sample" primary="true" start="9" end="9" startBytecode="1" endBytecode="1" sourcefile="ITU_Sample.java" sourcepath="ex/ITU_Sample.java"> <Message>At ITU_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="f91cab3c34b9ed71b85e092d2eba7276" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.JPAI_Sample does not implement a toString method</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_IGNORED_MERGE_RESULT" priority="3" rank="11" abbrev="JPAI" category="CORRECTNESS" instanceHash="f52ab9d90102cda274ba1d12b27c4640" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method ignores the return value of EntityManager.merge</ShortMessage> <LongMessage>Method ex.JPAI_Sample.ignoreMergeResult(JPAI_Sample$MyEntity, JPAI_Sample$SubEntity) ignores the return value of EntityManager.merge</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="ignoreMergeResult" signature="(Lex/JPAI_Sample$MyEntity;Lex/JPAI_Sample$SubEntity;)V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="41" end="49" startBytecode="0" endBytecode="166" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.ignoreMergeResult(JPAI_Sample$MyEntity, JPAI_Sample$SubEntity)</Message> </Method> <SourceLine classname="ex.JPAI_Sample" primary="true" start="41" end="41" startBytecode="10" endBytecode="10" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_IGNORED_MERGE_RESULT" priority="3" rank="11" abbrev="JPAI" category="CORRECTNESS" instanceHash="f52ab9d90102cda274ba1d12b27c4640" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method ignores the return value of EntityManager.merge</ShortMessage> <LongMessage>Method ex.JPAI_Sample.ignoreMergeResult(JPAI_Sample$MyEntity, JPAI_Sample$SubEntity) ignores the return value of EntityManager.merge</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="ignoreMergeResult" signature="(Lex/JPAI_Sample$MyEntity;Lex/JPAI_Sample$SubEntity;)V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="41" end="49" startBytecode="0" endBytecode="166" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.ignoreMergeResult(JPAI_Sample$MyEntity, JPAI_Sample$SubEntity)</Message> </Method> <SourceLine classname="ex.JPAI_Sample" primary="true" start="42" end="42" startBytecode="21" endBytecode="21" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_NON_PROXIED_TRANSACTION_CALL" priority="3" rank="10" abbrev="JPAI" category="CORRECTNESS" instanceHash="76d8504c7b748ed111f719b9990afb95" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method annotated with @Transactional is called from a non Spring proxy</ShortMessage> <LongMessage>Method ex.JPAI_Sample.badWrite() annotated with @Transactional is called from a non Spring proxy</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="badWrite" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="36" end="37" startBytecode="0" endBytecode="50" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.badWrite()</Message> </Method> <SourceLine classname="ex.JPAI_Sample" primary="true" start="36" end="36" startBytecode="1" endBytecode="1" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_NON_SPECIFIED_TRANSACTION_EXCEPTION_HANDLING" priority="2" rank="7" abbrev="JPAI" category="CORRECTNESS" instanceHash="e9d4a1481d24f8033cd96508d4962537" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not specify how to handle transaction when exception is thrown</ShortMessage> <LongMessage>Method ex.JPAI_Sample.noRollbacks(JPAI_Sample$MyEntity) does not specify how to handle transaction when exception is thrown</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="noRollbacks" signature="(Lex/JPAI_Sample$MyEntity;)V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="54" end="54" startBytecode="0" endBytecode="52" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.noRollbacks(JPAI_Sample$MyEntity)</Message> </Method> <String value="Exception: java.io.IOException"> <Message>Value Exception: java.io.IOException</Message> </String> <SourceLine classname="ex.JPAI_Sample" start="54" end="54" startBytecode="0" endBytecode="52" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[line 54]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_TRANSACTION_ON_NON_PUBLIC_METHOD" priority="2" rank="7" abbrev="JPAI" category="CORRECTNESS" instanceHash="6059bbccb11ba02272ce2935063cc693" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method has a Spring @Transactional annotation on it, but is non-public</ShortMessage> <LongMessage>Method ex.JPAI_Sample.writeData() has a Spring @Transactional annotation on it, but is non-public</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="writeData" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="29" end="29" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.writeData()</Message> </Method> <SourceLine classname="ex.JPAI_Sample" start="29" end="29" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_UNNECESSARY_TRANSACTION_EXCEPTION_HANDLING" priority="2" rank="7" abbrev="JPAI" category="CORRECTNESS" instanceHash="88482cbf3f6577b27b310fc2a43c293c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares handling a transactional exception that won't be thrown</ShortMessage> <LongMessage>Method ex.JPAI_Sample.noDeclaredRollbackExceptions() declares handling a transactional exception that won't be thrown</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="noDeclaredRollbackExceptions" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="58" end="58" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.noDeclaredRollbackExceptions()</Message> </Method> <String value="Exception: java.io.IOException"> <Message>Value Exception: java.io.IOException</Message> </String> <SourceLine classname="ex.JPAI_Sample" start="58" end="58" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[line 58]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_UNNECESSARY_TRANSACTION_EXCEPTION_HANDLING" priority="2" rank="7" abbrev="JPAI" category="CORRECTNESS" instanceHash="32a36c4ab720a394037354638098e9a1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares handling a transactional exception that won't be thrown</ShortMessage> <LongMessage>Method ex.JPAI_Sample.noDeclaredRollbackExceptions() declares handling a transactional exception that won't be thrown</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="noDeclaredRollbackExceptions" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="58" end="58" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.noDeclaredRollbackExceptions()</Message> </Method> <String value="Exception: java.lang.CloneNotSupportedException"> <Message>Value Exception: java.lang.CloneNotSupportedException</Message> </String> <SourceLine classname="ex.JPAI_Sample" start="58" end="58" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[line 58]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_UNNECESSARY_TRANSACTION_EXCEPTION_HANDLING" priority="2" rank="7" abbrev="JPAI" category="CORRECTNESS" instanceHash="695e28c49b54c340002a4e2856a80650" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares handling a transactional exception that won't be thrown</ShortMessage> <LongMessage>Method ex.JPAI_Sample.noDeclaredRollbackExceptions() declares handling a transactional exception that won't be thrown</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="noDeclaredRollbackExceptions" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="58" end="58" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.noDeclaredRollbackExceptions()</Message> </Method> <String value="Exception: java.sql.SQLException"> <Message>Value Exception: java.sql.SQLException</Message> </String> <SourceLine classname="ex.JPAI_Sample" start="58" end="58" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[line 58]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="420efa376a45b127679f6a126246daec" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field em in ex.JPAI_Sample.ignoreMergeResult(JPAI_Sample$MyEntity, JPAI_Sample$SubEntity)</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="ignoreMergeResult" signature="(Lex/JPAI_Sample$MyEntity;Lex/JPAI_Sample$SubEntity;)V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="41" end="49" startBytecode="0" endBytecode="166" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.ignoreMergeResult(JPAI_Sample$MyEntity, JPAI_Sample$SubEntity)</Message> </Method> <Field classname="ex.JPAI_Sample" name="em" signature="Ljavax/persistence/EntityManager;" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>In JPAI_Sample.java</Message> </SourceLine> <Message>Field ex.JPAI_Sample.em</Message> </Field> <SourceLine classname="ex.JPAI_Sample" primary="true" start="41" end="41" startBytecode="5" endBytecode="5" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="b7f872832aad590eec3260c4800445a7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.JPAI_Sample.badWrite() is never called</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="badWrite" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="36" end="37" startBytecode="0" endBytecode="50" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.badWrite()</Message> </Method> <SourceLine classname="ex.JPAI_Sample" start="36" end="37" startBytecode="0" endBytecode="50" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[lines 36-37]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="5975cebcd5b5cd52b21bf0b11990f471" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.JPAI_Sample.writeData() is never called</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Method classname="ex.JPAI_Sample" name="writeData" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="29" end="29" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample.writeData()</Message> </Method> <SourceLine classname="ex.JPAI_Sample" start="29" end="29" startBytecode="0" endBytecode="42" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="13037eb7375c0122cae75fa6b390d561" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.JPAI_Sample.em</LongMessage> <Class classname="ex.JPAI_Sample" primary="true"> <SourceLine classname="ex.JPAI_Sample" start="23" end="66" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 23-66]</Message> </SourceLine> <Message>In class ex.JPAI_Sample</Message> </Class> <Field classname="ex.JPAI_Sample" name="em" signature="Ljavax/persistence/EntityManager;" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>In JPAI_Sample.java</Message> </SourceLine> <Message>Field ex.JPAI_Sample.em</Message> </Field> <SourceLine classname="ex.JPAI_Sample" primary="true" start="41" end="41" startBytecode="1" endBytecode="1" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_HC_EQUALS_ON_MANAGED_ENTITY" priority="3" rank="11" abbrev="JPAI" category="CORRECTNESS" instanceHash="c7106327a5b371131483516657c1c35e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JPA Entity with Generated @Id defined with hashCode/equals</ShortMessage> <LongMessage>JPA Entity ex.JPAI_Sample$MyEntity with Generated @Id defined with hashCode/equals</LongMessage> <Class classname="ex.JPAI_Sample$MyEntity" primary="true"> <SourceLine classname="ex.JPAI_Sample$MyEntity" start="70" end="112" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 70-112]</Message> </SourceLine> <Message>In class ex.JPAI_Sample$MyEntity</Message> </Class> <SourceLine classname="ex.JPAI_Sample$MyEntity" start="70" end="112" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[lines 70-112]</Message> </SourceLine> </BugInstance> <BugInstance type="JPAI_INEFFICIENT_EAGER_FETCH" priority="3" rank="11" abbrev="JPAI" category="CORRECTNESS" instanceHash="13161204b6be3aa1d9b90b3546daf36b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>OneToMany join specifies 1+n EAGER join</ShortMessage> <LongMessage>OneToMany join specifies 1+n EAGER join</LongMessage> <Class classname="ex.JPAI_Sample$MyEntity" primary="true"> <SourceLine classname="ex.JPAI_Sample$MyEntity" start="70" end="112" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 70-112]</Message> </SourceLine> <Message>In class ex.JPAI_Sample$MyEntity</Message> </Class> <SourceLine classname="ex.JPAI_Sample$MyEntity" start="70" end="112" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java" synthetic="true"> <Message>At JPAI_Sample.java:[lines 70-112]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="fd3946c5c4f3b6b797e0f797a8e4c1f8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field not initialized in constructor but dereferenced without null check</ShortMessage> <LongMessage>JPAI_Sample$MyEntity.id not initialized in constructor and dereferenced in ex.JPAI_Sample$MyEntity.hashCode()</LongMessage> <Class classname="ex.JPAI_Sample$MyEntity" primary="true"> <SourceLine classname="ex.JPAI_Sample$MyEntity" start="70" end="112" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[lines 70-112]</Message> </SourceLine> <Message>In class ex.JPAI_Sample$MyEntity</Message> </Class> <Field classname="ex.JPAI_Sample$MyEntity" name="id" signature="Ljava/lang/Integer;" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample$MyEntity" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>In JPAI_Sample.java</Message> </SourceLine> <Message>Field ex.JPAI_Sample$MyEntity.id</Message> </Field> <Method classname="ex.JPAI_Sample$MyEntity" name="hashCode" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.JPAI_Sample$MyEntity" start="98" end="98" startBytecode="0" endBytecode="49" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"/> <Message>In method ex.JPAI_Sample$MyEntity.hashCode()</Message> </Method> <SourceLine classname="ex.JPAI_Sample$MyEntity" primary="true" start="98" end="98" startBytecode="4" endBytecode="4" sourcefile="JPAI_Sample.java" sourcepath="ex/JPAI_Sample.java"> <Message>At JPAI_Sample.java:[line 98]</Message> </SourceLine> </BugInstance> <BugInstance type="JVR_JDBC_VENDOR_RELIANCE" priority="2" rank="7" abbrev="JVR" category="CORRECTNESS" instanceHash="2db508e279c4a445ab861555300648bb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses JDBC vendor specific classes and methods</ShortMessage> <LongMessage>Method ex.JVR_Sample.getBlobAsString(ResultSet) uses JDBC vendor specific classes and methods</LongMessage> <Class classname="ex.JVR_Sample" primary="true"> <SourceLine classname="ex.JVR_Sample" start="8" end="16" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[lines 8-16]</Message> </SourceLine> <Message>In class ex.JVR_Sample</Message> </Class> <Method classname="ex.JVR_Sample" name="getBlobAsString" signature="(Ljava/sql/ResultSet;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.JVR_Sample" start="10" end="11" startBytecode="0" endBytecode="81" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"/> <Message>In method ex.JVR_Sample.getBlobAsString(ResultSet)</Message> </Method> <SourceLine classname="ex.JVR_Sample" primary="true" start="11" end="11" startBytecode="12" endBytecode="12" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="JXI_GET_ENDPOINT_CONSUMES_CONTENT" priority="2" rank="7" abbrev="JXI" category="CORRECTNESS" instanceHash="b017b034f44592632e1234c2a5e30cb9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JAX-RS Method implements a GET request but consumes input</ShortMessage> <LongMessage>JAX-RS Method ex.JXI_Sample.loadStuff(JXI_Sample$Stuff) implements a GET request but consumes input</LongMessage> <Class classname="ex.JXI_Sample" primary="true"> <SourceLine classname="ex.JXI_Sample" start="22" end="86" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java"> <Message>At JXI_Sample.java:[lines 22-86]</Message> </SourceLine> <Message>In class ex.JXI_Sample</Message> </Class> <Method classname="ex.JXI_Sample" name="loadStuff" signature="(Lex/JXI_Sample$Stuff;)Ljavax/ws/rs/core/Response;" isStatic="false" primary="true"> <SourceLine classname="ex.JXI_Sample" start="29" end="29" startBytecode="0" endBytecode="58" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java"/> <Message>In method ex.JXI_Sample.loadStuff(JXI_Sample$Stuff)</Message> </Method> <SourceLine classname="ex.JXI_Sample" start="29" end="29" startBytecode="0" endBytecode="58" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java" synthetic="true"> <Message>At JXI_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="JXI_INVALID_CONTEXT_PARAMETER_TYPE" priority="2" rank="7" abbrev="JXI" category="CORRECTNESS" instanceHash="c04d8c9de786eb306d1ed88b31619171" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JAX-RS Method specifies an invalid @Context parameter type</ShortMessage> <LongMessage>JAX-RS ex.JXI_Sample.stuffWithBadContext(InputStream) Method specifies an invalid @Context parameter type</LongMessage> <Class classname="ex.JXI_Sample" primary="true"> <SourceLine classname="ex.JXI_Sample" start="22" end="86" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java"> <Message>At JXI_Sample.java:[lines 22-86]</Message> </SourceLine> <Message>In class ex.JXI_Sample</Message> </Class> <Method classname="ex.JXI_Sample" name="stuffWithBadContext" signature="(Ljava/io/InputStream;)Ljavax/ws/rs/core/Response;" isStatic="false" primary="true"> <SourceLine classname="ex.JXI_Sample" start="47" end="47" startBytecode="0" endBytecode="58" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java"/> <Message>In method ex.JXI_Sample.stuffWithBadContext(InputStream)</Message> </Method> <String value="Parameter signature: Ljava/io/InputStream;"> <Message>Value Parameter signature: Ljava/io/InputStream;</Message> </String> <SourceLine classname="ex.JXI_Sample" start="47" end="47" startBytecode="0" endBytecode="58" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java" synthetic="true"> <Message>At JXI_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="JXI_PARM_PARAM_NOT_FOUND_IN_PATH" priority="2" rank="7" abbrev="JXI" category="CORRECTNESS" instanceHash="45adc10b01c726f2bef58f19738095b9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JAX-RS Method specifies non-resolveable @PathParam</ShortMessage> <LongMessage>JAX-RS Method ex.JXI_Sample.mismatchParm(String) specifies non-resolveable @PathParam</LongMessage> <Class classname="ex.JXI_Sample" primary="true"> <SourceLine classname="ex.JXI_Sample" start="22" end="86" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java"> <Message>At JXI_Sample.java:[lines 22-86]</Message> </SourceLine> <Message>In class ex.JXI_Sample</Message> </Class> <Method classname="ex.JXI_Sample" name="mismatchParm" signature="(Ljava/lang/String;)Ljavax/ws/rs/core/Response;" isStatic="false" primary="true"> <SourceLine classname="ex.JXI_Sample" start="41" end="41" startBytecode="0" endBytecode="58" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java"/> <Message>In method ex.JXI_Sample.mismatchParm(String)</Message> </Method> <String value="Path param: bad"> <Message>Value Path param: bad</Message> </String> <SourceLine classname="ex.JXI_Sample" start="41" end="41" startBytecode="0" endBytecode="58" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java" synthetic="true"> <Message>At JXI_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="JXI_UNDEFINED_PARAMETER_SOURCE_IN_ENDPOINT" priority="2" rank="7" abbrev="JXI" category="CORRECTNESS" instanceHash="ba3b0ab918dc47cc26dff574d7625f79" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JAX-RS Method defines a parameter that has no @*Param or @Context annotation, or @Consumes method annotation</ShortMessage> <LongMessage>JAX-RS Method ex.JXI_Sample.stufStuff(String, JXI_Sample$Stuff) defines a parameter that has no @*Param or @Context annotation, or @Consumes method annotation</LongMessage> <Class classname="ex.JXI_Sample" primary="true"> <SourceLine classname="ex.JXI_Sample" start="22" end="86" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java"> <Message>At JXI_Sample.java:[lines 22-86]</Message> </SourceLine> <Message>In class ex.JXI_Sample</Message> </Class> <Method classname="ex.JXI_Sample" name="stufStuff" signature="(Ljava/lang/String;Lex/JXI_Sample$Stuff;)Ljavax/ws/rs/core/Response;" isStatic="false" primary="true"> <SourceLine classname="ex.JXI_Sample" start="35" end="35" startBytecode="0" endBytecode="68" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java"/> <Message>In method ex.JXI_Sample.stufStuff(String, JXI_Sample$Stuff)</Message> </Method> <String value="Parameter 2"> <Message>Value Parameter 2</Message> </String> <SourceLine classname="ex.JXI_Sample" start="35" end="35" startBytecode="0" endBytecode="68" sourcefile="JXI_Sample.java" sourcepath="ex/JXI_Sample.java" synthetic="true"> <Message>At JXI_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="99e366fb4571eecce5f3da0453e9c065" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to e in ex.LEST_Sample.fpThrowables()</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="fpThrowables" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="133" end="137" startBytecode="0" endBytecode="10" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.fpThrowables()</Message> </Method> <LocalVariable name="e" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named e</Message> </LocalVariable> <SourceLine classname="ex.LEST_Sample" primary="true" start="133" end="133" startBytecode="9" endBytecode="9" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 133]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="e"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="2afc02e0f4b4dc78e4e9bf17625e52bd" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to e in ex.LEST_Sample.testFPSuppressedLest(String)</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testFPSuppressedLest" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="157" end="163" startBytecode="0" endBytecode="14" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testFPSuppressedLest(String)</Message> </Method> <LocalVariable name="e" register="2" pc="4" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named e</Message> </LocalVariable> <SourceLine classname="ex.LEST_Sample" primary="true" start="157" end="157" startBytecode="4" endBytecode="4" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 157]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="e"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="e571baf10a6e795ceab597037681b284" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.LEST_Sample.testLestFP3(String)</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP3" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="58" end="62" startBytecode="0" endBytecode="9" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP3(String)</Message> </Method> <LocalVariable name="d" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.LEST_Sample" primary="true" start="58" end="58" startBytecode="4" endBytecode="4" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 58]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="6427283142c98cbde3969c85af7b5d5e" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.LEST_Sample.testLestFP4(String)</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP4" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="68" end="73" startBytecode="0" endBytecode="11" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP4(String)</Message> </Method> <LocalVariable name="d" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.LEST_Sample" primary="true" start="68" end="68" startBytecode="4" endBytecode="4" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 68]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="c01f83774da0b788304bf88639fee3ae" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.LEST_Sample.testLestFP5(String)</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP5" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="78" end="83" startBytecode="0" endBytecode="10" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP5(String)</Message> </Method> <LocalVariable name="d" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.LEST_Sample" primary="true" start="78" end="78" startBytecode="4" endBytecode="4" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 78]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="8b210abca49259c84df1c50928e5380d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.LEST_Sample.testLestFP6(String)</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP6" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="88" end="90" startBytecode="0" endBytecode="9" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP6(String)</Message> </Method> <LocalVariable name="d" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.LEST_Sample" primary="true" start="88" end="88" startBytecode="4" endBytecode="4" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 88]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="6871ba70597d47f4f6e4ed16844e2825" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to e in ex.LEST_Sample.testLestFP7(String)</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP7" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="96" end="100" startBytecode="0" endBytecode="10" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP7(String)</Message> </Method> <LocalVariable name="e" register="2" pc="4" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named e</Message> </LocalVariable> <SourceLine classname="ex.LEST_Sample" primary="true" start="96" end="96" startBytecode="4" endBytecode="4" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 96]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="e"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS" priority="1" rank="15" abbrev="EXS" category="STYLE" instanceHash="1440655f4f1750c45a42abdb9fec1a4c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unconstrained method converts checked exception to unchecked</ShortMessage> <LongMessage>Unconstrained method ex.LEST_Sample.fpThrowables() converts checked exception to unchecked</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="fpThrowables" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="133" end="137" startBytecode="0" endBytecode="104" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.fpThrowables()</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="135" end="135" startBytecode="18" endBytecode="18" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 135]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS" priority="1" rank="15" abbrev="EXS" category="STYLE" instanceHash="d80e81a45e2eb445c2451e343c0c40" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unconstrained method converts checked exception to unchecked</ShortMessage> <LongMessage>Unconstrained method ex.LEST_Sample.testFP226(String) converts checked exception to unchecked</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testFP226" signature="(Ljava/lang/String;)Ljava/lang/Class;" isStatic="true" primary="true"> <SourceLine classname="ex.LEST_Sample" start="166" end="173" startBytecode="0" endBytecode="115" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testFP226(String)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="170" end="170" startBytecode="18" endBytecode="18" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 170]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS" priority="1" rank="15" abbrev="EXS" category="STYLE" instanceHash="37cb7f879d7e48c41ca1b0b73e662a91" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unconstrained method converts checked exception to unchecked</ShortMessage> <LongMessage>Unconstrained method ex.LEST_Sample.testLest1(String) converts checked exception to unchecked</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLest1" signature="(Ljava/lang/String;)Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="19" end="22" startBytecode="0" endBytecode="132" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLest1(String)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="22" end="22" startBytecode="28" endBytecode="28" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS" priority="1" rank="15" abbrev="EXS" category="STYLE" instanceHash="cb6277d53808ed545b5df8186845a5b4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unconstrained method converts checked exception to unchecked</ShortMessage> <LongMessage>Unconstrained method ex.LEST_Sample.testLest2(String) converts checked exception to unchecked</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLest2" signature="(Ljava/lang/String;)Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="28" end="31" startBytecode="0" endBytecode="133" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLest2(String)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="31" end="31" startBytecode="29" endBytecode="29" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS" priority="1" rank="15" abbrev="EXS" category="STYLE" instanceHash="5e0f33392f573b01e5f9b3fcc0980aff" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unconstrained method converts checked exception to unchecked</ShortMessage> <LongMessage>Unconstrained method ex.LEST_Sample.testLestFP2(String) converts checked exception to unchecked</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP2" signature="(Ljava/lang/String;)Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="46" end="51" startBytecode="0" endBytecode="158" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP2(String)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="51" end="51" startBytecode="36" endBytecode="36" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 51]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="49dc94ff6dbe68053cf892462eeeb028" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.LEST_Sample.fpThrowables() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="fpThrowables" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="133" end="137" startBytecode="0" endBytecode="104" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.fpThrowables()</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="133" end="133" startBytecode="6" endBytecode="6" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 133]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="12cc6468c6361a876f8f486987d79412" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.LEST_Sample.testLest1(String) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLest1" signature="(Ljava/lang/String;)Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="19" end="22" startBytecode="0" endBytecode="132" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLest1(String)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="22" end="22" startBytecode="28" endBytecode="28" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_YIELD" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="40d875e505a766acf84129de0280d28" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to manually schedule threads</ShortMessage> <LongMessage>Method ex.LEST_Sample.testLestFP8() attempts to manually schedule threads by calling method Thread.sleep(long)</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP8" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="104" end="108" startBytecode="0" endBytecode="104" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP8()</Message> </Method> <Method classname="java.lang.Thread" name="sleep" signature="(J)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.sleep(long)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="104" end="104" startBytecode="3" endBytecode="3" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 104]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="bbe654f8f88814ac739eb5e590ebb627" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.LEST_Sample.testAssertFPLest(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testAssertFPLest" signature="(Ljava/lang/String;)D" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="125" end="127" startBytecode="0" endBytecode="107" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testAssertFPLest(String)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="125" end="125" startBytecode="4" endBytecode="4" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 125]</Message> </SourceLine> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="59b5998a019a190e3a9808186723306f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.LEST_Sample.fpThrowables() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="fpThrowables" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="133" end="137" startBytecode="0" endBytecode="104" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.fpThrowables()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.LEST_Sample" primary="true" start="133" end="133" startBytecode="6" endBytecode="6" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at LEST_Sample.java:[line 133] is not discharged</Message> </SourceLine> <SourceLine classname="ex.LEST_Sample" start="134" end="134" startBytecode="10" endBytecode="10" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at LEST_Sample.java:[line 134]</Message> </SourceLine> <SourceLine classname="ex.LEST_Sample" start="137" end="137" startBytecode="19" endBytecode="19" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at LEST_Sample.java:[line 137]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="f3eddd03ba0c070a36b6f2c64379d9b8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.LEST_Sample.fpThrowables() may fail to close stream</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="fpThrowables" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="133" end="137" startBytecode="0" endBytecode="10" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.fpThrowables()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.LEST_Sample" primary="true" start="133" end="133" startBytecode="0" endBytecode="0" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 133]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_OBSCURING_EXCEPTION" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="d3115e8fd6c0f80e67ac1881f0600dd3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws a java.lang.Exception that wraps a more useful exception</ShortMessage> <LongMessage>Method ex.LEST_Sample.testLestFP3510540() throws a java.lang.Exception that wraps a more useful exception</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP3510540" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="111" end="119" startBytecode="0" endBytecode="146" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP3510540()</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="116" end="116" startBytecode="20" endBytecode="20" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 116]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="6aa60b109446073c67d16173750741dc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.LEST_Sample.testLestFP3(String) throws exception with static message string</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP3" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="58" end="62" startBytecode="0" endBytecode="110" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP3(String)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="62" end="62" startBytecode="19" endBytecode="19" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="a98b339904995c51df030c5fe0d0acc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.LEST_Sample.testLestFP3510540() throws exception with static message string</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP3510540" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="111" end="119" startBytecode="0" endBytecode="146" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP3510540()</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="119" end="119" startBytecode="33" endBytecode="33" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 119]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="6133678ce2e5756fc931e06c4bc54634" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.LEST_Sample.testLestFP6(String) throws exception with static message string</LongMessage> <Class classname="ex.LEST_Sample" primary="true"> <SourceLine classname="ex.LEST_Sample" start="16" end="173" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[lines 16-173]</Message> </SourceLine> <Message>In class ex.LEST_Sample</Message> </Class> <Method classname="ex.LEST_Sample" name="testLestFP6" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LEST_Sample" start="88" end="90" startBytecode="0" endBytecode="109" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"/> <Message>In method ex.LEST_Sample.testLestFP6(String)</Message> </Method> <SourceLine classname="ex.LEST_Sample" primary="true" start="90" end="90" startBytecode="18" endBytecode="18" sourcefile="LEST_Sample.java" sourcepath="ex/LEST_Sample.java"> <Message>At LEST_Sample.java:[line 90]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="456614ff75b9ccbc3a07f49f956f03f2" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to g in ex.LGO_Sample.testBufferedImage(BufferedImage)</LongMessage> <Class classname="ex.LGO_Sample" primary="true"> <SourceLine classname="ex.LGO_Sample" start="6" end="39" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.LGO_Sample</Message> </Class> <Method classname="ex.LGO_Sample" name="testBufferedImage" signature="(Ljava/awt/image/BufferedImage;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LGO_Sample" start="17" end="18" startBytecode="0" endBytecode="3" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"/> <Message>In method ex.LGO_Sample.testBufferedImage(BufferedImage)</Message> </Method> <LocalVariable name="g" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named g</Message> </LocalVariable> <SourceLine classname="ex.LGO_Sample" primary="true" start="17" end="17" startBytecode="4" endBytecode="4" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[line 17]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="g"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="d8aa6b9d151cef66e6d80ac8e05085da" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to g2 in ex.LGO_Sample.testCreate(Graphics)</LongMessage> <Class classname="ex.LGO_Sample" primary="true"> <SourceLine classname="ex.LGO_Sample" start="6" end="39" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.LGO_Sample</Message> </Class> <Method classname="ex.LGO_Sample" name="testCreate" signature="(Ljava/awt/Graphics;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LGO_Sample" start="9" end="10" startBytecode="0" endBytecode="3" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"/> <Message>In method ex.LGO_Sample.testCreate(Graphics)</Message> </Method> <LocalVariable name="g2" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named g2</Message> </LocalVariable> <SourceLine classname="ex.LGO_Sample" primary="true" start="9" end="9" startBytecode="4" endBytecode="4" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[line 9]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="g2"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="401988b31bb2a26c632fcc190946eeb2" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to g2 in ex.LGO_Sample.testCreateg2D(Graphics)</LongMessage> <Class classname="ex.LGO_Sample" primary="true"> <SourceLine classname="ex.LGO_Sample" start="6" end="39" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.LGO_Sample</Message> </Class> <Method classname="ex.LGO_Sample" name="testCreateg2D" signature="(Ljava/awt/Graphics;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LGO_Sample" start="13" end="14" startBytecode="0" endBytecode="4" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"/> <Message>In method ex.LGO_Sample.testCreateg2D(Graphics)</Message> </Method> <LocalVariable name="g2" register="2" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named g2</Message> </LocalVariable> <SourceLine classname="ex.LGO_Sample" primary="true" start="13" end="13" startBytecode="7" endBytecode="7" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[line 13]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="g2"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="LGO_LINGERING_GRAPHICS_OBJECT" priority="2" rank="18" abbrev="LGO" category="PERFORMANCE" instanceHash="eb321742da09f06017cb8ce8ffeb4769" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method allocations a java.awt.Graphics object without disposing it</ShortMessage> <LongMessage>Method ex.LGO_Sample.testBufferedImage(BufferedImage) allocations a java.awt.Graphics object without disposing it</LongMessage> <Class classname="ex.LGO_Sample" primary="true"> <SourceLine classname="ex.LGO_Sample" start="6" end="39" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.LGO_Sample</Message> </Class> <Method classname="ex.LGO_Sample" name="testBufferedImage" signature="(Ljava/awt/image/BufferedImage;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LGO_Sample" start="17" end="18" startBytecode="0" endBytecode="71" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"/> <Message>In method ex.LGO_Sample.testBufferedImage(BufferedImage)</Message> </Method> <SourceLine classname="ex.LGO_Sample" primary="true" start="17" end="17" startBytecode="1" endBytecode="1" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="LGO_LINGERING_GRAPHICS_OBJECT" priority="2" rank="18" abbrev="LGO" category="PERFORMANCE" instanceHash="857cdf358acedc49a0e8a18464903b40" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method allocations a java.awt.Graphics object without disposing it</ShortMessage> <LongMessage>Method ex.LGO_Sample.testCreate(Graphics) allocations a java.awt.Graphics object without disposing it</LongMessage> <Class classname="ex.LGO_Sample" primary="true"> <SourceLine classname="ex.LGO_Sample" start="6" end="39" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.LGO_Sample</Message> </Class> <Method classname="ex.LGO_Sample" name="testCreate" signature="(Ljava/awt/Graphics;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LGO_Sample" start="9" end="10" startBytecode="0" endBytecode="71" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"/> <Message>In method ex.LGO_Sample.testCreate(Graphics)</Message> </Method> <SourceLine classname="ex.LGO_Sample" primary="true" start="9" end="9" startBytecode="1" endBytecode="1" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="LGO_LINGERING_GRAPHICS_OBJECT" priority="2" rank="18" abbrev="LGO" category="PERFORMANCE" instanceHash="d3e29225a3fff2307dfc30504fa9eb0a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method allocations a java.awt.Graphics object without disposing it</ShortMessage> <LongMessage>Method ex.LGO_Sample.testCreateg2D(Graphics) allocations a java.awt.Graphics object without disposing it</LongMessage> <Class classname="ex.LGO_Sample" primary="true"> <SourceLine classname="ex.LGO_Sample" start="6" end="39" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.LGO_Sample</Message> </Class> <Method classname="ex.LGO_Sample" name="testCreateg2D" signature="(Ljava/awt/Graphics;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LGO_Sample" start="13" end="14" startBytecode="0" endBytecode="74" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"/> <Message>In method ex.LGO_Sample.testCreateg2D(Graphics)</Message> </Method> <SourceLine classname="ex.LGO_Sample" primary="true" start="13" end="13" startBytecode="1" endBytecode="1" sourcefile="LGO_Sample.java" sourcepath="ex/LGO_Sample.java"> <Message>At LGO_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="718a52a10c52b2873edc821f4b7a880d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.LII_Sample.test7FP(List, List, List) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.LII_Sample" primary="true"> <SourceLine classname="ex.LII_Sample" start="6" end="63" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[lines 6-63]</Message> </SourceLine> <Message>In class ex.LII_Sample</Message> </Class> <Method classname="ex.LII_Sample" name="test7FP" signature="(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LII_Sample" start="58" end="63" startBytecode="0" endBytecode="211" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"/> <Message>In method ex.LII_Sample.test7FP(List, List, List)</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.LII_Sample" primary="true" start="60" end="60" startBytecode="21" endBytecode="21" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="9b9bb4000df726b6146c064f6d5bc272" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LII_Sample.test1(List) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LII_Sample" primary="true"> <SourceLine classname="ex.LII_Sample" start="6" end="63" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[lines 6-63]</Message> </SourceLine> <Message>In class ex.LII_Sample</Message> </Class> <Method classname="ex.LII_Sample" name="test1" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.LII_Sample" start="8" end="12" startBytecode="0" endBytecode="167" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"/> <Message>In method ex.LII_Sample.test1(List)</Message> </Method> <SourceLine classname="ex.LII_Sample" primary="true" start="8" end="8" startBytecode="7" endBytecode="7" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="d4330218914a25c972a581306bab9ebc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LII_Sample.test2(List) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LII_Sample" primary="true"> <SourceLine classname="ex.LII_Sample" start="6" end="63" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[lines 6-63]</Message> </SourceLine> <Message>In class ex.LII_Sample</Message> </Class> <Method classname="ex.LII_Sample" name="test2" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.LII_Sample" start="16" end="21" startBytecode="0" endBytecode="187" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"/> <Message>In method ex.LII_Sample.test2(List)</Message> </Method> <SourceLine classname="ex.LII_Sample" primary="true" start="16" end="16" startBytecode="7" endBytecode="7" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="a3c6e889beda22a0a9ea119135538750" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LII_Sample.test3FP(List) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LII_Sample" primary="true"> <SourceLine classname="ex.LII_Sample" start="6" end="63" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[lines 6-63]</Message> </SourceLine> <Message>In class ex.LII_Sample</Message> </Class> <Method classname="ex.LII_Sample" name="test3FP" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.LII_Sample" start="25" end="29" startBytecode="0" endBytecode="189" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"/> <Message>In method ex.LII_Sample.test3FP(List)</Message> </Method> <SourceLine classname="ex.LII_Sample" primary="true" start="25" end="25" startBytecode="7" endBytecode="7" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="cd0878c8fac9400a2a8155fd54e1819" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LII_Sample.test4FP(List) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LII_Sample" primary="true"> <SourceLine classname="ex.LII_Sample" start="6" end="63" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[lines 6-63]</Message> </SourceLine> <Message>In class ex.LII_Sample</Message> </Class> <Method classname="ex.LII_Sample" name="test4FP" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.LII_Sample" start="33" end="37" startBytecode="0" endBytecode="167" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"/> <Message>In method ex.LII_Sample.test4FP(List)</Message> </Method> <SourceLine classname="ex.LII_Sample" primary="true" start="33" end="33" startBytecode="7" endBytecode="7" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="3f7825529ade9a75e2ae050884415280" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LII_Sample.test5FP(List) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LII_Sample" primary="true"> <SourceLine classname="ex.LII_Sample" start="6" end="63" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[lines 6-63]</Message> </SourceLine> <Message>In class ex.LII_Sample</Message> </Class> <Method classname="ex.LII_Sample" name="test5FP" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.LII_Sample" start="41" end="45" startBytecode="0" endBytecode="167" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"/> <Message>In method ex.LII_Sample.test5FP(List)</Message> </Method> <SourceLine classname="ex.LII_Sample" primary="true" start="41" end="41" startBytecode="7" endBytecode="7" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="85ad2033b6514add496abdcba0530dc5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LII_Sample.test6FP(List) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LII_Sample" primary="true"> <SourceLine classname="ex.LII_Sample" start="6" end="63" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[lines 6-63]</Message> </SourceLine> <Message>In class ex.LII_Sample</Message> </Class> <Method classname="ex.LII_Sample" name="test6FP" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.LII_Sample" start="49" end="54" startBytecode="0" endBytecode="162" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"/> <Message>In method ex.LII_Sample.test6FP(List)</Message> </Method> <SourceLine classname="ex.LII_Sample" primary="true" start="49" end="49" startBytecode="7" endBytecode="7" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="bba45c39b667bef21a553309447f628f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.LII_Sample$GH228 be a _static_ inner class?</LongMessage> <Class classname="ex.LII_Sample$GH228" primary="true"> <SourceLine classname="ex.LII_Sample$GH228" start="65" end="76" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java"> <Message>At LII_Sample.java:[lines 65-76]</Message> </SourceLine> <Message>In class ex.LII_Sample$GH228</Message> </Class> <SourceLine classname="ex.LII_Sample$GH228" start="65" end="76" sourcefile="LII_Sample.java" sourcepath="ex/LII_Sample.java" synthetic="true"> <Message>At LII_Sample.java:[lines 65-76]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="952ce176471c8a1d4a3700227d98042c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.LO_Sample$FunnyToString be a _static_ inner class?</LongMessage> <Class classname="ex.LO_Sample$FunnyToString" primary="true"> <SourceLine classname="ex.LO_Sample$FunnyToString" start="404" end="406" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 404-406]</Message> </SourceLine> <Message>In class ex.LO_Sample$FunnyToString</Message> </Class> <SourceLine classname="ex.LO_Sample$FunnyToString" start="404" end="406" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" synthetic="true"> <Message>At LO_Sample.java:[lines 404-406]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="46276785d1340d889ec10666035c39d5" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to e in ex.LO_Sample$Log4j.testParmInExMessage()</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="209" end="214" startBytecode="0" endBytecode="13" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testParmInExMessage()</Message> </Method> <LocalVariable name="e" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named e</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="209" end="209" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 209]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="e"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="33402a213670d108c752e3187d13d4eb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.testParmInExMessage() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="209" end="214" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="209" end="209" startBytecode="6" endBytecode="6" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 209]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="54d319c3f4afcf9e9c19e313bd3b9a3c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.testStutter() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="195" end="205" startBytecode="0" endBytecode="212" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testStutter()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="198" end="198" startBytecode="17" endBytecode="17" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 198]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_EXCEPTION_WITH_LOGGER_PARMS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="c969f57640743520335f3da62f1d3d14" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates exception with logger parameter markers in message</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.testParmInExMessage() creates exception with logger parameter markers in message</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="209" end="214" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="212" end="212" startBytecode="21" endBytecode="21" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 212]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_NON_PRIVATE_STATIC_LOGGER" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="65fc6f6bc39a75a8aefd89f07407148b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines non private logger using a static class context</ShortMessage> <LongMessage>Class ex.LO_Sample$Log4j defines a non private logger using a static class context</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="177" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.<static initializer for Log4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="177" end="177" startBytecode="59" endBytecode="59" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 177]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_STUTTERED_MESSAGE" priority="2" rank="17" abbrev="LO" category="STYLE" instanceHash="99ed3df4bfb0f7fef7c9761ebc5dd590" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stutters exception message in logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.testStutter() stutters exception message in logger</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="195" end="205" startBytecode="0" endBytecode="212" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testStutter()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="201" end="201" startBytecode="33" endBytecode="33" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 201]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="718752e446d995476099c40efc43c91c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.<static initializer for Log4j>() specifies an unrelated class when allocating a Logger. Saw "java.lang.String", expected "ex.LO_Sample$Log4j".</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="177" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.<static initializer for Log4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="165" end="165" startBytecode="2" endBytecode="2" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 165]</Message> </SourceLine> <String value="java.lang.String"> <Message>Value java.lang.String</Message> </String> <String value="ex.LO_Sample$Log4j"> <Message>Value ex.LO_Sample$Log4j</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="27c752ad959b14b8e7a4bac675d923f8" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.<static initializer for Log4j>() specifies an unrelated class when allocating a Logger. Saw "ex.LO_Sample", expected "ex.LO_Sample$Log4j".</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="177" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.<static initializer for Log4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="169" end="169" startBytecode="18" endBytecode="18" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 169]</Message> </SourceLine> <String value="ex.LO_Sample"> <Message>Value ex.LO_Sample</Message> </String> <String value="ex.LO_Sample$Log4j"> <Message>Value ex.LO_Sample$Log4j</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="438c91256fb47e677ac93ae7fe518cbc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.<static initializer for Log4j>() specifies an unrelated class when allocating a Logger. Saw "java.awt.event.ActionEvent", expected "ex.LO_Sample$Log4j".</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="177" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.<static initializer for Log4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="171" end="171" startBytecode="29" endBytecode="29" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 171]</Message> </SourceLine> <String value="java.awt.event.ActionEvent"> <Message>Value java.awt.event.ActionEvent</Message> </String> <String value="ex.LO_Sample$Log4j"> <Message>Value ex.LO_Sample$Log4j</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="27c752ad959b14b8e7a4bac675d923f8" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.<static initializer for Log4j>() specifies an unrelated class when allocating a Logger. Saw "ex.LO_Sample", expected "ex.LO_Sample$Log4j".</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="177" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.<static initializer for Log4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="173" end="173" startBytecode="40" endBytecode="40" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 173]</Message> </SourceLine> <String value="ex.LO_Sample"> <Message>Value ex.LO_Sample</Message> </String> <String value="ex.LO_Sample$Log4j"> <Message>Value ex.LO_Sample$Log4j</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_PARAMETER" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="a5bebb860c59eb75e77493308ba64ae" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Constructor declares a Logger parameter</ShortMessage> <LongMessage>Constructor new ex.LO_Sample$Log4j(Logger) declares a Logger parameter</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="<init>" signature="(Lorg/apache/log4j/Logger;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="190" end="192" startBytecode="0" endBytecode="69" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method new ex.LO_Sample$Log4j(Logger)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" start="190" end="192" startBytecode="0" endBytecode="69" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" synthetic="true"> <Message>At LO_Sample.java:[lines 190-192]</Message> </SourceLine> </BugInstance> <BugInstance type="MS_SHOULD_BE_FINAL" priority="3" rank="20" abbrev="MS" category="MALICIOUS_CODE" instanceHash="a12db3f9944e6cf755b702d5abc5fae" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="218"> <ShortMessage>Field isn't final but should be</ShortMessage> <LongMessage>ex.LO_Sample$Log4j.l7 isn't final but should be</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Field classname="ex.LO_Sample$Log4j" name="l7" signature="Lorg/apache/log4j/Logger;" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>In LO_Sample.java</Message> </SourceLine> <Message>Field ex.LO_Sample$Log4j.l7</Message> </Field> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="177" end="177" startBytecode="59" endBytecode="59" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 177]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_ALWAYS_NULL_EXCEPTION" priority="1" rank="7" abbrev="NP" category="CORRECTNESS" instanceHash="dee66f6dab99187d6dd50bc61e5f8154" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Null pointer dereference in method on exception path</ShortMessage> <LongMessage>Null pointer dereference of is in ex.LO_Sample$Log4j.testStutter() on exception path</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="195" end="205" startBytecode="0" endBytecode="212" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testStutter()</Message> </Method> <LocalVariable name="is" register="1" pc="44" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from is</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="203" end="203" startBytecode="45" endBytecode="45" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_DEREF"> <Message>Dereferenced at LO_Sample.java:[line 203]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DoomedCodeWarningProperty.DOOMED_CODE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullDerefProperty.CLOSING_NULL" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullDerefProperty.DEREFS_ARE_CLONED" value="true"/> <Property name="edu.umd.cs.findbugs.props.GeneralWarningProperty.ON_EXCEPTION_PATH" value="true"/> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="e5b9f3e8c6081f421b7c439de3a6a55d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.LO_Sample$Log4j.testParmInExMessage() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="209" end="214" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testParmInExMessage()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="209" end="209" startBytecode="6" endBytecode="6" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at LO_Sample.java:[line 209] is not discharged</Message> </SourceLine> <SourceLine classname="ex.LO_Sample$Log4j" start="210" end="210" startBytecode="10" endBytecode="10" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at LO_Sample.java:[line 210]</Message> </SourceLine> <SourceLine classname="ex.LO_Sample$Log4j" start="214" end="214" startBytecode="25" endBytecode="25" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at LO_Sample.java:[line 214]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="641908094638ff9ec64f0849b2eb0b2f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.LO_Sample$Log4j.testParmInExMessage() may fail to close stream</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="209" end="214" startBytecode="0" endBytecode="13" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testParmInExMessage()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="209" end="209" startBytecode="0" endBytecode="0" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 209]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="d8d8cc97c584ae951ff6f20dd40ba89a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.testFPRealStringBuilderUser(List) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testFPRealStringBuilderUser" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="236" end="242" startBytecode="0" endBytecode="200" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testFPRealStringBuilderUser(List)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="238" end="238" startBytecode="37" endBytecode="37" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 238]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="89370de37177ee141b64693df64aa206" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j.testParmInExMessage() throws exception with static message string</LongMessage> <Class classname="ex.LO_Sample$Log4j" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="165" end="242" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 165-242]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j</Message> </Class> <Method classname="ex.LO_Sample$Log4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j" start="209" end="214" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j" primary="true" start="212" end="212" startBytecode="24" endBytecode="24" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 212]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="a150d66406549f6451bdcb855abbac79" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.LO_Sample$Log4j$Inner.fpUseAnon()</LongMessage> <Class classname="ex.LO_Sample$Log4j$Inner" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j$Inner" start="244" end="255" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 244-255]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j$Inner</Message> </Class> <Method classname="ex.LO_Sample$Log4j$Inner" name="fpUseAnon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j$Inner" start="246" end="255" startBytecode="0" endBytecode="5" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j$Inner.fpUseAnon()</Message> </Method> <LocalVariable name="l" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Log4j$Inner" primary="true" start="246" end="246" startBytecode="8" endBytecode="8" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 246]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="c56567e02735fb41d64c1ebbc737716e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j$Inner.fpUseAnon() seems to be useless</LongMessage> <Class classname="ex.LO_Sample$Log4j$Inner" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j$Inner" start="244" end="255" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 244-255]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j$Inner</Message> </Class> <Method classname="ex.LO_Sample$Log4j$Inner" name="fpUseAnon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j$Inner" start="246" end="255" startBytecode="0" endBytecode="65" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j$Inner.fpUseAnon()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j$Inner" primary="true" start="255" end="255" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 255]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="ed40f6cba8a0318964bd8dcc48248b0c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j$Inner$1.actionPerformed(ActionEvent) specifies an unrelated class when allocating a Logger. Saw "ex.LO_Sample", expected "ex.LO_Sample$Log4j$Inner".</LongMessage> <Class classname="ex.LO_Sample$Log4j$Inner$1" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j$Inner$1" start="1" end="253" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 1-253]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j$Inner$1</Message> </Class> <Method classname="ex.LO_Sample$Log4j$Inner$1" name="actionPerformed" signature="(Ljava/awt/event/ActionEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j$Inner$1" start="250" end="253" startBytecode="0" endBytecode="80" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j$Inner$1.actionPerformed(ActionEvent)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j$Inner$1" primary="true" start="252" end="252" startBytecode="12" endBytecode="12" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 252]</Message> </SourceLine> <String value="ex.LO_Sample"> <Message>Value ex.LO_Sample</Message> </String> <String value="ex.LO_Sample$Log4j$Inner"> <Message>Value ex.LO_Sample$Log4j$Inner</Message> </String> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="910537e8d1f3179a5937c3f557e864ce" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.LO_Sample$Log4j$Inner$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.LO_Sample$Log4j$Inner$1" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j$Inner$1" start="1" end="253" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 1-253]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j$Inner$1</Message> </Class> <SourceLine classname="ex.LO_Sample$Log4j$Inner$1" start="1" end="253" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" synthetic="true"> <Message>At LO_Sample.java:[lines 1-253]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="bc6f7eb5a660bc7c64371bd1c04b91d3" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to e in ex.LO_Sample$Log4j2.testParmInExMessage()</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="305" end="310" startBytecode="0" endBytecode="13" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testParmInExMessage()</Message> </Method> <LocalVariable name="e" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named e</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="305" end="305" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 305]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="e"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="e1d2d3ec9b3f8be7936a8519de730870" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testParmInExMessage() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="305" end="310" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="305" end="305" startBytecode="6" endBytecode="6" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 305]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="dfdd0d6bf9c959823d668dd3c2a54915" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testStutter() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="291" end="301" startBytecode="0" endBytecode="214" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testStutter()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="294" end="294" startBytecode="17" endBytecode="17" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 294]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_APPENDED_STRING_IN_FORMAT_STRING" priority="2" rank="18" abbrev="LO" category="PERFORMANCE" instanceHash="7382dab105ad208f6716bfdf3177ab36" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes a concatenated string to SLF4J's or Log4j2's format string</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testLogAppending(String) passes a concatenated string to SLF4J's or Log4j2's format string</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testLogAppending" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="327" end="331" startBytecode="0" endBytecode="148" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testLogAppending(String)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="327" end="327" startBytecode="19" endBytecode="19" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 327]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_EMBEDDED_SIMPLE_STRING_FORMAT_IN_FORMAT_STRING" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="de963fa1663a45aec2914f2787d724b8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes a simple String.format result to an SLF4J's or Log4j2's format string</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testSimpleFormatInLogger(String) passes a simple String.format result to an SLF4J's or Log4j2's format string</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testSimpleFormatInLogger" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="348" end="349" startBytecode="0" endBytecode="77" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testSimpleFormatInLogger(String)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="348" end="348" startBytecode="16" endBytecode="16" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 348]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_EXCEPTION_WITH_LOGGER_PARMS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="aa51cd0fe300b0e25e2ba50e0bcf83ad" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates exception with logger parameter markers in message</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testParmInExMessage() creates exception with logger parameter markers in message</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="305" end="310" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="308" end="308" startBytecode="21" endBytecode="21" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 308]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="f0dd6bb7bd3975223d8e04f366015c49" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testWrongNumberOfParms() passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testWrongNumberOfParms" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="335" end="345" startBytecode="0" endBytecode="136" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testWrongNumberOfParms()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="335" end="335" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 335]</Message> </SourceLine> <String value="Expected: 1"> <Message>Value Expected: 1</Message> </String> <String value="Actual: 2"> <Message>Value Actual: 2</Message> </String> </BugInstance> <BugInstance type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="34385ac2eabcd8987ed9810826c010d4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testWrongNumberOfParms() passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testWrongNumberOfParms" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="335" end="345" startBytecode="0" endBytecode="136" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testWrongNumberOfParms()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="337" end="337" startBytecode="21" endBytecode="21" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 337]</Message> </SourceLine> <String value="Expected: 2"> <Message>Value Expected: 2</Message> </String> <String value="Actual: 1"> <Message>Value Actual: 1</Message> </String> </BugInstance> <BugInstance type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="565cd44c0971d9268bd950016195d432" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testWrongNumberOfParms() passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testWrongNumberOfParms" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="335" end="345" startBytecode="0" endBytecode="136" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testWrongNumberOfParms()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="339" end="339" startBytecode="35" endBytecode="35" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 339]</Message> </SourceLine> <String value="Expected: 3"> <Message>Value Expected: 3</Message> </String> <String value="Actual: 2"> <Message>Value Actual: 2</Message> </String> </BugInstance> <BugInstance type="LO_INVALID_FORMATTING_ANCHOR" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="8b108db56026d5de1f8f12e394960527" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to log using numbered formatting anchors</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testInvalidLog4j2Parm() attempts to log using numbered formatting anchors</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testInvalidLog4j2Parm" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="314" end="315" startBytecode="0" endBytecode="58" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testInvalidLog4j2Parm()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="314" end="314" startBytecode="7" endBytecode="7" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 314]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_INVALID_STRING_FORMAT_NOTATION" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="dcc71b0a8ac5a47092cb6612b80ef376" instanceOccurrenceNum="0" instanceOccurrenceMax="2"> <ShortMessage>Method attempts to log using String.format notation</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testInvalidLog4j2Parm2() attempts to log using String.format notation</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testInvalidLog4j2Parm2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="319" end="322" startBytecode="0" endBytecode="96" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testInvalidLog4j2Parm2()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="319" end="319" startBytecode="7" endBytecode="7" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 319]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_INVALID_STRING_FORMAT_NOTATION" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="dcc71b0a8ac5a47092cb6612b80ef376" instanceOccurrenceNum="1" instanceOccurrenceMax="2"> <ShortMessage>Method attempts to log using String.format notation</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testInvalidLog4j2Parm2() attempts to log using String.format notation</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testInvalidLog4j2Parm2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="319" end="322" startBytecode="0" endBytecode="96" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testInvalidLog4j2Parm2()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="320" end="320" startBytecode="21" endBytecode="21" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 320]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_INVALID_STRING_FORMAT_NOTATION" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="dcc71b0a8ac5a47092cb6612b80ef376" instanceOccurrenceNum="2" instanceOccurrenceMax="2"> <ShortMessage>Method attempts to log using String.format notation</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testInvalidLog4j2Parm2() attempts to log using String.format notation</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testInvalidLog4j2Parm2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="319" end="322" startBytecode="0" endBytecode="96" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testInvalidLog4j2Parm2()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="321" end="321" startBytecode="37" endBytecode="37" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 321]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_NON_PRIVATE_STATIC_LOGGER" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="484180b7357ae8ed85b90575d69a560a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines non private logger using a static class context</ShortMessage> <LongMessage>Class ex.LO_Sample$Log4j2 defines a non private logger using a static class context</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="273" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.<static initializer for Log4j2>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="273" end="273" startBytecode="59" endBytecode="59" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 273]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_STUTTERED_MESSAGE" priority="2" rank="17" abbrev="LO" category="STYLE" instanceHash="8dbd02cb567e7ee92ec29d298e534b01" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stutters exception message in logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testStutter() stutters exception message in logger</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="291" end="301" startBytecode="0" endBytecode="214" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testStutter()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="297" end="297" startBytecode="33" endBytecode="33" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 297]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="e018a2a98e4fb373b58014dd0da4f328" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.<static initializer for Log4j2>() specifies an unrelated class when allocating a Logger. Saw "java.lang.String", expected "ex.LO_Sample$Log4j2".</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="273" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.<static initializer for Log4j2>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="261" end="261" startBytecode="2" endBytecode="2" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 261]</Message> </SourceLine> <String value="java.lang.String"> <Message>Value java.lang.String</Message> </String> <String value="ex.LO_Sample$Log4j2"> <Message>Value ex.LO_Sample$Log4j2</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="665cd497f106fb9430aa99b56c6bdf35" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.<static initializer for Log4j2>() specifies an unrelated class when allocating a Logger. Saw "ex.LO_Sample", expected "ex.LO_Sample$Log4j2".</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="273" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.<static initializer for Log4j2>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="265" end="265" startBytecode="18" endBytecode="18" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 265]</Message> </SourceLine> <String value="ex.LO_Sample"> <Message>Value ex.LO_Sample</Message> </String> <String value="ex.LO_Sample$Log4j2"> <Message>Value ex.LO_Sample$Log4j2</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="acdf886c344cdd9649a7ab298128acad" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.<static initializer for Log4j2>() specifies an unrelated class when allocating a Logger. Saw "java.awt.event.ActionEvent", expected "ex.LO_Sample$Log4j2".</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="273" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.<static initializer for Log4j2>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="267" end="267" startBytecode="29" endBytecode="29" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 267]</Message> </SourceLine> <String value="java.awt.event.ActionEvent"> <Message>Value java.awt.event.ActionEvent</Message> </String> <String value="ex.LO_Sample$Log4j2"> <Message>Value ex.LO_Sample$Log4j2</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="665cd497f106fb9430aa99b56c6bdf35" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.<static initializer for Log4j2>() specifies an unrelated class when allocating a Logger. Saw "ex.LO_Sample", expected "ex.LO_Sample$Log4j2".</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="273" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.<static initializer for Log4j2>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="269" end="269" startBytecode="40" endBytecode="40" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 269]</Message> </SourceLine> <String value="ex.LO_Sample"> <Message>Value ex.LO_Sample</Message> </String> <String value="ex.LO_Sample$Log4j2"> <Message>Value ex.LO_Sample$Log4j2</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_PARAMETER" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="19d19a8e6a8fcbdfb1406f530006decf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Constructor declares a Logger parameter</ShortMessage> <LongMessage>Constructor new ex.LO_Sample$Log4j2(Logger) declares a Logger parameter</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="<init>" signature="(Lorg/apache/logging/log4j/Logger;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="286" end="288" startBytecode="0" endBytecode="69" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method new ex.LO_Sample$Log4j2(Logger)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" start="286" end="288" startBytecode="0" endBytecode="69" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" synthetic="true"> <Message>At LO_Sample.java:[lines 286-288]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_TOSTRING_PARAMETER" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="ed1f3389e5088ded4fe546fbafe2f57e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method explicitly calls toString() on a logger parameter</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testToStringInParm(List) explicitly calls toString() on a logger parameter</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testToStringInParm" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="352" end="353" startBytecode="0" endBytecode="88" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testToStringInParm(List)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="352" end="352" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 352]</Message> </SourceLine> </BugInstance> <BugInstance type="MS_SHOULD_BE_FINAL" priority="3" rank="20" abbrev="MS" category="MALICIOUS_CODE" instanceHash="b40ae0159553c78c91bf464b5728d134" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="218"> <ShortMessage>Field isn't final but should be</ShortMessage> <LongMessage>ex.LO_Sample$Log4j2.l7 isn't final but should be</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Field classname="ex.LO_Sample$Log4j2" name="l7" signature="Lorg/apache/logging/log4j/Logger;" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>In LO_Sample.java</Message> </SourceLine> <Message>Field ex.LO_Sample$Log4j2.l7</Message> </Field> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="273" end="273" startBytecode="59" endBytecode="59" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 273]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_ALWAYS_NULL_EXCEPTION" priority="1" rank="7" abbrev="NP" category="CORRECTNESS" instanceHash="fbe251c51bdaa31d213906b49f0f09bd" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Null pointer dereference in method on exception path</ShortMessage> <LongMessage>Null pointer dereference of is in ex.LO_Sample$Log4j2.testStutter() on exception path</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="291" end="301" startBytecode="0" endBytecode="214" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testStutter()</Message> </Method> <LocalVariable name="is" register="1" pc="46" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from is</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="299" end="299" startBytecode="47" endBytecode="47" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_DEREF"> <Message>Dereferenced at LO_Sample.java:[line 299]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DoomedCodeWarningProperty.DOOMED_CODE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullDerefProperty.CLOSING_NULL" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullDerefProperty.DEREFS_ARE_CLONED" value="true"/> <Property name="edu.umd.cs.findbugs.props.GeneralWarningProperty.ON_EXCEPTION_PATH" value="true"/> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="14a14b292ccb713ddfd88c179eade93a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.LO_Sample$Log4j2.testParmInExMessage() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="305" end="310" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testParmInExMessage()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="305" end="305" startBytecode="6" endBytecode="6" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at LO_Sample.java:[line 305] is not discharged</Message> </SourceLine> <SourceLine classname="ex.LO_Sample$Log4j2" start="306" end="306" startBytecode="10" endBytecode="10" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at LO_Sample.java:[line 306]</Message> </SourceLine> <SourceLine classname="ex.LO_Sample$Log4j2" start="310" end="310" startBytecode="25" endBytecode="25" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at LO_Sample.java:[line 310]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="a4a55279be954c6c41a9406bf413ac7a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.LO_Sample$Log4j2.testParmInExMessage() may fail to close stream</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="305" end="310" startBytecode="0" endBytecode="13" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testParmInExMessage()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="305" end="305" startBytecode="0" endBytecode="0" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 305]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="aa4115712679a0efdccf29e27db37918" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testFPRealStringBuilderUser(List) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testFPRealStringBuilderUser" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="377" end="383" startBytecode="0" endBytecode="202" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testFPRealStringBuilderUser(List)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="379" end="379" startBytecode="37" endBytecode="37" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 379]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="b76d6fdfc12b4a1110605e67647a402d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2.testParmInExMessage() throws exception with static message string</LongMessage> <Class classname="ex.LO_Sample$Log4j2" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="261" end="387" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 261-387]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2</Message> </Class> <Method classname="ex.LO_Sample$Log4j2" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2" start="305" end="310" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2" primary="true" start="308" end="308" startBytecode="24" endBytecode="24" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 308]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="37f0a12e561599d0988d97b2583f5c0f" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.LO_Sample$Log4j2$Inner.fpUseAnon()</LongMessage> <Class classname="ex.LO_Sample$Log4j2$Inner" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2$Inner" start="389" end="400" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 389-400]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2$Inner</Message> </Class> <Method classname="ex.LO_Sample$Log4j2$Inner" name="fpUseAnon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2$Inner" start="391" end="400" startBytecode="0" endBytecode="5" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2$Inner.fpUseAnon()</Message> </Method> <LocalVariable name="l" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Log4j2$Inner" primary="true" start="391" end="391" startBytecode="8" endBytecode="8" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 391]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="cce0fcd0243ce446c84b571542717323" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2$Inner.fpUseAnon() seems to be useless</LongMessage> <Class classname="ex.LO_Sample$Log4j2$Inner" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2$Inner" start="389" end="400" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 389-400]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2$Inner</Message> </Class> <Method classname="ex.LO_Sample$Log4j2$Inner" name="fpUseAnon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2$Inner" start="391" end="400" startBytecode="0" endBytecode="65" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2$Inner.fpUseAnon()</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2$Inner" primary="true" start="400" end="400" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 400]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="66a742012ecdf1ca5ae855d083addaad" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Log4j2$Inner$1.actionPerformed(ActionEvent) specifies an unrelated class when allocating a Logger. Saw "ex.LO_Sample", expected "ex.LO_Sample$Log4j2$Inner".</LongMessage> <Class classname="ex.LO_Sample$Log4j2$Inner$1" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2$Inner$1" start="1" end="398" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 1-398]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2$Inner$1</Message> </Class> <Method classname="ex.LO_Sample$Log4j2$Inner$1" name="actionPerformed" signature="(Ljava/awt/event/ActionEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2$Inner$1" start="395" end="398" startBytecode="0" endBytecode="84" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Log4j2$Inner$1.actionPerformed(ActionEvent)</Message> </Method> <SourceLine classname="ex.LO_Sample$Log4j2$Inner$1" primary="true" start="397" end="397" startBytecode="14" endBytecode="14" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 397]</Message> </SourceLine> <String value="ex.LO_Sample"> <Message>Value ex.LO_Sample</Message> </String> <String value="ex.LO_Sample$Log4j2$Inner"> <Message>Value ex.LO_Sample$Log4j2$Inner</Message> </String> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="c8e9be55fee9e0b80f84bda295a446c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.LO_Sample$Log4j2$Inner$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.LO_Sample$Log4j2$Inner$1" primary="true"> <SourceLine classname="ex.LO_Sample$Log4j2$Inner$1" start="1" end="398" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 1-398]</Message> </SourceLine> <Message>In class ex.LO_Sample$Log4j2$Inner$1</Message> </Class> <SourceLine classname="ex.LO_Sample$Log4j2$Inner$1" start="1" end="398" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" synthetic="true"> <Message>At LO_Sample.java:[lines 1-398]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="6fe780626c5ff9c14bfbaf4223501f74" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to e in ex.LO_Sample$Slf4j.testParmInExMessage()</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="60" end="65" startBytecode="0" endBytecode="13" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testParmInExMessage()</Message> </Method> <LocalVariable name="e" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named e</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="60" end="60" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 60]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="e"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="d3f7236d6fd21493cb5d7f83d19ac509" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testParmInExMessage() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="60" end="65" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="60" end="60" startBytecode="6" endBytecode="6" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="20f46b494f1de19936e50fd10a514a3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testStutter() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="46" end="56" startBytecode="0" endBytecode="214" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testStutter()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="49" end="49" startBytecode="17" endBytecode="17" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_APPENDED_STRING_IN_FORMAT_STRING" priority="2" rank="18" abbrev="LO" category="PERFORMANCE" instanceHash="eed69d76643a674d1f86f45c0d294750" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes a concatenated string to SLF4J's or Log4j2's format string</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testLogAppending(String) passes a concatenated string to SLF4J's or Log4j2's format string</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testLogAppending" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="82" end="86" startBytecode="0" endBytecode="148" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testLogAppending(String)</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="82" end="82" startBytecode="19" endBytecode="19" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 82]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_EMBEDDED_SIMPLE_STRING_FORMAT_IN_FORMAT_STRING" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="e52a31d7fe59b68ffe604d2b87792171" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes a simple String.format result to an SLF4J's or Log4j2's format string</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testSimpleFormatInLogger(String) passes a simple String.format result to an SLF4J's or Log4j2's format string</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testSimpleFormatInLogger" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="103" end="104" startBytecode="0" endBytecode="77" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testSimpleFormatInLogger(String)</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="103" end="103" startBytecode="16" endBytecode="16" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 103]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_EXCEPTION_WITH_LOGGER_PARMS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="7838effc478468669f399f568585ae89" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates exception with logger parameter markers in message</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testParmInExMessage() creates exception with logger parameter markers in message</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="60" end="65" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="63" end="63" startBytecode="21" endBytecode="21" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 63]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="2e1b6dbec9719c17b9cfa0c656d94242" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.fpFalseToString(LO_Sample$FunnyToString) passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="fpFalseToString" signature="(Lex/LO_Sample$FunnyToString;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="145" end="146" startBytecode="0" endBytecode="71" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.fpFalseToString(LO_Sample$FunnyToString)</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="145" end="145" startBytecode="10" endBytecode="10" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 145]</Message> </SourceLine> <String value="Expected: 0"> <Message>Value Expected: 0</Message> </String> <String value="Actual: 1"> <Message>Value Actual: 1</Message> </String> </BugInstance> <BugInstance type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="dc0130b967df03fc8de9096c37eb7dc2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testWrongNumberOfParms() passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testWrongNumberOfParms" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="90" end="100" startBytecode="0" endBytecode="165" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testWrongNumberOfParms()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="90" end="90" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 90]</Message> </SourceLine> <String value="Expected: 1"> <Message>Value Expected: 1</Message> </String> <String value="Actual: 2"> <Message>Value Actual: 2</Message> </String> </BugInstance> <BugInstance type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="982ee72e46e8fb8863b9ed4d7abac700" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testWrongNumberOfParms() passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testWrongNumberOfParms" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="90" end="100" startBytecode="0" endBytecode="165" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testWrongNumberOfParms()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="92" end="92" startBytecode="21" endBytecode="21" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 92]</Message> </SourceLine> <String value="Expected: 2"> <Message>Value Expected: 2</Message> </String> <String value="Actual: 1"> <Message>Value Actual: 1</Message> </String> </BugInstance> <BugInstance type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="282712edd7e4a96d1d427b7a3e57b589" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testWrongNumberOfParms() passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testWrongNumberOfParms" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="90" end="100" startBytecode="0" endBytecode="165" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testWrongNumberOfParms()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="94" end="94" startBytecode="35" endBytecode="35" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 94]</Message> </SourceLine> <String value="Expected: 3"> <Message>Value Expected: 3</Message> </String> <String value="Actual: 2"> <Message>Value Actual: 2</Message> </String> </BugInstance> <BugInstance type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="edabb6a4715d0c5e04841e922438c6d0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testWrongNumberOfParms() passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testWrongNumberOfParms" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="90" end="100" startBytecode="0" endBytecode="165" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testWrongNumberOfParms()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="96" end="96" startBytecode="64" endBytecode="64" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 96]</Message> </SourceLine> <String value="Expected: 4"> <Message>Value Expected: 4</Message> </String> <String value="Actual: 3"> <Message>Value Actual: 3</Message> </String> </BugInstance> <BugInstance type="LO_INVALID_FORMATTING_ANCHOR" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="3521d20e278cf936a00647fdc3424673" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to log using numbered formatting anchors</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testInvalidSLF4jParm() attempts to log using numbered formatting anchors</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testInvalidSLF4jParm" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="69" end="70" startBytecode="0" endBytecode="58" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testInvalidSLF4jParm()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="69" end="69" startBytecode="7" endBytecode="7" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 69]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_INVALID_STRING_FORMAT_NOTATION" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="c14396d30f1e9c9c7cce8852f3e2aa80" instanceOccurrenceNum="0" instanceOccurrenceMax="2"> <ShortMessage>Method attempts to log using String.format notation</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testInvalidSLF4jParm2() attempts to log using String.format notation</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testInvalidSLF4jParm2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="74" end="77" startBytecode="0" endBytecode="96" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testInvalidSLF4jParm2()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="74" end="74" startBytecode="7" endBytecode="7" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 74]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_INVALID_STRING_FORMAT_NOTATION" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="c14396d30f1e9c9c7cce8852f3e2aa80" instanceOccurrenceNum="1" instanceOccurrenceMax="2"> <ShortMessage>Method attempts to log using String.format notation</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testInvalidSLF4jParm2() attempts to log using String.format notation</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testInvalidSLF4jParm2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="74" end="77" startBytecode="0" endBytecode="96" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testInvalidSLF4jParm2()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="75" end="75" startBytecode="21" endBytecode="21" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 75]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_INVALID_STRING_FORMAT_NOTATION" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="c14396d30f1e9c9c7cce8852f3e2aa80" instanceOccurrenceNum="2" instanceOccurrenceMax="2"> <ShortMessage>Method attempts to log using String.format notation</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testInvalidSLF4jParm2() attempts to log using String.format notation</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testInvalidSLF4jParm2" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="74" end="77" startBytecode="0" endBytecode="96" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testInvalidSLF4jParm2()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="76" end="76" startBytecode="37" endBytecode="37" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 76]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_NON_PRIVATE_STATIC_LOGGER" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="f9e88a50354c8486ec8d6dabf9225a5e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines non private logger using a static class context</ShortMessage> <LongMessage>Class ex.LO_Sample$Slf4j defines a non private logger using a static class context</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="30" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.<static initializer for Slf4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="30" end="30" startBytecode="59" endBytecode="59" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_STUTTERED_MESSAGE" priority="2" rank="17" abbrev="LO" category="STYLE" instanceHash="d1d59efb558cec438c6213c2e1976586" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stutters exception message in logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testStutter() stutters exception message in logger</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="46" end="56" startBytecode="0" endBytecode="214" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testStutter()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="52" end="52" startBytecode="33" endBytecode="33" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 52]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="1812799b046cbe078f4a342840141403" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.<static initializer for Slf4j>() specifies an unrelated class when allocating a Logger. Saw "java.lang.String", expected "ex.LO_Sample$Slf4j".</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="30" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.<static initializer for Slf4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="18" end="18" startBytecode="2" endBytecode="2" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 18]</Message> </SourceLine> <String value="java.lang.String"> <Message>Value java.lang.String</Message> </String> <String value="ex.LO_Sample$Slf4j"> <Message>Value ex.LO_Sample$Slf4j</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="53692461deadcfa61020cb566a3101a8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.<static initializer for Slf4j>() specifies an unrelated class when allocating a Logger. Saw "ex.LO_Sample", expected "ex.LO_Sample$Slf4j".</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="30" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.<static initializer for Slf4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="22" end="22" startBytecode="18" endBytecode="18" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 22]</Message> </SourceLine> <String value="ex.LO_Sample"> <Message>Value ex.LO_Sample</Message> </String> <String value="ex.LO_Sample$Slf4j"> <Message>Value ex.LO_Sample$Slf4j</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="3" rank="10" abbrev="LO" category="CORRECTNESS" instanceHash="54114b4496ec190bb021dc289b27fad6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.<static initializer for Slf4j>() specifies an unrelated class when allocating a Logger. Saw "com.foo.LO_Sample", expected "ex.LO_Sample$Slf4j".</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="30" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.<static initializer for Slf4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="20" end="20" startBytecode="10" endBytecode="10" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 20]</Message> </SourceLine> <String value="com.foo.LO_Sample"> <Message>Value com.foo.LO_Sample</Message> </String> <String value="ex.LO_Sample$Slf4j"> <Message>Value ex.LO_Sample$Slf4j</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="3" rank="10" abbrev="LO" category="CORRECTNESS" instanceHash="8257c7f826e33b75d32a5c7674d8bc12" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.<static initializer for Slf4j>() specifies an unrelated class when allocating a Logger. Saw "my.nasty.logger.LOGGER", expected "ex.LO_Sample$Slf4j".</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="<clinit>" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="30" startBytecode="0" endBytecode="118" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.<static initializer for Slf4j>()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="28" end="28" startBytecode="48" endBytecode="48" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 28]</Message> </SourceLine> <String value="my.nasty.logger.LOGGER"> <Message>Value my.nasty.logger.LOGGER</Message> </String> <String value="ex.LO_Sample$Slf4j"> <Message>Value ex.LO_Sample$Slf4j</Message> </String> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_PARAMETER" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="7205b3cad7b3a6312ba637ac563ebcfb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Constructor declares a Logger parameter</ShortMessage> <LongMessage>Constructor new ex.LO_Sample$Slf4j(Logger) declares a Logger parameter</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="<init>" signature="(Lorg/slf4j/Logger;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="41" end="43" startBytecode="0" endBytecode="69" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method new ex.LO_Sample$Slf4j(Logger)</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" start="41" end="43" startBytecode="0" endBytecode="69" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" synthetic="true"> <Message>At LO_Sample.java:[lines 41-43]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_TOSTRING_PARAMETER" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="88317ebb4819fc254fe0cac81ecf9d2e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method explicitly calls toString() on a logger parameter</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testToStringInParm(List) explicitly calls toString() on a logger parameter</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testToStringInParm" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="107" end="108" startBytecode="0" endBytecode="88" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testToStringInParm(List)</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="107" end="107" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 107]</Message> </SourceLine> </BugInstance> <BugInstance type="MS_SHOULD_BE_FINAL" priority="3" rank="20" abbrev="MS" category="MALICIOUS_CODE" instanceHash="7a7b842ee8a8a2861386d29e8d139711" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="218"> <ShortMessage>Field isn't final but should be</ShortMessage> <LongMessage>ex.LO_Sample$Slf4j.l7 isn't final but should be</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Field classname="ex.LO_Sample$Slf4j" name="l7" signature="Lorg/slf4j/Logger;" isStatic="true" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>In LO_Sample.java</Message> </SourceLine> <Message>Field ex.LO_Sample$Slf4j.l7</Message> </Field> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="30" end="30" startBytecode="59" endBytecode="59" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_ALWAYS_NULL_EXCEPTION" priority="1" rank="7" abbrev="NP" category="CORRECTNESS" instanceHash="2947067df3144460c40cc4e0a5829b9a" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Null pointer dereference in method on exception path</ShortMessage> <LongMessage>Null pointer dereference of is in ex.LO_Sample$Slf4j.testStutter() on exception path</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testStutter" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="46" end="56" startBytecode="0" endBytecode="214" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testStutter()</Message> </Method> <LocalVariable name="is" register="1" pc="46" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from is</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="54" end="54" startBytecode="47" endBytecode="47" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_DEREF"> <Message>Dereferenced at LO_Sample.java:[line 54]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DoomedCodeWarningProperty.DOOMED_CODE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullDerefProperty.CLOSING_NULL" value="true"/> <Property name="edu.umd.cs.findbugs.detect.NullDerefProperty.DEREFS_ARE_CLONED" value="true"/> <Property name="edu.umd.cs.findbugs.props.GeneralWarningProperty.ON_EXCEPTION_PATH" value="true"/> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="3cb88eca12c6d80f3c6ab1ac975433e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.LO_Sample$Slf4j.testParmInExMessage() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="60" end="65" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testParmInExMessage()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="60" end="60" startBytecode="6" endBytecode="6" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at LO_Sample.java:[line 60] is not discharged</Message> </SourceLine> <SourceLine classname="ex.LO_Sample$Slf4j" start="61" end="61" startBytecode="10" endBytecode="10" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at LO_Sample.java:[line 61]</Message> </SourceLine> <SourceLine classname="ex.LO_Sample$Slf4j" start="65" end="65" startBytecode="25" endBytecode="25" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at LO_Sample.java:[line 65]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="afac892cd9990691204d14775987ec9d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.LO_Sample$Slf4j.testParmInExMessage() may fail to close stream</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="60" end="65" startBytecode="0" endBytecode="13" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testParmInExMessage()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="60" end="60" startBytecode="0" endBytecode="0" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="b2a81a501a60d1968d4e18f216c6a65b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testFPRealStringBuilderUser(List) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testFPRealStringBuilderUser" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="132" end="138" startBytecode="0" endBytecode="202" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testFPRealStringBuilderUser(List)</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="134" end="134" startBytecode="37" endBytecode="37" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 134]</Message> </SourceLine> </BugInstance> <BugInstance type="UR_UNINIT_READ" priority="2" rank="3" abbrev="UR" category="CORRECTNESS" instanceHash="fc27c4f2011bb19b4a12f96baced21f4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Uninitialized read of field in constructor</ShortMessage> <LongMessage>Uninitialized read of someLocalLogger in new ex.LO_Sample$Slf4j()</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="36" end="38" startBytecode="0" endBytecode="65" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method new ex.LO_Sample$Slf4j()</Message> </Method> <Field classname="ex.LO_Sample$Slf4j" name="someLocalLogger" signature="Lorg/slf4j/Logger;" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>In LO_Sample.java</Message> </SourceLine> <Message>Field ex.LO_Sample$Slf4j.someLocalLogger</Message> </Field> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="37" end="37" startBytecode="5" endBytecode="5" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="5846e830703395488f810d62da504765" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j.testParmInExMessage() throws exception with static message string</LongMessage> <Class classname="ex.LO_Sample$Slf4j" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="18" end="146" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 18-146]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j</Message> </Class> <Method classname="ex.LO_Sample$Slf4j" name="testParmInExMessage" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j" start="60" end="65" startBytecode="0" endBytecode="110" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j.testParmInExMessage()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j" primary="true" start="63" end="63" startBytecode="24" endBytecode="24" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 63]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="35e4eb896764c9b4cb2ad6c87c8e61dc" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.LO_Sample$Slf4j$Inner.fpUseAnon()</LongMessage> <Class classname="ex.LO_Sample$Slf4j$Inner" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j$Inner" start="148" end="159" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 148-159]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j$Inner</Message> </Class> <Method classname="ex.LO_Sample$Slf4j$Inner" name="fpUseAnon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j$Inner" start="150" end="159" startBytecode="0" endBytecode="5" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j$Inner.fpUseAnon()</Message> </Method> <LocalVariable name="l" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.LO_Sample$Slf4j$Inner" primary="true" start="150" end="150" startBytecode="8" endBytecode="8" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 150]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="9b53b82774b5241a842afd8eb7cd3a04" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j$Inner.fpUseAnon() seems to be useless</LongMessage> <Class classname="ex.LO_Sample$Slf4j$Inner" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j$Inner" start="148" end="159" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 148-159]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j$Inner</Message> </Class> <Method classname="ex.LO_Sample$Slf4j$Inner" name="fpUseAnon" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j$Inner" start="150" end="159" startBytecode="0" endBytecode="65" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j$Inner.fpUseAnon()</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j$Inner" primary="true" start="159" end="159" startBytecode="9" endBytecode="9" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 159]</Message> </SourceLine> </BugInstance> <BugInstance type="LO_SUSPECT_LOG_CLASS" priority="2" rank="7" abbrev="LO" category="CORRECTNESS" instanceHash="461e142c10fd94a85d6337d1d12c199b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method specifies an unrelated class when allocating a Logger</ShortMessage> <LongMessage>Method ex.LO_Sample$Slf4j$Inner$1.actionPerformed(ActionEvent) specifies an unrelated class when allocating a Logger. Saw "ex.LO_Sample", expected "ex.LO_Sample$Slf4j$Inner".</LongMessage> <Class classname="ex.LO_Sample$Slf4j$Inner$1" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j$Inner$1" start="1" end="157" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 1-157]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j$Inner$1</Message> </Class> <Method classname="ex.LO_Sample$Slf4j$Inner$1" name="actionPerformed" signature="(Ljava/awt/event/ActionEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j$Inner$1" start="154" end="157" startBytecode="0" endBytecode="84" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"/> <Message>In method ex.LO_Sample$Slf4j$Inner$1.actionPerformed(ActionEvent)</Message> </Method> <SourceLine classname="ex.LO_Sample$Slf4j$Inner$1" primary="true" start="156" end="156" startBytecode="14" endBytecode="14" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[line 156]</Message> </SourceLine> <String value="ex.LO_Sample"> <Message>Value ex.LO_Sample</Message> </String> <String value="ex.LO_Sample$Slf4j$Inner"> <Message>Value ex.LO_Sample$Slf4j$Inner</Message> </String> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="19d0d9ab7859f3e78c3dd8dda8b95f35" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.LO_Sample$Slf4j$Inner$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.LO_Sample$Slf4j$Inner$1" primary="true"> <SourceLine classname="ex.LO_Sample$Slf4j$Inner$1" start="1" end="157" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java"> <Message>At LO_Sample.java:[lines 1-157]</Message> </SourceLine> <Message>In class ex.LO_Sample$Slf4j$Inner$1</Message> </Class> <SourceLine classname="ex.LO_Sample$Slf4j$Inner$1" start="1" end="157" sourcefile="LO_Sample.java" sourcepath="ex/LO_Sample.java" synthetic="true"> <Message>At LO_Sample.java:[lines 1-157]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="cc5680be54d5e932b22f0d2eb6e50889" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test1(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test1" signature="(Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.LSC_Sample" start="15" end="15" startBytecode="0" endBytecode="58" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test1(String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="15" end="15" startBytecode="3" endBytecode="3" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="e313e9db85a7da2a07638234832b59c8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test11(String, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test11" signature="(Ljava/lang/String;Ljava/lang/String;)I" isStatic="true" primary="true"> <SourceLine classname="ex.LSC_Sample" start="79" end="96" startBytecode="0" endBytecode="217" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test11(String, String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="86" end="86" startBytecode="83" endBytecode="83" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 86]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="18860157cfbefbce850d2b121d6d9c3c" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test12(int, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test12" signature="(ILjava/lang/String;)I" isStatic="true" primary="true"> <SourceLine classname="ex.LSC_Sample" start="101" end="119" startBytecode="0" endBytecode="163" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test12(int, String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="109" end="109" startBytecode="39" endBytecode="39" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="18860157cfbefbce850d2b121d6d9c3c" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test12(int, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test12" signature="(ILjava/lang/String;)I" isStatic="true" primary="true"> <SourceLine classname="ex.LSC_Sample" start="101" end="119" startBytecode="0" endBytecode="163" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test12(int, String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="115" end="115" startBytecode="50" endBytecode="50" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 115]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="48644e30f11b781bfd378c313c2e1e24" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test13(LSC_Sample$Planets, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test13" signature="(Lex/LSC_Sample$Planets;Ljava/lang/String;)I" isStatic="true" primary="true"> <SourceLine classname="ex.LSC_Sample" start="124" end="143" startBytecode="0" endBytecode="171" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test13(LSC_Sample$Planets, String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="131" end="131" startBytecode="47" endBytecode="47" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 131]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="48644e30f11b781bfd378c313c2e1e24" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test13(LSC_Sample$Planets, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test13" signature="(Lex/LSC_Sample$Planets;Ljava/lang/String;)I" isStatic="true" primary="true"> <SourceLine classname="ex.LSC_Sample" start="124" end="143" startBytecode="0" endBytecode="171" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test13(LSC_Sample$Planets, String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="139" end="139" startBytecode="58" endBytecode="58" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 139]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="179512db979f09a0e14c88e836423b83" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test4(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test4" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.LSC_Sample" start="30" end="30" startBytecode="0" endBytecode="58" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test4(String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="30" end="30" startBytecode="3" endBytecode="3" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="51835d59f99c3a287e78445d032f0793" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test6(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test6" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.LSC_Sample" start="40" end="40" startBytecode="0" endBytecode="58" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test6(String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="40" end="40" startBytecode="3" endBytecode="3" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="593ec95131bb4752f1dac2b3b253f177" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.LSC_Sample.test8(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.LSC_Sample" primary="true"> <SourceLine classname="ex.LSC_Sample" start="5" end="184" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[lines 5-184]</Message> </SourceLine> <Message>In class ex.LSC_Sample</Message> </Class> <Method classname="ex.LSC_Sample" name="test8" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.LSC_Sample" start="50" end="50" startBytecode="0" endBytecode="58" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"/> <Message>In method ex.LSC_Sample.test8(String)</Message> </Method> <SourceLine classname="ex.LSC_Sample" primary="true" start="50" end="50" startBytecode="3" endBytecode="3" sourcefile="LSC_Sample.java" sourcepath="ex/LSC_Sample.java"> <Message>At LSC_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="be414012e99bc0891afaf427cc2b6e85" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.LSYC_Sample does not implement a toString method</LongMessage> <Class classname="ex.LSYC_Sample" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="13" end="80" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[lines 13-80]</Message> </SourceLine> <Message>In class ex.LSYC_Sample</Message> </Class> <SourceLine classname="ex.LSYC_Sample" start="13" end="80" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java" synthetic="true"> <Message>At LSYC_Sample.java:[lines 13-80]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="1faa72a47112769021277269528c2b67" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LSYC_Sample.printString() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LSYC_Sample" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="13" end="80" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[lines 13-80]</Message> </SourceLine> <Message>In class ex.LSYC_Sample</Message> </Class> <Method classname="ex.LSYC_Sample" name="printString" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="62" end="65" startBytecode="0" endBytecode="127" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"/> <Message>In method ex.LSYC_Sample.printString()</Message> </Method> <SourceLine classname="ex.LSYC_Sample" primary="true" start="62" end="62" startBytecode="7" endBytecode="7" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="cebd0b4039cd402c3d4986a590055b6f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LSYC_Sample.test2(Set) creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LSYC_Sample" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="13" end="80" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[lines 13-80]</Message> </SourceLine> <Message>In class ex.LSYC_Sample</Message> </Class> <Method classname="ex.LSYC_Sample" name="test2" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="24" end="28" startBytecode="0" endBytecode="189" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"/> <Message>In method ex.LSYC_Sample.test2(Set)</Message> </Method> <SourceLine classname="ex.LSYC_Sample" primary="true" start="24" end="24" startBytecode="4" endBytecode="4" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="36ba40f9b79101ed09693ada0643b5cf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.LSYC_Sample.testNotStoredSB() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.LSYC_Sample" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="13" end="80" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[lines 13-80]</Message> </SourceLine> <Message>In class ex.LSYC_Sample</Message> </Class> <Method classname="ex.LSYC_Sample" name="testNotStoredSB" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="31" end="33" startBytecode="0" endBytecode="89" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"/> <Message>In method ex.LSYC_Sample.testNotStoredSB()</Message> </Method> <SourceLine classname="ex.LSYC_Sample" primary="true" start="31" end="31" startBytecode="17" endBytecode="17" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="ea6ad469b1f5b0bc46d04754a529697c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.LSYC_Sample.test2(Set) creates iterators on synchronized collections</LongMessage> <Class classname="ex.LSYC_Sample" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="13" end="80" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[lines 13-80]</Message> </SourceLine> <Message>In class ex.LSYC_Sample</Message> </Class> <Method classname="ex.LSYC_Sample" name="test2" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="24" end="28" startBytecode="0" endBytecode="189" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"/> <Message>In method ex.LSYC_Sample.test2(Set)</Message> </Method> <SourceLine classname="ex.LSYC_Sample" primary="true" start="25" end="25" startBytecode="6" endBytecode="6" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="ed3403686efc0344439d77e36d665cfd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.LSYC_Sample.test1(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.LSYC_Sample" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="13" end="80" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"> <Message>At LSYC_Sample.java:[lines 13-80]</Message> </SourceLine> <Message>In class ex.LSYC_Sample</Message> </Class> <Method classname="ex.LSYC_Sample" name="test1" signature="([Ljava/lang/String;)[Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.LSYC_Sample" start="17" end="20" startBytecode="0" endBytecode="117" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java"/> <Message>In method ex.LSYC_Sample.test1(String[])</Message> </Method> <SourceLine classname="ex.LSYC_Sample" start="17" end="20" startBytecode="0" endBytecode="117" sourcefile="LSYC_Sample.java" sourcepath="ex/LSYC_Sample.java" synthetic="true"> <Message>At LSYC_Sample.java:[lines 17-20]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_LOCAL_EXECUTOR_SERVICE" priority="3" rank="14" abbrev="HES" category="CORRECTNESS" instanceHash="514c2e528c09375f94342c7e8a2e5685" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Suspicious Local Executor Service</ShortMessage> <LongMessage>ExecutorService is created as a local variable, which is unusual</LongMessage> <Class classname="ex.LocalExecutorProblem" primary="true"> <SourceLine classname="ex.LocalExecutorProblem" start="352" end="359" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 352-359]</Message> </SourceLine> <Message>In class ex.LocalExecutorProblem</Message> </Class> <Method classname="ex.LocalExecutorProblem" name="task" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LocalExecutorProblem" start="356" end="359" startBytecode="0" endBytecode="94" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.LocalExecutorProblem.task()</Message> </Method> <SourceLine classname="ex.LocalExecutorProblem" primary="true" start="356" end="356" startBytecode="3" endBytecode="3" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 356]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="760c82faae45782e7083e6da88f673fc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.LocalExecutorProblem.task() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.LocalExecutorProblem" primary="true"> <SourceLine classname="ex.LocalExecutorProblem" start="352" end="359" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 352-359]</Message> </SourceLine> <Message>In class ex.LocalExecutorProblem</Message> </Class> <Method classname="ex.LocalExecutorProblem" name="task" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LocalExecutorProblem" start="356" end="359" startBytecode="0" endBytecode="94" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.LocalExecutorProblem.task()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.LocalExecutorProblem" start="356" end="359" startBytecode="0" endBytecode="94" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 356-359]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_LOCAL_EXECUTOR_SERVICE" priority="3" rank="14" abbrev="HES" category="CORRECTNESS" instanceHash="a9fd4dea3df7f8d480eb75e3eb8f99e9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Suspicious Local Executor Service</ShortMessage> <LongMessage>ExecutorService is created as a local variable, which is unusual</LongMessage> <Class classname="ex.LocalExecutorProblem1" primary="true"> <SourceLine classname="ex.LocalExecutorProblem1" start="363" end="376" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 363-376]</Message> </SourceLine> <Message>In class ex.LocalExecutorProblem1</Message> </Class> <Method classname="ex.LocalExecutorProblem1" name="task" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.LocalExecutorProblem1" start="367" end="376" startBytecode="0" endBytecode="102" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.LocalExecutorProblem1.task()</Message> </Method> <SourceLine classname="ex.LocalExecutorProblem1" primary="true" start="367" end="367" startBytecode="11" endBytecode="11" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 367]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="1f870659cf66b61cf4d4e671b7de2cc1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.LocalExecutorProblem1$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.LocalExecutorProblem1$1" primary="true"> <SourceLine classname="ex.LocalExecutorProblem1$1" start="1" end="371" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 1-371]</Message> </SourceLine> <Message>In class ex.LocalExecutorProblem1$1</Message> </Class> <SourceLine classname="ex.LocalExecutorProblem1$1" start="1" end="371" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 1-371]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="7c39853be93e0619e765e60dbecc0be3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.LocalExecutorProblem2$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.LocalExecutorProblem2$1" primary="true"> <SourceLine classname="ex.LocalExecutorProblem2$1" start="1" end="388" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 1-388]</Message> </SourceLine> <Message>In class ex.LocalExecutorProblem2$1</Message> </Class> <SourceLine classname="ex.LocalExecutorProblem2$1" start="1" end="388" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 1-388]</Message> </SourceLine> </BugInstance> <BugInstance type="CLI_CONSTANT_LIST_INDEX" priority="2" rank="7" abbrev="CLI" category="CORRECTNESS" instanceHash="60dee9ed60fb472771b7248cb90670d8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method accesses list or array with constant index</ShortMessage> <LongMessage>Method ex.MAC_Sample.testFP(String[]) accesses list or array with constant index</LongMessage> <Class classname="ex.MAC_Sample" primary="true"> <SourceLine classname="ex.MAC_Sample" start="3" end="17" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.MAC_Sample</Message> </Class> <Method classname="ex.MAC_Sample" name="testFP" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.MAC_Sample" start="11" end="17" startBytecode="0" endBytecode="169" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"/> <Message>In method ex.MAC_Sample.testFP(String[])</Message> </Method> <SourceLine classname="ex.MAC_Sample" primary="true" start="14" end="14" startBytecode="16" endBytecode="16" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="8abac8d83a46b485766895f055805dba" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.MAC_Sample.testFP(String[]) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.MAC_Sample" primary="true"> <SourceLine classname="ex.MAC_Sample" start="3" end="17" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.MAC_Sample</Message> </Class> <Method classname="ex.MAC_Sample" name="testFP" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.MAC_Sample" start="11" end="17" startBytecode="0" endBytecode="169" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"/> <Message>In method ex.MAC_Sample.testFP(String[])</Message> </Method> <SourceLine classname="ex.MAC_Sample" primary="true" start="14" end="14" startBytecode="19" endBytecode="19" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="5c858c9847c7cb705689036358470377" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable b of method ex.MAC_Sample.test(String[])</LongMessage> <Class classname="ex.MAC_Sample" primary="true"> <SourceLine classname="ex.MAC_Sample" start="3" end="17" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.MAC_Sample</Message> </Class> <Method classname="ex.MAC_Sample" name="test" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.MAC_Sample" start="5" end="8" startBytecode="0" endBytecode="130" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"/> <Message>In method ex.MAC_Sample.test(String[])</Message> </Method> <String value="b"> <Message>Value b</Message> </String> <Type descriptor="[Ljava/lang/String;"> <Message>Type String[]</Message> </Type> <SourceLine classname="ex.MAC_Sample" primary="true" start="5" end="5" startBytecode="2" endBytecode="2" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[line 5]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="780f3634a517fd2c1a1d1263824e62e2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable b of method ex.MAC_Sample.testFP(String[])</LongMessage> <Class classname="ex.MAC_Sample" primary="true"> <SourceLine classname="ex.MAC_Sample" start="3" end="17" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.MAC_Sample</Message> </Class> <Method classname="ex.MAC_Sample" name="testFP" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.MAC_Sample" start="11" end="17" startBytecode="0" endBytecode="169" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"/> <Message>In method ex.MAC_Sample.testFP(String[])</Message> </Method> <String value="b"> <Message>Value b</Message> </String> <Type descriptor="[Ljava/lang/String;"> <Message>Type String[]</Message> </Type> <SourceLine classname="ex.MAC_Sample" primary="true" start="11" end="11" startBytecode="2" endBytecode="2" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="3146a42ec28051f035ef03f12ffd6f35" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.MAC_Sample.testFP(String[]) seems to be useless</LongMessage> <Class classname="ex.MAC_Sample" primary="true"> <SourceLine classname="ex.MAC_Sample" start="3" end="17" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.MAC_Sample</Message> </Class> <Method classname="ex.MAC_Sample" name="testFP" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.MAC_Sample" start="11" end="17" startBytecode="0" endBytecode="169" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"/> <Message>In method ex.MAC_Sample.testFP(String[])</Message> </Method> <SourceLine classname="ex.MAC_Sample" primary="true" start="17" end="17" startBytecode="45" endBytecode="45" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="7cfde5d3c685a050b3c87531b9f6df77" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.MAC_Sample.test(String[]) seems to be useless</LongMessage> <Class classname="ex.MAC_Sample" primary="true"> <SourceLine classname="ex.MAC_Sample" start="3" end="17" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.MAC_Sample</Message> </Class> <Method classname="ex.MAC_Sample" name="test" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.MAC_Sample" start="5" end="8" startBytecode="0" endBytecode="130" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"/> <Message>In method ex.MAC_Sample.test(String[])</Message> </Method> <SourceLine classname="ex.MAC_Sample" primary="true" start="8" end="8" startBytecode="26" endBytecode="26" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="37d8f5558fe2e8206a22df828b534ac1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.MAC_Sample.test(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.MAC_Sample" primary="true"> <SourceLine classname="ex.MAC_Sample" start="3" end="17" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.MAC_Sample</Message> </Class> <Method classname="ex.MAC_Sample" name="test" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.MAC_Sample" start="5" end="8" startBytecode="0" endBytecode="130" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"/> <Message>In method ex.MAC_Sample.test(String[])</Message> </Method> <SourceLine classname="ex.MAC_Sample" start="5" end="8" startBytecode="0" endBytecode="130" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java" synthetic="true"> <Message>At MAC_Sample.java:[lines 5-8]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="29bc8ae63ebfcef3ed6c0254818efdbc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.MAC_Sample.testFP(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.MAC_Sample" primary="true"> <SourceLine classname="ex.MAC_Sample" start="3" end="17" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"> <Message>At MAC_Sample.java:[lines 3-17]</Message> </SourceLine> <Message>In class ex.MAC_Sample</Message> </Class> <Method classname="ex.MAC_Sample" name="testFP" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.MAC_Sample" start="11" end="17" startBytecode="0" endBytecode="169" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java"/> <Message>In method ex.MAC_Sample.testFP(String[])</Message> </Method> <SourceLine classname="ex.MAC_Sample" start="11" end="17" startBytecode="0" endBytecode="169" sourcefile="MAC_Sample.java" sourcepath="ex/MAC_Sample.java" synthetic="true"> <Message>At MAC_Sample.java:[lines 11-17]</Message> </SourceLine> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="722620909ed1ee061e95f3c26fdd5c9b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "String.getBytes(String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: String.getBytes(Charset)</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="98" end="98" startBytecode="303" endBytecode="303" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 98]</Message> </SourceLine> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/lang/String;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="917" end="918" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(String)</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/nio/charset/Charset;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="940" end="941" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(Charset)</Message> </Method> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="43d2372402540c49f7308de6a865162c" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bytes in new ex.MDM_Sample()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="157" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <LocalVariable name="bytes" register="2" pc="307" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bytes</Message> </LocalVariable> <SourceLine classname="ex.MDM_Sample" primary="true" start="98" end="98" startBytecode="306" endBytecode="306" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 98]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bytes"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.MANY_STORES" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DM_DEFAULT_ENCODING" priority="1" rank="19" abbrev="Dm" category="I18N" instanceHash="6d70147bd3efe33fc8a7cc1e2937036c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Reliance on default encoding</ShortMessage> <LongMessage>Found reliance on default encoding in new ex.MDM_Sample(): new String(byte[])</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.String" name="<init>" signature="([B)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="566" end="567" startBytecode="0" endBytecode="36" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method new String(byte[])</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="97" end="97" startBytecode="296" endBytecode="296" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_DEFAULT_ENCODING" priority="1" rank="19" abbrev="Dm" category="I18N" instanceHash="1d932b625381b21b7c24f526c245f676" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Reliance on default encoding</ShortMessage> <LongMessage>Found reliance on default encoding in new ex.MDM_Sample(): String.getBytes()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="()[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="958" end="958" startBytecode="0" endBytecode="37" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="96" end="96" startBytecode="287" endBytecode="287" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 96]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="56d5f77302a4adc99cec48a5b43f3d0b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.MDM_Sample does not implement a toString method</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java" synthetic="true"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_BIGDECIMAL_EQUALS" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="26776631e9292626c9749af3b54f5cff" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls BigDecimal.equals()</ShortMessage> <LongMessage>Method new ex.MDM_Sample() calls BigDecimal.equals(), which is normally a mistake</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.math.BigDecimal" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.math.BigDecimal" start="2709" end="2725" startBytecode="0" endBytecode="236" sourcefile="BigDecimal.java" sourcepath="java/math/BigDecimal.java"/> <Message>Called method java.math.BigDecimal.equals(Object)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="33" end="33" startBytecode="45" endBytecode="45" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_INETADDRESS_GETLOCALHOST" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="998561fd482b200d74e1057175b85f9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls InetAddress.getLocalHost()</ShortMessage> <LongMessage>Method new ex.MDM_Sample() calls InetAddress.getLocalHost(), which may be a security risk</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.net.InetAddress" name="getLocalHost" signature="()Ljava/net/InetAddress;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.net.InetAddress" start="1472" end="1516" startBytecode="0" endBytecode="425" sourcefile="InetAddress.java" sourcepath="java/net/InetAddress.java"/> <Message>Called method java.net.InetAddress.getLocalHost()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="37" end="37" startBytecode="49" endBytecode="49" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_LOCK_ISLOCKED" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="510d7e374ce837760c1270d711410dc5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method tests if a lock is locked</ShortMessage> <LongMessage>Method new ex.MDM_Sample() tests if a lock is locked by calling java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.ReentrantLock" name="isHeldByCurrentThread" signature="()Z" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.ReentrantLock" start="578" end="578" startBytecode="0" endBytecode="31" sourcefile="ReentrantLock.java" sourcepath="java/util/concurrent/locks/ReentrantLock.java"/> <Message>Called method java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="75" end="75" startBytecode="200" endBytecode="200" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 75]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_LOCK_ISLOCKED" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="f6003e8d0ee57acc6ffa78db9ae4bd4c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method tests if a lock is locked</ShortMessage> <LongMessage>Method new ex.MDM_Sample() tests if a lock is locked by calling java.util.concurrent.locks.ReentrantLock.isLocked()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.ReentrantLock" name="isLocked" signature="()Z" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.ReentrantLock" start="590" end="590" startBytecode="0" endBytecode="31" sourcefile="ReentrantLock.java" sourcepath="java/util/concurrent/locks/ReentrantLock.java"/> <Message>Called method java.util.concurrent.locks.ReentrantLock.isLocked()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="76" end="76" startBytecode="205" endBytecode="205" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 76]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_PROMISCUOUS_SERVERSOCKET" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="dd33ca3912c6d9bd3cfe379becda78e9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates promiscuous ServerSocket object</ShortMessage> <LongMessage>Method new ex.MDM_Sample() creates a promiscuous ServerSocket, which may be a security risk</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.net.ServerSocket" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.net.ServerSocket" start="128" end="129" startBytecode="0" endBytecode="36" sourcefile="ServerSocket.java" sourcepath="java/net/ServerSocket.java"/> <Message>Called method new java.net.ServerSocket(int)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="41" end="41" startBytecode="68" endBytecode="68" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_PROMISCUOUS_SERVERSOCKET" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="37971f094103881f945eac9db1edfbe7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates promiscuous ServerSocket object</ShortMessage> <LongMessage>Method new ex.MDM_Sample() creates a promiscuous ServerSocket, which may be a security risk</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.net.ServerSocket" name="<init>" signature="(II)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.net.ServerSocket" start="181" end="182" startBytecode="0" endBytecode="35" sourcefile="ServerSocket.java" sourcepath="java/net/ServerSocket.java"/> <Message>Called method new java.net.ServerSocket(int, int)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="43" end="43" startBytecode="82" endBytecode="82" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_PROMISCUOUS_SERVERSOCKET" priority="3" rank="10" abbrev="MDM" category="CORRECTNESS" instanceHash="8734d42853a1c68fde39400fc3dd7182" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates promiscuous ServerSocket object</ShortMessage> <LongMessage>Method new ex.MDM_Sample() creates a promiscuous ServerSocket, which may be a security risk</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="javax.net.ServerSocketFactory" name="createServerSocket" signature="(I)Ljava/net/ServerSocket;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="javax.net.ServerSocketFactory" sourcefile="ServerSocketFactory.java" sourcepath="javax/net/ServerSocketFactory.java"/> <Message>Called method javax.net.ServerSocketFactory.createServerSocket(int)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="46" end="46" startBytecode="98" endBytecode="98" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_PROMISCUOUS_SERVERSOCKET" priority="3" rank="10" abbrev="MDM" category="CORRECTNESS" instanceHash="a0714a130e64d65750bdc7f62b62956f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates promiscuous ServerSocket object</ShortMessage> <LongMessage>Method new ex.MDM_Sample() creates a promiscuous ServerSocket, which may be a security risk</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="javax.net.ServerSocketFactory" name="createServerSocket" signature="(II)Ljava/net/ServerSocket;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="javax.net.ServerSocketFactory" sourcefile="ServerSocketFactory.java" sourcepath="javax/net/ServerSocketFactory.java"/> <Message>Called method javax.net.ServerSocketFactory.createServerSocket(int, int)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="48" end="48" startBytecode="110" endBytecode="110" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 48]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RANDOM_SEED" priority="3" rank="10" abbrev="MDM" category="CORRECTNESS" instanceHash="33153c431196bc3eefb41d6c1eebf75e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates insecure Random object</ShortMessage> <LongMessage>Method new ex.MDM_Sample() creates an insecure Random object, which may be a security risk</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.Random" name="<init>" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Random" start="105" end="106" startBytecode="0" endBytecode="39" sourcefile="Random.java" sourcepath="java/util/Random.java"/> <Message>Called method new java.util.Random()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="53" end="53" startBytecode="122" endBytecode="122" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 53]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RUNFINALIZATION" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="340f46130b93e4f1e2ad5fcef2ec4d07" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method triggers finalization</ShortMessage> <LongMessage>Method new ex.MDM_Sample() triggers finalization when calling Runtime.runFinalization()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Runtime" name="runFinalization" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Runtime" start="712" end="713" startBytecode="0" endBytecode="31" sourcefile="Runtime.java" sourcepath="java/lang/Runtime.java"/> <Message>Called method Runtime.runFinalization()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="26" end="26" startBytecode="19" endBytecode="19" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RUNFINALIZATION" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="90127d00f4fb0e04fdb11f37b55cbe98" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method triggers finalization</ShortMessage> <LongMessage>Method new ex.MDM_Sample() triggers finalization when calling System.runFinalization()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.System" name="runFinalization" signature="()V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.System" start="1015" end="1016" startBytecode="0" endBytecode="34" sourcefile="System.java" sourcepath="java/lang/System.java"/> <Message>Called method System.runFinalization()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="27" end="27" startBytecode="22" endBytecode="22" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RUNTIME_EXIT_OR_HALT" priority="1" rank="5" abbrev="MDM" category="CORRECTNESS" instanceHash="d3c9e4051062b626c063915a90ba7e50" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Runtime.exit() or Runtime.halt()</ShortMessage> <LongMessage>Method new ex.MDM_Sample() calls Runtime.halt(int)</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Runtime" name="halt" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Runtime" start="271" end="276" startBytecode="0" endBytecode="71" sourcefile="Runtime.java" sourcepath="java/lang/Runtime.java"/> <Message>Called method Runtime.halt(int)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="25" end="25" startBytecode="15" endBytecode="15" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RUNTIME_EXIT_OR_HALT" priority="3" rank="10" abbrev="MDM" category="CORRECTNESS" instanceHash="541f175c8154692f5730b44d343393ee" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Runtime.exit() or Runtime.halt()</ShortMessage> <LongMessage>Method new ex.MDM_Sample() calls Runtime.exit(int)</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Runtime" name="exit" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Runtime" start="105" end="110" startBytecode="0" endBytecode="71" sourcefile="Runtime.java" sourcepath="java/lang/Runtime.java"/> <Message>Called method Runtime.exit(int)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="24" end="24" startBytecode="10" endBytecode="10" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_SETDEFAULTLOCALE" priority="2" rank="14" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="65512c8adfb36626d0be3f247b359dad" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Locale.setDefault()</ShortMessage> <LongMessage>Method new ex.MDM_Sample() calls Locale.setDefault(), changing locale for all threads</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.Locale" name="setDefault" signature="(Ljava/util/Locale;)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.util.Locale" start="933" end="936" startBytecode="0" endBytecode="54" sourcefile="Locale.java" sourcepath="java/util/Locale.java"/> <Message>Called method java.util.Locale.setDefault(Locale)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="100" end="100" startBytecode="310" endBytecode="310" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 100]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_SIGNAL_NOT_SIGNALALL" priority="2" rank="14" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="d8713f6d0d0de75a426c0008e28ccd4c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Condition.signal() rather than Condition.signalAll()</ShortMessage> <LongMessage>Method new ex.MDM_Sample() calls Condition.signal() rather than Condition.signalAll()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.Condition" name="signal" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.Condition" sourcefile="Condition.java" sourcepath="java/util/concurrent/locks/Condition.java"/> <Message>Called method java.util.concurrent.locks.Condition.signal()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="91" end="91" startBytecode="273" endBytecode="273" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 91]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_STRING_BYTES_ENCODING" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="b85dd6c4fd32793347e5f9cd428086ca" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method encodes String bytes without specifying the character encoding</ShortMessage> <LongMessage>Method new ex.MDM_Sample() encodes String bytes without specifying the character encoding</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.String" name="<init>" signature="([B)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="566" end="567" startBytecode="0" endBytecode="36" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method new String(byte[])</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="97" end="97" startBytecode="296" endBytecode="296" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_STRING_BYTES_ENCODING" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="8c2cf9d9f279c5f907845303384cd6f0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method encodes String bytes without specifying the character encoding</ShortMessage> <LongMessage>Method new ex.MDM_Sample() encodes String bytes without specifying the character encoding</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="()[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="958" end="958" startBytecode="0" endBytecode="37" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="96" end="96" startBytecode="287" endBytecode="287" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 96]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_FAIRNESS" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="f2dc37a6a2259e7f1a4de0ed4b9ea1b7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores Lock's fairness settings by calling tryLock()</ShortMessage> <LongMessage>Method new ex.MDM_Sample() ignores Lock's fairness settings by calling java.util.concurrent.locks.Lock.tryLock()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.Lock" name="tryLock" signature="()Z" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.Lock" sourcefile="Lock.java" sourcepath="java/util/concurrent/locks/Lock.java"/> <Message>Called method java.util.concurrent.locks.Lock.tryLock()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="86" end="86" startBytecode="242" endBytecode="242" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 86]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_FAIRNESS" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="c496a3f1a9aee879665a617af230c589" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores Lock's fairness settings by calling tryLock()</ShortMessage> <LongMessage>Method new ex.MDM_Sample() ignores Lock's fairness settings by calling java.util.concurrent.locks.ReentrantLock.tryLock()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.ReentrantLock" name="tryLock" signature="()Z" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.ReentrantLock" start="365" end="365" startBytecode="0" endBytecode="32" sourcefile="ReentrantLock.java" sourcepath="java/util/concurrent/locks/ReentrantLock.java"/> <Message>Called method java.util.concurrent.locks.ReentrantLock.tryLock()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="80" end="80" startBytecode="218" endBytecode="218" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 80]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_PRIORITIES" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="74f08b9f467e779df1154bd39e600d84" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses suspicious thread priorities</ShortMessage> <LongMessage>Method new ex.MDM_Sample() uses suspicious thread priorities by calling method Thread.getPriority()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Thread" name="getPriority" signature="()I" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" start="1106" end="1106" startBytecode="0" endBytecode="28" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.getPriority()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="62" end="62" startBytecode="158" endBytecode="158" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_PRIORITIES" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="11a4c97fb4fadb0cbcda20245c37485a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses suspicious thread priorities</ShortMessage> <LongMessage>Method new ex.MDM_Sample() uses suspicious thread priorities by calling method Thread.setPriority(int)</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Thread" name="setPriority" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" start="1087" end="1097" startBytecode="0" endBytecode="124" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.setPriority(int)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="63" end="63" startBytecode="164" endBytecode="164" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 63]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_YIELD" priority="2" rank="14" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="6e31f6e0cc71e0266dabe678cd9f95a3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to manually schedule threads</ShortMessage> <LongMessage>Method new ex.MDM_Sample() attempts to manually schedule threads by calling method Thread.yield()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Thread" name="yield" signature="()V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.yield()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="68" end="68" startBytecode="180" endBytecode="180" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 68]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_YIELD" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="fa6854dca69c91324ec8d91dbfe9ee9d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to manually schedule threads</ShortMessage> <LongMessage>Method new ex.MDM_Sample() attempts to manually schedule threads by calling method Thread.sleep(long)</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Thread" name="sleep" signature="(J)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.sleep(long)</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="66" end="66" startBytecode="172" endBytecode="172" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 66]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="c6ac3f32e17f936eb3732dd1f7c885f6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method new ex.MDM_Sample() sleeps without timeout when calling Object.wait()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Object" name="wait" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="502" end="503" startBytecode="0" endBytecode="33" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.wait()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="81" end="81" startBytecode="223" endBytecode="223" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 81]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="889aa3e3bb3ff0a8c60e9968bb21c11c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method new ex.MDM_Sample() sleeps without timeout when calling Thread.join()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.lang.Thread" name="join" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" start="1326" end="1327" startBytecode="0" endBytecode="33" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.join()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="64" end="64" startBytecode="168" endBytecode="168" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 64]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="371b4b25f8c5030a52fcb01eafc9f30" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method new ex.MDM_Sample() sleeps without timeout when calling java.util.concurrent.locks.Condition.await()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.Condition" name="await" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.Condition" sourcefile="Condition.java" sourcepath="java/util/concurrent/locks/Condition.java"/> <Message>Called method java.util.concurrent.locks.Condition.await()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="92" end="92" startBytecode="280" endBytecode="280" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 92]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="43e5519e1595b678c5c4f20ad2323b4f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method new ex.MDM_Sample() sleeps without timeout when calling java.util.concurrent.locks.Lock.lock()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.Lock" name="lock" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.Lock" sourcefile="Lock.java" sourcepath="java/util/concurrent/locks/Lock.java"/> <Message>Called method java.util.concurrent.locks.Lock.lock()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="85" end="85" startBytecode="235" endBytecode="235" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 85]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="9705f5cb266994b79dea4c1e777ca3bd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method new ex.MDM_Sample() sleeps without timeout when calling java.util.concurrent.locks.Lock.lockInterruptibly()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.Lock" name="lockInterruptibly" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.Lock" sourcefile="Lock.java" sourcepath="java/util/concurrent/locks/Lock.java"/> <Message>Called method java.util.concurrent.locks.Lock.lockInterruptibly()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="88" end="88" startBytecode="257" endBytecode="257" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 88]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="64456798166a8e556e9890d2acdfcf27" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method new ex.MDM_Sample() sleeps without timeout when calling java.util.concurrent.locks.ReentrantLock.lock()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.ReentrantLock" name="lock" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.ReentrantLock" start="285" end="286" startBytecode="0" endBytecode="35" sourcefile="ReentrantLock.java" sourcepath="java/util/concurrent/locks/ReentrantLock.java"/> <Message>Called method java.util.concurrent.locks.ReentrantLock.lock()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="73" end="73" startBytecode="192" endBytecode="192" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 73]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="baef3340f942afcefac9a473640b9cf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method new ex.MDM_Sample() sleeps without timeout when calling java.util.concurrent.locks.ReentrantLock.lockInterruptibly()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <Method classname="java.util.concurrent.locks.ReentrantLock" name="lockInterruptibly" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.concurrent.locks.ReentrantLock" start="335" end="336" startBytecode="0" endBytecode="36" sourcefile="ReentrantLock.java" sourcepath="java/util/concurrent/locks/ReentrantLock.java"/> <Message>Called method java.util.concurrent.locks.ReentrantLock.lockInterruptibly()</Message> </Method> <SourceLine classname="ex.MDM_Sample" primary="true" start="74" end="74" startBytecode="196" endBytecode="196" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 74]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="9e452b7e8e70e551ddc56ca15e1a41cd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable bd1 of method new ex.MDM_Sample()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <String value="bd1"> <Message>Value bd1</Message> </String> <Type descriptor="Ljava/math/BigDecimal;"> <SourceLine classname="java.math.BigDecimal" start="220" end="5250" sourcefile="BigDecimal.java" sourcepath="java/math/BigDecimal.java"> <Message>At BigDecimal.java:[lines 220-5250]</Message> </SourceLine> <Message>Type java.math.BigDecimal</Message> </Type> <SourceLine classname="ex.MDM_Sample" primary="true" start="31" end="31" startBytecode="30" endBytecode="30" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="574ed29a369b98c29ee6998eaaa6f0df" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable bd2 of method new ex.MDM_Sample()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <String value="bd2"> <Message>Value bd2</Message> </String> <Type descriptor="Ljava/math/BigDecimal;"> <SourceLine classname="java.math.BigDecimal" start="220" end="5250" sourcefile="BigDecimal.java" sourcepath="java/math/BigDecimal.java"> <Message>At BigDecimal.java:[lines 220-5250]</Message> </SourceLine> <Message>Type java.math.BigDecimal</Message> </Type> <SourceLine classname="ex.MDM_Sample" primary="true" start="32" end="32" startBytecode="39" endBytecode="39" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="1f2f2d6557128eee0950dbc8c36c1ce9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method new ex.MDM_Sample()</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="19" end="102" startBytecode="0" endBytecode="780" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method new ex.MDM_Sample()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/lang/String;"> <SourceLine classname="java.lang.String" start="111" end="3141" sourcefile="String.java" sourcepath="java/lang/String.java"> <Message>At String.java:[lines 111-3141]</Message> </SourceLine> <Message>Type String</Message> </Type> <SourceLine classname="ex.MDM_Sample" primary="true" start="97" end="97" startBytecode="296" endBytecode="296" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="f8c0d75e5e76ec5363fa5c6e9d1d4321" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MDM_Sample.fpAssertReentrantLock() is never called</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="fpAssertReentrantLock" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.MDM_Sample" start="112" end="113" startBytecode="0" endBytecode="79" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method ex.MDM_Sample.fpAssertReentrantLock()</Message> </Method> <SourceLine classname="ex.MDM_Sample" start="112" end="113" startBytecode="0" endBytecode="79" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java" synthetic="true"> <Message>At MDM_Sample.java:[lines 112-113]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="2daeaad62ed2780d86996d0429d91766" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.MDM_Sample.touch(Object) has unused parameters</LongMessage> <Class classname="ex.MDM_Sample" primary="true"> <SourceLine classname="ex.MDM_Sample" start="15" end="113" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"> <Message>At MDM_Sample.java:[lines 15-113]</Message> </SourceLine> <Message>In class ex.MDM_Sample</Message> </Class> <Method classname="ex.MDM_Sample" name="touch" signature="(Ljava/lang/Object;)V" isStatic="true" primary="true"> <SourceLine classname="ex.MDM_Sample" start="109" end="109" startBytecode="0" endBytecode="42" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java"/> <Message>In method ex.MDM_Sample.touch(Object)</Message> </Method> <String value="Parameter 1: o"> <Message>Value Parameter 1: o</Message> </String> <SourceLine classname="ex.MDM_Sample" start="109" end="109" startBytecode="0" endBytecode="42" sourcefile="MDM_Sample.java" sourcepath="ex/MDM_Sample.java" synthetic="true"> <Message>At MDM_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="MOM_MISLEADING_OVERLOAD_MODEL" priority="2" rank="19" abbrev="MOM" category="STYLE" instanceHash="e8298c30495d0d19da82ccf45335632a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class 'overloads' a method with both instance and static versions</ShortMessage> <LongMessage>Class ex.MOM_Sample 'overloads' a method with both instance and static versions</LongMessage> <Class classname="ex.MOM_Sample" primary="true"> <SourceLine classname="ex.MOM_Sample" start="2" end="7" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java"> <Message>At MOM_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.MOM_Sample</Message> </Class> <Method classname="ex.MOM_Sample" name="test" signature="(II)V" isStatic="true" primary="true"> <SourceLine classname="ex.MOM_Sample" start="7" end="7" startBytecode="0" endBytecode="52" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java"/> <Message>In method ex.MOM_Sample.test(int, int)</Message> </Method> <String value="test"> <Message>Value test</Message> </String> <SourceLine classname="ex.MOM_Sample" start="7" end="7" startBytecode="0" endBytecode="52" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java" synthetic="true"> <Message>At MOM_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="87ff4229fe4d6e4a05b1baaaad5e22dd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.MOM_Sample.test(int, int) has unused parameters</LongMessage> <Class classname="ex.MOM_Sample" primary="true"> <SourceLine classname="ex.MOM_Sample" start="2" end="7" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java"> <Message>At MOM_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.MOM_Sample</Message> </Class> <Method classname="ex.MOM_Sample" name="test" signature="(II)V" isStatic="true" primary="true"> <SourceLine classname="ex.MOM_Sample" start="7" end="7" startBytecode="0" endBytecode="52" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java"/> <Message>In method ex.MOM_Sample.test(int, int)</Message> </Method> <String value="Parameter 1: i"> <Message>Value Parameter 1: i</Message> </String> <SourceLine classname="ex.MOM_Sample" start="7" end="7" startBytecode="0" endBytecode="52" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java" synthetic="true"> <Message>At MOM_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="d1220f08a383a11a2d3d5ada2274b4f1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.MOM_Sample.test(int, int) has unused parameters</LongMessage> <Class classname="ex.MOM_Sample" primary="true"> <SourceLine classname="ex.MOM_Sample" start="2" end="7" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java"> <Message>At MOM_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.MOM_Sample</Message> </Class> <Method classname="ex.MOM_Sample" name="test" signature="(II)V" isStatic="true" primary="true"> <SourceLine classname="ex.MOM_Sample" start="7" end="7" startBytecode="0" endBytecode="52" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java"/> <Message>In method ex.MOM_Sample.test(int, int)</Message> </Method> <String value="Parameter 2: j"> <Message>Value Parameter 2: j</Message> </String> <SourceLine classname="ex.MOM_Sample" start="7" end="7" startBytecode="0" endBytecode="52" sourcefile="MOM_Sample.java" sourcepath="ex/MOM_Sample.java" synthetic="true"> <Message>At MOM_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="b26903bce9fbcf05ac861cfd966b2016" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.MRC_Sample does not implement a toString method</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> </BugInstance> <BugInstance type="MRC_METHOD_RETURNS_CONSTANT" priority="2" rank="17" abbrev="MRC" category="STYLE" instanceHash="e99790d80227d3196276722ae96cf076" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private or static method only returns one constant value</ShortMessage> <LongMessage>Private or static method ex.MRC_Sample.getStringValue() only returns one constant value</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getStringValue" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="20" end="20" startBytecode="0" endBytecode="44" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getStringValue()</Message> </Method> <SourceLine classname="ex.MRC_Sample" primary="true" start="20" end="20" startBytecode="2" endBytecode="2" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[line 20]</Message> </SourceLine> <String value="Hello"> <Message>Value Hello</Message> </String> </BugInstance> <BugInstance type="MRC_METHOD_RETURNS_CONSTANT" priority="2" rank="17" abbrev="MRC" category="STYLE" instanceHash="bea597273c798745b371a8a0929fac9b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private or static method only returns one constant value</ShortMessage> <LongMessage>Private or static method ex.MRC_Sample.getTwoDupsBySwitch(int) only returns one constant value</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getTwoDupsBySwitch" signature="(I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="36" end="44" startBytecode="0" endBytecode="107" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getTwoDupsBySwitch(int)</Message> </Method> <SourceLine classname="ex.MRC_Sample" primary="true" start="44" end="44" startBytecode="32" endBytecode="32" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[line 44]</Message> </SourceLine> <String value="Hello"> <Message>Value Hello</Message> </String> </BugInstance> <BugInstance type="MRC_METHOD_RETURNS_CONSTANT" priority="2" rank="17" abbrev="MRC" category="STYLE" instanceHash="50a821d714f2cdfd544a87aa9964273e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private or static method only returns one constant value</ShortMessage> <LongMessage>Private or static method ex.MRC_Sample.getValue() only returns one constant value</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getValue" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="16" end="16" startBytecode="0" endBytecode="43" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getValue()</Message> </Method> <SourceLine classname="ex.MRC_Sample" primary="true" start="16" end="16" startBytecode="1" endBytecode="1" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[line 16]</Message> </SourceLine> <String value="1"> <Message>Value 1</Message> </String> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="4898413d246ef7dde478d4d831910081" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field components in ex.MRC_Sample.fpFindComponent(Component)</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpFindComponent" signature="(Ljava/awt/Component;)I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="105" end="112" startBytecode="0" endBytecode="129" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpFindComponent(Component)</Message> </Method> <Field classname="ex.MRC_Sample" name="components" signature="[Ljava/awt/Component;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>In MRC_Sample.java</Message> </SourceLine> <Message>Field ex.MRC_Sample.components</Message> </Field> <SourceLine classname="ex.MRC_Sample" primary="true" start="106" end="106" startBytecode="24" endBytecode="24" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[line 106]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="ddcc6832d63fbcd5e585798f6eab3642" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpAppend() is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpAppend" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="133" end="133" startBytecode="0" endBytecode="64" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpAppend()</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="133" end="133" startBytecode="0" endBytecode="64" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 133]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="4841b6c2b5d16db421b31fb02b0aebd1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpCountChars(Collection) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpCountChars" signature="(Ljava/util/Collection;)J" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="87" end="91" startBytecode="0" endBytecode="178" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpCountChars(Collection)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="87" end="91" startBytecode="0" endBytecode="178" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 87-91]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="66b603354a81078d6bd8a6a7f2c26f3e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpFindComponent(Component) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpFindComponent" signature="(Ljava/awt/Component;)I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="105" end="112" startBytecode="0" endBytecode="129" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpFindComponent(Component)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="105" end="112" startBytecode="0" endBytecode="129" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 105-112]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="abcfe0fd8fe95130d7f913939e9e8f26" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpGetHash(String) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpGetHash" signature="(Ljava/lang/String;)[J" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="72" end="74" startBytecode="0" endBytecode="81" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpGetHash(String)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="72" end="74" startBytecode="0" endBytecode="81" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 72-74]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="80fd7234152a6116abe471e891cd3e4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpInc() is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpInc" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="81" end="83" startBytecode="0" endBytecode="66" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpInc()</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="81" end="83" startBytecode="0" endBytecode="66" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 81-83]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="16f843f4adaeac76b388bfaf6368de91" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpNonConstantArray(Long, String) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpNonConstantArray" signature="(Ljava/lang/Long;Ljava/lang/String;)[Lex/MRC_Sample$QueryParam;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="116" end="116" startBytecode="0" endBytecode="94" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpNonConstantArray(Long, String)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="116" end="116" startBytecode="0" endBytecode="94" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 116]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="863104f9d4c46d75ce6b8b00eedddf67" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpOverload(int) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpOverload" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="125" end="125" startBytecode="0" endBytecode="53" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpOverload(int)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="125" end="125" startBytecode="0" endBytecode="53" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 125]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="a5e27e2af95471cd02748628dada5b69" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpOverload(short) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpOverload" signature="(S)I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="129" end="129" startBytecode="0" endBytecode="53" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpOverload(short)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="129" end="129" startBytecode="0" endBytecode="53" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 129]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="9d3e3330433d02f6a95294a0f44315fd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.fpStringBuilder() is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpStringBuilder" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="49" end="52" startBytecode="0" endBytecode="77" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpStringBuilder()</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="49" end="52" startBytecode="0" endBytecode="77" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 49-52]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="912ac6b388123de339995c70bf4aac6b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.getCount(List) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getCount" signature="(Ljava/util/List;)I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="60" end="68" startBytecode="0" endBytecode="179" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getCount(List)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="60" end="68" startBytecode="0" endBytecode="179" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 60-68]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="3b0e24d78f95dd74a8fea8bf4d98d0b1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.getFPLoopVar(List) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getFPLoopVar" signature="(Ljava/util/List;)I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="95" end="101" startBytecode="0" endBytecode="147" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getFPLoopVar(List)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="95" end="101" startBytecode="0" endBytecode="147" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 95-101]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="a6585c2ec7c78b319d91ab25849f2208" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.getStringValue() is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getStringValue" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="20" end="20" startBytecode="0" endBytecode="44" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getStringValue()</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="20" end="20" startBytecode="0" endBytecode="44" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="115084bfd0799f9520459b7dc5feb950" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.getTwoDupsBySwitch(int) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getTwoDupsBySwitch" signature="(I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="36" end="44" startBytecode="0" endBytecode="107" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getTwoDupsBySwitch(int)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="36" end="44" startBytecode="0" endBytecode="107" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 36-44]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="a05f396051a405102ca17eb41a0ab66d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.getTwoValuesFP(boolean) is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getTwoValuesFP" signature="(Z)D" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="28" end="31" startBytecode="0" endBytecode="76" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getTwoValuesFP(boolean)</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="28" end="31" startBytecode="0" endBytecode="76" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 28-31]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="d52a6f76c38cd42d8f3afc2bd73f67fa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.MRC_Sample.getValue() is never called</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="getValue" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="16" end="16" startBytecode="0" endBytecode="43" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.getValue()</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="16" end="16" startBytecode="0" endBytecode="43" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="a23567f8f6bc8da1d278da077706e4d8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.MRC_Sample.fpOverload(int) has unused parameters</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpOverload" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="125" end="125" startBytecode="0" endBytecode="53" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpOverload(int)</Message> </Method> <String value="Parameter 1: i"> <Message>Value Parameter 1: i</Message> </String> <SourceLine classname="ex.MRC_Sample" start="125" end="125" startBytecode="0" endBytecode="53" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 125]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="ed75b1279514585923b3722b49414bbd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.MRC_Sample.fpOverload(short) has unused parameters</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="fpOverload" signature="(S)I" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="129" end="129" startBytecode="0" endBytecode="53" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.fpOverload(short)</Message> </Method> <String value="Parameter 1: s"> <Message>Value Parameter 1: s</Message> </String> <SourceLine classname="ex.MRC_Sample" start="129" end="129" startBytecode="0" endBytecode="53" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 129]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="8ad82068fd3b8ad18a49c3cfd82801ba" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.MRC_Sample.hash(String, long[]) has unused parameters</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="hash" signature="(Ljava/lang/String;[J)V" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="78" end="78" startBytecode="0" endBytecode="62" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.hash(String, long[])</Message> </Method> <String value="Parameter 1: key"> <Message>Value Parameter 1: key</Message> </String> <SourceLine classname="ex.MRC_Sample" start="78" end="78" startBytecode="0" endBytecode="62" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="2575ea01b456e217fc8bcd6f23c58926" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.MRC_Sample.hash(String, long[]) has unused parameters</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="hash" signature="(Ljava/lang/String;[J)V" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="78" end="78" startBytecode="0" endBytecode="62" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.hash(String, long[])</Message> </Method> <String value="Parameter 2: hash"> <Message>Value Parameter 2: hash</Message> </String> <SourceLine classname="ex.MRC_Sample" start="78" end="78" startBytecode="0" endBytecode="62" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="c6623364c552515acca36a8bca156e2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.MRC_Sample.hash(String, long[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Method classname="ex.MRC_Sample" name="hash" signature="(Ljava/lang/String;[J)V" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" start="78" end="78" startBytecode="0" endBytecode="62" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"/> <Message>In method ex.MRC_Sample.hash(String, long[])</Message> </Method> <SourceLine classname="ex.MRC_Sample" start="78" end="78" startBytecode="0" endBytecode="62" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="8a9094a80809111760574553dcc619ce" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.MRC_Sample.components</LongMessage> <Class classname="ex.MRC_Sample" primary="true"> <SourceLine classname="ex.MRC_Sample" start="9" end="133" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 9-133]</Message> </SourceLine> <Message>In class ex.MRC_Sample</Message> </Class> <Field classname="ex.MRC_Sample" name="components" signature="[Ljava/awt/Component;" isStatic="false" primary="true"> <SourceLine classname="ex.MRC_Sample" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>In MRC_Sample.java</Message> </SourceLine> <Message>Field ex.MRC_Sample.components</Message> </Field> <SourceLine classname="ex.MRC_Sample" primary="true" start="108" end="108" startBytecode="10" endBytecode="10" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[line 108]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="60a1f417a8134ca6dfc858976ff9f160" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.MRC_Sample$QueryParam be a _static_ inner class?</LongMessage> <Class classname="ex.MRC_Sample$QueryParam" primary="true"> <SourceLine classname="ex.MRC_Sample$QueryParam" start="120" end="121" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java"> <Message>At MRC_Sample.java:[lines 120-121]</Message> </SourceLine> <Message>In class ex.MRC_Sample$QueryParam</Message> </Class> <SourceLine classname="ex.MRC_Sample$QueryParam" start="120" end="121" sourcefile="MRC_Sample.java" sourcepath="ex/MRC_Sample.java" synthetic="true"> <Message>At MRC_Sample.java:[lines 120-121]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="da82c885bff0136765febdec75e41d3e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.MUC_Sample.getPossiblyImmutableSet(boolean) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.MUC_Sample" primary="true"> <SourceLine classname="ex.MUC_Sample" start="8" end="40" sourcefile="MUC_Sample.java" sourcepath="ex/MUC_Sample.java"> <Message>At MUC_Sample.java:[lines 8-40]</Message> </SourceLine> <Message>In class ex.MUC_Sample</Message> </Class> <Method classname="ex.MUC_Sample" name="getPossiblyImmutableSet" signature="(Z)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.MUC_Sample" start="33" end="36" startBytecode="0" endBytecode="91" sourcefile="MUC_Sample.java" sourcepath="ex/MUC_Sample.java"/> <Message>In method ex.MUC_Sample.getPossiblyImmutableSet(boolean)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.MUC_Sample" start="33" end="36" startBytecode="0" endBytecode="91" sourcefile="MUC_Sample.java" sourcepath="ex/MUC_Sample.java" synthetic="true"> <Message>At MUC_Sample.java:[lines 33-36]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="88a141b91d48d3c438e1678135cbb0f5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.MUP_Sample does not implement a toString method</LongMessage> <Class classname="ex.MUP_Sample" primary="true"> <SourceLine classname="ex.MUP_Sample" start="7" end="55" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[lines 7-55]</Message> </SourceLine> <Message>In class ex.MUP_Sample</Message> </Class> <SourceLine classname="ex.MUP_Sample" start="7" end="55" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java" synthetic="true"> <Message>At MUP_Sample.java:[lines 7-55]</Message> </SourceLine> </BugInstance> <BugInstance type="MUP_CONTAINSKEY_BEFORE_GET" priority="2" rank="17" abbrev="MUP" category="STYLE" instanceHash="3cbf354ccba193649c9c135ef4c6b5c7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method check a map with containsKey(), before using get()</ShortMessage> <LongMessage>Method ex.MUP_Sample.testGetAfterContainsKeyField() checks a map with containsKey(), before using get()</LongMessage> <Class classname="ex.MUP_Sample" primary="true"> <SourceLine classname="ex.MUP_Sample" start="7" end="55" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[lines 7-55]</Message> </SourceLine> <Message>In class ex.MUP_Sample</Message> </Class> <Method classname="ex.MUP_Sample" name="testGetAfterContainsKeyField" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MUP_Sample" start="36" end="40" startBytecode="0" endBytecode="124" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"/> <Message>In method ex.MUP_Sample.testGetAfterContainsKeyField()</Message> </Method> <SourceLine classname="ex.MUP_Sample" primary="true" start="37" end="37" startBytecode="20" endBytecode="20" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="MUP_CONTAINSKEY_BEFORE_GET" priority="2" rank="17" abbrev="MUP" category="STYLE" instanceHash="63dddc92559671730e9899b2a3b0ccf5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method check a map with containsKey(), before using get()</ShortMessage> <LongMessage>Method ex.MUP_Sample.testGetAfterContainsKeyLocal() checks a map with containsKey(), before using get()</LongMessage> <Class classname="ex.MUP_Sample" primary="true"> <SourceLine classname="ex.MUP_Sample" start="7" end="55" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[lines 7-55]</Message> </SourceLine> <Message>In class ex.MUP_Sample</Message> </Class> <Method classname="ex.MUP_Sample" name="testGetAfterContainsKeyLocal" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MUP_Sample" start="12" end="18" startBytecode="0" endBytecode="163" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"/> <Message>In method ex.MUP_Sample.testGetAfterContainsKeyLocal()</Message> </Method> <SourceLine classname="ex.MUP_Sample" primary="true" start="15" end="15" startBytecode="22" endBytecode="22" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="MUP_CONTAINSKEY_BEFORE_GET" priority="2" rank="17" abbrev="MUP" category="STYLE" instanceHash="6002e3b08893e14914424a5b10dc3b9e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method check a map with containsKey(), before using get()</ShortMessage> <LongMessage>Method ex.MUP_Sample.testGetAfterContainsKeyWithReg() checks a map with containsKey(), before using get()</LongMessage> <Class classname="ex.MUP_Sample" primary="true"> <SourceLine classname="ex.MUP_Sample" start="7" end="55" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[lines 7-55]</Message> </SourceLine> <Message>In class ex.MUP_Sample</Message> </Class> <Method classname="ex.MUP_Sample" name="testGetAfterContainsKeyWithReg" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MUP_Sample" start="23" end="30" startBytecode="0" endBytecode="186" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"/> <Message>In method ex.MUP_Sample.testGetAfterContainsKeyWithReg()</Message> </Method> <SourceLine classname="ex.MUP_Sample" primary="true" start="27" end="27" startBytecode="28" endBytecode="28" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="MUP_CONTAINSKEY_BEFORE_GET" priority="3" rank="20" abbrev="MUP" category="STYLE" instanceHash="70e6a64742e23f77ac4abdfc627d9d4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method check a map with containsKey(), before using get()</ShortMessage> <LongMessage>Method ex.MUP_Sample.testGetAfterContainsKeyFromMethodCall() checks a map with containsKey(), before using get()</LongMessage> <Class classname="ex.MUP_Sample" primary="true"> <SourceLine classname="ex.MUP_Sample" start="7" end="55" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[lines 7-55]</Message> </SourceLine> <Message>In class ex.MUP_Sample</Message> </Class> <Method classname="ex.MUP_Sample" name="testGetAfterContainsKeyFromMethodCall" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MUP_Sample" start="46" end="50" startBytecode="0" endBytecode="128" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"/> <Message>In method ex.MUP_Sample.testGetAfterContainsKeyFromMethodCall()</Message> </Method> <SourceLine classname="ex.MUP_Sample" primary="true" start="47" end="47" startBytecode="24" endBytecode="24" sourcefile="MUP_Sample.java" sourcepath="ex/MUP_Sample.java"> <Message>At MUP_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="c71549882fc09bdbc33cd963cb45565" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.Mammooth defines fields that are used only as locals</LongMessage> <Class classname="ex.Mammooth" primary="true"> <SourceLine classname="ex.Mammooth" start="32" end="33" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 32-33]</Message> </SourceLine> <Message>In class ex.Mammooth</Message> </Class> <Field classname="ex.Mammooth" name="x" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.Mammooth" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>In FCCD_Sample.java</Message> </SourceLine> <Message>Field ex.Mammooth.x</Message> </Field> <SourceLine classname="ex.Mammooth" primary="true" start="33" end="33" startBytecode="2" endBytecode="2" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="a0d738b32de8e5355bcc795d4dc81664" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.Mammooth does not implement a toString method</LongMessage> <Class classname="ex.Mammooth" primary="true"> <SourceLine classname="ex.Mammooth" start="32" end="33" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 32-33]</Message> </SourceLine> <Message>In class ex.Mammooth</Message> </Class> <SourceLine classname="ex.Mammooth" start="32" end="33" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 32-33]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="92f3951090a498231d75df9983923775" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.Mammooth.x</LongMessage> <Class classname="ex.Mammooth" primary="true"> <SourceLine classname="ex.Mammooth" start="32" end="33" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 32-33]</Message> </SourceLine> <Message>In class ex.Mammooth</Message> </Class> <Field classname="ex.Mammooth" name="x" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.Mammooth" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>In FCCD_Sample.java</Message> </SourceLine> <Message>Field ex.Mammooth.x</Message> </Field> <SourceLine classname="ex.Mammooth" primary="true" start="33" end="33" startBytecode="2" endBytecode="2" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" priority="2" rank="9" abbrev="FCCD" category="CORRECTNESS" instanceHash="a8304a8b6a0110bfec733e5e9c129f83" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class has a circular dependency with other classes</ShortMessage> <LongMessage>Class ex.Me has a circular dependency with other classes</LongMessage> <Class classname="ex.Me" primary="true"> <SourceLine classname="ex.Me" start="110" end="111" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 110-111]</Message> </SourceLine> <Message>In class ex.Me</Message> </Class> <Class classname="ex.Myself"> <SourceLine classname="ex.Myself" start="114" end="115" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 114-115]</Message> </SourceLine> <Message>In class ex.Myself</Message> </Class> <SourceLine classname="ex.Me" start="110" end="111" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 110-111]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="e3603f119f07c26fd39d29694f8c397c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.Me does not implement a toString method</LongMessage> <Class classname="ex.Me" primary="true"> <SourceLine classname="ex.Me" start="110" end="111" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 110-111]</Message> </SourceLine> <Message>In class ex.Me</Message> </Class> <SourceLine classname="ex.Me" start="110" end="111" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 110-111]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="fd825b10d2699761c9ad960f0b21f5b3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.Me.m</LongMessage> <Class classname="ex.Me" primary="true"> <SourceLine classname="ex.Me" start="110" end="111" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 110-111]</Message> </SourceLine> <Message>In class ex.Me</Message> </Class> <Field classname="ex.Me" name="m" signature="Lex/Myself;" isStatic="false" primary="true"> <SourceLine classname="ex.Me" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>In FCCD_Sample.java</Message> </SourceLine> <Message>Field ex.Me.m</Message> </Field> <SourceLine classname="ex.Me" primary="true" start="111" end="111" startBytecode="12" endBytecode="12" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 111]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NON_ACCESSIBLE_JCOMPONENT" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="3a26ff2f79cb237e81ef99e7431df40c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class extends JComponent but does not implement Accessible interface</ShortMessage> <LongMessage>Class ex.MyComponent extends JComponent but does not implement Accessible interface</LongMessage> <Class classname="ex.MyComponent" primary="true"> <SourceLine classname="ex.MyComponent" start="47" end="47" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 47]</Message> </SourceLine> <Message>In class ex.MyComponent</Message> </Class> <SourceLine classname="ex.MyComponent" start="47" end="47" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java" synthetic="true"> <Message>At S508C_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="acffeae7b6734e134ca02e58f6583e8f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.MyVisitor.visitAnnotation(String, String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.MyVisitor" primary="true"> <SourceLine classname="ex.MyVisitor" start="80" end="87" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 80-87]</Message> </SourceLine> <Message>In class ex.MyVisitor</Message> </Class> <Method classname="ex.MyVisitor" name="visitAnnotation" signature="(Ljava/lang/String;Ljava/lang/String;)Lorg/objectweb/asm/AnnotationVisitor;" isStatic="false" primary="true"> <SourceLine classname="ex.MyVisitor" start="85" end="87" startBytecode="0" endBytecode="77" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"/> <Message>In method ex.MyVisitor.visitAnnotation(String, String)</Message> </Method> <SourceLine classname="ex.MyVisitor" start="85" end="87" startBytecode="0" endBytecode="77" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>At IMC_Sample.java:[lines 85-87]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_IDE_GENERATED_PARAMETER_NAMES" priority="2" rank="18" abbrev="IMC" category="STYLE" instanceHash="45383d9bf087842a532aca10be81c8af" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses IDE generated parameter names</ShortMessage> <LongMessage>Method ex.MyVisitor.visitAnnotation(String, String) uses IDE generated parameter names</LongMessage> <Class classname="ex.MyVisitor" primary="true"> <SourceLine classname="ex.MyVisitor" start="80" end="87" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 80-87]</Message> </SourceLine> <Message>In class ex.MyVisitor</Message> </Class> <Method classname="ex.MyVisitor" name="visitAnnotation" signature="(Ljava/lang/String;Ljava/lang/String;)Lorg/objectweb/asm/AnnotationVisitor;" isStatic="false" primary="true"> <SourceLine classname="ex.MyVisitor" start="85" end="87" startBytecode="0" endBytecode="77" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"/> <Message>In method ex.MyVisitor.visitAnnotation(String, String)</Message> </Method> <SourceLine classname="ex.MyVisitor" start="85" end="87" startBytecode="0" endBytecode="77" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>At IMC_Sample.java:[lines 85-87]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="508d738cb60822e6d49a1c52656c8a7a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.MyVisitor does not implement a toString method</LongMessage> <Class classname="ex.MyVisitor" primary="true"> <SourceLine classname="ex.MyVisitor" start="80" end="87" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 80-87]</Message> </SourceLine> <Message>In class ex.MyVisitor</Message> </Class> <SourceLine classname="ex.MyVisitor" start="80" end="87" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java" synthetic="true"> <Message>At IMC_Sample.java:[lines 80-87]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="fa706acce7a24afad542a2fae1d106f5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.MyVisitor.name</LongMessage> <Class classname="ex.MyVisitor" primary="true"> <SourceLine classname="ex.MyVisitor" start="80" end="87" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[lines 80-87]</Message> </SourceLine> <Message>In class ex.MyVisitor</Message> </Class> <Field classname="ex.MyVisitor" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.MyVisitor" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>In IMC_Sample.java</Message> </SourceLine> <Message>Field ex.MyVisitor.name</Message> </Field> <SourceLine classname="ex.MyVisitor" primary="true" start="85" end="85" startBytecode="2" endBytecode="2" sourcefile="IMC_Sample.java" sourcepath="ex/IMC_Sample.java"> <Message>At IMC_Sample.java:[line 85]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="e2c208281a91e065e56a8256b4cb9840" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.Myself does not implement a toString method</LongMessage> <Class classname="ex.Myself" primary="true"> <SourceLine classname="ex.Myself" start="114" end="115" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 114-115]</Message> </SourceLine> <Message>In class ex.Myself</Message> </Class> <SourceLine classname="ex.Myself" start="114" end="115" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 114-115]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="e13c391c52f7f131aed4d4dd89fbf3e0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.Myself.m</LongMessage> <Class classname="ex.Myself" primary="true"> <SourceLine classname="ex.Myself" start="114" end="115" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 114-115]</Message> </SourceLine> <Message>In class ex.Myself</Message> </Class> <Field classname="ex.Myself" name="m" signature="Lex/Me;" isStatic="false" primary="true"> <SourceLine classname="ex.Myself" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>In FCCD_Sample.java</Message> </SourceLine> <Message>Field ex.Myself.m</Message> </Field> <SourceLine classname="ex.Myself" primary="true" start="115" end="115" startBytecode="12" endBytecode="12" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 115]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_BOXING_IMMEDIATELY_UNBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="917df42a3c8862db5b5c7550ca3d89d7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Primitive value is boxed and then immediately unboxed</ShortMessage> <LongMessage>Primitive value is boxed and then immediately unboxed in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="71" end="71" startBytecode="8" endBytecode="8" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 71]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="73" end="73" startBytecode="28" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 73]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="75" end="75" startBytecode="48" endBytecode="48" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 75]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="77" end="77" startBytecode="68" endBytecode="68" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 77]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="79" end="79" startBytecode="92" endBytecode="92" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 79]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="81" end="81" startBytecode="117" endBytecode="117" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 81]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="83" end="83" startBytecode="142" endBytecode="142" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 83]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="468f899a5eec342135ccfbe56abe7f36" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="192"> <ShortMessage>Primitive value is boxed then unboxed to perform primitive coercion</ShortMessage> <LongMessage>Primitive value is boxed then unboxed to perform primitive coercion in ex.NAB_Sample.testBoxedCast()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="88" end="88" startBytecode="8" endBytecode="8" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 88]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="90" end="90" startBytecode="28" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 90]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="92" end="92" startBytecode="48" endBytecode="48" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 92]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="94" end="94" startBytecode="70" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 94]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="96" end="96" startBytecode="96" endBytecode="96" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 96]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="98" end="98" startBytecode="122" endBytecode="122" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 98]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="100" end="100" startBytecode="147" endBytecode="147" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 100]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="102" end="102" startBytecode="173" endBytecode="173" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 102]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="104" end="104" startBytecode="199" endBytecode="199" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 104]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="106" end="106" startBytecode="225" endBytecode="225" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 106]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="108" end="108" startBytecode="252" endBytecode="252" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 108]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="110" end="110" startBytecode="280" endBytecode="280" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 110]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="112" end="112" startBytecode="308" endBytecode="308" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 112]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="114" end="114" startBytecode="336" endBytecode="336" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 114]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="116" end="116" startBytecode="364" endBytecode="364" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 116]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="af82667f2b0149b356d204c8803b4929" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Boolean" name="valueOf" signature="(Z)Ljava/lang/Boolean;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Boolean" start="150" end="150" startBytecode="0" endBytecode="50" sourcefile="Boolean.java" sourcepath="java/lang/Boolean.java"/> <Message>Called method Boolean.valueOf(boolean)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="25" end="25" startBytecode="13" endBytecode="13" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="355439e3177a5d36f23247c354ed2532" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Byte" name="valueOf" signature="(B)Ljava/lang/Byte;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Byte" start="103" end="103" startBytecode="0" endBytecode="33" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Called method Byte.valueOf(byte)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="27" end="27" startBytecode="30" endBytecode="30" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="4a6a4c9089cb1a1c4c95976d7a54db57" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Character" name="valueOf" signature="(C)Ljava/lang/Character;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Character" start="4570" end="4573" startBytecode="0" endBytecode="61" sourcefile="Character.java" sourcepath="java/lang/Character.java"/> <Message>Called method Character.valueOf(char)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="29" end="29" startBytecode="51" endBytecode="51" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="6fcdbfed98b63b8a26bf7004d223b241" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Double" name="valueOf" signature="(D)Ljava/lang/Double;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Double" start="519" end="519" startBytecode="0" endBytecode="32" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Called method Double.valueOf(double)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="39" end="39" startBytecode="151" endBytecode="151" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="1c7660ad394bc7fb04d58850feaa9517" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Float" name="valueOf" signature="(F)Ljava/lang/Float;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Float" start="433" end="433" startBytecode="0" endBytecode="32" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Called method Float.valueOf(float)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="37" end="37" startBytecode="131" endBytecode="131" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="38509ddb4fa2537325a71f9cd4e95811" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method Integer.valueOf(int)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="33" end="33" startBytecode="91" endBytecode="91" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="7ab4a7223426e1e8d8975123e64f5200" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Long" name="valueOf" signature="(J)Ljava/lang/Long;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Long" start="837" end="840" startBytecode="0" endBytecode="76" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Called method Long.valueOf(long)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="35" end="35" startBytecode="111" endBytecode="111" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="d7c245a15a27ce596c2c286eaea2266d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Short" name="valueOf" signature="(S)Ljava/lang/Short;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Short" start="232" end="236" startBytecode="0" endBytecode="81" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Called method Short.valueOf(short)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="31" end="31" startBytecode="71" endBytecode="71" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="BX_UNBOXING_IMMEDIATELY_REBOXED" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="d911e0108a9d09a0dd21c1f1a80e131b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxed value is unboxed and then immediately reboxed</ShortMessage> <LongMessage>Boxed value is unboxed and then immediately reboxed in ex.NAB_Sample.testfpTernary(Integer, int[])</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testfpTernary" signature="(Ljava/lang/Integer;[I)Ljava/lang/Integer;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="134" end="135" startBytecode="0" endBytecode="105" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testfpTernary(Integer, int[])</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method Integer.valueOf(int)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="134" end="134" startBytecode="13" endBytecode="13" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 134]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="b641047f69c89488e809909f36a90008" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bb in ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <LocalVariable name="bb" register="4" pc="43" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bb</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="8" end="8" startBytecode="41" endBytecode="41" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 8]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bb"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="ca6027c1ecb33a697cd7a37eb077fd29" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bbo in ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <LocalVariable name="bbo" register="2" pc="21" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bbo</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="6" end="6" startBytecode="20" endBytecode="20" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 6]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bbo"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="5dd9a1cbb204262478aa3f37c3055c90" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to cc in ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <LocalVariable name="cc" register="6" pc="68" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named cc</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="10" end="10" startBytecode="66" endBytecode="66" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 10]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="cc"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="c560ebf617605a1e106cf078e1fa92ce" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to dd in ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <LocalVariable name="dd" register="16" pc="188" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named dd</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="20" end="20" startBytecode="186" endBytecode="186" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 20]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="dd"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="c02c46586ec188ea2373bc8395aff447" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ff in ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <LocalVariable name="ff" register="14" pc="164" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ff</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="18" end="18" startBytecode="162" endBytecode="162" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 18]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ff"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="3346698810e38417b6c34911c2991c7" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ii in ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <LocalVariable name="ii" register="10" pc="116" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ii</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="14" end="14" startBytecode="114" endBytecode="114" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 14]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ii"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="e516e711363d2bddfc1e0c1bfa05df94" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ll in ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <LocalVariable name="ll" register="12" pc="140" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ll</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="16" end="16" startBytecode="138" endBytecode="138" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 16]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ll"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="d59e871edd5380333151969085cf1ebd" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ss in ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <LocalVariable name="ss" register="8" pc="92" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ss</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="12" end="12" startBytecode="90" endBytecode="90" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 12]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ss"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="620f5577acd1c4fccd99a56066f0a66a" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="b" register="2" pc="31" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="57" end="57" startBytecode="43" endBytecode="43" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 57]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="56d300d118efec5c484f2aec462760c6" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bo in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="bo" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bo</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="55" end="55" startBytecode="21" endBytecode="21" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 55]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bo"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="6192a7357a23d614c0c1ef0988a89122" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="d" register="7" pc="148" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="67" end="67" startBytecode="160" endBytecode="160" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 67]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="bdf8d592bc61ab9dbe587c590da0f4bb" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to f in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="f" register="6" pc="124" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named f</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="65" end="65" startBytecode="136" endBytecode="136" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 65]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="f"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="1dc73f3c5ccc1fa29b31356196adfdc8" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="i" register="4" pc="76" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="61" end="61" startBytecode="88" endBytecode="88" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 61]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="316c2d464329a645eaef425407d4db7b" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="l" register="5" pc="100" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="63" end="63" startBytecode="112" endBytecode="112" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 63]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="b5f2baca494fafaf3142d15490e3940e" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="s" register="3" pc="53" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="59" end="59" startBytecode="65" endBytecode="65" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 59]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="8861b68a12a0024c56b48bad03c627d4" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.NAB_Sample.testBooleanConsts(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanConsts" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="121" end="126" startBytecode="0" endBytecode="23" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanConsts(String)</Message> </Method> <LocalVariable name="b" register="2" pc="7" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="122" end="122" startBytecode="13" endBytecode="13" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 122]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="5f075faaf2017c3c6f31833f34c1c0fb" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="b" register="2" pc="32" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="74" end="74" startBytecode="39" endBytecode="39" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 74]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="58ac436a7ac173ac4a749bf3cf0b7184" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bo in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="bo" register="1" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bo</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="72" end="72" startBytecode="19" endBytecode="19" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 72]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bo"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="1a3afbcbe764ee2134d3ad6fa6a9989c" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="d" register="8" pc="147" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="84" end="84" startBytecode="156" endBytecode="156" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 84]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="32d32fc2125845b916a19ace4b72703a" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to f in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="f" register="7" pc="122" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named f</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="82" end="82" startBytecode="130" endBytecode="130" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 82]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="f"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="fbf961ef786a3104801e0868acbbd00b" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="i" register="4" pc="73" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="78" end="78" startBytecode="80" endBytecode="80" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 78]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="ec818ceb69f3710cb8534a3096a9c580" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="l" register="5" pc="97" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="80" end="80" startBytecode="106" endBytecode="106" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 80]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="2c0d8a0c071a7a9f13769377dfdc2c3e" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="s" register="3" pc="52" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="76" end="76" startBytecode="59" endBytecode="59" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 76]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="353b549dfbc3cf8ae2520dbbbb92596" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.NAB_Sample.testBoxedCast()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="174" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <LocalVariable name="s" register="1" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="89" end="89" startBytecode="19" endBytecode="19" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 89]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="fd065f40599474875d71cf6ba7b07973" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bb in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="72" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <LocalVariable name="bb" register="4" pc="35" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bb</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="27" end="27" startBytecode="33" endBytecode="33" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 27]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bb"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="1a6562f83a8c8bf4a4a5a5436b4a6600" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bbo in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="72" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <LocalVariable name="bbo" register="2" pc="17" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bbo</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="25" end="25" startBytecode="16" endBytecode="16" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 25]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bbo"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="2eea8420acd450e451c5b5b3fb3910ba" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to cc in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="72" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <LocalVariable name="cc" register="6" pc="56" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named cc</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="29" end="29" startBytecode="54" endBytecode="54" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 29]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="cc"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="d581131894945e2955e6abf70cb976f6" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to dd in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="72" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <LocalVariable name="dd" register="16" pc="156" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named dd</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="39" end="39" startBytecode="154" endBytecode="154" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 39]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="dd"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="96a5ac5c55189bd016bc86991e4fc163" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ff in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="72" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <LocalVariable name="ff" register="14" pc="136" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ff</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="37" end="37" startBytecode="134" endBytecode="134" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 37]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ff"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="43cc5706906232ea9f60ee4f1477f365" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ii in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="72" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <LocalVariable name="ii" register="10" pc="96" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ii</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="33" end="33" startBytecode="94" endBytecode="94" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 33]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ii"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="4cf990222c86e92bfd99fede101a6b70" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ll in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="72" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <LocalVariable name="ll" register="12" pc="116" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ll</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="35" end="35" startBytecode="114" endBytecode="114" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 35]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ll"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="96f8f05e13f4c0e508971aa39b0eccae" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ss in ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="72" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <LocalVariable name="ss" register="8" pc="76" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ss</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="31" end="31" startBytecode="74" endBytecode="74" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 31]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ss"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="be38fb318c04f4beab18737db25b527d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <LocalVariable name="b" register="3" pc="16" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="45" end="45" startBytecode="15" endBytecode="15" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 45]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="bbd54073bb6f4e71aaf34b6ab34fbc09" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bo in ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <LocalVariable name="bo" register="2" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bo</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="44" end="44" startBytecode="7" endBytecode="7" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 44]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bo"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="2b185d1638f394b51910f0b557c5b0c0" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <LocalVariable name="d" register="9" pc="61" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="50" end="50" startBytecode="59" endBytecode="59" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 50]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="1089c6893a61cc5b92206a3d6d0bcc0b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to f in ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <LocalVariable name="f" register="8" pc="52" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named f</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="49" end="49" startBytecode="50" endBytecode="50" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 49]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="f"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="b6408489c10e256792cb64a0565ede3e" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <LocalVariable name="i" register="5" pc="34" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="47" end="47" startBytecode="32" endBytecode="32" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 47]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="c66a5c1d0a05cd36949c13fda69ba4e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <LocalVariable name="l" register="6" pc="43" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="48" end="48" startBytecode="41" endBytecode="41" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 48]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="c6b8b3307fc1a5792284236a31c1d482" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <LocalVariable name="s" register="4" pc="25" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="46" end="46" startBytecode="23" endBytecode="23" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 46]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="8861b68a12a0024c56b48bad03c627d4" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.NAB_Sample.testBooleanConsts(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanConsts" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="121" end="126" startBytecode="0" endBytecode="23" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanConsts(String)</Message> </Method> <LocalVariable name="b" register="2" pc="14" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="121" end="121" startBytecode="6" endBytecode="6" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 121]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="1b24bb3c8df0c0c7ae634694ebadf858" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bb in ex.NAB_Sample.testBooleanConsts(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanConsts" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="121" end="126" startBytecode="0" endBytecode="23" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanConsts(String)</Message> </Method> <LocalVariable name="bb" register="3" pc="19" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bb</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="123" end="123" startBytecode="18" endBytecode="18" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 123]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bb"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="5f075faaf2017c3c6f31833f34c1c0fb" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="b" register="2" pc="40" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="73" end="73" startBytecode="31" endBytecode="31" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 73]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="58ac436a7ac173ac4a749bf3cf0b7184" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bo in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="bo" register="1" pc="20" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bo</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="71" end="71" startBytecode="11" endBytecode="11" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 71]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bo"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="1a3afbcbe764ee2134d3ad6fa6a9989c" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="d" register="8" pc="158" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="83" end="83" startBytecode="145" endBytecode="145" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 83]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="32d32fc2125845b916a19ace4b72703a" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to f in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="f" register="7" pc="132" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named f</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="81" end="81" startBytecode="120" endBytecode="120" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 81]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="f"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="fbf961ef786a3104801e0868acbbd00b" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="i" register="4" pc="82" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="77" end="77" startBytecode="71" endBytecode="71" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 77]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="ec818ceb69f3710cb8534a3096a9c580" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="l" register="5" pc="108" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="79" end="79" startBytecode="95" endBytecode="95" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 79]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="2c0d8a0c071a7a9f13769377dfdc2c3e" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.NAB_Sample.testBoxToUnbox()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <LocalVariable name="s" register="3" pc="60" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="75" end="75" startBytecode="51" endBytecode="51" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 75]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="6c33efe505ba7f053aca07c52422dd71" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.NAB_Sample.testBoxedCast()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="174" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <LocalVariable name="d" register="6" pc="258" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="117" end="117" startBytecode="380" endBytecode="380" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 117]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.MANY_STORES" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="f56dea0d0cb88683668f80c81c5a688f" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to f in ex.NAB_Sample.testBoxedCast()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="174" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <LocalVariable name="f" register="5" pc="153" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named f</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="107" end="107" startBytecode="240" endBytecode="240" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 107]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="f"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.MANY_STORES" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="c76b9af32edffcf1cd292827a5771afa" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.NAB_Sample.testBoxedCast()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="174" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <LocalVariable name="i" register="2" pc="32" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="93" end="93" startBytecode="59" endBytecode="59" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 93]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.MANY_STORES" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="b8e7d32c244a558fb52649ff510cba81" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.NAB_Sample.testBoxedCast()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="174" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <LocalVariable name="l" register="3" pc="75" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="99" end="99" startBytecode="137" endBytecode="137" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 99]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.MANY_STORES" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="353b549dfbc3cf8ae2520dbbbb92596" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.NAB_Sample.testBoxedCast()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="174" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <LocalVariable name="s" register="1" pc="20" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="88" end="88" startBytecode="11" endBytecode="11" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 88]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="620f5577acd1c4fccd99a56066f0a66a" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="b" register="2" pc="44" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="56" end="56" startBytecode="30" endBytecode="30" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 56]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="56d300d118efec5c484f2aec462760c6" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to bo in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="bo" register="1" pc="22" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named bo</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="54" end="54" startBytecode="8" endBytecode="8" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 54]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="bo"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="6192a7357a23d614c0c1ef0988a89122" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to d in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="d" register="7" pc="162" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named d</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="66" end="66" startBytecode="146" endBytecode="146" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 66]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="d"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="bdf8d592bc61ab9dbe587c590da0f4bb" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to f in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="f" register="6" pc="138" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named f</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="64" end="64" startBytecode="122" endBytecode="122" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 64]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="f"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="1dc73f3c5ccc1fa29b31356196adfdc8" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="i" register="4" pc="90" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="60" end="60" startBytecode="74" endBytecode="74" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 60]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="316c2d464329a645eaef425407d4db7b" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="l" register="5" pc="114" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="62" end="62" startBytecode="98" endBytecode="98" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 62]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="b5f2baca494fafaf3142d15490e3940e" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.NAB_Sample.testExtraneousParse()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <LocalVariable name="s" register="3" pc="66" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.NAB_Sample" primary="true" start="58" end="58" startBytecode="52" endBytecode="52" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 58]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DM_BOOLEAN_CTOR" priority="2" rank="18" abbrev="Dm" category="PERFORMANCE" instanceHash="9a9e3812b6402d0f01012133c657bdc6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxToUnbox() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="71" end="71" startBytecode="5" endBytecode="5" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 71]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_BOOLEAN_CTOR" priority="2" rank="18" abbrev="Dm" category="PERFORMANCE" instanceHash="2950f74e6ff589b56355a3112b6088e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupCtor() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="5" end="5" startBytecode="5" endBytecode="5" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 5]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="6" end="6" startBytecode="17" endBytecode="17" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 6]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_BOOLEAN_CTOR" priority="2" rank="18" abbrev="Dm" category="PERFORMANCE" instanceHash="c6d5ebfd6c6bd098d729fdbec96e9a2d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupValueOf() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="24" end="24" startBytecode="5" endBytecode="5" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_BOOLEAN_CTOR" priority="2" rank="18" abbrev="Dm" category="PERFORMANCE" instanceHash="531da32b16a0f19c7a8677ac09753c53" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</ShortMessage> <LongMessage>ex.NAB_Sample.testExtraneousParse() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="55" end="55" startBytecode="18" endBytecode="18" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_BOXED_PRIMITIVE_FOR_PARSING" priority="1" rank="16" abbrev="Bx" category="PERFORMANCE" instanceHash="be8a8ddc6ebe76436f9f1efb27aab0c7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxing/unboxing to parse a primitive</ShortMessage> <LongMessage>Boxing/unboxing to parse a primitive ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <Method classname="java.lang.Integer" name="intValue" signature="()I" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="893" end="893" startBytecode="0" endBytecode="28" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method Integer.intValue()</Message> </Method> <Method classname="java.lang.Integer" name="parseInt" signature="(Ljava/lang/String;)I" isStatic="true" role="SHOULD_CALL"> <Message>Should call Integer.parseInt(String) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="47" end="47" startBytecode="29" endBytecode="29" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_BOXED_PRIMITIVE_FOR_PARSING" priority="1" rank="16" abbrev="Bx" category="PERFORMANCE" instanceHash="e2629fa7fa6e59f9d7fa881195595a90" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Boxing/unboxing to parse a primitive</ShortMessage> <LongMessage>Boxing/unboxing to parse a primitive ex.NAB_Sample.testNeedsParse(String)</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <Method classname="java.lang.Long" name="longValue" signature="()J" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Long" start="1000" end="1000" startBytecode="0" endBytecode="28" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Called method Long.longValue()</Message> </Method> <Method classname="java.lang.Long" name="parseLong" signature="(Ljava/lang/String;)J" isStatic="true" role="SHOULD_CALL"> <Message>Should call Long.parseLong(String) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="48" end="48" startBytecode="38" endBytecode="38" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 48]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="b2796caf1bce57cc4c6c0664b537a410" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxToUnbox() invokes inefficient new Double(double) constructor; use Double.valueOf(double) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <Method classname="java.lang.Double" name="<init>" signature="(D)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Double" start="592" end="594" startBytecode="0" endBytecode="41" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Called method new Double(double)</Message> </Method> <Method classname="java.lang.Double" name="valueOf" signature="(D)Ljava/lang/Double;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Double" start="519" end="519" startBytecode="0" endBytecode="32" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Should call Double.valueOf(double) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="83" end="83" startBytecode="139" endBytecode="139" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 83]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="b949079cfd936a05d746c5391526cdce" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxToUnbox() invokes inefficient new Float(float) constructor; use Float.valueOf(float) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <Method classname="java.lang.Float" name="<init>" signature="(F)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Float" start="506" end="508" startBytecode="0" endBytecode="41" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Called method new Float(float)</Message> </Method> <Method classname="java.lang.Float" name="valueOf" signature="(F)Ljava/lang/Float;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Float" start="433" end="433" startBytecode="0" endBytecode="32" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Should call Float.valueOf(float) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="81" end="81" startBytecode="114" endBytecode="114" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 81]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="f8b5d62c7738508ac24b21821496e124" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxedCast() invokes inefficient new Double(double) constructor; use Double.valueOf(double) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <Method classname="java.lang.Double" name="<init>" signature="(D)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Double" start="592" end="594" startBytecode="0" endBytecode="41" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Called method new Double(double)</Message> </Method> <Method classname="java.lang.Double" name="valueOf" signature="(D)Ljava/lang/Double;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Double" start="519" end="519" startBytecode="0" endBytecode="32" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Should call Double.valueOf(double) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="108" end="108" startBytecode="249" endBytecode="249" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 108]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="110" end="110" startBytecode="277" endBytecode="277" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 110]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="112" end="112" startBytecode="305" endBytecode="305" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 112]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="114" end="114" startBytecode="333" endBytecode="333" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 114]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="116" end="116" startBytecode="361" endBytecode="361" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 116]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="575a4f9a32834b0ddcd691e72b5fb0c8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxedCast() invokes inefficient new Float(float) constructor; use Float.valueOf(float) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <Method classname="java.lang.Float" name="<init>" signature="(F)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Float" start="506" end="508" startBytecode="0" endBytecode="41" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Called method new Float(float)</Message> </Method> <Method classname="java.lang.Float" name="valueOf" signature="(F)Ljava/lang/Float;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Float" start="433" end="433" startBytecode="0" endBytecode="32" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Should call Float.valueOf(float) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="100" end="100" startBytecode="144" endBytecode="144" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 100]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="102" end="102" startBytecode="170" endBytecode="170" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 102]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="104" end="104" startBytecode="196" endBytecode="196" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 104]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="106" end="106" startBytecode="222" endBytecode="222" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 106]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="594b5b6ff361059fd558f9192bf2f671" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupCtor() invokes inefficient new Double(double) constructor; use Double.valueOf(double) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <Method classname="java.lang.Double" name="<init>" signature="(D)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Double" start="592" end="594" startBytecode="0" endBytecode="41" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Called method new Double(double)</Message> </Method> <Method classname="java.lang.Double" name="valueOf" signature="(D)Ljava/lang/Double;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Double" start="519" end="519" startBytecode="0" endBytecode="32" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Should call Double.valueOf(double) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="19" end="19" startBytecode="169" endBytecode="169" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 19]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="20" end="20" startBytecode="183" endBytecode="183" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="b37e92987f00a74269a91da26ea8097f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupCtor() invokes inefficient new Float(float) constructor; use Float.valueOf(float) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <Method classname="java.lang.Float" name="<init>" signature="(F)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Float" start="506" end="508" startBytecode="0" endBytecode="41" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Called method new Float(float)</Message> </Method> <Method classname="java.lang.Float" name="valueOf" signature="(F)Ljava/lang/Float;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Float" start="433" end="433" startBytecode="0" endBytecode="32" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Should call Float.valueOf(float) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="17" end="17" startBytecode="145" endBytecode="145" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 17]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="18" end="18" startBytecode="159" endBytecode="159" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="78a64ad2eaf9ad385cc2bde3fc77d1ef" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupValueOf() invokes inefficient new Double(double) constructor; use Double.valueOf(double) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Double" name="<init>" signature="(D)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Double" start="592" end="594" startBytecode="0" endBytecode="41" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Called method new Double(double)</Message> </Method> <Method classname="java.lang.Double" name="valueOf" signature="(D)Ljava/lang/Double;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Double" start="519" end="519" startBytecode="0" endBytecode="32" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Should call Double.valueOf(double) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="38" end="38" startBytecode="141" endBytecode="141" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="94095d525e3818398cdee16b0c891554" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupValueOf() invokes inefficient new Float(float) constructor; use Float.valueOf(float) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Float" name="<init>" signature="(F)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Float" start="506" end="508" startBytecode="0" endBytecode="41" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Called method new Float(float)</Message> </Method> <Method classname="java.lang.Float" name="valueOf" signature="(F)Ljava/lang/Float;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Float" start="433" end="433" startBytecode="0" endBytecode="32" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Should call Float.valueOf(float) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="36" end="36" startBytecode="121" endBytecode="121" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="18cf22da27cc01196d391ca53112051d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testExtraneousParse() invokes inefficient new Double(double) constructor; use Double.valueOf(double) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <Method classname="java.lang.Double" name="<init>" signature="(D)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Double" start="592" end="594" startBytecode="0" endBytecode="41" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Called method new Double(double)</Message> </Method> <Method classname="java.lang.Double" name="valueOf" signature="(D)Ljava/lang/Double;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Double" start="519" end="519" startBytecode="0" endBytecode="32" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Should call Double.valueOf(double) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="67" end="67" startBytecode="157" endBytecode="157" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 67]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_FP_NUMBER_CTOR" priority="3" rank="20" abbrev="Bx" category="PERFORMANCE" instanceHash="98b7ec3da87dd8661357effc36978cf1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testExtraneousParse() invokes inefficient new Float(float) constructor; use Float.valueOf(float) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <Method classname="java.lang.Float" name="<init>" signature="(F)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Float" start="506" end="508" startBytecode="0" endBytecode="41" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Called method new Float(float)</Message> </Method> <Method classname="java.lang.Float" name="valueOf" signature="(F)Ljava/lang/Float;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Float" start="433" end="433" startBytecode="0" endBytecode="32" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Should call Float.valueOf(float) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="65" end="65" startBytecode="133" endBytecode="133" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="a48561f693bcd10012d38292cee9131d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxToUnbox() invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <Method classname="java.lang.Byte" name="<init>" signature="(B)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Byte" start="298" end="300" startBytecode="0" endBytecode="41" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Called method new Byte(byte)</Message> </Method> <Method classname="java.lang.Byte" name="valueOf" signature="(B)Ljava/lang/Byte;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Byte" start="103" end="103" startBytecode="0" endBytecode="33" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Should call Byte.valueOf(byte) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="73" end="73" startBytecode="25" endBytecode="25" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 73]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="c040cea377192ffc20365e460044b0d9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxToUnbox() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="77" end="77" startBytecode="65" endBytecode="65" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 77]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="7880ec348bca21453dd450d130931abe" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxToUnbox() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <Method classname="java.lang.Long" name="<init>" signature="(J)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Long" start="947" end="949" startBytecode="0" endBytecode="41" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Called method new Long(long)</Message> </Method> <Method classname="java.lang.Long" name="valueOf" signature="(J)Ljava/lang/Long;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Long" start="837" end="840" startBytecode="0" endBytecode="76" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Should call Long.valueOf(long) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="79" end="79" startBytecode="89" endBytecode="89" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 79]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="55ac3172669981f0577887c7d88e1747" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxToUnbox() invokes inefficient new Short(short) constructor; use Short.valueOf(short) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <Method classname="java.lang.Short" name="<init>" signature="(S)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Short" start="303" end="305" startBytecode="0" endBytecode="41" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Called method new Short(short)</Message> </Method> <Method classname="java.lang.Short" name="valueOf" signature="(S)Ljava/lang/Short;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Short" start="232" end="236" startBytecode="0" endBytecode="81" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Should call Short.valueOf(short) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="75" end="75" startBytecode="45" endBytecode="45" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 75]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="5cdef5f2223a84255e924c879d4e51f8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxedCast() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="90" end="90" startBytecode="25" endBytecode="25" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 90]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="92" end="92" startBytecode="45" endBytecode="45" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 92]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="24a58b6cd8533f1390a9d4db9da96c71" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxedCast() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <Method classname="java.lang.Long" name="<init>" signature="(J)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Long" start="947" end="949" startBytecode="0" endBytecode="41" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Called method new Long(long)</Message> </Method> <Method classname="java.lang.Long" name="valueOf" signature="(J)Ljava/lang/Long;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Long" start="837" end="840" startBytecode="0" endBytecode="76" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Should call Long.valueOf(long) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="94" end="94" startBytecode="67" endBytecode="67" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 94]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="96" end="96" startBytecode="93" endBytecode="93" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 96]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="98" end="98" startBytecode="119" endBytecode="119" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 98]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="61bd643e3f517c526c30e73ab130037a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testBoxedCast() invokes inefficient new Short(short) constructor; use Short.valueOf(short) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <Method classname="java.lang.Short" name="<init>" signature="(S)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Short" start="303" end="305" startBytecode="0" endBytecode="41" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Called method new Short(short)</Message> </Method> <Method classname="java.lang.Short" name="valueOf" signature="(S)Ljava/lang/Short;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Short" start="232" end="236" startBytecode="0" endBytecode="81" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Should call Short.valueOf(short) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="88" end="88" startBytecode="5" endBytecode="5" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 88]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="a8e34ac596f2c781cdebd7e86fec8946" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupCtor() invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <Method classname="java.lang.Byte" name="<init>" signature="(B)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Byte" start="298" end="300" startBytecode="0" endBytecode="41" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Called method new Byte(byte)</Message> </Method> <Method classname="java.lang.Byte" name="valueOf" signature="(B)Ljava/lang/Byte;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Byte" start="103" end="103" startBytecode="0" endBytecode="33" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Should call Byte.valueOf(byte) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="7" end="7" startBytecode="26" endBytecode="26" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 7]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="8" end="8" startBytecode="38" endBytecode="38" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="20546d9ea91dc760d72b1308fbd885b7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupCtor() invokes inefficient new Character(char) constructor; use Character.valueOf(char) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <Method classname="java.lang.Character" name="<init>" signature="(C)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Character" start="4537" end="4539" startBytecode="0" endBytecode="41" sourcefile="Character.java" sourcepath="java/lang/Character.java"/> <Message>Called method new Character(char)</Message> </Method> <Method classname="java.lang.Character" name="valueOf" signature="(C)Ljava/lang/Character;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Character" start="4570" end="4573" startBytecode="0" endBytecode="61" sourcefile="Character.java" sourcepath="java/lang/Character.java"/> <Message>Should call Character.valueOf(char) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="9" end="9" startBytecode="49" endBytecode="49" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 9]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="10" end="10" startBytecode="63" endBytecode="63" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="d396f504c628de06c1d43684a7c65fce" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupCtor() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="13" end="13" startBytecode="97" endBytecode="97" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 13]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="14" end="14" startBytecode="111" endBytecode="111" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="19058db1fe9d797dfe0f7dd206e97cfa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupCtor() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <Method classname="java.lang.Long" name="<init>" signature="(J)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Long" start="947" end="949" startBytecode="0" endBytecode="41" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Called method new Long(long)</Message> </Method> <Method classname="java.lang.Long" name="valueOf" signature="(J)Ljava/lang/Long;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Long" start="837" end="840" startBytecode="0" endBytecode="76" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Should call Long.valueOf(long) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="15" end="15" startBytecode="121" endBytecode="121" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 15]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="16" end="16" startBytecode="135" endBytecode="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="dd38025a3c8c0bfae437845578259303" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupCtor() invokes inefficient new Short(short) constructor; use Short.valueOf(short) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <Method classname="java.lang.Short" name="<init>" signature="(S)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Short" start="303" end="305" startBytecode="0" endBytecode="41" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Called method new Short(short)</Message> </Method> <Method classname="java.lang.Short" name="valueOf" signature="(S)Ljava/lang/Short;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Short" start="232" end="236" startBytecode="0" endBytecode="81" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Should call Short.valueOf(short) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="11" end="11" startBytecode="73" endBytecode="73" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 11]</Message> </SourceLine> <SourceLine classname="ex.NAB_Sample" start="12" end="12" startBytecode="87" endBytecode="87" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NAB_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="5764267d259db3cdc7a908a8b374824b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupValueOf() invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Byte" name="<init>" signature="(B)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Byte" start="298" end="300" startBytecode="0" endBytecode="41" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Called method new Byte(byte)</Message> </Method> <Method classname="java.lang.Byte" name="valueOf" signature="(B)Ljava/lang/Byte;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Byte" start="103" end="103" startBytecode="0" endBytecode="33" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Should call Byte.valueOf(byte) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="26" end="26" startBytecode="22" endBytecode="22" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="b14a00c570cb1383bdf357840aff7c1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupValueOf() invokes inefficient new Character(char) constructor; use Character.valueOf(char) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Character" name="<init>" signature="(C)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Character" start="4537" end="4539" startBytecode="0" endBytecode="41" sourcefile="Character.java" sourcepath="java/lang/Character.java"/> <Message>Called method new Character(char)</Message> </Method> <Method classname="java.lang.Character" name="valueOf" signature="(C)Ljava/lang/Character;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Character" start="4570" end="4573" startBytecode="0" endBytecode="61" sourcefile="Character.java" sourcepath="java/lang/Character.java"/> <Message>Should call Character.valueOf(char) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="28" end="28" startBytecode="41" endBytecode="41" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="d751af0f5fb9a3481c1db90a560ccafa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupValueOf() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="32" end="32" startBytecode="81" endBytecode="81" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="4e17da28ba6eb88af9771e1a1f5097bd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupValueOf() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Long" name="<init>" signature="(J)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Long" start="947" end="949" startBytecode="0" endBytecode="41" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Called method new Long(long)</Message> </Method> <Method classname="java.lang.Long" name="valueOf" signature="(J)Ljava/lang/Long;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Long" start="837" end="840" startBytecode="0" endBytecode="76" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Should call Long.valueOf(long) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="34" end="34" startBytecode="101" endBytecode="101" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="1d80792eeb197e69c109fe7cf5f1e455" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testDupValueOf() invokes inefficient new Short(short) constructor; use Short.valueOf(short) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <Method classname="java.lang.Short" name="<init>" signature="(S)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Short" start="303" end="305" startBytecode="0" endBytecode="41" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Called method new Short(short)</Message> </Method> <Method classname="java.lang.Short" name="valueOf" signature="(S)Ljava/lang/Short;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Short" start="232" end="236" startBytecode="0" endBytecode="81" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Should call Short.valueOf(short) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="30" end="30" startBytecode="61" endBytecode="61" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="bc2894abd35b01ab2366fb821a4bd759" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testExtraneousParse() invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <Method classname="java.lang.Byte" name="<init>" signature="(B)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Byte" start="298" end="300" startBytecode="0" endBytecode="41" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Called method new Byte(byte)</Message> </Method> <Method classname="java.lang.Byte" name="valueOf" signature="(B)Ljava/lang/Byte;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Byte" start="103" end="103" startBytecode="0" endBytecode="33" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"/> <Message>Should call Byte.valueOf(byte) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="57" end="57" startBytecode="40" endBytecode="40" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 57]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="d822a0cce38c0db5438b36fa916ba8d9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testExtraneousParse() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="61" end="61" startBytecode="85" endBytecode="85" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="636f6e66a6f52ea35cbec1cdc88f6193" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testExtraneousParse() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <Method classname="java.lang.Long" name="<init>" signature="(J)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Long" start="947" end="949" startBytecode="0" endBytecode="41" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Called method new Long(long)</Message> </Method> <Method classname="java.lang.Long" name="valueOf" signature="(J)Ljava/lang/Long;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Long" start="837" end="840" startBytecode="0" endBytecode="76" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Should call Long.valueOf(long) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="63" end="63" startBytecode="109" endBytecode="109" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 63]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="1beabfdfeaa120b9f28d25c0a3c783de" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.NAB_Sample.testExtraneousParse() invokes inefficient new Short(short) constructor; use Short.valueOf(short) instead</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <Method classname="java.lang.Short" name="<init>" signature="(S)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Short" start="303" end="305" startBytecode="0" endBytecode="41" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Called method new Short(short)</Message> </Method> <Method classname="java.lang.Short" name="valueOf" signature="(S)Ljava/lang/Short;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Short" start="232" end="236" startBytecode="0" endBytecode="81" sourcefile="Short.java" sourcepath="java/lang/Short.java"/> <Message>Should call Short.valueOf(short) instead</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="59" end="59" startBytecode="62" endBytecode="62" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 59]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="9c2dd5d2ab104292e2d8ed29804ec247" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBooleanConsts(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanConsts" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="121" end="126" startBytecode="0" endBytecode="153" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanConsts(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="126" end="126" startBytecode="27" endBytecode="27" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 126]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="453b26dec0d3f20fe80973d3120d3ed4" instanceOccurrenceNum="0" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to same primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() passes primitive wrapper to same primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="6" end="6" startBytecode="17" endBytecode="17" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 6]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="453b26dec0d3f20fe80973d3120d3ed4" instanceOccurrenceNum="1" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to same primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() passes primitive wrapper to same primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="8" end="8" startBytecode="38" endBytecode="38" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="453b26dec0d3f20fe80973d3120d3ed4" instanceOccurrenceNum="2" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to same primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() passes primitive wrapper to same primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="10" end="10" startBytecode="63" endBytecode="63" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="453b26dec0d3f20fe80973d3120d3ed4" instanceOccurrenceNum="3" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to same primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() passes primitive wrapper to same primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="12" end="12" startBytecode="87" endBytecode="87" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="453b26dec0d3f20fe80973d3120d3ed4" instanceOccurrenceNum="4" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to same primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() passes primitive wrapper to same primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="14" end="14" startBytecode="111" endBytecode="111" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="453b26dec0d3f20fe80973d3120d3ed4" instanceOccurrenceNum="5" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to same primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() passes primitive wrapper to same primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="16" end="16" startBytecode="135" endBytecode="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="453b26dec0d3f20fe80973d3120d3ed4" instanceOccurrenceNum="6" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to same primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() passes primitive wrapper to same primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="18" end="18" startBytecode="159" endBytecode="159" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="453b26dec0d3f20fe80973d3120d3ed4" instanceOccurrenceNum="7" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to same primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() passes primitive wrapper to same primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="20" end="20" startBytecode="183" endBytecode="183" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b831d1d566ad0b22d0596e120bb19591" instanceOccurrenceNum="0" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to Wrapper class valueOf method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() passes primitive wrapper to Wrapper class valueOf method</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="25" end="25" startBytecode="13" endBytecode="13" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b831d1d566ad0b22d0596e120bb19591" instanceOccurrenceNum="1" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to Wrapper class valueOf method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() passes primitive wrapper to Wrapper class valueOf method</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="27" end="27" startBytecode="30" endBytecode="30" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b831d1d566ad0b22d0596e120bb19591" instanceOccurrenceNum="2" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to Wrapper class valueOf method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() passes primitive wrapper to Wrapper class valueOf method</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="29" end="29" startBytecode="51" endBytecode="51" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b831d1d566ad0b22d0596e120bb19591" instanceOccurrenceNum="3" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to Wrapper class valueOf method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() passes primitive wrapper to Wrapper class valueOf method</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="31" end="31" startBytecode="71" endBytecode="71" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b831d1d566ad0b22d0596e120bb19591" instanceOccurrenceNum="4" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to Wrapper class valueOf method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() passes primitive wrapper to Wrapper class valueOf method</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="33" end="33" startBytecode="91" endBytecode="91" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b831d1d566ad0b22d0596e120bb19591" instanceOccurrenceNum="5" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to Wrapper class valueOf method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() passes primitive wrapper to Wrapper class valueOf method</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="35" end="35" startBytecode="111" endBytecode="111" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b831d1d566ad0b22d0596e120bb19591" instanceOccurrenceNum="6" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to Wrapper class valueOf method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() passes primitive wrapper to Wrapper class valueOf method</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="37" end="37" startBytecode="131" endBytecode="131" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b831d1d566ad0b22d0596e120bb19591" instanceOccurrenceNum="7" instanceOccurrenceMax="7"> <ShortMessage>Method passes primitive wrapper to Wrapper class valueOf method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() passes primitive wrapper to Wrapper class valueOf method</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="39" end="39" startBytecode="151" endBytecode="151" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="bee08c9a491bcd97e1cedd5ae93861cf" instanceOccurrenceNum="0" instanceOccurrenceMax="3"> <ShortMessage>Method needlessly boxes a boolean constant</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBooleanConsts(String) needlessly boxes a boolean constant</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanConsts" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="121" end="126" startBytecode="0" endBytecode="153" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanConsts(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="121" end="121" startBytecode="3" endBytecode="3" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 121]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="bee08c9a491bcd97e1cedd5ae93861cf" instanceOccurrenceNum="1" instanceOccurrenceMax="3"> <ShortMessage>Method needlessly boxes a boolean constant</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBooleanConsts(String) needlessly boxes a boolean constant</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanConsts" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="121" end="126" startBytecode="0" endBytecode="153" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanConsts(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="122" end="122" startBytecode="10" endBytecode="10" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 122]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="bee08c9a491bcd97e1cedd5ae93861cf" instanceOccurrenceNum="2" instanceOccurrenceMax="3"> <ShortMessage>Method needlessly boxes a boolean constant</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBooleanConsts(String) needlessly boxes a boolean constant</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanConsts" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="121" end="126" startBytecode="0" endBytecode="153" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanConsts(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="123" end="123" startBytecode="15" endBytecode="15" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 123]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="bee08c9a491bcd97e1cedd5ae93861cf" instanceOccurrenceNum="3" instanceOccurrenceMax="3"> <ShortMessage>Method needlessly boxes a boolean constant</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBooleanConsts(String) needlessly boxes a boolean constant</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanConsts" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="121" end="126" startBytecode="0" endBytecode="153" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanConsts(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="124" end="124" startBytecode="20" endBytecode="20" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 124]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="65f82bbf787174b41adaceee7de92950" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly boxes a boolean constant</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBooleanReturns() needlessly boxes a boolean constant</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBooleanReturns" signature="()Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="130" end="130" startBytecode="0" endBytecode="46" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBooleanReturns()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="130" end="130" startBytecode="1" endBytecode="1" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 130]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="223c64d8b9a5ba1dc491d937dec94dd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly boxes a boolean constant</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() needlessly boxes a boolean constant</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="72" end="72" startBytecode="13" endBytecode="13" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 72]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="c388ffaa3d7c2f698ef51fa8ee0a85d6" instanceOccurrenceNum="0" instanceOccurrenceMax="6"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testNeedsParse(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="44" end="44" startBytecode="4" endBytecode="4" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 44]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="c388ffaa3d7c2f698ef51fa8ee0a85d6" instanceOccurrenceNum="1" instanceOccurrenceMax="6"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testNeedsParse(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="45" end="45" startBytecode="12" endBytecode="12" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="c388ffaa3d7c2f698ef51fa8ee0a85d6" instanceOccurrenceNum="2" instanceOccurrenceMax="6"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testNeedsParse(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="46" end="46" startBytecode="20" endBytecode="20" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="c388ffaa3d7c2f698ef51fa8ee0a85d6" instanceOccurrenceNum="3" instanceOccurrenceMax="6"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testNeedsParse(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="47" end="47" startBytecode="29" endBytecode="29" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="c388ffaa3d7c2f698ef51fa8ee0a85d6" instanceOccurrenceNum="4" instanceOccurrenceMax="6"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testNeedsParse(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="48" end="48" startBytecode="38" endBytecode="38" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 48]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="c388ffaa3d7c2f698ef51fa8ee0a85d6" instanceOccurrenceNum="5" instanceOccurrenceMax="6"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testNeedsParse(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="49" end="49" startBytecode="47" endBytecode="47" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_PARSE" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="c388ffaa3d7c2f698ef51fa8ee0a85d6" instanceOccurrenceNum="6" instanceOccurrenceMax="6"> <ShortMessage>Method converts String to primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testNeedsParse(String) converts String to primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testNeedsParse" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="44" end="51" startBytecode="0" endBytecode="211" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testNeedsParse(String)</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="50" end="50" startBytecode="56" endBytecode="56" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_STRING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b87aa8e045904d61b8e9159259b60730" instanceOccurrenceNum="0" instanceOccurrenceMax="5"> <ShortMessage>Method passes parsed string to primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() passes parsed string to primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="55" end="55" startBytecode="18" endBytecode="18" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_STRING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b87aa8e045904d61b8e9159259b60730" instanceOccurrenceNum="1" instanceOccurrenceMax="5"> <ShortMessage>Method passes parsed string to primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() passes parsed string to primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="57" end="57" startBytecode="40" endBytecode="40" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 57]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_STRING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b87aa8e045904d61b8e9159259b60730" instanceOccurrenceNum="2" instanceOccurrenceMax="5"> <ShortMessage>Method passes parsed string to primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() passes parsed string to primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="59" end="59" startBytecode="62" endBytecode="62" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 59]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_STRING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b87aa8e045904d61b8e9159259b60730" instanceOccurrenceNum="3" instanceOccurrenceMax="5"> <ShortMessage>Method passes parsed string to primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() passes parsed string to primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="61" end="61" startBytecode="85" endBytecode="85" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_STRING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b87aa8e045904d61b8e9159259b60730" instanceOccurrenceNum="4" instanceOccurrenceMax="5"> <ShortMessage>Method passes parsed string to primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() passes parsed string to primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="63" end="63" startBytecode="109" endBytecode="109" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 63]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_STRING_CTOR" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="b87aa8e045904d61b8e9159259b60730" instanceOccurrenceNum="5" instanceOccurrenceMax="5"> <ShortMessage>Method passes parsed string to primitive wrapper constructor</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() passes parsed string to primitive wrapper constructor</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="67" end="67" startBytecode="157" endBytecode="157" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 67]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="cbb510b1f50477a2b4d7ab91cc2258b5" instanceOccurrenceNum="0" instanceOccurrenceMax="5"> <ShortMessage>Method converts String to boxed primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() converts String to boxed primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="54" end="54" startBytecode="5" endBytecode="5" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 54]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="cbb510b1f50477a2b4d7ab91cc2258b5" instanceOccurrenceNum="1" instanceOccurrenceMax="5"> <ShortMessage>Method converts String to boxed primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() converts String to boxed primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="56" end="56" startBytecode="27" endBytecode="27" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="cbb510b1f50477a2b4d7ab91cc2258b5" instanceOccurrenceNum="2" instanceOccurrenceMax="5"> <ShortMessage>Method converts String to boxed primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() converts String to boxed primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="58" end="58" startBytecode="49" endBytecode="49" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 58]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="cbb510b1f50477a2b4d7ab91cc2258b5" instanceOccurrenceNum="3" instanceOccurrenceMax="5"> <ShortMessage>Method converts String to boxed primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() converts String to boxed primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="60" end="60" startBytecode="71" endBytecode="71" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="cbb510b1f50477a2b4d7ab91cc2258b5" instanceOccurrenceNum="4" instanceOccurrenceMax="5"> <ShortMessage>Method converts String to boxed primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() converts String to boxed primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="62" end="62" startBytecode="95" endBytecode="95" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOXING_VALUEOF" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="cbb510b1f50477a2b4d7ab91cc2258b5" instanceOccurrenceNum="5" instanceOccurrenceMax="5"> <ShortMessage>Method converts String to boxed primitive using excessive boxing</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() converts String to boxed primitive using excessive boxing</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="66" end="66" startBytecode="143" endBytecode="143" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 66]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="0" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="88" end="88" startBytecode="8" endBytecode="8" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 88]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="1" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="89" end="89" startBytecode="16" endBytecode="16" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 89]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="2" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="90" end="90" startBytecode="28" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 90]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="3" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="91" end="91" startBytecode="36" endBytecode="36" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 91]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="4" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="92" end="92" startBytecode="48" endBytecode="48" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 92]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="5" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="93" end="93" startBytecode="56" endBytecode="56" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 93]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="6" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="94" end="94" startBytecode="70" endBytecode="70" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 94]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="7" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="95" end="95" startBytecode="81" endBytecode="81" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 95]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="8" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="96" end="96" startBytecode="96" endBytecode="96" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 96]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="9" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="97" end="97" startBytecode="107" endBytecode="107" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="10" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="98" end="98" startBytecode="122" endBytecode="122" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 98]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="11" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="99" end="99" startBytecode="133" endBytecode="133" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 99]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="12" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="100" end="100" startBytecode="147" endBytecode="147" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 100]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="13" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="101" end="101" startBytecode="158" endBytecode="158" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="14" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="102" end="102" startBytecode="173" endBytecode="173" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 102]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="15" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="103" end="103" startBytecode="184" endBytecode="184" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 103]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="16" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="104" end="104" startBytecode="199" endBytecode="199" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 104]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="17" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="105" end="105" startBytecode="210" endBytecode="210" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 105]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="18" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="106" end="106" startBytecode="225" endBytecode="225" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 106]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="19" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="107" end="107" startBytecode="236" endBytecode="236" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 107]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="20" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="108" end="108" startBytecode="252" endBytecode="252" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 108]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="21" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="109" end="109" startBytecode="264" endBytecode="264" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="22" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="110" end="110" startBytecode="280" endBytecode="280" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 110]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="23" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="111" end="111" startBytecode="292" endBytecode="292" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 111]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="24" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="112" end="112" startBytecode="308" endBytecode="308" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 112]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="25" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="113" end="113" startBytecode="320" endBytecode="320" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 113]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="26" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="114" end="114" startBytecode="336" endBytecode="336" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 114]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="27" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="115" end="115" startBytecode="348" endBytecode="348" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 115]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="28" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="116" end="116" startBytecode="364" endBytecode="364" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 116]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_CAST" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="16918b23546b1e75571b92319a88e673" instanceOccurrenceNum="29" instanceOccurrenceMax="29"> <ShortMessage>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() creates Boxed primitive from primitive only to cast to another primitive type</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="117" end="117" startBytecode="376" endBytecode="376" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 117]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="0" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="71" end="71" startBytecode="8" endBytecode="8" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 71]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="1" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="72" end="72" startBytecode="16" endBytecode="16" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 72]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="2" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="73" end="73" startBytecode="28" endBytecode="28" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 73]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="3" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="74" end="74" startBytecode="36" endBytecode="36" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 74]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="4" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="75" end="75" startBytecode="48" endBytecode="48" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 75]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="5" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="76" end="76" startBytecode="56" endBytecode="56" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 76]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="6" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="77" end="77" startBytecode="68" endBytecode="68" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 77]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="7" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="78" end="78" startBytecode="77" endBytecode="77" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="8" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="79" end="79" startBytecode="92" endBytecode="92" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 79]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="9" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="80" end="80" startBytecode="103" endBytecode="103" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 80]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="10" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="81" end="81" startBytecode="117" endBytecode="117" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 81]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="11" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="82" end="82" startBytecode="127" endBytecode="127" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 82]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="12" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="83" end="83" startBytecode="142" endBytecode="142" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 83]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOX_TO_UNBOX" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="e40b21a17fabfed840839d41046e5a88" instanceOccurrenceNum="13" instanceOccurrenceMax="13"> <ShortMessage>Method creates Boxed primitive from primitive only to get primitive value</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() creates Boxed primitive from primitive only to get primitive value</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="84" end="84" startBytecode="153" endBytecode="153" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 84]</Message> </SourceLine> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="2" rank="18" abbrev="PRMC" category="PERFORMANCE" instanceHash="5fbbe27e913846c702ea4d8b77075f01" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.NAB_Sample.testExtraneousParse() appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testExtraneousParse" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="54" end="68" startBytecode="0" endBytecode="330" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testExtraneousParse()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="55" end="55" startBytecode="15" endBytecode="15" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 55]</Message> </SourceLine> <String value="parseBoolean(Ljava/lang/String;)Z"> <Message>Value parseBoolean(Ljava/lang/String;)Z</Message> </String> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="c2b6272d385a34f0970bae6d6700ae46" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable b of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="b"> <Message>Value b</Message> </String> <Type descriptor="Ljava/lang/Byte;"> <SourceLine classname="java.lang.Byte" start="44" end="498" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"> <Message>At Byte.java:[lines 44-498]</Message> </SourceLine> <Message>Type Byte</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="7" end="7" startBytecode="26" endBytecode="26" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="43418685d95b6cc9213210fea99a8c38" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable bb of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="bb"> <Message>Value bb</Message> </String> <Type descriptor="Ljava/lang/Byte;"> <SourceLine classname="java.lang.Byte" start="44" end="498" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"> <Message>At Byte.java:[lines 44-498]</Message> </SourceLine> <Message>Type Byte</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="8" end="8" startBytecode="38" endBytecode="38" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="11da9394526b28c7a019dd35de260732" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable c of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="c"> <Message>Value c</Message> </String> <Type descriptor="Ljava/lang/Character;"> <SourceLine classname="java.lang.Character" start="122" end="7229" sourcefile="Character.java" sourcepath="java/lang/Character.java"> <Message>At Character.java:[lines 122-7229]</Message> </SourceLine> <Message>Type Character</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="9" end="9" startBytecode="49" endBytecode="49" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="c60fba950b0d96750fa33ee46e8e582b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable cc of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="cc"> <Message>Value cc</Message> </String> <Type descriptor="Ljava/lang/Character;"> <SourceLine classname="java.lang.Character" start="122" end="7229" sourcefile="Character.java" sourcepath="java/lang/Character.java"> <Message>At Character.java:[lines 122-7229]</Message> </SourceLine> <Message>Type Character</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="10" end="10" startBytecode="63" endBytecode="63" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="313ce16aad5a9df6b2ca2d50f02ce131" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable d of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="d"> <Message>Value d</Message> </String> <Type descriptor="Ljava/lang/Double;"> <SourceLine classname="java.lang.Double" start="49" end="1053" sourcefile="Double.java" sourcepath="java/lang/Double.java"> <Message>At Double.java:[lines 49-1053]</Message> </SourceLine> <Message>Type Double</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="19" end="19" startBytecode="169" endBytecode="169" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="b7b6eaae6827c9b82ddf925a9433fb63" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable dd of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="dd"> <Message>Value dd</Message> </String> <Type descriptor="Ljava/lang/Double;"> <SourceLine classname="java.lang.Double" start="49" end="1053" sourcefile="Double.java" sourcepath="java/lang/Double.java"> <Message>At Double.java:[lines 49-1053]</Message> </SourceLine> <Message>Type Double</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="20" end="20" startBytecode="183" endBytecode="183" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="eff364a4cf1d20c529ed8f233447a140" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable f of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="f"> <Message>Value f</Message> </String> <Type descriptor="Ljava/lang/Float;"> <SourceLine classname="java.lang.Float" start="49" end="960" sourcefile="Float.java" sourcepath="java/lang/Float.java"> <Message>At Float.java:[lines 49-960]</Message> </SourceLine> <Message>Type Float</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="17" end="17" startBytecode="145" endBytecode="145" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="9c7480b4f19aa623e94b62b5eebd5476" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable ff of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="ff"> <Message>Value ff</Message> </String> <Type descriptor="Ljava/lang/Float;"> <SourceLine classname="java.lang.Float" start="49" end="960" sourcefile="Float.java" sourcepath="java/lang/Float.java"> <Message>At Float.java:[lines 49-960]</Message> </SourceLine> <Message>Type Float</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="18" end="18" startBytecode="159" endBytecode="159" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="8cece84b7859b7c2b2ca66edb3b7a805" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable i of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="i"> <Message>Value i</Message> </String> <Type descriptor="Ljava/lang/Integer;"> <SourceLine classname="java.lang.Integer" start="52" end="1590" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"> <Message>At Integer.java:[lines 52-1590]</Message> </SourceLine> <Message>Type Integer</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="13" end="13" startBytecode="97" endBytecode="97" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="6c2f4c6b8e1fccd5cc79ecfb8f7202f7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable ii of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="ii"> <Message>Value ii</Message> </String> <Type descriptor="Ljava/lang/Integer;"> <SourceLine classname="java.lang.Integer" start="52" end="1590" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"> <Message>At Integer.java:[lines 52-1590]</Message> </SourceLine> <Message>Type Integer</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="14" end="14" startBytecode="111" endBytecode="111" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="8f1586f7423d56b887eb7724487be100" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable l of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="l"> <Message>Value l</Message> </String> <Type descriptor="Ljava/lang/Long;"> <SourceLine classname="java.lang.Long" start="54" end="1615" sourcefile="Long.java" sourcepath="java/lang/Long.java"> <Message>At Long.java:[lines 54-1615]</Message> </SourceLine> <Message>Type Long</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="15" end="15" startBytecode="121" endBytecode="121" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="524bba3f22705dabc4e0771cac96becc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable ll of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="ll"> <Message>Value ll</Message> </String> <Type descriptor="Ljava/lang/Long;"> <SourceLine classname="java.lang.Long" start="54" end="1615" sourcefile="Long.java" sourcepath="java/lang/Long.java"> <Message>At Long.java:[lines 54-1615]</Message> </SourceLine> <Message>Type Long</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="16" end="16" startBytecode="135" endBytecode="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="3ba08990b3f6e4913913ba3232a617c5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/lang/Short;"> <SourceLine classname="java.lang.Short" start="43" end="532" sourcefile="Short.java" sourcepath="java/lang/Short.java"> <Message>At Short.java:[lines 43-532]</Message> </SourceLine> <Message>Type Short</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="11" end="11" startBytecode="73" endBytecode="73" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="ae3518100a2dd7157d482303905b2b5d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable ss of method ex.NAB_Sample.testDupCtor()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <String value="ss"> <Message>Value ss</Message> </String> <Type descriptor="Ljava/lang/Short;"> <SourceLine classname="java.lang.Short" start="43" end="532" sourcefile="Short.java" sourcepath="java/lang/Short.java"> <Message>At Short.java:[lines 43-532]</Message> </SourceLine> <Message>Type Short</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="12" end="12" startBytecode="87" endBytecode="87" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="8ead2ae8627a02ab528397fd57554784" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable b of method ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <String value="b"> <Message>Value b</Message> </String> <Type descriptor="Ljava/lang/Byte;"> <SourceLine classname="java.lang.Byte" start="44" end="498" sourcefile="Byte.java" sourcepath="java/lang/Byte.java"> <Message>At Byte.java:[lines 44-498]</Message> </SourceLine> <Message>Type Byte</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="26" end="26" startBytecode="22" endBytecode="22" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="515ba4c6322d3dbfc2c81e6b360bca8b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable c of method ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <String value="c"> <Message>Value c</Message> </String> <Type descriptor="Ljava/lang/Character;"> <SourceLine classname="java.lang.Character" start="122" end="7229" sourcefile="Character.java" sourcepath="java/lang/Character.java"> <Message>At Character.java:[lines 122-7229]</Message> </SourceLine> <Message>Type Character</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="28" end="28" startBytecode="41" endBytecode="41" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="8d0d02c7def78f7eb576713de3b2aa85" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable d of method ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <String value="d"> <Message>Value d</Message> </String> <Type descriptor="Ljava/lang/Double;"> <SourceLine classname="java.lang.Double" start="49" end="1053" sourcefile="Double.java" sourcepath="java/lang/Double.java"> <Message>At Double.java:[lines 49-1053]</Message> </SourceLine> <Message>Type Double</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="38" end="38" startBytecode="141" endBytecode="141" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="217f9b4859ebcbfef923d7bf0fcd7c0d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable f of method ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <String value="f"> <Message>Value f</Message> </String> <Type descriptor="Ljava/lang/Float;"> <SourceLine classname="java.lang.Float" start="49" end="960" sourcefile="Float.java" sourcepath="java/lang/Float.java"> <Message>At Float.java:[lines 49-960]</Message> </SourceLine> <Message>Type Float</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="36" end="36" startBytecode="121" endBytecode="121" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="754cff429dd16e2c1e01274cc69e906e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable i of method ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <String value="i"> <Message>Value i</Message> </String> <Type descriptor="Ljava/lang/Integer;"> <SourceLine classname="java.lang.Integer" start="52" end="1590" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"> <Message>At Integer.java:[lines 52-1590]</Message> </SourceLine> <Message>Type Integer</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="32" end="32" startBytecode="81" endBytecode="81" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="88fb6e80f7fa183877d8f746e43e3bd8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable l of method ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <String value="l"> <Message>Value l</Message> </String> <Type descriptor="Ljava/lang/Long;"> <SourceLine classname="java.lang.Long" start="54" end="1615" sourcefile="Long.java" sourcepath="java/lang/Long.java"> <Message>At Long.java:[lines 54-1615]</Message> </SourceLine> <Message>Type Long</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="34" end="34" startBytecode="101" endBytecode="101" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="3f7d23629563d4c5de44da81b6a42766" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.NAB_Sample.testDupValueOf()</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/lang/Short;"> <SourceLine classname="java.lang.Short" start="43" end="532" sourcefile="Short.java" sourcepath="java/lang/Short.java"> <Message>At Short.java:[lines 43-532]</Message> </SourceLine> <Message>Type Short</Message> </Type> <SourceLine classname="ex.NAB_Sample" primary="true" start="30" end="30" startBytecode="61" endBytecode="61" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="2e0491ecf537dac49e8cb30ea00592e2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxToUnbox() seems to be useless</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxToUnbox" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="71" end="85" startBytecode="0" endBytecode="326" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxToUnbox()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="85" end="85" startBytecode="158" endBytecode="158" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 85]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="ec626a97a43ac14e99debce47249340d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testBoxedCast() seems to be useless</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testBoxedCast" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="88" end="118" startBytecode="0" endBytecode="594" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testBoxedCast()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="118" end="118" startBytecode="382" endBytecode="382" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 118]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="fb58f47ef5c36168c0b6fcd2cba52321" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupCtor() seems to be useless</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupCtor" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="5" end="21" startBytecode="0" endBytecode="454" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupCtor()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="21" end="21" startBytecode="188" endBytecode="188" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="8283175a744d404f000e8a63e1ede598" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.NAB_Sample.testDupValueOf() seems to be useless</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testDupValueOf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="24" end="40" startBytecode="0" endBytecode="422" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testDupValueOf()</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="40" end="40" startBytecode="156" endBytecode="156" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" rank="17" abbrev="USBR" category="STYLE" instanceHash="c54943330c181f27fc57557f6d216247" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stores return result in local before immediately returning it</ShortMessage> <LongMessage>Method ex.NAB_Sample.testfpTernary(Integer, int[]) stores return result in local before immediately returning it</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testfpTernary" signature="(Ljava/lang/Integer;[I)Ljava/lang/Integer;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="134" end="135" startBytecode="0" endBytecode="105" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testfpTernary(Integer, int[])</Message> </Method> <SourceLine classname="ex.NAB_Sample" primary="true" start="135" end="135" startBytecode="18" endBytecode="18" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[line 135]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="34c67b84ecdb643a5b149f877d462d5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.NAB_Sample.testfpTernary(Integer, int[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.NAB_Sample" primary="true"> <SourceLine classname="ex.NAB_Sample" start="3" end="135" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"> <Message>At NAB_Sample.java:[lines 3-135]</Message> </SourceLine> <Message>In class ex.NAB_Sample</Message> </Class> <Method classname="ex.NAB_Sample" name="testfpTernary" signature="(Ljava/lang/Integer;[I)Ljava/lang/Integer;" isStatic="false" primary="true"> <SourceLine classname="ex.NAB_Sample" start="134" end="135" startBytecode="0" endBytecode="105" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java"/> <Message>In method ex.NAB_Sample.testfpTernary(Integer, int[])</Message> </Method> <SourceLine classname="ex.NAB_Sample" start="134" end="135" startBytecode="0" endBytecode="105" sourcefile="NAB_Sample.java" sourcepath="ex/NAB_Sample.java" synthetic="true"> <Message>At NAB_Sample.java:[lines 134-135]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="22df66b9c57dbd9be86b7eba3cb4e0cb" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.NCMU_Sample.test(Vector, Hashtable)</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="38" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <LocalVariable name="s" register="3" pc="41" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.NCMU_Sample" primary="true" start="16" end="16" startBytecode="40" endBytecode="40" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 16]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.TWO_STORES_MULTIPLE_LOADS" value="true"/> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="0" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="9" end="9" startBytecode="3" endBytecode="3" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="1" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="10" end="10" startBytecode="10" endBytecode="10" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="2" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="11" end="11" startBytecode="16" endBytecode="16" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="3" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="15" end="15" startBytecode="29" endBytecode="29" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="4" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="16" end="16" startBytecode="34" endBytecode="34" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="5" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="17" end="17" startBytecode="45" endBytecode="45" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="6" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="18" end="18" startBytecode="49" endBytecode="49" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="7" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="19" end="19" startBytecode="55" endBytecode="55" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="8" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="20" end="20" startBytecode="61" endBytecode="61" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="NCMU_NON_COLLECTION_METHOD_USE" priority="2" rank="17" abbrev="NCMU" category="STYLE" instanceHash="25f8e72947732bb699c936288683b296" instanceOccurrenceNum="9" instanceOccurrenceMax="9"> <ShortMessage>Method uses old non collections interface methods</ShortMessage> <LongMessage>Method ex.NCMU_Sample.test(Vector, Hashtable) uses old non collections interface methods</LongMessage> <Class classname="ex.NCMU_Sample" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="7" end="23" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.NCMU_Sample</Message> </Class> <Method classname="ex.NCMU_Sample" name="test" signature="(Ljava/util/Vector;Ljava/util/Hashtable;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCMU_Sample" start="9" end="23" startBytecode="0" endBytecode="206" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"/> <Message>In method ex.NCMU_Sample.test(Vector, Hashtable)</Message> </Method> <SourceLine classname="ex.NCMU_Sample" primary="true" start="21" end="21" startBytecode="68" endBytecode="68" sourcefile="NCMU_Sample.java" sourcepath="ex/NCMU_Sample.java"> <Message>At NCMU_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="NCS_NEEDLESS_CUSTOM_SERIALIZATION" priority="2" rank="7" abbrev="NCS" category="CORRECTNESS" instanceHash="a741a3c1dc7ec7f33c45e6f769a4c9d2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly implements what is default streaming behavior</ShortMessage> <LongMessage>Method ex.NCS_Sample.readObject(ObjectInputStream) needlessly implements what is default streaming behavior</LongMessage> <Class classname="ex.NCS_Sample" primary="true"> <SourceLine classname="ex.NCS_Sample" start="8" end="15" sourcefile="NCS_Sample.java" sourcepath="ex/NCS_Sample.java"> <Message>At NCS_Sample.java:[lines 8-15]</Message> </SourceLine> <Message>In class ex.NCS_Sample</Message> </Class> <Method classname="ex.NCS_Sample" name="readObject" signature="(Ljava/io/ObjectInputStream;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCS_Sample" start="14" end="15" startBytecode="0" endBytecode="60" sourcefile="NCS_Sample.java" sourcepath="ex/NCS_Sample.java"/> <Message>In method ex.NCS_Sample.readObject(ObjectInputStream)</Message> </Method> <SourceLine classname="ex.NCS_Sample" primary="true" start="14" end="14" startBytecode="1" endBytecode="1" sourcefile="NCS_Sample.java" sourcepath="ex/NCS_Sample.java"> <Message>At NCS_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="NCS_NEEDLESS_CUSTOM_SERIALIZATION" priority="2" rank="7" abbrev="NCS" category="CORRECTNESS" instanceHash="ada662a0d65560a91dfd546a9b4e26" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly implements what is default streaming behavior</ShortMessage> <LongMessage>Method ex.NCS_Sample.writeObject(ObjectOutputStream) needlessly implements what is default streaming behavior</LongMessage> <Class classname="ex.NCS_Sample" primary="true"> <SourceLine classname="ex.NCS_Sample" start="8" end="15" sourcefile="NCS_Sample.java" sourcepath="ex/NCS_Sample.java"> <Message>At NCS_Sample.java:[lines 8-15]</Message> </SourceLine> <Message>In class ex.NCS_Sample</Message> </Class> <Method classname="ex.NCS_Sample" name="writeObject" signature="(Ljava/io/ObjectOutputStream;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NCS_Sample" start="10" end="11" startBytecode="0" endBytecode="60" sourcefile="NCS_Sample.java" sourcepath="ex/NCS_Sample.java"/> <Message>In method ex.NCS_Sample.writeObject(ObjectOutputStream)</Message> </Method> <SourceLine classname="ex.NCS_Sample" primary="true" start="10" end="10" startBytecode="1" endBytecode="1" sourcefile="NCS_Sample.java" sourcepath="ex/NCS_Sample.java"> <Message>At NCS_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="ea29b28c753dc39c05c6d3b881103e57" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.NCS_Sample is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.NCS_Sample" primary="true"> <SourceLine classname="ex.NCS_Sample" start="8" end="15" sourcefile="NCS_Sample.java" sourcepath="ex/NCS_Sample.java"> <Message>At NCS_Sample.java:[lines 8-15]</Message> </SourceLine> <Message>In class ex.NCS_Sample</Message> </Class> <SourceLine classname="ex.NCS_Sample" start="8" end="15" sourcefile="NCS_Sample.java" sourcepath="ex/NCS_Sample.java" synthetic="true"> <Message>At NCS_Sample.java:[lines 8-15]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="74bd748645f6646bc1d381aa19728e59" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.NFF_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.NFF_Sample" primary="true"> <SourceLine classname="ex.NFF_Sample" start="6" end="10" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>At NFF_Sample.java:[lines 6-10]</Message> </SourceLine> <Message>In class ex.NFF_Sample</Message> </Class> <Field classname="ex.NFF_Sample" name="s" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.NFF_Sample" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>In NFF_Sample.java</Message> </SourceLine> <Message>Field ex.NFF_Sample.s</Message> </Field> <SourceLine classname="ex.NFF_Sample" primary="true" start="10" end="10" startBytecode="12" endBytecode="12" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>At NFF_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="3b474094cd09a5ef30af0706a31512e4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.NFF_Sample does not implement a toString method</LongMessage> <Class classname="ex.NFF_Sample" primary="true"> <SourceLine classname="ex.NFF_Sample" start="6" end="10" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>At NFF_Sample.java:[lines 6-10]</Message> </SourceLine> <Message>In class ex.NFF_Sample</Message> </Class> <SourceLine classname="ex.NFF_Sample" start="6" end="10" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java" synthetic="true"> <Message>At NFF_Sample.java:[lines 6-10]</Message> </SourceLine> </BugInstance> <BugInstance type="NFF_NON_FUNCTIONAL_FIELD" priority="2" rank="9" abbrev="NFF" category="CORRECTNESS" instanceHash="63c9d2cac9a753a2843bb07d73961078" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Serializable class defines a final transient field</ShortMessage> <LongMessage>Serializable class ex.NFF_Sample defines a final transient field</LongMessage> <Class classname="ex.NFF_Sample" primary="true"> <SourceLine classname="ex.NFF_Sample" start="6" end="10" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>At NFF_Sample.java:[lines 6-10]</Message> </SourceLine> <Message>In class ex.NFF_Sample</Message> </Class> <Field classname="ex.NFF_Sample" name="s" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.NFF_Sample" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>In NFF_Sample.java</Message> </SourceLine> <Message>Field ex.NFF_Sample.s</Message> </Field> <SourceLine classname="ex.NFF_Sample" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java" synthetic="true"> <Message>In NFF_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SE_TRANSIENT_FIELD_NOT_RESTORED" priority="2" rank="16" abbrev="Se" category="BAD_PRACTICE" instanceHash="474abd34b36271ca961f424c664edebc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Transient field that isn't set by deserialization. </ShortMessage> <LongMessage>The field ex.NFF_Sample.s is transient but isn't set by deserialization</LongMessage> <Class classname="ex.NFF_Sample" primary="true"> <SourceLine classname="ex.NFF_Sample" start="6" end="10" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>At NFF_Sample.java:[lines 6-10]</Message> </SourceLine> <Message>In class ex.NFF_Sample</Message> </Class> <Field classname="ex.NFF_Sample" name="s" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.NFF_Sample" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>In NFF_Sample.java</Message> </SourceLine> <Message>Field ex.NFF_Sample.s</Message> </Field> <SourceLine classname="ex.NFF_Sample" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java" synthetic="true"> <Message>In NFF_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="8358c2465425fbb7771f44e3fc814fbe" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.NFF_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.NFF_Sample" primary="true"> <SourceLine classname="ex.NFF_Sample" start="6" end="10" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>At NFF_Sample.java:[lines 6-10]</Message> </SourceLine> <Message>In class ex.NFF_Sample</Message> </Class> <Field classname="ex.NFF_Sample" name="s" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.NFF_Sample" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java"> <Message>In NFF_Sample.java</Message> </SourceLine> <Message>Field ex.NFF_Sample.s</Message> </Field> <SourceLine classname="ex.NFF_Sample" sourcefile="NFF_Sample.java" sourcepath="ex/NFF_Sample.java" synthetic="true"> <Message>In NFF_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="NIR_NEEDLESS_INSTANCE_RETRIEVAL" priority="2" rank="20" abbrev="NIR" category="PERFORMANCE" instanceHash="e4d6f5d63ae8eb0120041cc805fd333f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method retrieves instance to load static member</ShortMessage> <LongMessage>Method ex.NIR_Sample.test3() retrieves instance to load static member</LongMessage> <Class classname="ex.NIR_Sample" primary="true"> <SourceLine classname="ex.NIR_Sample" start="7" end="35" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[lines 7-35]</Message> </SourceLine> <Message>In class ex.NIR_Sample</Message> </Class> <Method classname="ex.NIR_Sample" name="test3" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NIR_Sample" start="23" end="24" startBytecode="0" endBytecode="54" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"/> <Message>In method ex.NIR_Sample.test3()</Message> </Method> <SourceLine classname="ex.NIR_Sample" primary="true" start="23" end="23" startBytecode="5" endBytecode="5" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="704ee8b80f093785b35971214c219c1e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.NIR_Sample.staticMethod() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.NIR_Sample" primary="true"> <SourceLine classname="ex.NIR_Sample" start="7" end="35" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[lines 7-35]</Message> </SourceLine> <Message>In class ex.NIR_Sample</Message> </Class> <Method classname="ex.NIR_Sample" name="staticMethod" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.NIR_Sample" start="35" end="35" startBytecode="0" endBytecode="32" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"/> <Message>In method ex.NIR_Sample.staticMethod()</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.NIR_Sample" start="35" end="35" startBytecode="0" endBytecode="32" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java" synthetic="true"> <Message>At NIR_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NON_TRANSLATABLE_STRING" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="582ace4d1b0f261346607be4439befe8" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method passes constant string to title/label of component</ShortMessage> <LongMessage>Method ex.NIR_Sample.fpStacked() passes constant string to title/label of component</LongMessage> <Class classname="ex.NIR_Sample" primary="true"> <SourceLine classname="ex.NIR_Sample" start="7" end="35" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[lines 7-35]</Message> </SourceLine> <Message>In class ex.NIR_Sample</Message> </Class> <Method classname="ex.NIR_Sample" name="fpStacked" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NIR_Sample" start="27" end="32" startBytecode="0" endBytecode="132" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"/> <Message>In method ex.NIR_Sample.fpStacked()</Message> </Method> <SourceLine classname="ex.NIR_Sample" primary="true" start="27" end="27" startBytecode="6" endBytecode="6" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NON_TRANSLATABLE_STRING" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="582ace4d1b0f261346607be4439befe8" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method passes constant string to title/label of component</ShortMessage> <LongMessage>Method ex.NIR_Sample.fpStacked() passes constant string to title/label of component</LongMessage> <Class classname="ex.NIR_Sample" primary="true"> <SourceLine classname="ex.NIR_Sample" start="7" end="35" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[lines 7-35]</Message> </SourceLine> <Message>In class ex.NIR_Sample</Message> </Class> <Method classname="ex.NIR_Sample" name="fpStacked" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NIR_Sample" start="27" end="32" startBytecode="0" endBytecode="132" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"/> <Message>In method ex.NIR_Sample.fpStacked()</Message> </Method> <SourceLine classname="ex.NIR_Sample" primary="true" start="28" end="28" startBytecode="16" endBytecode="16" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="SMII_STATIC_METHOD_INSTANCE_INVOCATION" priority="2" rank="17" abbrev="SMII" category="STYLE" instanceHash="ac442503350dbf1670acdabafb1ee7db" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls static method on instance reference</ShortMessage> <LongMessage>Method ex.NIR_Sample.test3() calls static method on instance reference</LongMessage> <Class classname="ex.NIR_Sample" primary="true"> <SourceLine classname="ex.NIR_Sample" start="7" end="35" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[lines 7-35]</Message> </SourceLine> <Message>In class ex.NIR_Sample</Message> </Class> <Method classname="ex.NIR_Sample" name="test3" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NIR_Sample" start="23" end="24" startBytecode="0" endBytecode="54" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"/> <Message>In method ex.NIR_Sample.test3()</Message> </Method> <SourceLine classname="ex.NIR_Sample" primary="true" start="23" end="23" startBytecode="5" endBytecode="5" sourcefile="NIR_Sample.java" sourcepath="ex/NIR_Sample.java"> <Message>At NIR_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="c627cbc1339b00c503bb0c4eac269ab9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.NMCS_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.NMCS_Sample" primary="true"> <SourceLine classname="ex.NMCS_Sample" start="9" end="49" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"> <Message>At NMCS_Sample.java:[lines 9-49]</Message> </SourceLine> <Message>In class ex.NMCS_Sample</Message> </Class> <Field classname="ex.NMCS_Sample" name="test2" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.NMCS_Sample" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"> <Message>In NMCS_Sample.java</Message> </SourceLine> <Message>Field ex.NMCS_Sample.test2</Message> </Field> <SourceLine classname="ex.NMCS_Sample" primary="true" start="18" end="18" startBytecode="12" endBytecode="12" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"> <Message>At NMCS_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="91e5bad193727c2397ee270f44949aba" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.NMCS_Sample does not implement a toString method</LongMessage> <Class classname="ex.NMCS_Sample" primary="true"> <SourceLine classname="ex.NMCS_Sample" start="9" end="49" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"> <Message>At NMCS_Sample.java:[lines 9-49]</Message> </SourceLine> <Message>In class ex.NMCS_Sample</Message> </Class> <SourceLine classname="ex.NMCS_Sample" start="9" end="49" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java" synthetic="true"> <Message>At NMCS_Sample.java:[lines 9-49]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="893f5a62dcf962ed090654770994fe07" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.NMCS_Sample.test1() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.NMCS_Sample" primary="true"> <SourceLine classname="ex.NMCS_Sample" start="9" end="49" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"> <Message>At NMCS_Sample.java:[lines 9-49]</Message> </SourceLine> <Message>In class ex.NMCS_Sample</Message> </Class> <Method classname="ex.NMCS_Sample" name="test1" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NMCS_Sample" start="25" end="33" startBytecode="0" endBytecode="193" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"/> <Message>In method ex.NMCS_Sample.test1()</Message> </Method> <SourceLine classname="ex.NMCS_Sample" primary="true" start="25" end="25" startBytecode="7" endBytecode="7" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"> <Message>At NMCS_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="NMCS_NEEDLESS_MEMBER_COLLECTION_SYNCHRONIZATION" priority="2" rank="18" abbrev="NMCS" category="PERFORMANCE" instanceHash="de7ac6c285481fad31fe9aec9cfae760" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines unneeded synchronization on member collection</ShortMessage> <LongMessage>Class ex.NMCS_Sample defines unneeded synchronization on member collection</LongMessage> <Class classname="ex.NMCS_Sample" primary="true"> <SourceLine classname="ex.NMCS_Sample" start="9" end="49" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"> <Message>At NMCS_Sample.java:[lines 9-49]</Message> </SourceLine> <Message>In class ex.NMCS_Sample</Message> </Class> <Field classname="ex.NMCS_Sample" name="test1" signature="Ljava/util/List;" isStatic="true" primary="true"> <SourceLine classname="ex.NMCS_Sample" start="10" end="10" startBytecode="7" endBytecode="7" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java"> <Message>At NMCS_Sample.java:[line 10]</Message> </SourceLine> <Message>Field ex.NMCS_Sample.test1</Message> </Field> <SourceLine classname="ex.NMCS_Sample" start="10" end="10" startBytecode="7" endBytecode="7" sourcefile="NMCS_Sample.java" sourcepath="ex/NMCS_Sample.java" synthetic="true"> <Message>At NMCS_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="66c12264d6ceb72359b46338b6ed0619" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.NOS_Sample does not implement a toString method</LongMessage> <Class classname="ex.NOS_Sample" primary="true"> <SourceLine classname="ex.NOS_Sample" start="5" end="29" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[lines 5-29]</Message> </SourceLine> <Message>In class ex.NOS_Sample</Message> </Class> <SourceLine classname="ex.NOS_Sample" start="5" end="29" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java" synthetic="true"> <Message>At NOS_Sample.java:[lines 5-29]</Message> </SourceLine> </BugInstance> <BugInstance type="NOS_NON_OWNED_SYNCHRONIZATION" priority="2" rank="17" abbrev="NOS" category="STYLE" instanceHash="c79cfd3faa43cc55510713b5ea1292bd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses non owned variables to synchronize on</ShortMessage> <LongMessage>Class ex.NOS_Sample uses non owned variables to synchronize on</LongMessage> <Class classname="ex.NOS_Sample" primary="true"> <SourceLine classname="ex.NOS_Sample" start="5" end="29" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[lines 5-29]</Message> </SourceLine> <Message>In class ex.NOS_Sample</Message> </Class> <Method classname="ex.NOS_Sample" name="test" signature="(Ljava/lang/Object;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NOS_Sample" start="9" end="9" startBytecode="0" endBytecode="116" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"/> <Message>In method ex.NOS_Sample.test(Object)</Message> </Method> <SourceLine classname="ex.NOS_Sample" primary="true" start="9" end="9" startBytecode="3" endBytecode="3" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="NOS_NON_OWNED_SYNCHRONIZATION" priority="2" rank="17" abbrev="NOS" category="STYLE" instanceHash="7cf4c50237063d863eabdf9fdbaf9448" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses non owned variables to synchronize on</ShortMessage> <LongMessage>Class ex.NOS_Sample uses non owned variables to synchronize on</LongMessage> <Class classname="ex.NOS_Sample" primary="true"> <SourceLine classname="ex.NOS_Sample" start="5" end="29" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[lines 5-29]</Message> </SourceLine> <Message>In class ex.NOS_Sample</Message> </Class> <Method classname="ex.NOS_Sample" name="test3" signature="(Ljava/util/Map;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NOS_Sample" start="21" end="22" startBytecode="0" endBytecode="147" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"/> <Message>In method ex.NOS_Sample.test3(Map)</Message> </Method> <SourceLine classname="ex.NOS_Sample" primary="true" start="22" end="22" startBytecode="15" endBytecode="15" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="NOS_NON_OWNED_SYNCHRONIZATION" priority="3" rank="20" abbrev="NOS" category="STYLE" instanceHash="37d8f555f35eb17f44c7dcf7379ea17" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses non owned variables to synchronize on</ShortMessage> <LongMessage>Class ex.NOS_Sample uses non owned variables to synchronize on</LongMessage> <Class classname="ex.NOS_Sample" primary="true"> <SourceLine classname="ex.NOS_Sample" start="5" end="29" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[lines 5-29]</Message> </SourceLine> <Message>In class ex.NOS_Sample</Message> </Class> <Method classname="ex.NOS_Sample" name="test2" signature="(Ljava/lang/Object;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NOS_Sample" start="15" end="15" startBytecode="0" endBytecode="116" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"/> <Message>In method ex.NOS_Sample.test2(Object)</Message> </Method> <SourceLine classname="ex.NOS_Sample" primary="true" start="15" end="15" startBytecode="3" endBytecode="3" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_STRING_PARSING_A_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="c2a98b40ea027f187b81dcb5669b8ddc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method parses a String that is a field</ShortMessage> <LongMessage>This method ex.NOS_Sample.test3(Map) parses a String that is a field</LongMessage> <Class classname="ex.NOS_Sample" primary="true"> <SourceLine classname="ex.NOS_Sample" start="5" end="29" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[lines 5-29]</Message> </SourceLine> <Message>In class ex.NOS_Sample</Message> </Class> <Method classname="ex.NOS_Sample" name="test3" signature="(Ljava/util/Map;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NOS_Sample" start="21" end="22" startBytecode="0" endBytecode="147" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"/> <Message>In method ex.NOS_Sample.test3(Map)</Message> </Method> <SourceLine classname="ex.NOS_Sample" primary="true" start="23" end="23" startBytecode="19" endBytecode="19" sourcefile="NOS_Sample.java" sourcepath="ex/NOS_Sample.java"> <Message>At NOS_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="634fc036c3d214f25f7abe3044f1c1ca" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.NPMC_Sample.clone() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="clone" signature="()Lex/NPMC_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="35" end="39" startBytecode="0" endBytecode="99" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.clone()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" start="35" end="39" startBytecode="0" endBytecode="99" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java" synthetic="true"> <Message>At NPMC_Sample.java:[lines 35-39]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="634fc036c3d214f25f7abe3044f1c1ca" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.NPMC_Sample.clone() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="clone" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="1" startBytecode="0" endBytecode="36" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.clone()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" start="1" end="1" startBytecode="0" endBytecode="36" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java" synthetic="true"> <Message>At NPMC_Sample.java:[line 1]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="29dab3b8bc66f3b8720b948fce3b3f4e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testToArrayList() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testToArrayList" signature="()[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="44" end="49" startBytecode="0" endBytecode="137" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testToArrayList()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" start="44" end="49" startBytecode="0" endBytecode="137" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java" synthetic="true"> <Message>At NPMC_Sample.java:[lines 44-49]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="8b148500aaf8546e5fc09d6ca562511d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.NPMC_Sample.clone() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="clone" signature="()Lex/NPMC_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="35" end="39" startBytecode="0" endBytecode="99" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.clone()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="39" end="39" startBytecode="15" endBytecode="15" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="877550c609ef09a007c2db38a2d3d25d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testEquals(Object) ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testEquals" signature="(Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="25" end="26" startBytecode="0" endBytecode="62" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testEquals(Object)</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="25" end="25" startBytecode="5" endBytecode="5" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 25]</Message> </SourceLine> <String value="java/lang/Object@equals(Ljava/lang/Object;)Z"> <Message>Value java/lang/Object@equals(Ljava/lang/Object;)Z</Message> </String> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="7dcdff18726dd6a663957ed8786a0762" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testHashCode() ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testHashCode" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="29" end="30" startBytecode="0" endBytecode="51" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testHashCode()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="29" end="29" startBytecode="4" endBytecode="4" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 29]</Message> </SourceLine> <String value="java/lang/Object@hashCode()I"> <Message>Value java/lang/Object@hashCode()I</Message> </String> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="ca4c9bfca6c91f5ae2f4ea1da6100ea6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testToArrayList() ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testToArrayList" signature="()[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="44" end="49" startBytecode="0" endBytecode="137" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testToArrayList()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="45" end="45" startBytecode="14" endBytecode="14" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 45]</Message> </SourceLine> <String value="java/util/List@toArray()[Ljava/lang/Object;"> <Message>Value java/util/List@toArray()[Ljava/lang/Object;</Message> </String> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="5d6749277b014cd11e8469c7c9f9fa94" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testToArrayList() ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testToArrayList" signature="()[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="44" end="49" startBytecode="0" endBytecode="137" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testToArrayList()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="47" end="47" startBytecode="29" endBytecode="29" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 47]</Message> </SourceLine> <String value="java/util/Set@toArray()[Ljava/lang/Object;"> <Message>Value java/util/Set@toArray()[Ljava/lang/Object;</Message> </String> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="a9cd06bac63a1993730f2b87412782b7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testToString() ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testToString" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="9" end="11" startBytecode="0" endBytecode="83" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testToString()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="10" end="10" startBytecode="22" endBytecode="22" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 10]</Message> </SourceLine> <String value="java/lang/StringBuilder@toString()Ljava/lang/String;"> <Message>Value java/lang/StringBuilder@toString()Ljava/lang/String;</Message> </String> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="eeb46cb682c3adbfb378332e61f1597c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testXValue() ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testXValue" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="14" end="22" startBytecode="0" endBytecode="161" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testXValue()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="15" end="15" startBytecode="9" endBytecode="9" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 15]</Message> </SourceLine> <String value="java/lang/Integer@intValue()I"> <Message>Value java/lang/Integer@intValue()I</Message> </String> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="1fff3a41db64cddfde275ccfc5b53191" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testXValue() ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testXValue" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="14" end="22" startBytecode="0" endBytecode="161" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testXValue()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="17" end="17" startBytecode="21" endBytecode="21" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 17]</Message> </SourceLine> <String value="java/lang/Long@longValue()J"> <Message>Value java/lang/Long@longValue()J</Message> </String> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="4efc9944ff04da565471490c4a844205" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testXValue() ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testXValue" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="14" end="22" startBytecode="0" endBytecode="161" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testXValue()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="19" end="19" startBytecode="33" endBytecode="33" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 19]</Message> </SourceLine> <String value="java/lang/Double@doubleValue()D"> <Message>Value java/lang/Double@doubleValue()D</Message> </String> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="804f3ca8d51c108436bceaafe3f8cf4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.NPMC_Sample.testXValue() ignores return value of a non mutating method</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testXValue" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="14" end="22" startBytecode="0" endBytecode="161" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testXValue()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="21" end="21" startBytecode="46" endBytecode="46" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 21]</Message> </SourceLine> <String value="java/lang/Float@doubleValue()D"> <Message>Value java/lang/Float@doubleValue()D</Message> </String> </BugInstance> <BugInstance type="NP_CLONE_COULD_RETURN_NULL" priority="2" rank="14" abbrev="NP" category="BAD_PRACTICE" instanceHash="8d44c5e8fb8b4ffc140e5216060fa4" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Clone method may return null</ShortMessage> <LongMessage>ex.NPMC_Sample.clone() may return null</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="clone" signature="()Lex/NPMC_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="35" end="39" startBytecode="0" endBytecode="99" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.clone()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="37" end="37" startBytecode="6" endBytecode="6" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="PZLA_PREFER_ZERO_LENGTH_ARRAYS" priority="3" rank="20" abbrev="PZLA" category="STYLE" instanceHash="8c6effea252efa19bbac62d64fd9f34b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Consider returning a zero length array rather than null</ShortMessage> <LongMessage>Should ex.NPMC_Sample.testToArrayList() return a zero length array rather than null?</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testToArrayList" signature="()[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="44" end="49" startBytecode="0" endBytecode="137" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testToArrayList()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="49" end="49" startBytecode="31" endBytecode="31" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED" priority="3" rank="8" abbrev="RV" category="CORRECTNESS" instanceHash="9f94200321304fabb23ac61170f03de7" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Method ignores return value</ShortMessage> <LongMessage>Return value of Object.equals(Object) ignored in ex.NPMC_Sample.testEquals(Object)</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testEquals" signature="(Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="25" end="26" startBytecode="0" endBytecode="62" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testEquals(Object)</Message> </Method> <Method classname="java.lang.Object" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="149" end="149" startBytecode="0" endBytecode="45" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.equals(Object)</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="25" end="25" startBytecode="2" endBytecode="2" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED" priority="3" rank="8" abbrev="RV" category="CORRECTNESS" instanceHash="8d044962b4a0afe93ff6873f989fe4c5" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Method ignores return value</ShortMessage> <LongMessage>Return value of StringBuilder.toString() ignored in ex.NPMC_Sample.testToString()</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testToString" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="9" end="11" startBytecode="0" endBytecode="83" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testToString()</Message> </Method> <Method classname="java.lang.StringBuilder" name="toString" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.StringBuilder" start="407" end="407" startBytecode="0" endBytecode="40" sourcefile="StringBuilder.java" sourcepath="java/lang/StringBuilder.java"/> <Message>Called method StringBuilder.toString()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="10" end="10" startBytecode="19" endBytecode="19" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="49d3ead7a3c2663f5acaa63fb50c74ed" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of java.util.List.toArray() ignored, but method has no side effect</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testToArrayList" signature="()[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="44" end="49" startBytecode="0" endBytecode="137" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testToArrayList()</Message> </Method> <Method classname="java.util.List" name="toArray" signature="()[Ljava/lang/Object;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.List" sourcefile="List.java" sourcepath="java/util/List.java"/> <Message>Called method java.util.List.toArray()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="45" end="45" startBytecode="9" endBytecode="9" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="898ac55809737d22cd5ebff55cdcee9d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of java.util.Set.toArray() ignored, but method has no side effect</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testToArrayList" signature="()[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="44" end="49" startBytecode="0" endBytecode="137" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testToArrayList()</Message> </Method> <Method classname="java.util.Set" name="toArray" signature="()[Ljava/lang/Object;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Set" sourcefile="Set.java" sourcepath="java/util/Set.java"/> <Message>Called method java.util.Set.toArray()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="47" end="47" startBytecode="24" endBytecode="24" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="d36ceca9ce0fdd02541cd6b3cb27b64f" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of Double.doubleValue() ignored, but method has no side effect</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testXValue" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="14" end="22" startBytecode="0" endBytecode="161" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testXValue()</Message> </Method> <Method classname="java.lang.Double" name="doubleValue" signature="()D" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Double" start="716" end="716" startBytecode="0" endBytecode="28" sourcefile="Double.java" sourcepath="java/lang/Double.java"/> <Message>Called method Double.doubleValue()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="19" end="19" startBytecode="30" endBytecode="30" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="aed64f3e948c2e8805ec9e3a0887eeec" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of Float.doubleValue() ignored, but method has no side effect</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testXValue" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="14" end="22" startBytecode="0" endBytecode="161" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testXValue()</Message> </Method> <Method classname="java.lang.Float" name="doubleValue" signature="()D" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Float" start="638" end="638" startBytecode="0" endBytecode="29" sourcefile="Float.java" sourcepath="java/lang/Float.java"/> <Message>Called method Float.doubleValue()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="21" end="21" startBytecode="43" endBytecode="43" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="b195b8d4c9a68aa50a861758e2ddf7a" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of Integer.intValue() ignored, but method has no side effect</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testXValue" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="14" end="22" startBytecode="0" endBytecode="161" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testXValue()</Message> </Method> <Method classname="java.lang.Integer" name="intValue" signature="()I" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="893" end="893" startBytecode="0" endBytecode="28" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method Integer.intValue()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="15" end="15" startBytecode="6" endBytecode="6" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="c6383e32f7d352befe7d961eee92cde0" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of Long.longValue() ignored, but method has no side effect</LongMessage> <Class classname="ex.NPMC_Sample" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="1" end="49" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[lines 1-49]</Message> </SourceLine> <Message>In class ex.NPMC_Sample</Message> </Class> <Method classname="ex.NPMC_Sample" name="testXValue" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.NPMC_Sample" start="14" end="22" startBytecode="0" endBytecode="161" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"/> <Message>In method ex.NPMC_Sample.testXValue()</Message> </Method> <Method classname="java.lang.Long" name="longValue" signature="()J" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Long" start="1000" end="1000" startBytecode="0" endBytecode="28" sourcefile="Long.java" sourcepath="java/lang/Long.java"/> <Message>Called method Long.longValue()</Message> </Method> <SourceLine classname="ex.NPMC_Sample" primary="true" start="17" end="17" startBytecode="18" endBytecode="18" sourcefile="NPMC_Sample.java" sourcepath="ex/NPMC_Sample.java"> <Message>At NPMC_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="COM_COPIED_OVERRIDDEN_METHOD" priority="2" rank="17" abbrev="COM" category="STYLE" instanceHash="7bf46cbe947eef97939674b2a7e6c887" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method is implemented with an exact copy of its superclass's method</ShortMessage> <LongMessage>Method ex.NRTL_Sample.doEndTag() is implemented with an exact copy of its superclass's method</LongMessage> <Class classname="ex.NRTL_Sample" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> <Message>In class ex.NRTL_Sample</Message> </Class> <Method classname="ex.NRTL_Sample" name="doEndTag" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="33" end="33" startBytecode="0" endBytecode="44" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"/> <Message>In method ex.NRTL_Sample.doEndTag()</Message> </Method> <SourceLine classname="ex.NRTL_Sample" primary="true" start="33" end="33" startBytecode="1" endBytecode="1" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="ccaee90009b964c520404a1d370938f0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.NRTL_Sample does not implement a toString method</LongMessage> <Class classname="ex.NRTL_Sample" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> <Message>In class ex.NRTL_Sample</Message> </Class> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java" synthetic="true"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="49d2a4467c0932f0039ad3b87b23878" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.NRTL_Sample.doStartTag() throws alternative exception from catch block without history</LongMessage> <Class classname="ex.NRTL_Sample" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> <Message>In class ex.NRTL_Sample</Message> </Class> <Method classname="ex.NRTL_Sample" name="doStartTag" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="18" end="24" startBytecode="0" endBytecode="198" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"/> <Message>In method ex.NRTL_Sample.doStartTag()</Message> </Method> <SourceLine classname="ex.NRTL_Sample" primary="true" start="22" end="22" startBytecode="101" endBytecode="101" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="NRTL_NON_RECYCLEABLE_TAG_LIB" priority="2" rank="7" abbrev="NRTL" category="CORRECTNESS" instanceHash="6aa4176311812aa5047a9494d6e70c36" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Tag library is not recycleable</ShortMessage> <LongMessage>Tag library ex.NRTL_Sample is not recycleable</LongMessage> <Class classname="ex.NRTL_Sample" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> <Message>In class ex.NRTL_Sample</Message> </Class> <Field classname="ex.NRTL_Sample" name="sample" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NRTL_Sample" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>In NRTL_Sample.java</Message> </SourceLine> <Message>Field ex.NRTL_Sample.sample</Message> </Field> <SourceLine classname="ex.NRTL_Sample" primary="true" start="18" end="18" startBytecode="25" endBytecode="25" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="NRTL_NON_RECYCLEABLE_TAG_LIB" priority="2" rank="7" abbrev="NRTL" category="CORRECTNESS" instanceHash="8cbe3be25fb062b90af9beaa4b569b51" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Tag library is not recycleable</ShortMessage> <LongMessage>Tag library ex.NRTL_Sample is not recycleable</LongMessage> <Class classname="ex.NRTL_Sample" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> <Message>In class ex.NRTL_Sample</Message> </Class> <Field classname="ex.NRTL_Sample" name="sample2" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.NRTL_Sample" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>In NRTL_Sample.java</Message> </SourceLine> <Message>Field ex.NRTL_Sample.sample2</Message> </Field> <SourceLine classname="ex.NRTL_Sample" primary="true" start="19" end="19" startBytecode="54" endBytecode="54" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="4394e1d1dd92e985407db9f4ee46dcea" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.NRTL_Sample is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.NRTL_Sample" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> <Message>In class ex.NRTL_Sample</Message> </Class> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java" synthetic="true"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_TOSTRING_STORED_IN_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="84bb225278652cf65f8cdb3f6c107197" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method stores the value of a toString() call into a field</ShortMessage> <LongMessage>This method ex.NRTL_Sample stores the value of a toString() call into a field</LongMessage> <Class classname="ex.NRTL_Sample" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="7" end="33" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[lines 7-33]</Message> </SourceLine> <Message>In class ex.NRTL_Sample</Message> </Class> <Method classname="ex.NRTL_Sample" name="doStartTag" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.NRTL_Sample" start="18" end="24" startBytecode="0" endBytecode="198" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"/> <Message>In method ex.NRTL_Sample.doStartTag()</Message> </Method> <SourceLine classname="ex.NRTL_Sample" primary="true" start="18" end="18" startBytecode="25" endBytecode="25" sourcefile="NRTL_Sample.java" sourcepath="ex/NRTL_Sample.java"> <Message>At NRTL_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC" priority="2" rank="8" abbrev="Eq" category="CORRECTNESS" instanceHash="2bdb5f47559e3b27ce79ceb82b90ff0b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>equals method overrides equals in superclass and may not be symmetric</ShortMessage> <LongMessage>ex.NSE_Sample$Child overrides equals in NSE_Sample$Parent and may not be symmetric</LongMessage> <Class classname="ex.NSE_Sample$Child" primary="true"> <SourceLine classname="ex.NSE_Sample$Child" start="46" end="55" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 46-55]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Child</Message> </Class> <Method classname="ex.NSE_Sample$Child" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Child" start="51" end="55" startBytecode="0" endBytecode="96" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$Child.equals(Object)</Message> </Method> <Method classname="ex.NSE_Sample$Parent" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" role="METHOD_OVERRIDDEN"> <SourceLine classname="ex.NSE_Sample$Parent" start="36" end="42" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>Overrides ex.NSE_Sample$Parent.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$Child" start="51" end="55" startBytecode="0" endBytecode="96" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java" synthetic="true"> <Message>At NSE_Sample.java:[lines 51-55]</Message> </SourceLine> </BugInstance> <BugInstance type="HE_EQUALS_USE_HASHCODE" priority="2" rank="16" abbrev="HE" category="BAD_PRACTICE" instanceHash="94a3b3969cc714d1e61a8d39b0276849" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines equals() and uses Object.hashCode()</ShortMessage> <LongMessage>ex.NSE_Sample$Child defines equals and uses Object.hashCode()</LongMessage> <Class classname="ex.NSE_Sample$Child" primary="true"> <SourceLine classname="ex.NSE_Sample$Child" start="46" end="55" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 46-55]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Child</Message> </Class> <Method classname="ex.NSE_Sample$Child" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Child" start="51" end="55" startBytecode="0" endBytecode="96" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$Child.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$Child" start="51" end="55" startBytecode="0" endBytecode="96" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java" synthetic="true"> <Message>At NSE_Sample.java:[lines 51-55]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="239e2ddc0fc48524acff6dd5fbc835e8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten public or protected field</ShortMessage> <LongMessage>Unwritten public or protected field: ex.NSE_Sample$Child.t</LongMessage> <Class classname="ex.NSE_Sample$Child" primary="true"> <SourceLine classname="ex.NSE_Sample$Child" start="46" end="55" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 46-55]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Child</Message> </Class> <Field classname="ex.NSE_Sample$Child" name="t" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Child" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>In NSE_Sample.java</Message> </SourceLine> <Message>Field ex.NSE_Sample$Child.t</Message> </Field> <SourceLine classname="ex.NSE_Sample$Parent" primary="true" start="39" end="39" startBytecode="40" endBytecode="40" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS" priority="1" rank="14" abbrev="Eq" category="BAD_PRACTICE" instanceHash="f71f9aea0bd1a6d05c9881f86be4f4b6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Equals checks for incompatible operand</ShortMessage> <LongMessage>ex.NSE_Sample$One.equals(Object) checks for operand being a NSE_Sample$Two </LongMessage> <Class classname="ex.NSE_Sample$One" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="3" end="14" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 3-14]</Message> </SourceLine> <Message>In class ex.NSE_Sample$One</Message> </Class> <Method classname="ex.NSE_Sample$One" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="8" end="14" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$One.equals(Object)</Message> </Method> <Type descriptor="Lex/NSE_Sample$Two;" role="TYPE_FOUND"> <SourceLine classname="ex.NSE_Sample$Two" start="18" end="27" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 18-27]</Message> </SourceLine> <Message>Actual type ex.NSE_Sample$Two</Message> </Type> <SourceLine classname="ex.NSE_Sample$One" primary="true" start="10" end="10" startBytecode="26" endBytecode="26" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 10]</Message> </SourceLine> <SourceLine classname="ex.NSE_Sample$One" start="11" end="11" startBytecode="37" endBytecode="37" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at NSE_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="HE_EQUALS_USE_HASHCODE" priority="2" rank="16" abbrev="HE" category="BAD_PRACTICE" instanceHash="109d867bb590ff0d0b03f35e3f79388f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines equals() and uses Object.hashCode()</ShortMessage> <LongMessage>ex.NSE_Sample$One defines equals and uses Object.hashCode()</LongMessage> <Class classname="ex.NSE_Sample$One" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="3" end="14" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 3-14]</Message> </SourceLine> <Message>In class ex.NSE_Sample$One</Message> </Class> <Method classname="ex.NSE_Sample$One" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="8" end="14" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$One.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$One" start="8" end="14" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java" synthetic="true"> <Message>At NSE_Sample.java:[lines 8-14]</Message> </SourceLine> </BugInstance> <BugInstance type="ITC_INHERITANCE_TYPE_CHECKING" priority="2" rank="17" abbrev="ITC" category="STYLE" instanceHash="8005ab2b7a3e6f8ae9182b268241ca21" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses instanceof on multiple types to arbitrate logic</ShortMessage> <LongMessage>Method ex.NSE_Sample$One.equals(Object) uses instanceof on multiple types to arbitrate logic</LongMessage> <Class classname="ex.NSE_Sample$One" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="3" end="14" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 3-14]</Message> </SourceLine> <Message>In class ex.NSE_Sample$One</Message> </Class> <Method classname="ex.NSE_Sample$One" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="8" end="14" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$One.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$One" primary="true" start="8" end="8" startBytecode="0" endBytecode="0" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="NSE_NON_SYMMETRIC_EQUALS" priority="2" rank="7" abbrev="NSE" category="CORRECTNESS" instanceHash="1f0bdb65bd1b07254589be2557acb63d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Equals method compares this object against other types in a non symmetric way</ShortMessage> <LongMessage>Equals method ex.NSE_Sample$One.equals(Object) compares this object against other types in a non symmetric way</LongMessage> <Class classname="ex.NSE_Sample$One" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="3" end="14" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 3-14]</Message> </SourceLine> <Message>In class ex.NSE_Sample$One</Message> </Class> <Method classname="ex.NSE_Sample$One" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="8" end="14" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$One.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$One" primary="true" start="11" end="11" startBytecode="37" endBytecode="37" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 11]</Message> </SourceLine> <String value="ex/NSE_Sample$Two"> <Message>Value ex/NSE_Sample$Two</Message> </String> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="12eaf73b16c69d79ef7bbdc8841329dd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.NSE_Sample$One be a _static_ inner class?</LongMessage> <Class classname="ex.NSE_Sample$One" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="3" end="14" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 3-14]</Message> </SourceLine> <Message>In class ex.NSE_Sample$One</Message> </Class> <SourceLine classname="ex.NSE_Sample$One" start="3" end="14" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java" synthetic="true"> <Message>At NSE_Sample.java:[lines 3-14]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="3" rank="15" abbrev="UwF" category="CORRECTNESS" instanceHash="b900dbff32fd6cae47270e0fef519337" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.NSE_Sample$One.o</LongMessage> <Class classname="ex.NSE_Sample$One" primary="true"> <SourceLine classname="ex.NSE_Sample$One" start="3" end="14" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 3-14]</Message> </SourceLine> <Message>In class ex.NSE_Sample$One</Message> </Class> <Field classname="ex.NSE_Sample$One" name="o" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$One" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>In NSE_Sample.java</Message> </SourceLine> <Message>Field ex.NSE_Sample$One.o</Message> </Field> <SourceLine classname="ex.NSE_Sample$One" primary="true" start="9" end="9" startBytecode="8" endBytecode="8" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="BC_IMPOSSIBLE_CAST" priority="1" rank="9" abbrev="BC" category="CORRECTNESS" instanceHash="328de5d059565dcd0211075c6dc4282a" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="570"> <ShortMessage>Impossible cast</ShortMessage> <LongMessage>Impossible cast from ex.NSE_Sample$Two to ex.NSE_Sample$Child in ex.NSE_Sample$Parent.equals(Object)</LongMessage> <Class classname="ex.NSE_Sample$Parent" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="31" end="42" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 31-42]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Parent</Message> </Class> <Method classname="ex.NSE_Sample$Parent" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="36" end="42" startBytecode="0" endBytecode="27" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$Parent.equals(Object)</Message> </Method> <Type descriptor="Lex/NSE_Sample$Two;" role="TYPE_FOUND"> <SourceLine classname="ex.NSE_Sample$Two" start="18" end="27" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 18-27]</Message> </SourceLine> <Message>Actual type ex.NSE_Sample$Two</Message> </Type> <Type descriptor="Lex/NSE_Sample$Child;" role="TYPE_EXPECTED"> <SourceLine classname="ex.NSE_Sample$Child" start="46" end="55" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 46-55]</Message> </SourceLine> <Message>Expected ex.NSE_Sample$Child</Message> </Type> <LocalVariable name="that" register="1" pc="36" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from that</Message> </LocalVariable> <SourceLine classname="ex.NSE_Sample$Parent" primary="true" start="39" end="39" startBytecode="37" endBytecode="37" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS" priority="1" rank="14" abbrev="Eq" category="BAD_PRACTICE" instanceHash="5984a249cd713a78379fcdaf22cd24fa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Equals checks for incompatible operand</ShortMessage> <LongMessage>ex.NSE_Sample$Parent.equals(Object) checks for operand being a NSE_Sample$Two </LongMessage> <Class classname="ex.NSE_Sample$Parent" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="31" end="42" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 31-42]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Parent</Message> </Class> <Method classname="ex.NSE_Sample$Parent" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="36" end="42" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$Parent.equals(Object)</Message> </Method> <Type descriptor="Lex/NSE_Sample$Two;" role="TYPE_FOUND"> <SourceLine classname="ex.NSE_Sample$Two" start="18" end="27" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 18-27]</Message> </SourceLine> <Message>Actual type ex.NSE_Sample$Two</Message> </Type> <SourceLine classname="ex.NSE_Sample$Parent" primary="true" start="38" end="38" startBytecode="26" endBytecode="26" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="HE_EQUALS_USE_HASHCODE" priority="2" rank="16" abbrev="HE" category="BAD_PRACTICE" instanceHash="5b76f8fdf56cae18ffa3fdc72b2588e3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines equals() and uses Object.hashCode()</ShortMessage> <LongMessage>ex.NSE_Sample$Parent defines equals and uses Object.hashCode()</LongMessage> <Class classname="ex.NSE_Sample$Parent" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="31" end="42" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 31-42]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Parent</Message> </Class> <Method classname="ex.NSE_Sample$Parent" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="36" end="42" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$Parent.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$Parent" start="36" end="42" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java" synthetic="true"> <Message>At NSE_Sample.java:[lines 36-42]</Message> </SourceLine> </BugInstance> <BugInstance type="ITC_INHERITANCE_TYPE_CHECKING" priority="2" rank="17" abbrev="ITC" category="STYLE" instanceHash="268bb91c11cdcc905728e75d9d0e97c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses instanceof on multiple types to arbitrate logic</ShortMessage> <LongMessage>Method ex.NSE_Sample$Parent.equals(Object) uses instanceof on multiple types to arbitrate logic</LongMessage> <Class classname="ex.NSE_Sample$Parent" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="31" end="42" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 31-42]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Parent</Message> </Class> <Method classname="ex.NSE_Sample$Parent" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="36" end="42" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$Parent.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$Parent" primary="true" start="36" end="36" startBytecode="0" endBytecode="0" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="NSE_NON_SYMMETRIC_EQUALS" priority="3" rank="10" abbrev="NSE" category="CORRECTNESS" instanceHash="e052e5af87bb9c5fc97f436105da4c44" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Equals method compares this object against other types in a non symmetric way</ShortMessage> <LongMessage>Equals method ex.NSE_Sample$Parent.equals(Object) compares this object against other types in a non symmetric way</LongMessage> <Class classname="ex.NSE_Sample$Parent" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="31" end="42" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 31-42]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Parent</Message> </Class> <Method classname="ex.NSE_Sample$Parent" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="36" end="42" startBytecode="0" endBytecode="131" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$Parent.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$Parent" primary="true" start="39" end="39" startBytecode="37" endBytecode="37" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 39]</Message> </SourceLine> <String value="ex/NSE_Sample$Child"> <Message>Value ex/NSE_Sample$Child</Message> </String> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="3" rank="15" abbrev="UwF" category="CORRECTNESS" instanceHash="c82c4a308b9987a296152592acd1e30c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.NSE_Sample$Parent.o</LongMessage> <Class classname="ex.NSE_Sample$Parent" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" start="31" end="42" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 31-42]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Parent</Message> </Class> <Field classname="ex.NSE_Sample$Parent" name="o" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Parent" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>In NSE_Sample.java</Message> </SourceLine> <Message>Field ex.NSE_Sample$Parent.o</Message> </Field> <SourceLine classname="ex.NSE_Sample$Parent" primary="true" start="37" end="37" startBytecode="8" endBytecode="8" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="HE_EQUALS_USE_HASHCODE" priority="2" rank="16" abbrev="HE" category="BAD_PRACTICE" instanceHash="75ec8132cc882352420dcb09948187ac" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines equals() and uses Object.hashCode()</ShortMessage> <LongMessage>ex.NSE_Sample$Two defines equals and uses Object.hashCode()</LongMessage> <Class classname="ex.NSE_Sample$Two" primary="true"> <SourceLine classname="ex.NSE_Sample$Two" start="18" end="27" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 18-27]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Two</Message> </Class> <Method classname="ex.NSE_Sample$Two" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Two" start="23" end="27" startBytecode="0" endBytecode="96" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"/> <Message>In method ex.NSE_Sample$Two.equals(Object)</Message> </Method> <SourceLine classname="ex.NSE_Sample$Two" start="23" end="27" startBytecode="0" endBytecode="96" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java" synthetic="true"> <Message>At NSE_Sample.java:[lines 23-27]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="c481669a89d6a40a8c490a0914160f92" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.NSE_Sample$Two be a _static_ inner class?</LongMessage> <Class classname="ex.NSE_Sample$Two" primary="true"> <SourceLine classname="ex.NSE_Sample$Two" start="18" end="27" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 18-27]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Two</Message> </Class> <SourceLine classname="ex.NSE_Sample$Two" start="18" end="27" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java" synthetic="true"> <Message>At NSE_Sample.java:[lines 18-27]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="559a5193db0762ca9b25cbb040f04512" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten public or protected field</ShortMessage> <LongMessage>Unwritten public or protected field: ex.NSE_Sample$Two.t</LongMessage> <Class classname="ex.NSE_Sample$Two" primary="true"> <SourceLine classname="ex.NSE_Sample$Two" start="18" end="27" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[lines 18-27]</Message> </SourceLine> <Message>In class ex.NSE_Sample$Two</Message> </Class> <Field classname="ex.NSE_Sample$Two" name="t" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.NSE_Sample$Two" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>In NSE_Sample.java</Message> </SourceLine> <Message>Field ex.NSE_Sample$Two.t</Message> </Field> <SourceLine classname="ex.NSE_Sample$Two" primary="true" start="24" end="24" startBytecode="8" endBytecode="8" sourcefile="NSE_Sample.java" sourcepath="ex/NSE_Sample.java"> <Message>At NSE_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_NO_ASSERT" priority="3" rank="11" abbrev="UTAO" category="CORRECTNESS" instanceHash="e3e3b2358ba3954813e7670d6fff1b09" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JUnit test method appears to have no assertions</ShortMessage> <LongMessage>JUnit test method ex.New.nada() appears to have no assertions</LongMessage> <Class classname="ex.New" primary="true"> <SourceLine classname="ex.New" start="85" end="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 85-108]</Message> </SourceLine> <Message>In class ex.New</Message> </Class> <Method classname="ex.New" name="nada" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.New" start="88" end="88" startBytecode="0" endBytecode="42" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.New.nada()</Message> </Method> <SourceLine classname="ex.New" start="88" end="88" startBytecode="0" endBytecode="42" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java" synthetic="true"> <Message>At UTAO_Sample.java:[line 88]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USING_DEPRECATED" priority="2" rank="8" abbrev="UTAO" category="CORRECTNESS" instanceHash="f0100bad9d8f72f15ce6f0355457531d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JUnit 4 test using deprecated junit.framework.* classes</ShortMessage> <LongMessage>JUnit 4 test ex.New.usingOldClasses(int) using deprecated junit.framework.* classes</LongMessage> <Class classname="ex.New" primary="true"> <SourceLine classname="ex.New" start="85" end="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 85-108]</Message> </SourceLine> <Message>In class ex.New</Message> </Class> <Method classname="ex.New" name="usingOldClasses" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.New" start="107" end="108" startBytecode="0" endBytecode="61" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.New.usingOldClasses(int)</Message> </Method> <SourceLine classname="ex.New" primary="true" start="107" end="107" startBytecode="2" endBytecode="2" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 107]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="f3d4aed5484bb16b9f3991ee4dba52b8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.NonSync.comExtendedSync() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.NonSync" primary="true"> <SourceLine classname="ex.NonSync" start="95" end="97" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 95-97]</Message> </SourceLine> <Message>In class ex.NonSync</Message> </Class> <Method classname="ex.NonSync" name="comExtendedSync" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.NonSync" start="97" end="97" startBytecode="0" endBytecode="44" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"/> <Message>In method ex.NonSync.comExtendedSync()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.NonSync" start="97" end="97" startBytecode="0" endBytecode="44" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="1b9da655dadca5a6342dc5dcf193c26f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "String.getBytes(String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: String.getBytes(Charset)</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="httpComponentWithTry" signature="(Lorg/apache/http/client/methods/HttpPut;Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.OCP_Sample" start="178" end="187" startBytecode="0" endBytecode="142" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.httpComponentWithTry(HttpPut, String)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="183" end="183" startBytecode="26" endBytecode="26" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 183]</Message> </SourceLine> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/lang/String;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="917" end="918" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(String)</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/nio/charset/Charset;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="940" end="941" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(Charset)</Message> </Method> </BugInstance> <BugInstance type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" priority="2" rank="7" abbrev="CSI" category="CORRECTNESS" instanceHash="81911b12249d0515cf74fd708fc0805b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method needlessly uses a String literal as a Charset encoding</ShortMessage> <LongMessage>This method "String.getBytes(String)" needlessly uses a String literal to define an encoding. A built-in Charset could be used instead like: String.getBytes(Charset)</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="httpComponentWithTryFalseNegative" signature="(Lorg/apache/http/client/methods/HttpPut;Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.OCP_Sample" start="165" end="174" startBytecode="0" endBytecode="161" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.httpComponentWithTryFalseNegative(HttpPut, String)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="170" end="170" startBytecode="26" endBytecode="26" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 170]</Message> </SourceLine> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/lang/String;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="917" end="918" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(String)</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="(Ljava/nio/charset/Charset;)[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="940" end="941" startBytecode="0" endBytecode="63" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes(Charset)</Message> </Method> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="60428d7053f18b213f9967507e630fce" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to cc in ex.OCP_Sample.testFPaastore(Color)</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="testFPaastore" signature="(Ljava/awt/Color;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OCP_Sample" start="149" end="150" startBytecode="0" endBytecode="11" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.testFPaastore(Color)</Message> </Method> <LocalVariable name="cc" register="2" pc="13" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named cc</Message> </LocalVariable> <SourceLine classname="ex.OCP_Sample" primary="true" start="149" end="149" startBytecode="12" endBytecode="12" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 149]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="cc"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="d20e046eecce7c3b7fa4a25e200af61e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.OCP_Sample.httpComponentWithTry(HttpPut, String) prints the stack trace to the console</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="httpComponentWithTry" signature="(Lorg/apache/http/client/methods/HttpPut;Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.OCP_Sample" start="178" end="187" startBytecode="0" endBytecode="142" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.httpComponentWithTry(HttpPut, String)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="185" end="185" startBytecode="40" endBytecode="40" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 185]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="1d0ffd25bfbb44e5156cfbe3c7296231" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.OCP_Sample.parse(DefaultHandler, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="parse" signature="(Lorg/xml/sax/helpers/DefaultHandler;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OCP_Sample" start="58" end="64" startBytecode="0" endBytecode="159" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.parse(DefaultHandler, File)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="63" end="63" startBytecode="36" endBytecode="36" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 63]</Message> </SourceLine> </BugInstance> <BugInstance type="OCP_OVERLY_CONCRETE_PARAMETER" priority="2" rank="17" abbrev="OCP" category="STYLE" instanceHash="2f3f2eeee21b518c74b790265d76f191" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly defines parameter with concrete classes</ShortMessage> <LongMessage>1st parameter 's' could be declared as java.util.Collection instead</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="getDisplay" signature="(Ljava/util/HashSet;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.OCP_Sample" start="42" end="53" startBytecode="0" endBytecode="265" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.getDisplay(HashSet, String, String)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="42" end="42" startBytecode="0" endBytecode="0" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 42]</Message> </SourceLine> <String value="1st parameter 's' could be declared as java.util.Collection instead"> <Message>Value 1st parameter 's' could be declared as java.util.Collection instead</Message> </String> </BugInstance> <BugInstance type="OCP_OVERLY_CONCRETE_PARAMETER" priority="2" rank="17" abbrev="OCP" category="STYLE" instanceHash="9d1a03ca0d292b64768f645edb60bb63" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly defines parameter with concrete classes</ShortMessage> <LongMessage>1st parameter 'request' could be declared as org.apache.http.HttpMessage instead</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="httpComponent" signature="(Lorg/apache/http/client/methods/HttpPut;Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.OCP_Sample" start="159" end="161" startBytecode="0" endBytecode="96" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.httpComponent(HttpPut, String)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="159" end="159" startBytecode="0" endBytecode="0" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 159]</Message> </SourceLine> <String value="1st parameter 'request' could be declared as org.apache.http.HttpMessage instead"> <Message>Value 1st parameter 'request' could be declared as org.apache.http.HttpMessage instead</Message> </String> </BugInstance> <BugInstance type="OCP_OVERLY_CONCRETE_PARAMETER" priority="2" rank="17" abbrev="OCP" category="STYLE" instanceHash="6f309af657f162ccda39bfa6c6ededeb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly defines parameter with concrete classes</ShortMessage> <LongMessage>1st parameter 'request' could be declared as org.apache.http.HttpMessage instead</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="httpComponentWithTry" signature="(Lorg/apache/http/client/methods/HttpPut;Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.OCP_Sample" start="178" end="187" startBytecode="0" endBytecode="142" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.httpComponentWithTry(HttpPut, String)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="178" end="178" startBytecode="0" endBytecode="0" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 178]</Message> </SourceLine> <String value="1st parameter 'request' could be declared as org.apache.http.HttpMessage instead"> <Message>Value 1st parameter 'request' could be declared as org.apache.http.HttpMessage instead</Message> </String> </BugInstance> <BugInstance type="OCP_OVERLY_CONCRETE_PARAMETER" priority="2" rank="17" abbrev="OCP" category="STYLE" instanceHash="8958fc393026a5e73cf3687236298ba0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly defines parameter with concrete classes</ShortMessage> <LongMessage>1st parameter 'dh' could be declared as org.xml.sax.ContentHandler instead</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="parse" signature="(Lorg/xml/sax/helpers/DefaultHandler;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OCP_Sample" start="58" end="64" startBytecode="0" endBytecode="159" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.parse(DefaultHandler, File)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="58" end="58" startBytecode="0" endBytecode="0" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 58]</Message> </SourceLine> <String value="1st parameter 'dh' could be declared as org.xml.sax.ContentHandler instead"> <Message>Value 1st parameter 'dh' could be declared as org.xml.sax.ContentHandler instead</Message> </String> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="76fd990707182ec9b5e2bb2e99993e0d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable cc of method ex.OCP_Sample.testFPaastore(Color)</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="testFPaastore" signature="(Ljava/awt/Color;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OCP_Sample" start="149" end="150" startBytecode="0" endBytecode="79" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.testFPaastore(Color)</Message> </Method> <String value="cc"> <Message>Value cc</Message> </String> <Type descriptor="[Ljava/awt/Color;"> <Message>Type java.awt.Color[]</Message> </Type> <SourceLine classname="ex.OCP_Sample" primary="true" start="149" end="149" startBytecode="1" endBytecode="1" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 149]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="1d7477a9a95fceb5dca86c5bef54299f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.OCP_Sample.fpTooManyAbstractChoices(OCP_Sample$Legion) seems to be useless</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="fpTooManyAbstractChoices" signature="(Lex/OCP_Sample$Legion;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OCP_Sample" start="78" end="81" startBytecode="0" endBytecode="74" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.fpTooManyAbstractChoices(OCP_Sample$Legion)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="81" end="81" startBytecode="5" endBytecode="5" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 81]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="867d7839681053e6f95d6df22b22479b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.OCP_Sample.testFPaastore(Color) seems to be useless</LongMessage> <Class classname="ex.OCP_Sample" primary="true"> <SourceLine classname="ex.OCP_Sample" start="36" end="190" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 36-190]</Message> </SourceLine> <Message>In class ex.OCP_Sample</Message> </Class> <Method classname="ex.OCP_Sample" name="testFPaastore" signature="(Ljava/awt/Color;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OCP_Sample" start="149" end="150" startBytecode="0" endBytecode="79" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.OCP_Sample.testFPaastore(Color)</Message> </Method> <SourceLine classname="ex.OCP_Sample" primary="true" start="150" end="150" startBytecode="13" endBytecode="13" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 150]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="18" abbrev="UrF" category="STYLE" instanceHash="1c4eab2ed35b770ced81d6964c5b3a43" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread public/protected field</ShortMessage> <LongMessage>Unread public/protected field: ex.OCP_Sample$B.x</LongMessage> <Class classname="ex.OCP_Sample$B" primary="true"> <SourceLine classname="ex.OCP_Sample$B" start="89" end="100" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 89-100]</Message> </SourceLine> <Message>In class ex.OCP_Sample$B</Message> </Class> <Field classname="ex.OCP_Sample$B" name="x" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.OCP_Sample$B" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>In OCP_Sample.java</Message> </SourceLine> <Message>Field ex.OCP_Sample$B.x</Message> </Field> <SourceLine classname="ex.OCP_Sample$B" primary="true" start="90" end="90" startBytecode="6" endBytecode="6" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[line 90]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="7ea063e03c398f615b1881f5e7b5a155" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to c in ex.OC_Sample.castListInReg(Object)</LongMessage> <Class classname="ex.OC_Sample" primary="true"> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> <Message>In class ex.OC_Sample</Message> </Class> <Method classname="ex.OC_Sample" name="castListInReg" signature="(Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OC_Sample" start="10" end="11" startBytecode="0" endBytecode="3" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"/> <Message>In method ex.OC_Sample.castListInReg(Object)</Message> </Method> <LocalVariable name="c" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named c</Message> </LocalVariable> <SourceLine classname="ex.OC_Sample" primary="true" start="10" end="10" startBytecode="4" endBytecode="4" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[line 10]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="c"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="EI_EXPOSE_REP2" priority="2" rank="18" abbrev="EI2" category="MALICIOUS_CODE" instanceHash="b31955a11e84d671a10d3fc5a5e56b2" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="374"> <ShortMessage>May expose internal representation by incorporating reference to mutable object</ShortMessage> <LongMessage>ex.OC_Sample.castDateInField(Object) may expose internal representation by storing an externally mutable object into OC_Sample.ud</LongMessage> <Class classname="ex.OC_Sample" primary="true"> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> <Message>In class ex.OC_Sample</Message> </Class> <Method classname="ex.OC_Sample" name="castDateInField" signature="(Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OC_Sample" start="14" end="15" startBytecode="0" endBytecode="64" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"/> <Message>In method ex.OC_Sample.castDateInField(Object)</Message> </Method> <Field classname="ex.OC_Sample" name="ud" signature="Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.OC_Sample" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>In OC_Sample.java</Message> </SourceLine> <Message>Field ex.OC_Sample.ud</Message> </Field> <LocalVariable name="o" register="1" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named o</Message> </LocalVariable> <SourceLine classname="ex.OC_Sample" primary="true" start="14" end="14" startBytecode="5" endBytecode="5" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="d938ed28e0a1d6239649f2a612baa07b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.OC_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.OC_Sample" primary="true"> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> <Message>In class ex.OC_Sample</Message> </Class> <Field classname="ex.OC_Sample" name="ud" signature="Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.OC_Sample" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>In OC_Sample.java</Message> </SourceLine> <Message>Field ex.OC_Sample.ud</Message> </Field> <SourceLine classname="ex.OC_Sample" primary="true" start="14" end="14" startBytecode="5" endBytecode="5" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="e196dd533452491e69cee8ee1f3cbd8d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.OC_Sample does not implement a toString method</LongMessage> <Class classname="ex.OC_Sample" primary="true"> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> <Message>In class ex.OC_Sample</Message> </Class> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java" synthetic="true"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> </BugInstance> <BugInstance type="OC_OVERZEALOUS_CASTING" priority="2" rank="7" abbrev="OC" category="CORRECTNESS" instanceHash="87a2d4d43ce68cee1f1a274634a80e0a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method manually casts the right hand side of an assignment more specifically than needed</ShortMessage> <LongMessage>Method ex.OC_Sample.castDateInField(Object) manually casts the right hand side of an assignment more specifically than needed</LongMessage> <Class classname="ex.OC_Sample" primary="true"> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> <Message>In class ex.OC_Sample</Message> </Class> <Method classname="ex.OC_Sample" name="castDateInField" signature="(Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OC_Sample" start="14" end="15" startBytecode="0" endBytecode="64" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"/> <Message>In method ex.OC_Sample.castDateInField(Object)</Message> </Method> <SourceLine classname="ex.OC_Sample" primary="true" start="14" end="14" startBytecode="5" endBytecode="5" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="OC_OVERZEALOUS_CASTING" priority="2" rank="7" abbrev="OC" category="CORRECTNESS" instanceHash="95db975bbfc41fbb52582a0af5868d98" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method manually casts the right hand side of an assignment more specifically than needed</ShortMessage> <LongMessage>Method ex.OC_Sample.castListInReg(Object) manually casts the right hand side of an assignment more specifically than needed</LongMessage> <Class classname="ex.OC_Sample" primary="true"> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> <Message>In class ex.OC_Sample</Message> </Class> <Method classname="ex.OC_Sample" name="castListInReg" signature="(Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OC_Sample" start="10" end="11" startBytecode="0" endBytecode="89" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"/> <Message>In method ex.OC_Sample.castListInReg(Object)</Message> </Method> <SourceLine classname="ex.OC_Sample" primary="true" start="10" end="10" startBytecode="4" endBytecode="4" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="43be62ba359b1759994313827819eae1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.OC_Sample.castListInReg(Object) seems to be useless</LongMessage> <Class classname="ex.OC_Sample" primary="true"> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> <Message>In class ex.OC_Sample</Message> </Class> <Method classname="ex.OC_Sample" name="castListInReg" signature="(Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OC_Sample" start="10" end="11" startBytecode="0" endBytecode="89" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"/> <Message>In method ex.OC_Sample.castListInReg(Object)</Message> </Method> <SourceLine classname="ex.OC_Sample" primary="true" start="11" end="11" startBytecode="5" endBytecode="5" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="64826e25445813fdf6ef9e7c7d507267" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.OC_Sample.ud</LongMessage> <Class classname="ex.OC_Sample" primary="true"> <SourceLine classname="ex.OC_Sample" start="6" end="15" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[lines 6-15]</Message> </SourceLine> <Message>In class ex.OC_Sample</Message> </Class> <Field classname="ex.OC_Sample" name="ud" signature="Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.OC_Sample" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>In OC_Sample.java</Message> </SourceLine> <Message>Field ex.OC_Sample.ud</Message> </Field> <SourceLine classname="ex.OC_Sample" primary="true" start="14" end="14" startBytecode="5" endBytecode="5" sourcefile="OC_Sample.java" sourcepath="ex/OC_Sample.java"> <Message>At OC_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="70d9de3c472699e2e9168193721c5d91" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to a2 in ex.ODN_Sample.testSimpleAttribute(Document)</LongMessage> <Class classname="ex.ODN_Sample" primary="true"> <SourceLine classname="ex.ODN_Sample" start="8" end="40" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[lines 8-40]</Message> </SourceLine> <Message>In class ex.ODN_Sample</Message> </Class> <Method classname="ex.ODN_Sample" name="testSimpleAttribute" signature="(Lorg/w3c/dom/Document;)Lorg/w3c/dom/Document;" isStatic="false" primary="true"> <SourceLine classname="ex.ODN_Sample" start="17" end="23" startBytecode="0" endBytecode="21" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"/> <Message>In method ex.ODN_Sample.testSimpleAttribute(Document)</Message> </Method> <LocalVariable name="a2" register="4" pc="36" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named a2</Message> </LocalVariable> <SourceLine classname="ex.ODN_Sample" primary="true" start="20" end="20" startBytecode="34" endBytecode="34" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[line 20]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="a2"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="455a291f63d31953214f5144926ed01a" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.ODN_Sample.testSimpleElement(Document)</LongMessage> <Class classname="ex.ODN_Sample" primary="true"> <SourceLine classname="ex.ODN_Sample" start="8" end="40" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[lines 8-40]</Message> </SourceLine> <Message>In class ex.ODN_Sample</Message> </Class> <Method classname="ex.ODN_Sample" name="testSimpleElement" signature="(Lorg/w3c/dom/Document;)Lorg/w3c/dom/Document;" isStatic="false" primary="true"> <SourceLine classname="ex.ODN_Sample" start="10" end="13" startBytecode="0" endBytecode="13" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"/> <Message>In method ex.ODN_Sample.testSimpleElement(Document)</Message> </Method> <LocalVariable name="b" register="3" pc="18" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.ODN_Sample" primary="true" start="11" end="11" startBytecode="17" endBytecode="17" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[line 11]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="6769648924f6d96087383cb0b13052c9" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to t2 in ex.ODN_Sample.testSimpleText(Document)</LongMessage> <Class classname="ex.ODN_Sample" primary="true"> <SourceLine classname="ex.ODN_Sample" start="8" end="40" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[lines 8-40]</Message> </SourceLine> <Message>In class ex.ODN_Sample</Message> </Class> <Method classname="ex.ODN_Sample" name="testSimpleText" signature="(Lorg/w3c/dom/Document;)Lorg/w3c/dom/Document;" isStatic="false" primary="true"> <SourceLine classname="ex.ODN_Sample" start="27" end="34" startBytecode="0" endBytecode="29" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"/> <Message>In method ex.ODN_Sample.testSimpleText(Document)</Message> </Method> <LocalVariable name="t2" register="5" pc="63" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named t2</Message> </LocalVariable> <SourceLine classname="ex.ODN_Sample" primary="true" start="33" end="33" startBytecode="61" endBytecode="61" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[line 33]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="t2"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="ODN_ORPHANED_DOM_NODE" priority="2" rank="7" abbrev="ODN" category="CORRECTNESS" instanceHash="4dadf97bdebaa045fe2af6821b2d4c97" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates DOM node but doesn't attach it to a document</ShortMessage> <LongMessage>Method ex.ODN_Sample.testSimpleAttribute(Document) creates DOM node but doesn't attach it to a document</LongMessage> <Class classname="ex.ODN_Sample" primary="true"> <SourceLine classname="ex.ODN_Sample" start="8" end="40" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[lines 8-40]</Message> </SourceLine> <Message>In class ex.ODN_Sample</Message> </Class> <Method classname="ex.ODN_Sample" name="testSimpleAttribute" signature="(Lorg/w3c/dom/Document;)Lorg/w3c/dom/Document;" isStatic="false" primary="true"> <SourceLine classname="ex.ODN_Sample" start="17" end="23" startBytecode="0" endBytecode="147" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"/> <Message>In method ex.ODN_Sample.testSimpleAttribute(Document)</Message> </Method> <SourceLine classname="ex.ODN_Sample" primary="true" start="20" end="20" startBytecode="29" endBytecode="29" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="ODN_ORPHANED_DOM_NODE" priority="2" rank="7" abbrev="ODN" category="CORRECTNESS" instanceHash="e1e3b2eaba2bcd44e2ac7fccda29dbae" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates DOM node but doesn't attach it to a document</ShortMessage> <LongMessage>Method ex.ODN_Sample.testSimpleElement(Document) creates DOM node but doesn't attach it to a document</LongMessage> <Class classname="ex.ODN_Sample" primary="true"> <SourceLine classname="ex.ODN_Sample" start="8" end="40" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[lines 8-40]</Message> </SourceLine> <Message>In class ex.ODN_Sample</Message> </Class> <Method classname="ex.ODN_Sample" name="testSimpleElement" signature="(Lorg/w3c/dom/Document;)Lorg/w3c/dom/Document;" isStatic="false" primary="true"> <SourceLine classname="ex.ODN_Sample" start="10" end="13" startBytecode="0" endBytecode="111" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"/> <Message>In method ex.ODN_Sample.testSimpleElement(Document)</Message> </Method> <SourceLine classname="ex.ODN_Sample" primary="true" start="11" end="11" startBytecode="12" endBytecode="12" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="ODN_ORPHANED_DOM_NODE" priority="2" rank="7" abbrev="ODN" category="CORRECTNESS" instanceHash="79441af2cf4de2093980e574b5e2043b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates DOM node but doesn't attach it to a document</ShortMessage> <LongMessage>Method ex.ODN_Sample.testSimpleText(Document) creates DOM node but doesn't attach it to a document</LongMessage> <Class classname="ex.ODN_Sample" primary="true"> <SourceLine classname="ex.ODN_Sample" start="8" end="40" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[lines 8-40]</Message> </SourceLine> <Message>In class ex.ODN_Sample</Message> </Class> <Method classname="ex.ODN_Sample" name="testSimpleText" signature="(Lorg/w3c/dom/Document;)Lorg/w3c/dom/Document;" isStatic="false" primary="true"> <SourceLine classname="ex.ODN_Sample" start="27" end="34" startBytecode="0" endBytecode="184" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"/> <Message>In method ex.ODN_Sample.testSimpleText(Document)</Message> </Method> <SourceLine classname="ex.ODN_Sample" primary="true" start="33" end="33" startBytecode="56" endBytecode="56" sourcefile="ODN_Sample.java" sourcepath="ex/ODN_Sample.java"> <Message>At ODN_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="CNT_ROUGH_CONSTANT_VALUE" priority="2" rank="16" abbrev="CNT" category="BAD_PRACTICE" instanceHash="21271eb85149919dd860b730d78ddd95" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Rough value of known constant found</ShortMessage> <LongMessage>Rough value of Math.PI found: 3.14</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="useWrongOptional" signature="(Ljava/util/Optional;)Ljava/util/Optional;" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="38" end="38" startBytecode="0" endBytecode="79" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.useWrongOptional(Optional)</Message> </Method> <String value="3.14"> <Message>Value 3.14</Message> </String> <String value="Math.PI"> <Message>Value Math.PI</Message> </String> <SourceLine classname="ex.OI_Sample" primary="true" start="38" end="38" startBytecode="0" endBytecode="0" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="OI_OPTIONAL_ISSUES_CHECKING_REFERENCE" priority="2" rank="7" abbrev="OI" category="CORRECTNESS" instanceHash="2fc32e85682cf8481092db8b06ffe9c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks an Optional reference for null</ShortMessage> <LongMessage>Method ex.OI_Sample.checkingOptionalReference(Optional) checks an Optional reference for null</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="checkingOptionalReference" signature="(Ljava/util/Optional;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="21" end="25" startBytecode="0" endBytecode="101" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.checkingOptionalReference(Optional)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="21" end="21" startBytecode="1" endBytecode="1" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="OI_OPTIONAL_ISSUES_PRIMITIVE_VARIANT_PREFERRED" priority="3" rank="10" abbrev="OI" category="CORRECTNESS" instanceHash="9ee4644bbb9a556723c8b2d0c8f400a9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a java.util.Optional when use of OptionalInt, OptionalLong, OptionalDouble would be more clear</ShortMessage> <LongMessage>Method ex.OI_Sample.useWrongOptional(Optional) uses a java.util.Optional when use of OptionalInt, OptionalLong, OptionalDouble would be more clear</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="useWrongOptional" signature="(Ljava/util/Optional;)Ljava/util/Optional;" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="38" end="38" startBytecode="0" endBytecode="79" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.useWrongOptional(Optional)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="38" end="38" startBytecode="6" endBytecode="6" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="OI_OPTIONAL_ISSUES_USES_DELAYED_EXECUTION" priority="3" rank="10" abbrev="OI" category="CORRECTNESS" instanceHash="7a1f512efbe87ad595fa2398947cc3c8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses delayed execution of a block of code that is trivial</ShortMessage> <LongMessage>Method ex.OI_Sample.useImmediateExecution(Optional, String) uses immediate execution of a block of code that is trivial</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="useImmediateExecution" signature="(Ljava/util/Optional;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="29" end="29" startBytecode="0" endBytecode="93" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.useImmediateExecution(Optional, String)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="29" end="29" startBytecode="7" endBytecode="7" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="OI_OPTIONAL_ISSUES_USES_DELAYED_EXECUTION" priority="3" rank="10" abbrev="OI" category="CORRECTNESS" instanceHash="2b53670974904bca775225f117c0de4b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses delayed execution of a block of code that is trivial</ShortMessage> <LongMessage>Method ex.OI_Sample.useImmediateExecutionWithInt(OptionalInt) uses immediate execution of a block of code that is trivial</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="useImmediateExecutionWithInt" signature="(Ljava/util/OptionalInt;)I" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="33" end="33" startBytecode="0" endBytecode="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.useImmediateExecutionWithInt(OptionalInt)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="33" end="33" startBytecode="6" endBytecode="6" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="OI_OPTIONAL_ISSUES_USES_IMMEDIATE_EXECUTION" priority="2" rank="7" abbrev="OI" category="CORRECTNESS" instanceHash="18cdab37efdce76cc110c8c880f5f26d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses immediate execution of a block of code that is often not used</ShortMessage> <LongMessage>Method ex.OI_Sample.fpStringAppendingIsTooCommon(Optional, String, String) uses immediate execution of a block of code that is often not used</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="fpStringAppendingIsTooCommon" signature="(Ljava/util/Optional;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="57" end="57" startBytecode="0" endBytecode="115" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.fpStringAppendingIsTooCommon(Optional, String, String)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="57" end="57" startBytecode="19" endBytecode="19" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 57]</Message> </SourceLine> </BugInstance> <BugInstance type="OI_OPTIONAL_ISSUES_USES_IMMEDIATE_EXECUTION" priority="2" rank="7" abbrev="OI" category="CORRECTNESS" instanceHash="b128350c83f2ad4eec361bf32218564" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses immediate execution of a block of code that is often not used</ShortMessage> <LongMessage>Method ex.OI_Sample.useDelayedExecution(Optional, String, String) uses immediate execution of a block of code that is often not used</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="useDelayedExecution" signature="(Ljava/util/Optional;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="12" end="12" startBytecode="0" endBytecode="114" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.useDelayedExecution(Optional, String, String)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="12" end="12" startBytecode="18" endBytecode="18" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="OI_OPTIONAL_ISSUES_USES_IMMEDIATE_EXECUTION" priority="2" rank="7" abbrev="OI" category="CORRECTNESS" instanceHash="30e4bc101034c848aa80b6d68f6b1c9c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses immediate execution of a block of code that is often not used</ShortMessage> <LongMessage>Method ex.OI_Sample.useDelayedExecutionWithDouble(OptionalDouble) uses immediate execution of a block of code that is often not used</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="useDelayedExecutionWithDouble" signature="(Ljava/util/OptionalDouble;)D" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="17" end="17" startBytecode="0" endBytecode="68" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.useDelayedExecutionWithDouble(OptionalDouble)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="17" end="17" startBytecode="13" endBytecode="13" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="OI_OPTIONAL_ISSUES_USES_ORELSEGET_WITH_NULL" priority="3" rank="10" abbrev="OI" category="CORRECTNESS" instanceHash="55bb33c0c49708fb08531cf2463328f8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses Optional.orElseGet(null)</ShortMessage> <LongMessage>Method ex.OI_Sample.orElseGetNull(Optional) uses Optional.orElseGet(null)</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="orElseGetNull" signature="(Ljava/util/Optional;)Ljava/util/Date;" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="42" end="42" startBytecode="0" endBytecode="78" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.orElseGetNull(Optional)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="42" end="42" startBytecode="2" endBytecode="2" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_MATH_CONSTANT" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="c7c2a8c386b40d969a21d18fdcdcb284" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses non standard math constant</ShortMessage> <LongMessage>Method ex.OI_Sample.useWrongOptional(Optional) uses non standard math constant</LongMessage> <Class classname="ex.OI_Sample" primary="true"> <SourceLine classname="ex.OI_Sample" start="8" end="61" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[lines 8-61]</Message> </SourceLine> <Message>In class ex.OI_Sample</Message> </Class> <Method classname="ex.OI_Sample" name="useWrongOptional" signature="(Ljava/util/Optional;)Ljava/util/Optional;" isStatic="false" primary="true"> <SourceLine classname="ex.OI_Sample" start="38" end="38" startBytecode="0" endBytecode="79" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"/> <Message>In method ex.OI_Sample.useWrongOptional(Optional)</Message> </Method> <SourceLine classname="ex.OI_Sample" primary="true" start="38" end="38" startBytecode="0" endBytecode="0" sourcefile="OI_Sample.java" sourcepath="ex/OI_Sample.java"> <Message>At OI_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="565d3cfaab9d610bf7a95cd584b70d63" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.OPM_Sample.someNormalMethod()</LongMessage> <Class classname="ex.OPM_Sample" primary="true"> <SourceLine classname="ex.OPM_Sample" start="1" end="60" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 1-60]</Message> </SourceLine> <Message>In class ex.OPM_Sample</Message> </Class> <Method classname="ex.OPM_Sample" name="someNormalMethod" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.OPM_Sample" start="35" end="36" startBytecode="0" endBytecode="6" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.OPM_Sample.someNormalMethod()</Message> </Method> <LocalVariable name="l" register="1" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.OPM_Sample" primary="true" start="35" end="35" startBytecode="11" endBytecode="11" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[line 35]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="969b3bf480a9c774a365ed25e61e44a9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.OPM_Sample.someNormalMethod() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.OPM_Sample" primary="true"> <SourceLine classname="ex.OPM_Sample" start="1" end="60" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 1-60]</Message> </SourceLine> <Message>In class ex.OPM_Sample</Message> </Class> <Method classname="ex.OPM_Sample" name="someNormalMethod" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.OPM_Sample" start="35" end="36" startBytecode="0" endBytecode="86" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"/> <Message>In method ex.OPM_Sample.someNormalMethod()</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.OPM_Sample" start="35" end="36" startBytecode="0" endBytecode="86" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java" synthetic="true"> <Message>At OPM_Sample.java:[lines 35-36]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE" priority="2" rank="19" abbrev="Se" category="BAD_PRACTICE" instanceHash="6db4ca8e7f318775f4962eb9d77b5eaf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Comparator doesn't implement Serializable</ShortMessage> <LongMessage>ex.OPM_Sample implements Comparator but not Serializable</LongMessage> <Class classname="ex.OPM_Sample" primary="true"> <SourceLine classname="ex.OPM_Sample" start="1" end="60" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java"> <Message>At OPM_Sample.java:[lines 1-60]</Message> </SourceLine> <Message>In class ex.OPM_Sample</Message> </Class> <SourceLine classname="ex.OPM_Sample" start="1" end="60" sourcefile="OPM_Sample.java" sourcepath="ex/OPM_Sample.java" synthetic="true"> <Message>At OPM_Sample.java:[lines 1-60]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="86ca5a6e2ecb9ed41db87518b70addc9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.OverEndulgentParent.mouseEntered(MouseEvent) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.OverEndulgentParent" primary="true"> <SourceLine classname="ex.OverEndulgentParent" start="12" end="23" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"> <Message>At SCII_Sample.java:[lines 12-23]</Message> </SourceLine> <Message>In class ex.OverEndulgentParent</Message> </Class> <Method classname="ex.OverEndulgentParent" name="mouseEntered" signature="(Ljava/awt/event/MouseEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OverEndulgentParent" start="20" end="20" startBytecode="0" endBytecode="52" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"/> <Message>In method ex.OverEndulgentParent.mouseEntered(MouseEvent)</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.OverEndulgentParent" start="20" end="20" startBytecode="0" endBytecode="52" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java" synthetic="true"> <Message>At SCII_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="4c7d45e1d05662a15468bf8808ae4935" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.OverEndulgentParent.mouseExited(MouseEvent) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.OverEndulgentParent" primary="true"> <SourceLine classname="ex.OverEndulgentParent" start="12" end="23" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"> <Message>At SCII_Sample.java:[lines 12-23]</Message> </SourceLine> <Message>In class ex.OverEndulgentParent</Message> </Class> <Method classname="ex.OverEndulgentParent" name="mouseExited" signature="(Ljava/awt/event/MouseEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OverEndulgentParent" start="23" end="23" startBytecode="0" endBytecode="52" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"/> <Message>In method ex.OverEndulgentParent.mouseExited(MouseEvent)</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.OverEndulgentParent" start="23" end="23" startBytecode="0" endBytecode="52" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java" synthetic="true"> <Message>At SCII_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="dc8e1e6b1e9c9ced1a53f1f470d2aba6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.OverEndulgentParent.mousePressed(MouseEvent) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.OverEndulgentParent" primary="true"> <SourceLine classname="ex.OverEndulgentParent" start="12" end="23" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"> <Message>At SCII_Sample.java:[lines 12-23]</Message> </SourceLine> <Message>In class ex.OverEndulgentParent</Message> </Class> <Method classname="ex.OverEndulgentParent" name="mousePressed" signature="(Ljava/awt/event/MouseEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OverEndulgentParent" start="14" end="14" startBytecode="0" endBytecode="52" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"/> <Message>In method ex.OverEndulgentParent.mousePressed(MouseEvent)</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.OverEndulgentParent" start="14" end="14" startBytecode="0" endBytecode="52" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java" synthetic="true"> <Message>At SCII_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="c9b0433f0cccb9c06f5babd811feedcf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.OverEndulgentParent.mouseReleased(MouseEvent) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.OverEndulgentParent" primary="true"> <SourceLine classname="ex.OverEndulgentParent" start="12" end="23" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"> <Message>At SCII_Sample.java:[lines 12-23]</Message> </SourceLine> <Message>In class ex.OverEndulgentParent</Message> </Class> <Method classname="ex.OverEndulgentParent" name="mouseReleased" signature="(Ljava/awt/event/MouseEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.OverEndulgentParent" start="17" end="17" startBytecode="0" endBytecode="52" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"/> <Message>In method ex.OverEndulgentParent.mouseReleased(MouseEvent)</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.OverEndulgentParent" start="17" end="17" startBytecode="0" endBytecode="52" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java" synthetic="true"> <Message>At SCII_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="4ca14ee400f655bc7b88f862b8c649a1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpReturnAlloc() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpReturnAlloc" signature="()Lex/PCAIL_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="41" end="49" startBytecode="0" endBytecode="149" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpReturnAlloc()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" start="41" end="49" startBytecode="0" endBytecode="149" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java" synthetic="true"> <Message>At PCAIL_Sample.java:[lines 41-49]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="aa535c01a5ec95382ed3431052e12d1b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpSwitch(List, int) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpSwitch" signature="(Ljava/util/List;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="133" end="148" startBytecode="0" endBytecode="295" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpSwitch(List, int)</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" start="133" end="148" startBytecode="0" endBytecode="295" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java" synthetic="true"> <Message>At PCAIL_Sample.java:[lines 133-148]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="7169b487c076c7579feafba185af2079" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to u in ex.PCAIL_Sample.fpPutField()</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpPutField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="23" end="30" startBytecode="0" endBytecode="21" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpPutField()</Message> </Method> <LocalVariable name="u" register="3" pc="23" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named u</Message> </LocalVariable> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="25" end="25" startBytecode="22" endBytecode="22" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 25]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="u"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="f4a85e7dea7621d43ef51b4a82c9cada" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to u in ex.PCAIL_Sample.fpTwoRegs()</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpTwoRegs" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="33" end="38" startBytecode="0" endBytecode="18" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpTwoRegs()</Message> </Method> <LocalVariable name="u" register="3" pc="23" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named u</Message> </LocalVariable> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="35" end="35" startBytecode="22" endBytecode="22" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 35]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="u"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="30e6ab23362a43f027f972246c7becb6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.PCAIL_Sample does not implement a toString method</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java" synthetic="true"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> </BugInstance> <BugInstance type="PCAIL_POSSIBLE_CONSTANT_ALLOCATION_IN_LOOP" priority="2" rank="18" abbrev="PCAIL" category="PERFORMANCE" instanceHash="5fdb6f4b6b4f207cc9aebbf950be04c2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method allocates an object that is used in a constant way in a loop</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.testBasicCase() allocates an object that is used in a constant way in a loop</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="testBasicCase" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="16" end="20" startBytecode="0" endBytecode="123" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.testBasicCase()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="17" end="17" startBytecode="9" endBytecode="9" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="84c90ccdb4b068e33813c9ffe891a172" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpAnonymousBuilder() does not presize the allocation of a collection</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpAnonymousBuilder" signature="()Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="71" end="76" startBytecode="0" endBytecode="152" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpAnonymousBuilder()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="73" end="73" startBytecode="24" endBytecode="24" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 73]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="257f919f1096347651e6ce89ae2aeb36" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpAnonymousMethodParm() does not presize the allocation of a collection</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpAnonymousMethodParm" signature="()Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="62" end="67" startBytecode="0" endBytecode="149" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpAnonymousMethodParm()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="64" end="64" startBytecode="21" endBytecode="21" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 64]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="e1b95e73daddc5b7056c53084bea4035" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpChaining() does not presize the allocation of a collection</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpChaining" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="109" end="113" startBytecode="0" endBytecode="152" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpChaining()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="111" end="111" startBytecode="25" endBytecode="25" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 111]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="6e11bb97d48597998ee674653bd86593" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpFooBar(List) does not presize the allocation of a collection</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpFooBar" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="152" end="159" startBytecode="0" endBytecode="230" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpFooBar(List)</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="157" end="157" startBytecode="50" endBytecode="50" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 157]</Message> </SourceLine> </BugInstance> <BugInstance type="SA_LOCAL_SELF_COMPARISON" priority="2" rank="3" abbrev="SA" category="CORRECTNESS" instanceHash="e003399610d3524f724d545ca30187fa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Self comparison of value with itself</ShortMessage> <LongMessage>Self comparison of Object.equals(Object) with itself ex.PCAIL_Sample.fpMethodParm()</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpMethodParm" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="53" end="59" startBytecode="0" endBytecode="16" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpMethodParm()</Message> </Method> <Method classname="java.lang.Object" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="149" end="149" startBytecode="0" endBytecode="45" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.equals(Object)</Message> </Method> <LocalVariable name="sample" register="2" pc="14" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named sample</Message> </LocalVariable> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="55" end="55" startBytecode="15" endBytecode="15" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_CONDITION" priority="1" rank="14" abbrev="UC" category="STYLE" instanceHash="fe6df70beba71a0f5a3bf629528858a5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Condition has no effect</ShortMessage> <LongMessage>Useless condition: it's known that i != 3 at this point</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpThrow" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="87" end="92" startBytecode="0" endBytecode="108" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpThrow()</Message> </Method> <String value="i != 3"> <Message>Value i != 3</Message> </String> <SourceLine classname="ex.PCAIL_Sample" start="89" end="89" startBytecode="10" endBytecode="10" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java" role="SOURCE_UNREACHABLE_CODE"> <Message>Unreachable code at PCAIL_Sample.java:[line 89]</Message> </SourceLine> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="88" end="88" startBytecode="7" endBytecode="7" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 88]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="614f8f19be28b9e7fd97d1e794bde6c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable samples of method ex.PCAIL_Sample.fpArrayStore()</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpArrayStore" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="80" end="84" startBytecode="0" endBytecode="122" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpArrayStore()</Message> </Method> <String value="samples"> <Message>Value samples</Message> </String> <Type descriptor="[Lex/PCAIL_Sample;"> <Message>Type ex.PCAIL_Sample[]</Message> </Type> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="80" end="80" startBytecode="1" endBytecode="1" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 80]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="b82bfdb906704e918aacc2b23a256e7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable list of method ex.PCAIL_Sample.fpChaining()</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpChaining" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="109" end="113" startBytecode="0" endBytecode="152" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpChaining()</Message> </Method> <String value="list"> <Message>Value list</Message> </String> <Type descriptor="Ljava/util/ArrayList;"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Type java.util.ArrayList</Message> </Type> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="109" end="109" startBytecode="4" endBytecode="4" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="f66af963e8f51f6565d6899910430397" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable fooList of method ex.PCAIL_Sample.fpFooBar(List)</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpFooBar" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="152" end="159" startBytecode="0" endBytecode="230" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpFooBar(List)</Message> </Method> <String value="fooList"> <Message>Value fooList</Message> </String> <Type descriptor="Ljava/util/ArrayList;"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Type java.util.ArrayList</Message> </Type> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="152" end="152" startBytecode="4" endBytecode="4" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 152]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="4f4c16def166e3bf1c99b7982ca4311" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.PCAIL_Sample.fpTwoAssigns()</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpTwoAssigns" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="95" end="106" startBytecode="0" endBytecode="200" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpTwoAssigns()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="99" end="99" startBytecode="15" endBytecode="15" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 99]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="5bc2f363ac58ea969e7153484b6a828" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.PCAIL_Sample.fpTwoAssigns()</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpTwoAssigns" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="95" end="106" startBytecode="0" endBytecode="200" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpTwoAssigns()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/util/TreeSet;"> <SourceLine classname="java.util.TreeSet" start="101" end="556" sourcefile="TreeSet.java" sourcepath="java/util/TreeSet.java"> <Message>At TreeSet.java:[lines 101-556]</Message> </SourceLine> <Message>Type java.util.TreeSet</Message> </Type> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="101" end="101" startBytecode="26" endBytecode="26" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="6372af0dd9e914c16da5f7950d9b4f2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpChaining() seems to be useless</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpChaining" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="109" end="113" startBytecode="0" endBytecode="152" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpChaining()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="113" end="113" startBytecode="40" endBytecode="40" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 113]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="51a94482db43c5a1636dd70d9b050283" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpTwoAssigns() seems to be useless</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpTwoAssigns" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="95" end="106" startBytecode="0" endBytecode="200" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpTwoAssigns()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="106" end="106" startBytecode="50" endBytecode="50" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 106]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="c9515162d913f527914031bea107060" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpArrayStore() seems to be useless</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpArrayStore" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="80" end="84" startBytecode="0" endBytecode="122" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpArrayStore()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="84" end="84" startBytecode="28" endBytecode="28" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 84]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="9704c8a8b337646de765987df82b8f6c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpMethodParm() seems to be useless</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpMethodParm" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="53" end="59" startBytecode="0" endBytecode="127" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpMethodParm()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="59" end="59" startBytecode="31" endBytecode="31" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 59]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="9e64e3a9296327da09b5806e3d2c7d86" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpTwoRegs() seems to be useless</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpTwoRegs" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="33" end="38" startBytecode="0" endBytecode="140" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpTwoRegs()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="38" end="38" startBytecode="35" endBytecode="35" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="229aa9990a6dfad49c7923070390c76a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.testBasicCase() seems to be useless</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="testBasicCase" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="16" end="20" startBytecode="0" endBytecode="123" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.testBasicCase()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="20" end="20" startBytecode="32" endBytecode="32" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="9827a6bc8a6d89ebe7beadbb184d6c49" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.PCAIL_Sample.smpl</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Field classname="ex.PCAIL_Sample" name="smpl" signature="Lex/PCAIL_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>In PCAIL_Sample.java</Message> </SourceLine> <Message>Field ex.PCAIL_Sample.smpl</Message> </Field> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="27" end="27" startBytecode="29" endBytecode="29" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="8ca1c2fe544e83a44cd6a80755e01a9f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpChaining() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpChaining" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="109" end="113" startBytecode="0" endBytecode="152" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpChaining()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="109" end="109" startBytecode="7" endBytecode="7" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="6c0953acb1cdd787caf16916df25a46d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpFooBar(List) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpFooBar" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="152" end="159" startBytecode="0" endBytecode="230" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpFooBar(List)</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="152" end="152" startBytecode="7" endBytecode="7" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 152]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="20898d59ac88f36a25f126a315032d5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PCAIL_Sample.fpTwoAssigns() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PCAIL_Sample" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="12" end="172" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[lines 12-172]</Message> </SourceLine> <Message>In class ex.PCAIL_Sample</Message> </Class> <Method classname="ex.PCAIL_Sample" name="fpTwoAssigns" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCAIL_Sample" start="95" end="106" startBytecode="0" endBytecode="200" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"/> <Message>In method ex.PCAIL_Sample.fpTwoAssigns()</Message> </Method> <SourceLine classname="ex.PCAIL_Sample" primary="true" start="101" end="101" startBytecode="29" endBytecode="29" sourcefile="PCAIL_Sample.java" sourcepath="ex/PCAIL_Sample.java"> <Message>At PCAIL_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="3b745a0b603258d85f604d042e9cc8aa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.PCOA_Sample.nonOverridableMethod() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.PCOA_Sample" primary="true"> <SourceLine classname="ex.PCOA_Sample" start="4" end="31" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"> <Message>At PCOA_Sample.java:[lines 4-31]</Message> </SourceLine> <Message>In class ex.PCOA_Sample</Message> </Class> <Method classname="ex.PCOA_Sample" name="nonOverridableMethod" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCOA_Sample" start="27" end="27" startBytecode="0" endBytecode="42" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"/> <Message>In method ex.PCOA_Sample.nonOverridableMethod()</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.PCOA_Sample" start="27" end="27" startBytecode="0" endBytecode="42" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java" synthetic="true"> <Message>At PCOA_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="3ff4f4b617f33f1c820055eed8d17ff0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.PCOA_Sample.overridableMethod() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.PCOA_Sample" primary="true"> <SourceLine classname="ex.PCOA_Sample" start="4" end="31" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"> <Message>At PCOA_Sample.java:[lines 4-31]</Message> </SourceLine> <Message>In class ex.PCOA_Sample</Message> </Class> <Method classname="ex.PCOA_Sample" name="overridableMethod" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCOA_Sample" start="21" end="21" startBytecode="0" endBytecode="42" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"/> <Message>In method ex.PCOA_Sample.overridableMethod()</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.PCOA_Sample" start="21" end="21" startBytecode="0" endBytecode="42" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java" synthetic="true"> <Message>At PCOA_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS" priority="2" rank="9" abbrev="PCOA" category="CORRECTNESS" instanceHash="ec8d45eae7ccf27db794204a92c06f8a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Constructor makes call to non-final method</ShortMessage> <LongMessage>Constructor new ex.PCOA_Sample() makes call to non-final method</LongMessage> <Class classname="ex.PCOA_Sample" primary="true"> <SourceLine classname="ex.PCOA_Sample" start="4" end="31" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"> <Message>At PCOA_Sample.java:[lines 4-31]</Message> </SourceLine> <Message>In class ex.PCOA_Sample</Message> </Class> <Method classname="ex.PCOA_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PCOA_Sample" start="4" end="6" startBytecode="0" endBytecode="58" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"/> <Message>In method new ex.PCOA_Sample()</Message> </Method> <SourceLine classname="ex.PCOA_Sample" primary="true" start="5" end="5" startBytecode="5" endBytecode="5" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"> <Message>At PCOA_Sample.java:[line 5]</Message> </SourceLine> </BugInstance> <BugInstance type="PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS" priority="3" rank="12" abbrev="PCOA" category="CORRECTNESS" instanceHash="71e7683eb4e3f29b375063b1e6cfddcf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Constructor makes call to non-final method</ShortMessage> <LongMessage>Constructor new ex.PCOA_Sample(long) makes call to non-final method</LongMessage> <Class classname="ex.PCOA_Sample" primary="true"> <SourceLine classname="ex.PCOA_Sample" start="4" end="31" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"> <Message>At PCOA_Sample.java:[lines 4-31]</Message> </SourceLine> <Message>In class ex.PCOA_Sample</Message> </Class> <Method classname="ex.PCOA_Sample" name="<init>" signature="(J)V" isStatic="false" primary="true"> <SourceLine classname="ex.PCOA_Sample" start="16" end="18" startBytecode="0" endBytecode="68" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"/> <Message>In method new ex.PCOA_Sample(long)</Message> </Method> <SourceLine classname="ex.PCOA_Sample" primary="true" start="17" end="17" startBytecode="5" endBytecode="5" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"> <Message>At PCOA_Sample.java:[line 17]</Message> </SourceLine> <SourceLine classname="ex.PCOA_Sample" start="30" end="30" startBytecode="1" endBytecode="1" sourcefile="PCOA_Sample.java" sourcepath="ex/PCOA_Sample.java"> <Message>At PCOA_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="BC_BAD_CAST_TO_CONCRETE_COLLECTION" priority="2" rank="17" abbrev="BC" category="STYLE" instanceHash="af6b8e3085f102af847e6b6eeb26b33f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Questionable cast to concrete collection</ShortMessage> <LongMessage>Questionable cast from java.util.List<java.lang.String> to java.util.ArrayList in new ex.PDP_Sample(List)</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="<init>" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="13" startBytecode="0" endBytecode="6" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method new ex.PDP_Sample(List)</Message> </Method> <Type descriptor="Ljava/util/List;" role="TYPE_FOUND" typeParameters="<java.lang.String>"> <SourceLine classname="java.util.List" start="410" end="732" sourcefile="List.java" sourcepath="java/util/List.java"> <Message>At List.java:[lines 410-732]</Message> </SourceLine> <Message>Actual type java.util.List<java.lang.String></Message> </Type> <Type descriptor="Ljava/util/ArrayList;" role="TYPE_EXPECTED"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Expected java.util.ArrayList</Message> </Type> <LocalVariable name="l" register="1" pc="5" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from l</Message> </LocalVariable> <SourceLine classname="ex.PDP_Sample" primary="true" start="12" end="12" startBytecode="6" endBytecode="6" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="BC_BAD_CAST_TO_CONCRETE_COLLECTION" priority="2" rank="17" abbrev="BC" category="STYLE" instanceHash="25a30d5a63cdc984f27afe49dc7ffc05" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Questionable cast to concrete collection</ShortMessage> <LongMessage>Questionable cast from java.util.List<java.lang.String> to java.util.ArrayList in ex.PDP_Sample.testStatic(long, List)</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testStatic" signature="(JLjava/util/List;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="31" end="32" startBytecode="0" endBytecode="3" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testStatic(long, List)</Message> </Method> <Type descriptor="Ljava/util/List;" role="TYPE_FOUND" typeParameters="<java.lang.String>"> <SourceLine classname="java.util.List" start="410" end="732" sourcefile="List.java" sourcepath="java/util/List.java"> <Message>At List.java:[lines 410-732]</Message> </SourceLine> <Message>Actual type java.util.List<java.lang.String></Message> </Type> <Type descriptor="Ljava/util/ArrayList;" role="TYPE_EXPECTED"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Expected java.util.ArrayList</Message> </Type> <LocalVariable name="l" register="2" pc="0" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from l</Message> </LocalVariable> <SourceLine classname="ex.PDP_Sample" primary="true" start="31" end="31" startBytecode="1" endBytecode="1" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="BC_BAD_CAST_TO_CONCRETE_COLLECTION" priority="3" rank="20" abbrev="BC" category="STYLE" instanceHash="5e6e95cae977376e93b7aaf8fe373e5b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Questionable cast to concrete collection</ShortMessage> <LongMessage>Questionable cast from java.util.List<java.lang.String> to java.util.ArrayList in ex.PDP_Sample.testDoubleInSig(double, List)</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testDoubleInSig" signature="(DLjava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="27" end="28" startBytecode="0" endBytecode="4" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testDoubleInSig(double, List)</Message> </Method> <Type descriptor="Ljava/util/List;" role="TYPE_FOUND" typeParameters="<java.lang.String>"> <SourceLine classname="java.util.List" start="410" end="732" sourcefile="List.java" sourcepath="java/util/List.java"> <Message>At List.java:[lines 410-732]</Message> </SourceLine> <Message>Actual type java.util.List<java.lang.String></Message> </Type> <Type descriptor="Ljava/util/ArrayList;" role="TYPE_EXPECTED"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Expected java.util.ArrayList</Message> </Type> <LocalVariable name="l" register="3" pc="1" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from l</Message> </LocalVariable> <SourceLine classname="ex.PDP_Sample" primary="true" start="27" end="27" startBytecode="2" endBytecode="2" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="BC_BAD_CAST_TO_CONCRETE_COLLECTION" priority="3" rank="20" abbrev="BC" category="STYLE" instanceHash="8dcc08233e053f12d1222252c574a698" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Questionable cast to concrete collection</ShortMessage> <LongMessage>Questionable cast from java.util.List<java.lang.String> to java.util.ArrayList in ex.PDP_Sample.testFPDerivableMethod(List)</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPDerivableMethod" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="35" end="36" startBytecode="0" endBytecode="4" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPDerivableMethod(List)</Message> </Method> <Type descriptor="Ljava/util/List;" role="TYPE_FOUND" typeParameters="<java.lang.String>"> <SourceLine classname="java.util.List" start="410" end="732" sourcefile="List.java" sourcepath="java/util/List.java"> <Message>At List.java:[lines 410-732]</Message> </SourceLine> <Message>Actual type java.util.List<java.lang.String></Message> </Type> <Type descriptor="Ljava/util/ArrayList;" role="TYPE_EXPECTED"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Expected java.util.ArrayList</Message> </Type> <LocalVariable name="l" register="1" pc="1" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from l</Message> </LocalVariable> <SourceLine classname="ex.PDP_Sample" primary="true" start="35" end="35" startBytecode="2" endBytecode="2" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="BC_UNCONFIRMED_CAST" priority="3" rank="20" abbrev="BC" category="STYLE" instanceHash="f557694cda134fb198b238926974b9b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unchecked/unconfirmed cast</ShortMessage> <LongMessage>Unchecked/unconfirmed cast from Comparable<?> to Number in ex.PDP_Sample.testFPFlimsyIfGuard(Comparable, boolean)</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPFlimsyIfGuard" signature="(Ljava/lang/Comparable;Z)Ljava/lang/String;" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="47" end="53" startBytecode="0" endBytecode="19" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPFlimsyIfGuard(Comparable, boolean)</Message> </Method> <Type descriptor="Ljava/lang/Comparable;" role="TYPE_FOUND" typeParameters="<?>"> <SourceLine classname="java.lang.Comparable" sourcefile="Comparable.java" sourcepath="java/lang/Comparable.java"> <Message>In Comparable.java</Message> </SourceLine> <Message>Actual type Comparable<?></Message> </Type> <Type descriptor="Ljava/lang/Number;" role="TYPE_EXPECTED"> <SourceLine classname="java.lang.Number" start="55" end="119" sourcefile="Number.java" sourcepath="java/lang/Number.java"> <Message>At Number.java:[lines 55-119]</Message> </SourceLine> <Message>Expected Number</Message> </Type> <LocalVariable name="c" register="0" pc="9" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from c</Message> </LocalVariable> <SourceLine classname="ex.PDP_Sample" primary="true" start="49" end="49" startBytecode="10" endBytecode="10" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="58f9241981c428a39a0f15df538d4ce3" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to aal in ex.PDP_Sample.testStatic(long, List)</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testStatic" signature="(JLjava/util/List;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="31" end="32" startBytecode="0" endBytecode="3" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testStatic(long, List)</Message> </Method> <LocalVariable name="aal" register="3" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named aal</Message> </LocalVariable> <SourceLine classname="ex.PDP_Sample" primary="true" start="31" end="31" startBytecode="4" endBytecode="4" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 31]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="aal"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="bdbb629fd420ecf4835f804797b9c5f4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.PDP_Sample does not implement a toString method</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="feef5105198a8aacbd226d6bb91ec916" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.PDP_Sample.testMultiCasts(String, Object) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testMultiCasts" signature="(Ljava/lang/String;Ljava/lang/Object;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="39" end="44" startBytecode="0" endBytecode="115" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testMultiCasts(String, Object)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="39" end="39" startBytecode="3" endBytecode="3" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="feef5105198a8aacbd226d6bb91ec916" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.PDP_Sample.testMultiCasts(String, Object) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testMultiCasts" signature="(Ljava/lang/String;Ljava/lang/Object;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="39" end="44" startBytecode="0" endBytecode="115" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testMultiCasts(String, Object)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="41" end="41" startBytecode="23" endBytecode="23" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="42ac675f24e857be8da20a0e098b627f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.PDP_Sample.usesLambda(PDP_Sample$LambdaConstrained) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="usesLambda" signature="(Lex/PDP_Sample$LambdaConstrained;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="115" end="115" startBytecode="0" endBytecode="52" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.usesLambda(PDP_Sample$LambdaConstrained)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.PDP_Sample" start="115" end="115" startBytecode="0" endBytecode="52" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[line 115]</Message> </SourceLine> </BugInstance> <BugInstance type="PDP_POORLY_DEFINED_PARAMETER" priority="2" rank="7" abbrev="PDP" category="CORRECTNESS" instanceHash="f55f58e951806d8bd452d60c3180e474" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameters more abstractly than needed to function properly</ShortMessage> <LongMessage>Method new ex.PDP_Sample(List) defines parameters more abstractly than needed to function properly</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="<init>" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="13" startBytecode="0" endBytecode="90" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method new ex.PDP_Sample(List)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="12" end="12" startBytecode="9" endBytecode="9" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 12]</Message> </SourceLine> <String value="l"> <Message>Value l</Message> </String> </BugInstance> <BugInstance type="PDP_POORLY_DEFINED_PARAMETER" priority="2" rank="7" abbrev="PDP" category="CORRECTNESS" instanceHash="b51a27a177c36c41657c2e42f047b155" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameters more abstractly than needed to function properly</ShortMessage> <LongMessage>Method ex.PDP_Sample.testDoubleInSig(double, List) defines parameters more abstractly than needed to function properly</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testDoubleInSig" signature="(DLjava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="27" end="28" startBytecode="0" endBytecode="92" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testDoubleInSig(double, List)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="27" end="27" startBytecode="5" endBytecode="5" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 27]</Message> </SourceLine> <String value="l"> <Message>Value l</Message> </String> </BugInstance> <BugInstance type="PDP_POORLY_DEFINED_PARAMETER" priority="2" rank="7" abbrev="PDP" category="CORRECTNESS" instanceHash="99ce925207f309e48baeba9f0ce532e2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameters more abstractly than needed to function properly</ShortMessage> <LongMessage>Method ex.PDP_Sample.testStatic(long, List) defines parameters more abstractly than needed to function properly</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testStatic" signature="(JLjava/util/List;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="31" end="32" startBytecode="0" endBytecode="99" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testStatic(long, List)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="31" end="31" startBytecode="4" endBytecode="4" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 31]</Message> </SourceLine> <String value="l"> <Message>Value l</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="2" rank="18" abbrev="PRMC" category="PERFORMANCE" instanceHash="b0f6c113d33c9a946eb683eff0585e81" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.PDP_Sample.testFPLookupSwitch(Comparable, int) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPLookupSwitch" signature="(Ljava/lang/Comparable;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="90" end="107" startBytecode="0" endBytecode="264" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPLookupSwitch(Comparable, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="99" end="99" startBytecode="77" endBytecode="77" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 99]</Message> </SourceLine> <String value="valueOf(Ljava/lang/Object;)Ljava/lang/String;"> <Message>Value valueOf(Ljava/lang/Object;)Ljava/lang/String;</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="2" rank="18" abbrev="PRMC" category="PERFORMANCE" instanceHash="e11e1abf434526bdc23b4363548795e6" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPTableSwitchGuard" signature="(Ljava/lang/Comparable;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="57" end="86" startBytecode="0" endBytecode="333" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="66" end="66" startBytecode="81" endBytecode="81" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 66]</Message> </SourceLine> <String value="valueOf(Ljava/lang/Object;)Ljava/lang/String;"> <Message>Value valueOf(Ljava/lang/Object;)Ljava/lang/String;</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="2" rank="18" abbrev="PRMC" category="PERFORMANCE" instanceHash="e11e1abf434526bdc23b4363548795e6" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPTableSwitchGuard" signature="(Ljava/lang/Comparable;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="57" end="86" startBytecode="0" endBytecode="333" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="74" end="74" startBytecode="126" endBytecode="126" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 74]</Message> </SourceLine> <String value="valueOf(Ljava/lang/Object;)Ljava/lang/String;"> <Message>Value valueOf(Ljava/lang/Object;)Ljava/lang/String;</Message> </String> </BugInstance> <BugInstance type="RANGE_STRING_INDEX" priority="2" rank="9" abbrev="RANGE" category="CORRECTNESS" instanceHash="e715d50165acc824a9e1f2e834a5a635" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>String index is out of bounds</ShortMessage> <LongMessage>String index is out of bounds when calling String.substring(int, int): 1</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPTableSwitchGuard" signature="(Ljava/lang/Comparable;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="57" end="86" startBytecode="0" endBytecode="333" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="82" end="82" startBytecode="152" endBytecode="152" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 82]</Message> </SourceLine> <Int value="1" role="INT_VALUE"> <Message>Value 1</Message> </Int> <Int value="0" role="INT_MAX_VALUE"> <Message>Maximum valid value 0</Message> </Int> <Method classname="java.lang.String" name="substring" signature="(II)Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="1959" end="1969" startBytecode="0" endBytecode="149" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.substring(int, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" start="82" end="82" startBytecode="152" endBytecode="152" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 82]</Message> </SourceLine> </BugInstance> <BugInstance type="SF_SWITCH_NO_DEFAULT" priority="2" rank="19" abbrev="SF" category="STYLE" instanceHash="66a6c4086953959cc698ad323815bc7b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Switch statement found where default case is missing</ShortMessage> <LongMessage>Switch statement found in ex.PDP_Sample.testFPLookupSwitch(Comparable, int) where default case is missing</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPLookupSwitch" signature="(Ljava/lang/Comparable;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="90" end="107" startBytecode="0" endBytecode="264" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPLookupSwitch(Comparable, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="92" end="103" startBytecode="4" endBytecode="113" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 92-103]</Message> </SourceLine> </BugInstance> <BugInstance type="SF_SWITCH_NO_DEFAULT" priority="2" rank="19" abbrev="SF" category="STYLE" instanceHash="750430efc1a67c436209d378b3fd4878" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Switch statement found where default case is missing</ShortMessage> <LongMessage>Switch statement found in ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int) where default case is missing</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPTableSwitchGuard" signature="(Ljava/lang/Comparable;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="57" end="86" startBytecode="0" endBytecode="333" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="59" end="82" startBytecode="4" endBytecode="155" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 59-82]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="9d42936bb5b2746eb44b5a922f545bf2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PDP_Sample.testMultiCasts(String, Object) seems to be useless</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testMultiCasts" signature="(Ljava/lang/String;Ljava/lang/Object;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="39" end="44" startBytecode="0" endBytecode="115" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testMultiCasts(String, Object)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="44" end="44" startBytecode="37" endBytecode="37" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 44]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="4ca086bb401543eebb5afb12782eb522" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PDP_Sample.testStatic(long, List) seems to be useless</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testStatic" signature="(JLjava/util/List;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="31" end="32" startBytecode="0" endBytecode="99" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testStatic(long, List)</Message> </Method> <SourceLine classname="ex.PDP_Sample" primary="true" start="32" end="32" startBytecode="5" endBytecode="5" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="5695869d693da684db7def9343fac7f7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.PDP_Sample.testDoubleInSig(double, List) is never called</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testDoubleInSig" signature="(DLjava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="27" end="28" startBytecode="0" endBytecode="92" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testDoubleInSig(double, List)</Message> </Method> <SourceLine classname="ex.PDP_Sample" start="27" end="28" startBytecode="0" endBytecode="92" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 27-28]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="cd77bd587393884ac213fbba832851c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.PDP_Sample.testFPCodeChecksType(List) is never called</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPCodeChecksType" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="16" end="19" startBytecode="0" endBytecode="102" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPCodeChecksType(List)</Message> </Method> <SourceLine classname="ex.PDP_Sample" start="16" end="19" startBytecode="0" endBytecode="102" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 16-19]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="3b0917d3d1d46c96670ec7b076cfe494" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.PDP_Sample.testFPLookupSwitch(Comparable, int) is never called</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPLookupSwitch" signature="(Ljava/lang/Comparable;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="90" end="107" startBytecode="0" endBytecode="264" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPLookupSwitch(Comparable, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" start="90" end="107" startBytecode="0" endBytecode="264" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 90-107]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="9b0b4323191285a7b81c326c9a14f979" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.PDP_Sample.testFPNonParm(String) is never called</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPNonParm" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="22" end="24" startBytecode="0" endBytecode="104" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPNonParm(String)</Message> </Method> <SourceLine classname="ex.PDP_Sample" start="22" end="24" startBytecode="0" endBytecode="104" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 22-24]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="8d4e316d79bec66a1feb21c7fe732859" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int) is never called</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPTableSwitchGuard" signature="(Ljava/lang/Comparable;I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="57" end="86" startBytecode="0" endBytecode="333" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPTableSwitchGuard(Comparable, int)</Message> </Method> <SourceLine classname="ex.PDP_Sample" start="57" end="86" startBytecode="0" endBytecode="333" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 57-86]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="7adc6887c1e89ed8827c624291f0114e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.PDP_Sample.testDoubleInSig(double, List) has unused parameters</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testDoubleInSig" signature="(DLjava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="27" end="28" startBytecode="0" endBytecode="92" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testDoubleInSig(double, List)</Message> </Method> <String value="Parameter 1: d"> <Message>Value Parameter 1: d</Message> </String> <SourceLine classname="ex.PDP_Sample" start="27" end="28" startBytecode="0" endBytecode="92" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 27-28]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="5e15101c22f107322a1497aae734a483" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.PDP_Sample.testFPNonParm(String) has unused parameters</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testFPNonParm" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" start="22" end="24" startBytecode="0" endBytecode="104" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testFPNonParm(String)</Message> </Method> <String value="Parameter 1: s"> <Message>Value Parameter 1: s</Message> </String> <SourceLine classname="ex.PDP_Sample" start="22" end="24" startBytecode="0" endBytecode="104" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 22-24]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="58fada1950786bd67be0ad32f4a5fbda" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.PDP_Sample.testStatic(long, List) has unused parameters</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Method classname="ex.PDP_Sample" name="testStatic" signature="(JLjava/util/List;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PDP_Sample" start="31" end="32" startBytecode="0" endBytecode="99" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"/> <Message>In method ex.PDP_Sample.testStatic(long, List)</Message> </Method> <String value="Parameter 1: lng"> <Message>Value Parameter 1: lng</Message> </String> <SourceLine classname="ex.PDP_Sample" start="31" end="32" startBytecode="0" endBytecode="99" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java" synthetic="true"> <Message>At PDP_Sample.java:[lines 31-32]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="1dd00f7363e3ca4e3a2267d314bbb44f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.PDP_Sample.al</LongMessage> <Class classname="ex.PDP_Sample" primary="true"> <SourceLine classname="ex.PDP_Sample" start="11" end="123" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[lines 11-123]</Message> </SourceLine> <Message>In class ex.PDP_Sample</Message> </Class> <Field classname="ex.PDP_Sample" name="al" signature="Ljava/util/ArrayList;" isStatic="false" primary="true"> <SourceLine classname="ex.PDP_Sample" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>In PDP_Sample.java</Message> </SourceLine> <Message>Field ex.PDP_Sample.al</Message> </Field> <SourceLine classname="ex.PDP_Sample" primary="true" start="12" end="12" startBytecode="9" endBytecode="9" sourcefile="PDP_Sample.java" sourcepath="ex/PDP_Sample.java"> <Message>At PDP_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="fba74d6f0625cf6af765bd14466a248f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.PIS_Sample.main(String[]) prints the stack trace to the console</LongMessage> <Class classname="ex.PIS_Sample" primary="true"> <SourceLine classname="ex.PIS_Sample" start="9" end="36" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"> <Message>At PIS_Sample.java:[lines 9-36]</Message> </SourceLine> <Message>In class ex.PIS_Sample</Message> </Class> <Method classname="ex.PIS_Sample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PIS_Sample" start="12" end="36" startBytecode="0" endBytecode="515" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"/> <Message>In method ex.PIS_Sample.main(String[])</Message> </Method> <SourceLine classname="ex.PIS_Sample" primary="true" start="34" end="34" startBytecode="224" endBytecode="224" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"> <Message>At PIS_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="REC_CATCH_EXCEPTION" priority="3" rank="20" abbrev="REC" category="STYLE" instanceHash="241b482f8dfa161726a2c30b94189153" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="396"> <ShortMessage>Exception is caught when Exception is not thrown</ShortMessage> <LongMessage>Exception is caught when Exception is not thrown in ex.PIS_Sample.main(String[])</LongMessage> <Class classname="ex.PIS_Sample" primary="true"> <SourceLine classname="ex.PIS_Sample" start="9" end="36" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"> <Message>At PIS_Sample.java:[lines 9-36]</Message> </SourceLine> <Message>In class ex.PIS_Sample</Message> </Class> <Method classname="ex.PIS_Sample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.PIS_Sample" start="12" end="36" startBytecode="0" endBytecode="515" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"/> <Message>In method ex.PIS_Sample.main(String[])</Message> </Method> <SourceLine classname="ex.PIS_Sample" primary="true" start="33" end="33" startBytecode="222" endBytecode="222" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"> <Message>At PIS_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="PIS_POSSIBLE_INCOMPLETE_SERIALIZATION" priority="2" rank="7" abbrev="PIS" category="CORRECTNESS" instanceHash="811c81012b5fffaa6b23aa38aaa33fcb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class doesn't serialize superclass fields</ShortMessage> <LongMessage>Class ex.PIS_Sample$B doesn't serialize superclass fields</LongMessage> <Class classname="ex.PIS_Sample$B" primary="true"> <SourceLine classname="ex.PIS_Sample$B" start="42" end="43" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"> <Message>At PIS_Sample.java:[lines 42-43]</Message> </SourceLine> <Message>In class ex.PIS_Sample$B</Message> </Class> <SourceLine classname="ex.PIS_Sample$B" start="42" end="43" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java" synthetic="true"> <Message>At PIS_Sample.java:[lines 42-43]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="716ab089359ea4bc5f86c328de56aaac" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.PIS_Sample$B is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.PIS_Sample$B" primary="true"> <SourceLine classname="ex.PIS_Sample$B" start="42" end="43" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"> <Message>At PIS_Sample.java:[lines 42-43]</Message> </SourceLine> <Message>In class ex.PIS_Sample$B</Message> </Class> <SourceLine classname="ex.PIS_Sample$B" start="42" end="43" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java" synthetic="true"> <Message>At PIS_Sample.java:[lines 42-43]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="6461b81e2000be71799bc45d65286092" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.PIS_Sample$C is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.PIS_Sample$C" primary="true"> <SourceLine classname="ex.PIS_Sample$C" start="46" end="47" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"> <Message>At PIS_Sample.java:[lines 46-47]</Message> </SourceLine> <Message>In class ex.PIS_Sample$C</Message> </Class> <SourceLine classname="ex.PIS_Sample$C" start="46" end="47" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java" synthetic="true"> <Message>At PIS_Sample.java:[lines 46-47]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="9194524ba3da60f57d98c79261793c83" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.PIS_Sample$D is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.PIS_Sample$D" primary="true"> <SourceLine classname="ex.PIS_Sample$D" start="50" end="51" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java"> <Message>At PIS_Sample.java:[lines 50-51]</Message> </SourceLine> <Message>In class ex.PIS_Sample$D</Message> </Class> <SourceLine classname="ex.PIS_Sample$D" start="50" end="51" sourcefile="PIS_Sample.java" sourcepath="ex/PIS_Sample.java" synthetic="true"> <Message>At PIS_Sample.java:[lines 50-51]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="fa0c311842f41580e2e7de13fc07b212" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.PL_Sample.getModel(String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.PL_Sample" primary="true"> <SourceLine classname="ex.PL_Sample" start="6" end="39" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.PL_Sample</Message> </Class> <Method classname="ex.PL_Sample" name="getModel" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PL_Sample" start="23" end="31" startBytecode="0" endBytecode="161" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"/> <Message>In method ex.PL_Sample.getModel(String)</Message> </Method> <SourceLine classname="ex.PL_Sample" start="23" end="31" startBytecode="0" endBytecode="161" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java" synthetic="true"> <Message>At PL_Sample.java:[lines 23-31]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="913e6f628948b648da9fad98f9728163" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to xx in ex.PL_Sample.testFP()</LongMessage> <Class classname="ex.PL_Sample" primary="true"> <SourceLine classname="ex.PL_Sample" start="6" end="39" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.PL_Sample</Message> </Class> <Method classname="ex.PL_Sample" name="testFP" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PL_Sample" start="35" end="39" startBytecode="0" endBytecode="13" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"/> <Message>In method ex.PL_Sample.testFP()</Message> </Method> <LocalVariable name="xx" register="2" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named xx</Message> </LocalVariable> <SourceLine classname="ex.PL_Sample" primary="true" start="36" end="36" startBytecode="8" endBytecode="8" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[line 36]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="xx"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="8ae381b975a6db754c49a6db2fa55ed0" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to yy in ex.PL_Sample.testFP()</LongMessage> <Class classname="ex.PL_Sample" primary="true"> <SourceLine classname="ex.PL_Sample" start="6" end="39" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.PL_Sample</Message> </Class> <Method classname="ex.PL_Sample" name="testFP" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PL_Sample" start="35" end="39" startBytecode="0" endBytecode="13" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"/> <Message>In method ex.PL_Sample.testFP()</Message> </Method> <LocalVariable name="yy" register="3" pc="19" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named yy</Message> </LocalVariable> <SourceLine classname="ex.PL_Sample" primary="true" start="38" end="38" startBytecode="18" endBytecode="18" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[line 38]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="yy"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="2649f770349abb999a22f531f2352748" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.PL_Sample does not implement a toString method</LongMessage> <Class classname="ex.PL_Sample" primary="true"> <SourceLine classname="ex.PL_Sample" start="6" end="39" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.PL_Sample</Message> </Class> <SourceLine classname="ex.PL_Sample" start="6" end="39" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java" synthetic="true"> <Message>At PL_Sample.java:[lines 6-39]</Message> </SourceLine> </BugInstance> <BugInstance type="PL_PARALLEL_LISTS" priority="2" rank="17" abbrev="PL" category="STYLE" instanceHash="8c692bf7d8ffec1969d44da304f3cb65" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines two or more one for one associated lists or arrays</ShortMessage> <LongMessage>Class ex.PL_Sample defines two or more one for one associated lists or arrays</LongMessage> <Class classname="ex.PL_Sample" primary="true"> <SourceLine classname="ex.PL_Sample" start="6" end="39" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.PL_Sample</Message> </Class> <Method classname="ex.PL_Sample" name="getModel" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PL_Sample" start="23" end="31" startBytecode="0" endBytecode="161" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"/> <Message>In method ex.PL_Sample.getModel(String)</Message> </Method> <SourceLine classname="ex.PL_Sample" primary="true" start="25" end="25" startBytecode="17" endBytecode="17" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="PL_PARALLEL_LISTS" priority="2" rank="17" abbrev="PL" category="STYLE" instanceHash="424a819c272c30587aa4ab360cea389b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines two or more one for one associated lists or arrays</ShortMessage> <LongMessage>Class ex.PL_Sample defines two or more one for one associated lists or arrays</LongMessage> <Class classname="ex.PL_Sample" primary="true"> <SourceLine classname="ex.PL_Sample" start="6" end="39" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.PL_Sample</Message> </Class> <Method classname="ex.PL_Sample" name="printPeople" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PL_Sample" start="17" end="20" startBytecode="0" endBytecode="148" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"/> <Message>In method ex.PL_Sample.printPeople()</Message> </Method> <SourceLine classname="ex.PL_Sample" primary="true" start="18" end="18" startBytecode="41" endBytecode="41" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="430a9abf323d85535c2bac9e9461dcda" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PL_Sample.testFP() seems to be useless</LongMessage> <Class classname="ex.PL_Sample" primary="true"> <SourceLine classname="ex.PL_Sample" start="6" end="39" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[lines 6-39]</Message> </SourceLine> <Message>In class ex.PL_Sample</Message> </Class> <Method classname="ex.PL_Sample" name="testFP" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PL_Sample" start="35" end="39" startBytecode="0" endBytecode="107" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"/> <Message>In method ex.PL_Sample.testFP()</Message> </Method> <SourceLine classname="ex.PL_Sample" primary="true" start="39" end="39" startBytecode="19" endBytecode="19" sourcefile="PL_Sample.java" sourcepath="ex/PL_Sample.java"> <Message>At PL_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="55208996777e51fc6e635ee3ab74b51c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.PMB_Sample does not implement a toString method</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_WRONG_FIELD_ORDER" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="889f37ad8b5deba98d15d8acc6beedc7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class orders instance fields before static fields</ShortMessage> <LongMessage>Class ex.PMB_Sample orders instance fields before static fields</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="staticLocal" signature="Ljava/lang/ThreadLocal;" isStatic="true" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.staticLocal</Message> </Field> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>In PMB_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="PMB_INSTANCE_BASED_THREAD_LOCAL" priority="2" rank="7" abbrev="PMB" category="CORRECTNESS" instanceHash="2feaa4f4ef42e017dd957c56b3183bbe" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field is an instance based ThreadLocal variable</ShortMessage> <LongMessage>Field ex.PMB_Sample.local is an instance based ThreadLocal variable</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="local" signature="Ljava/lang/ThreadLocal;" isStatic="false" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.local</Message> </Field> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>In PMB_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="PMB_POSSIBLE_MEMORY_BLOAT" priority="2" rank="7" abbrev="PMB" category="CORRECTNESS" instanceHash="2e245dbeaf70f29f545770c13492206c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Potential memory bloat in static field</ShortMessage> <LongMessage>Class ex.PMB_Sample defines static field "ex.PMB_Sample.bl_data" which appears to allow memory bloat</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="bl_data" signature="Ljava/util/Set;" isStatic="true" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.bl_data</Message> </Field> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>In PMB_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="PMB_POSSIBLE_MEMORY_BLOAT" priority="2" rank="7" abbrev="PMB" category="CORRECTNESS" instanceHash="e424d2cc177759cc7327f33450609fbb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Potential memory bloat in static field</ShortMessage> <LongMessage>Class ex.PMB_Sample defines static field "ex.PMB_Sample.fp_data" which appears to allow memory bloat</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="fp_data" signature="Ljava/util/Map;" isStatic="true" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.fp_data</Message> </Field> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>In PMB_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="3" rank="20" abbrev="UrF" category="PERFORMANCE" instanceHash="e7d79bbd33a02d86f6b39945c1c4c9b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.PMB_Sample.return_data</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="return_data" signature="Ljava/lang/StringBuilder;" isStatic="true" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.return_data</Message> </Field> <SourceLine classname="ex.PMB_Sample" primary="true" start="15" end="15" startBytecode="37" endBytecode="37" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="b4d5e13c6d7a71f7f7f1b98bf0af9fc7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.PMB_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="bl_data" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.bl_data</Message> </Field> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>In PMB_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="f05bde9d9857ba27efee7a9a1c0e30fb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.PMB_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="bloatableSigs" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.bloatableSigs</Message> </Field> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>In PMB_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="a190c686a560df730cd206d78c4a62d5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.PMB_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="data" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.data</Message> </Field> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>In PMB_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="2f644e343b377476a515dffab1e3069b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.PMB_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PMB_Sample" primary="true"> <SourceLine classname="ex.PMB_Sample" start="11" end="94" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 11-94]</Message> </SourceLine> <Message>In class ex.PMB_Sample</Message> </Class> <Field classname="ex.PMB_Sample" name="fp_data" signature="Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>In PMB_Sample.java</Message> </SourceLine> <Message>Field ex.PMB_Sample.fp_data</Message> </Field> <SourceLine classname="ex.PMB_Sample" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>In PMB_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="a2775349fea81f007418851b62ce7394" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.PMB_Sample$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.PMB_Sample$1" primary="true"> <SourceLine classname="ex.PMB_Sample$1" start="1" end="59" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 1-59]</Message> </SourceLine> <Message>In class ex.PMB_Sample$1</Message> </Class> <SourceLine classname="ex.PMB_Sample$1" start="1" end="59" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>At PMB_Sample.java:[lines 1-59]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="c547b06ae9f0bca829cb228bb23a250c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.PMB_Sample$3 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.PMB_Sample$3" primary="true"> <SourceLine classname="ex.PMB_Sample$3" start="1" end="87" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java"> <Message>At PMB_Sample.java:[lines 1-87]</Message> </SourceLine> <Message>In class ex.PMB_Sample$3</Message> </Class> <SourceLine classname="ex.PMB_Sample$3" start="1" end="87" sourcefile="PMB_Sample.java" sourcepath="ex/PMB_Sample.java" synthetic="true"> <Message>At PMB_Sample.java:[lines 1-87]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="959d63d2a1d6eea21c63062e8550fb0d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.PME_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="fpb" signature="Z" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.fpb</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="13" end="13" startBytecode="19" endBytecode="19" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="3fff9f555e5a9bb3756090aacb4238f3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.PME_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="fps" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.fps</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="12" end="12" startBytecode="14" endBytecode="14" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="e46d3b275a7493bf25008f9e660c07d7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.PME_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.s</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="11" end="11" startBytecode="8" endBytecode="8" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="ed4f503b2f1382f1cac09aa46a9661b0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.PME_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="v" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.v</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="10" end="10" startBytecode="2" endBytecode="2" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="762d555153de3700742bae678b4d7024" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.PME_Sample does not implement a toString method</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java" synthetic="true"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> </BugInstance> <BugInstance type="PME_POOR_MANS_ENUM" priority="2" rank="17" abbrev="PME" category="STYLE" instanceHash="bcf1e09955e6235158df586bd9448a2a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Simple field is used like an enum</ShortMessage> <LongMessage>Simple field ex.PME_Sample.s is used like an enum</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.s</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="11" end="11" startBytecode="8" endBytecode="8" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="PME_POOR_MANS_ENUM" priority="2" rank="17" abbrev="PME" category="STYLE" instanceHash="6a196b5c8cd430baed9fff24ba8df3bc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Simple field is used like an enum</ShortMessage> <LongMessage>Simple field ex.PME_Sample.v is used like an enum</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="v" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.v</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="10" end="10" startBytecode="2" endBytecode="2" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="209b75b487970b99e839fc93e3bc2186" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.PME_Sample.fpb</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="fpb" signature="Z" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.fpb</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="13" end="13" startBytecode="19" endBytecode="19" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="3fc77852b0bdd5ec667b18342a450369" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.PME_Sample.fps</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="fps" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.fps</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="12" end="12" startBytecode="14" endBytecode="14" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="c7c932d27fda63f7c01710bb62e6423b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.PME_Sample.s</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.s</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="11" end="11" startBytecode="8" endBytecode="8" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="b0d7a5fd34af08ea2591a5f9c0be449a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.PME_Sample.v</LongMessage> <Class classname="ex.PME_Sample" primary="true"> <SourceLine classname="ex.PME_Sample" start="2" end="31" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[lines 2-31]</Message> </SourceLine> <Message>In class ex.PME_Sample</Message> </Class> <Field classname="ex.PME_Sample" name="v" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.PME_Sample" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>In PME_Sample.java</Message> </SourceLine> <Message>Field ex.PME_Sample.v</Message> </Field> <SourceLine classname="ex.PME_Sample" primary="true" start="10" end="10" startBytecode="2" endBytecode="2" sourcefile="PME_Sample.java" sourcepath="ex/PME_Sample.java"> <Message>At PME_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="3183db4942a37a2b2888a02a9a7c0f1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.PRMCPar does not implement a toString method</LongMessage> <Class classname="ex.PRMCPar" primary="true"> <SourceLine classname="ex.PRMCPar" start="200" end="205" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 200-205]</Message> </SourceLine> <Message>In class ex.PRMCPar</Message> </Class> <SourceLine classname="ex.PRMCPar" start="200" end="205" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>At PRMC_Sample.java:[lines 200-205]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="b37bdc57f056bee271d9490880fe372a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.PRMCPar.fpSuperCall() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.PRMCPar" primary="true"> <SourceLine classname="ex.PRMCPar" start="200" end="205" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 200-205]</Message> </SourceLine> <Message>In class ex.PRMCPar</Message> </Class> <Method classname="ex.PRMCPar" name="fpSuperCall" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMCPar" start="204" end="205" startBytecode="0" endBytecode="58" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMCPar.fpSuperCall()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.PRMCPar" start="204" end="205" startBytecode="0" endBytecode="58" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>At PRMC_Sample.java:[lines 204-205]</Message> </SourceLine> </BugInstance> <BugInstance type="BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS" priority="2" rank="16" abbrev="BC" category="BAD_PRACTICE" instanceHash="9d570f9551c920bc7846d4646e9f48c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Equals method should not assume anything about the type of its argument</ShortMessage> <LongMessage>Equals method for ex.PRMC_Sample assumes the argument is of type PRMC_Sample</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="40" end="45" startBytecode="0" endBytecode="131" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.equals(Object)</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="40" end="40" startBytecode="1" endBytecode="1" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS" priority="2" rank="18" abbrev="BRPI" category="PERFORMANCE" instanceHash="42b87de643adcf3ffdf47c6172016de9" instanceOccurrenceNum="0" instanceOccurrenceMax="2"> <ShortMessage>Method uses backported libraries that are now built in</ShortMessage> <LongMessage>Method ex.PRMC_Sample.emptyList() uses backported libraries that are now built in</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="emptyList" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="101" end="104" startBytecode="0" endBytecode="96" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.emptyList()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="101" end="101" startBytecode="0" endBytecode="0" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 101]</Message> </SourceLine> <String value="EMORY"> <Message>Value EMORY</Message> </String> </BugInstance> <BugInstance type="BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS" priority="2" rank="18" abbrev="BRPI" category="PERFORMANCE" instanceHash="42b87de643adcf3ffdf47c6172016de9" instanceOccurrenceNum="1" instanceOccurrenceMax="2"> <ShortMessage>Method uses backported libraries that are now built in</ShortMessage> <LongMessage>Method ex.PRMC_Sample.emptyList() uses backported libraries that are now built in</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="emptyList" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="101" end="104" startBytecode="0" endBytecode="96" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.emptyList()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="102" end="102" startBytecode="4" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 102]</Message> </SourceLine> <String value="EMORY"> <Message>Value EMORY</Message> </String> </BugInstance> <BugInstance type="BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS" priority="2" rank="18" abbrev="BRPI" category="PERFORMANCE" instanceHash="42b87de643adcf3ffdf47c6172016de9" instanceOccurrenceNum="2" instanceOccurrenceMax="2"> <ShortMessage>Method uses backported libraries that are now built in</ShortMessage> <LongMessage>Method ex.PRMC_Sample.emptyList() uses backported libraries that are now built in</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="emptyList" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="101" end="104" startBytecode="0" endBytecode="96" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.emptyList()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="103" end="103" startBytecode="8" endBytecode="8" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 103]</Message> </SourceLine> <String value="EMORY"> <Message>Value EMORY</Message> </String> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="68dbe5adadb8f52d1045b7ef9606e0d0" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.PRMC_Sample.emptyList()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="emptyList" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="101" end="104" startBytecode="0" endBytecode="6" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.emptyList()</Message> </Method> <LocalVariable name="l" register="1" pc="4" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="101" end="101" startBytecode="3" endBytecode="3" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 101]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="8495e7b6d87c889ebad20044ec8d67f3" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to o in ex.PRMC_Sample.emptyList()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="emptyList" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="101" end="104" startBytecode="0" endBytecode="6" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.emptyList()</Message> </Method> <LocalVariable name="o" register="2" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named o</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="102" end="102" startBytecode="7" endBytecode="7" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 102]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="o"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="fa99831ab23b3a45c340c1b102198ffc" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to p in ex.PRMC_Sample.emptyList()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="emptyList" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="101" end="104" startBytecode="0" endBytecode="6" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.emptyList()</Message> </Method> <LocalVariable name="p" register="3" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named p</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="103" end="103" startBytecode="11" endBytecode="11" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 103]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="p"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="97183ba398eea7d36e13cdd9e4e807c1" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.PRMC_Sample.fpWithGenericReturn()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpWithGenericReturn" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="146" end="148" startBytecode="0" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpWithGenericReturn()</Message> </Method> <LocalVariable name="i" register="2" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="147" end="147" startBytecode="7" endBytecode="7" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 147]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="6e99415963c34d7587cdb1dbd488d0ba" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.PRMC_Sample.fpWithGenericReturn()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpWithGenericReturn" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="146" end="148" startBytecode="0" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpWithGenericReturn()</Message> </Method> <LocalVariable name="s" register="1" pc="4" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="146" end="146" startBytecode="3" endBytecode="3" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 146]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="c795c6f07154e7747db17d693a4e6d2c" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.PRMC_Sample.fpWithGuava()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpWithGuava" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="126" end="128" startBytecode="0" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpWithGuava()</Message> </Method> <LocalVariable name="l" register="1" pc="4" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="126" end="126" startBytecode="3" endBytecode="3" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 126]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="d2a67f6dbb59cbc4d9ccf8222035fa0d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ll in ex.PRMC_Sample.fpWithGuava()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpWithGuava" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="126" end="128" startBytecode="0" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpWithGuava()</Message> </Method> <LocalVariable name="ll" register="2" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ll</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="127" end="127" startBytecode="7" endBytecode="7" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 127]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ll"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="f851a38f8e02239af59c41a2249c5d22" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.PRMC_Sample.rmcFP(ByteBuffer)</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="rmcFP" signature="(Ljava/nio/ByteBuffer;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="34" end="36" startBytecode="0" endBytecode="6" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.rmcFP(ByteBuffer)</Message> </Method> <LocalVariable name="i" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="34" end="34" startBytecode="4" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 34]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="ab6274a3c932221f178e5b9f97802f3d" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to j in ex.PRMC_Sample.rmcFP(ByteBuffer)</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="rmcFP" signature="(Ljava/nio/ByteBuffer;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="34" end="36" startBytecode="0" endBytecode="6" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.rmcFP(ByteBuffer)</Message> </Method> <LocalVariable name="j" register="3" pc="10" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named j</Message> </LocalVariable> <SourceLine classname="ex.PRMC_Sample" primary="true" start="35" end="35" startBytecode="9" endBytecode="9" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 35]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="j"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="HE_EQUALS_USE_HASHCODE" priority="1" rank="14" abbrev="HE" category="BAD_PRACTICE" instanceHash="4219c6c63433abe5948b27c8e1ad6ae3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines equals() and uses Object.hashCode()</ShortMessage> <LongMessage>ex.PRMC_Sample defines equals and uses Object.hashCode()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="40" end="45" startBytecode="0" endBytecode="131" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.equals(Object)</Message> </Method> <SourceLine classname="ex.PRMC_Sample" start="40" end="45" startBytecode="0" endBytecode="131" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>At PRMC_Sample.java:[lines 40-45]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="69ffc2355c95df3296d0aa7a8e731953" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.PRMC_Sample does not implement a toString method</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="b3d7a7785a552dcf5f1dc92216eaaef6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.PRMC_Sample.equals(Object) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="40" end="45" startBytecode="0" endBytecode="131" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.equals(Object)</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="41" end="41" startBytecode="11" endBytecode="11" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="fb04884f3d97313f805c18aae27979be" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.PRMC_Sample.fpCurrentTimeMillis(Object) ignores return value of a non mutating method</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpCurrentTimeMillis" signature="(Ljava/lang/Object;)J" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="84" end="88" startBytecode="0" endBytecode="91" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpCurrentTimeMillis(Object)</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="85" end="85" startBytecode="9" endBytecode="9" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 85]</Message> </SourceLine> <String value="java/lang/Object@hashCode()I"> <Message>Value java/lang/Object@hashCode()I</Message> </String> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="a69ef63df960588a8b3d48e56d036ecd" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field data in ex.PRMC_Sample.equals(Object)</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="40" end="45" startBytecode="0" endBytecode="131" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.equals(Object)</Message> </Method> <Field classname="ex.PRMC_Sample" name="data" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample.data</Message> </Field> <SourceLine classname="ex.PRMC_Sample" primary="true" start="41" end="41" startBytecode="11" endBytecode="11" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="14" abbrev="NP" category="STYLE" instanceHash="379788a51061c053264f313c219ec064" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten public or protected field</ShortMessage> <LongMessage>Read of unwritten public or protected field chainedField in ex.PRMC_Sample.fpChainedFieldsOfDiffBases(PRMC_Sample$Chain, PRMC_Sample$Chain)</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpChainedFieldsOfDiffBases" signature="(Lex/PRMC_Sample$Chain;Lex/PRMC_Sample$Chain;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="115" end="115" startBytecode="0" endBytecode="79" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpChainedFieldsOfDiffBases(PRMC_Sample$Chain, PRMC_Sample$Chain)</Message> </Method> <Field classname="ex.PRMC_Sample$Chain" name="chainedField" signature="Lex/PRMC_Sample$Chain;" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample$Chain" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample$Chain.chainedField</Message> </Field> <SourceLine classname="ex.PRMC_Sample" primary="true" start="115" end="115" startBytecode="4" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 115]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="14" abbrev="NP" category="STYLE" instanceHash="dce1d321c56f2a2da9dc202f3b1ca4eb" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten public or protected field</ShortMessage> <LongMessage>Read of unwritten public or protected field chainedField in ex.PRMC_Sample.validChainedFields(PRMC_Sample$Chain)</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="validChainedFields" signature="(Lex/PRMC_Sample$Chain;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="111" end="111" startBytecode="0" endBytecode="69" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.validChainedFields(PRMC_Sample$Chain)</Message> </Method> <Field classname="ex.PRMC_Sample$Chain" name="chainedField" signature="Lex/PRMC_Sample$Chain;" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample$Chain" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample$Chain.chainedField</Message> </Field> <SourceLine classname="ex.PRMC_Sample" primary="true" start="111" end="111" startBytecode="4" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 111]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="98bed45227385c0f1440ca6e571ae4b4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.PRMC_Sample.setTwo(int, int) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="setTwo" signature="(II)V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="160" end="160" startBytecode="0" endBytecode="62" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.setTwo(int, int)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.PRMC_Sample" start="160" end="160" startBytecode="0" endBytecode="62" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>At PRMC_Sample.java:[line 160]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="a32c02d409af8a5037d54fb399d471d5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.PRMC_Sample.setTwo(Double, Double) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="setTwo" signature="(Ljava/lang/Double;Ljava/lang/Double;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="163" end="163" startBytecode="0" endBytecode="62" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.setTwo(Double, Double)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.PRMC_Sample" start="163" end="163" startBytecode="0" endBytecode="62" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>At PRMC_Sample.java:[line 163]</Message> </SourceLine> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="1" rank="16" abbrev="PRMC" category="PERFORMANCE" instanceHash="a024341807b22dba67ab8f1340e80ba4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.PRMC_Sample.validChainedFields(PRMC_Sample$Chain) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="validChainedFields" signature="(Lex/PRMC_Sample$Chain;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="111" end="111" startBytecode="0" endBytecode="69" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.validChainedFields(PRMC_Sample$Chain)</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="111" end="111" startBytecode="11" endBytecode="11" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 111]</Message> </SourceLine> <String value="toString()Ljava/lang/String;"> <Message>Value toString()Ljava/lang/String;</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="30fa8e505359104c90a5b3d8a25e9ea" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.PRMC_Sample.staticPRMC() appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="staticPRMC" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="49" end="53" startBytecode="0" endBytecode="82" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.staticPRMC()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="50" end="50" startBytecode="6" endBytecode="6" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 50]</Message> </SourceLine> <String value="getInstance()Lex/PRMC_Sample$Factory;"> <Message>Value getInstance()Lex/PRMC_Sample$Factory;</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="30fa8e505359104c90a5b3d8a25e9ea" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.PRMC_Sample.staticPRMC() appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="staticPRMC" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="49" end="53" startBytecode="0" endBytecode="82" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.staticPRMC()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="52" end="52" startBytecode="18" endBytecode="18" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 52]</Message> </SourceLine> <String value="getInstance()Lex/PRMC_Sample$Factory;"> <Message>Value getInstance()Lex/PRMC_Sample$Factory;</Message> </String> </BugInstance> <BugInstance type="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD" priority="1" rank="15" abbrev="ST" category="STYLE" instanceHash="1ace4fdba177ee6341e5689c389e38f3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Write to static field from instance method</ShortMessage> <LongMessage>Write to static field ex.PRMC_Sample.SAMPLE1 from instance method ex.PRMC_Sample.fpMultipleStatics()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpMultipleStatics" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="119" end="123" startBytecode="0" endBytecode="92" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpMultipleStatics()</Message> </Method> <Field classname="ex.PRMC_Sample" name="SAMPLE1" signature="Lex/PRMC_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.PRMC_Sample" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample.SAMPLE1</Message> </Field> <SourceLine classname="ex.PRMC_Sample" primary="true" start="119" end="119" startBytecode="7" endBytecode="7" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 119]</Message> </SourceLine> </BugInstance> <BugInstance type="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD" priority="2" rank="17" abbrev="ST" category="STYLE" instanceHash="f2a4f09d0094be741ed978c558000b64" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Write to static field from instance method</ShortMessage> <LongMessage>Write to static field ex.PRMC_Sample.SAMPLE2 from instance method ex.PRMC_Sample.fpMultipleStatics()</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpMultipleStatics" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="119" end="123" startBytecode="0" endBytecode="92" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpMultipleStatics()</Message> </Method> <Field classname="ex.PRMC_Sample" name="SAMPLE2" signature="Lex/PRMC_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.PRMC_Sample" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample.SAMPLE2</Message> </Field> <SourceLine classname="ex.PRMC_Sample" primary="true" start="121" end="121" startBytecode="24" endBytecode="24" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 121]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="d00dc5dc8ce1b43c118b8dc0bd7cfded" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.PRMC_Sample.fpEnumToString(PRMC_Sample$FPEnum)</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpEnumToString" signature="(Lex/PRMC_Sample$FPEnum;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="92" end="98" startBytecode="0" endBytecode="160" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpEnumToString(PRMC_Sample$FPEnum)</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.PRMC_Sample" primary="true" start="92" end="92" startBytecode="4" endBytecode="4" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 92]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="d7962338223c413a46dea8adc4e8db24" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PRMC_Sample.fpEnumToString(PRMC_Sample$FPEnum) seems to be useless</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpEnumToString" signature="(Lex/PRMC_Sample$FPEnum;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="92" end="98" startBytecode="0" endBytecode="160" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpEnumToString(PRMC_Sample$FPEnum)</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="98" end="98" startBytecode="60" endBytecode="60" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 98]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="ca8251badf757408fd3d72d658535d3a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PRMC_Sample.emptyList() seems to be useless</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="emptyList" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="101" end="104" startBytecode="0" endBytecode="96" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.emptyList()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="104" end="104" startBytecode="12" endBytecode="12" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 104]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="8b7992ae3821e2b803550ab5f32bd1f6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PRMC_Sample.fpWithGenericReturn() seems to be useless</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpWithGenericReturn" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="146" end="148" startBytecode="0" endBytecode="106" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpWithGenericReturn()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="148" end="148" startBytecode="8" endBytecode="8" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 148]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="9474cbc4813d30119148fa9b4f961593" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PRMC_Sample.fpWithGuava() seems to be useless</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpWithGuava" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="126" end="128" startBytecode="0" endBytecode="106" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpWithGuava()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="128" end="128" startBytecode="8" endBytecode="8" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 128]</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="47fff9de87760b087d13270faa46c375" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.PRMC_Sample.array1</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Field classname="ex.PRMC_Sample" name="array1" signature="[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample.array1</Message> </Field> <SourceLine classname="ex.PRMC_Sample" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>In PRMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="UUF_UNUSED_FIELD" priority="2" rank="18" abbrev="UuF" category="PERFORMANCE" instanceHash="1162a274768cdacd0ccf09825aaaccc1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unused field</ShortMessage> <LongMessage>Unused field: ex.PRMC_Sample.array2</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Field classname="ex.PRMC_Sample" name="array2" signature="[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample.array2</Message> </Field> <SourceLine classname="ex.PRMC_Sample" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>In PRMC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="69f24c41c2d144181847aa8c8a9893e4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.PRMC_Sample.data</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Field classname="ex.PRMC_Sample" name="data" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample.data</Message> </Field> <SourceLine classname="ex.PRMC_Sample" primary="true" start="41" end="41" startBytecode="6" endBytecode="6" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="d0560a7561205b2999acdbf9c670d66d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.PRMC_Sample.willThrow() throws exception with static message string</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="willThrow" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="151" end="151" startBytecode="0" endBytecode="51" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.willThrow()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="151" end="151" startBytecode="9" endBytecode="9" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 151]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="b28f6b367d7502e060e3f089b514377" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PRMC_Sample.fpEnumToString(PRMC_Sample$FPEnum) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpEnumToString" signature="(Lex/PRMC_Sample$FPEnum;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="92" end="98" startBytecode="0" endBytecode="160" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpEnumToString(PRMC_Sample$FPEnum)</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="92" end="92" startBytecode="7" endBytecode="7" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 92]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="c99625406e80365aa9a97c62a15bd3bb" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PRMC_Sample.fpWithGuava() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpWithGuava" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="126" end="128" startBytecode="0" endBytecode="106" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpWithGuava()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="126" end="126" startBytecode="3" endBytecode="3" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 126]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="c99625406e80365aa9a97c62a15bd3bb" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PRMC_Sample.fpWithGuava() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PRMC_Sample" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="18" end="166" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 18-166]</Message> </SourceLine> <Message>In class ex.PRMC_Sample</Message> </Class> <Method classname="ex.PRMC_Sample" name="fpWithGuava" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample" start="126" end="128" startBytecode="0" endBytecode="106" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"/> <Message>In method ex.PRMC_Sample.fpWithGuava()</Message> </Method> <SourceLine classname="ex.PRMC_Sample" primary="true" start="127" end="127" startBytecode="7" endBytecode="7" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 127]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="96400e1c3eed02e09f5a4094b6649da" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.PRMC_Sample$Chain be a _static_ inner class?</LongMessage> <Class classname="ex.PRMC_Sample$Chain" primary="true"> <SourceLine classname="ex.PRMC_Sample$Chain" start="168" end="185" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 168-185]</Message> </SourceLine> <Message>In class ex.PRMC_Sample$Chain</Message> </Class> <SourceLine classname="ex.PRMC_Sample$Chain" start="168" end="185" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>At PRMC_Sample.java:[lines 168-185]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="17" abbrev="UwF" category="STYLE" instanceHash="b4f80aca61a48b1dee459b1206a9cb14" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten public or protected field</ShortMessage> <LongMessage>Unwritten public or protected field: ex.PRMC_Sample$Chain.chainedField</LongMessage> <Class classname="ex.PRMC_Sample$Chain" primary="true"> <SourceLine classname="ex.PRMC_Sample$Chain" start="168" end="185" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 168-185]</Message> </SourceLine> <Message>In class ex.PRMC_Sample$Chain</Message> </Class> <Field classname="ex.PRMC_Sample$Chain" name="chainedField" signature="Lex/PRMC_Sample$Chain;" isStatic="false" primary="true"> <SourceLine classname="ex.PRMC_Sample$Chain" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>In PRMC_Sample.java</Message> </SourceLine> <Message>Field ex.PRMC_Sample$Chain.chainedField</Message> </Field> <SourceLine classname="ex.PRMC_Sample" primary="true" start="111" end="111" startBytecode="1" endBytecode="1" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[line 111]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="8edf56fd9eb039db8753d88536c24041" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.PRMC_Sample$SFIssue71 be a _static_ inner class?</LongMessage> <Class classname="ex.PRMC_Sample$SFIssue71" primary="true"> <SourceLine classname="ex.PRMC_Sample$SFIssue71" start="189" end="196" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java"> <Message>At PRMC_Sample.java:[lines 189-196]</Message> </SourceLine> <Message>In class ex.PRMC_Sample$SFIssue71</Message> </Class> <SourceLine classname="ex.PRMC_Sample$SFIssue71" start="189" end="196" sourcefile="PRMC_Sample.java" sourcepath="ex/PRMC_Sample.java" synthetic="true"> <Message>At PRMC_Sample.java:[lines 189-196]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="7cc2569611b7285d605b1c53d7706a55" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpPSCInCatchBlock(List) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpPSCInCatchBlock" signature="(Ljava/util/List;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="154" end="178" startBytecode="0" endBytecode="507" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpPSCInCatchBlock(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" start="154" end="178" startBytecode="0" endBytecode="507" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java" synthetic="true"> <Message>At PSC_Sample.java:[lines 154-178]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="f2b2c41b2f1dffa3fc3b2210f21341ce" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.PSC_Sample.fpNoAllocation(List, List)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpNoAllocation" signature="(Ljava/util/List;Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="182" end="185" startBytecode="0" endBytecode="20" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpNoAllocation(List, List)</Message> </Method> <LocalVariable name="i" register="3" pc="22" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.PSC_Sample" primary="true" start="182" end="182" startBytecode="21" endBytecode="21" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 182]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="d9b5b059f204d8794f0a1534fa3c6603" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.PSC_Sample.fpPSCInCatchBlock(List)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpPSCInCatchBlock" signature="(Ljava/util/List;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="154" end="178" startBytecode="0" endBytecode="56" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpPSCInCatchBlock(List)</Message> </Method> <LocalVariable name="s" register="3" pc="41" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.PSC_Sample" primary="true" start="158" end="158" startBytecode="40" endBytecode="40" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 158]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="779fffd7adb673ee977b382053c7eda8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpAllocationInLoop(Map) does not presize the allocation of a collection</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpAllocationInLoop" signature="(Ljava/util/Map;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="133" end="141" startBytecode="0" endBytecode="272" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpAllocationInLoop(Map)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="139" end="139" startBytecode="73" endBytecode="73" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 139]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="f8f18faf3f0e38a4f930d44c54d81461" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PSC_Sample.testGuavaLists(List) does not presize the allocation of a collection</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testGuavaLists" signature="(Ljava/util/List;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="64" end="70" startBytecode="0" endBytecode="193" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testGuavaLists(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="67" end="67" startBytecode="31" endBytecode="31" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 67]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="adca929500f76c9c58aadfc324f3c85d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PSC_Sample.testGuavaMaps(List) does not presize the allocation of a collection</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testGuavaMaps" signature="(Ljava/util/List;)Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="84" end="90" startBytecode="0" endBytecode="194" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testGuavaMaps(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="87" end="87" startBytecode="32" endBytecode="32" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 87]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="6ce18529f99cffe16ce53dadb0b511a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PSC_Sample.testGuavaSets(List) does not presize the allocation of a collection</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testGuavaSets" signature="(Ljava/util/List;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="74" end="80" startBytecode="0" endBytecode="193" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testGuavaSets(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="77" end="77" startBytecode="31" endBytecode="31" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 77]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="6e083f8e0e64a74810e7b8f654ea4964" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSC(List) does not presize the allocation of a collection</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSC" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="21" end="25" startBytecode="0" endBytecode="196" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSC(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="23" end="23" startBytecode="35" endBytecode="35" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="85f4b55d67ce68e971e1e4d317506fcf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSCEnumerated() does not presize the allocation of a collection</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSCEnumerated" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="35" end="53" startBytecode="0" endBytecode="303" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSCEnumerated()</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="36" end="36" startBytecode="11" endBytecode="11" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="d0dc82fb268031a1f4aad2e5fbd2b33d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSCMaps(Map) does not presize the allocation of a collection</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSCMaps" signature="(Ljava/util/Map;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="28" end="32" startBytecode="0" endBytecode="228" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSCMaps(Map)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="30" end="30" startBytecode="57" endBytecode="57" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="9a676f73e8098b7c75ce22f04d229af4" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of s, which is known to be non-null in ex.PSC_Sample.fpPSCInCatchBlock(List)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpPSCInCatchBlock" signature="(Ljava/util/List;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="154" end="178" startBytecode="0" endBytecode="507" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpPSCInCatchBlock(List)</Message> </Method> <LocalVariable name="s" register="4" pc="109" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from s</Message> </LocalVariable> <Method classname="java.lang.String" name="substring" signature="(II)Ljava/lang/String;" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="java.lang.String" start="1959" end="1969" startBytecode="0" endBytecode="149" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Return value of String.substring(int, int) of type String</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="170" end="170" startBytecode="111" endBytecode="111" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at PSC_Sample.java:[line 170]</Message> </SourceLine> </BugInstance> <BugInstance type="SF_SWITCH_NO_DEFAULT" priority="2" rank="19" abbrev="SF" category="STYLE" instanceHash="3d62303e8d7cae78b4de999c48e11c58" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Switch statement found where default case is missing</ShortMessage> <LongMessage>Switch statement found in ex.PSC_Sample.fpSwitchInLoop(Set) where default case is missing</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpSwitchInLoop" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="119" end="130" startBytecode="0" endBytecode="284" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpSwitchInLoop(Set)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="121" end="126" startBytecode="34" endBytecode="74" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 121-126]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_USEFUL_TOSTRING" priority="3" rank="20" abbrev="SPP" category="STYLE" instanceHash="32998b4c6ecbb346d4b6a2a326c8f965" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls toString() on an instance of a class that hasn't overridden toString()</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSC(List) calls toString() on an instance of a class that hasn't overridden toString()</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSC" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="21" end="25" startBytecode="0" endBytecode="196" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSC(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="23" end="23" startBytecode="32" endBytecode="32" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="8f2995389351c2200afe030a1322efd4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable dest of method ex.PSC_Sample.fpAllocationInLoop(Map)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpAllocationInLoop" signature="(Ljava/util/Map;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="133" end="141" startBytecode="0" endBytecode="272" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpAllocationInLoop(Map)</Message> </Method> <String value="dest"> <Message>Value dest</Message> </String> <Type descriptor="Ljava/util/HashMap;"> <SourceLine classname="java.util.HashMap" start="338" end="1789" sourcefile="HashMap.java" sourcepath="java/util/HashMap.java"> <Message>At HashMap.java:[lines 338-1789]</Message> </SourceLine> <Message>Type java.util.HashMap</Message> </Type> <SourceLine classname="ex.PSC_Sample" primary="true" start="133" end="133" startBytecode="4" endBytecode="4" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 133]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="58f419b513c01abaf00b41b4ea29203d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable dest of method ex.PSC_Sample.fpConditionalInLoop(Set)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpConditionalInLoop" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="101" end="107" startBytecode="0" endBytecode="204" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpConditionalInLoop(Set)</Message> </Method> <String value="dest"> <Message>Value dest</Message> </String> <Type descriptor="Ljava/util/ArrayList;"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Type java.util.ArrayList</Message> </Type> <SourceLine classname="ex.PSC_Sample" primary="true" start="101" end="101" startBytecode="4" endBytecode="4" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="9914e801ed58d8ed5fd0ecb29e73f869" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable ad of method ex.PSC_Sample.fpDontHaveCollectionForSizing(Iterator)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpDontHaveCollectionForSizing" signature="(Ljava/util/Iterator;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="94" end="98" startBytecode="0" endBytecode="157" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpDontHaveCollectionForSizing(Iterator)</Message> </Method> <String value="ad"> <Message>Value ad</Message> </String> <Type descriptor="Ljava/util/TreeSet;"> <SourceLine classname="java.util.TreeSet" start="101" end="556" sourcefile="TreeSet.java" sourcepath="java/util/TreeSet.java"> <Message>At TreeSet.java:[lines 101-556]</Message> </SourceLine> <Message>Type java.util.TreeSet</Message> </Type> <SourceLine classname="ex.PSC_Sample" primary="true" start="94" end="94" startBytecode="4" endBytecode="4" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 94]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="5f110d9a915779d4ff40c53f69a2e608" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable exceptions2 of method ex.PSC_Sample.fpPSCInCatchBlock(List)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpPSCInCatchBlock" signature="(Ljava/util/List;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="154" end="178" startBytecode="0" endBytecode="507" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpPSCInCatchBlock(List)</Message> </Method> <String value="exceptions2"> <Message>Value exceptions2</Message> </String> <Type descriptor="Ljava/util/ArrayList;"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Type java.util.ArrayList</Message> </Type> <SourceLine classname="ex.PSC_Sample" primary="true" start="165" end="165" startBytecode="69" endBytecode="69" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 165]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="ce46815ca407d11bf4b71e4b6d37b5b8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable dest of method ex.PSC_Sample.fpSwitchInLoop(Set)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpSwitchInLoop" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="119" end="130" startBytecode="0" endBytecode="284" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpSwitchInLoop(Set)</Message> </Method> <String value="dest"> <Message>Value dest</Message> </String> <Type descriptor="Ljava/util/ArrayList;"> <SourceLine classname="java.util.ArrayList" start="106" end="1459" sourcefile="ArrayList.java" sourcepath="java/util/ArrayList.java"> <Message>At ArrayList.java:[lines 106-1459]</Message> </SourceLine> <Message>Type java.util.ArrayList</Message> </Type> <SourceLine classname="ex.PSC_Sample" primary="true" start="119" end="119" startBytecode="4" endBytecode="4" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 119]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="993f85711c6579d7f5773b4504b31b63" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable names of method ex.PSC_Sample.testPSC(List)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSC" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="21" end="25" startBytecode="0" endBytecode="196" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSC(List)</Message> </Method> <String value="names"> <Message>Value names</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.PSC_Sample" primary="true" start="21" end="21" startBytecode="4" endBytecode="4" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="ef1a6daeafa048f15a1db4bc0a9bc9bb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable commonWords of method ex.PSC_Sample.testPSCEnumerated()</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSCEnumerated" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="35" end="53" startBytecode="0" endBytecode="303" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSCEnumerated()</Message> </Method> <String value="commonWords"> <Message>Value commonWords</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.PSC_Sample" primary="true" start="35" end="35" startBytecode="4" endBytecode="4" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="3910351d7d7fe7526a0d2ddf9a5c5b17" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable output of method ex.PSC_Sample.testPSCMaps(Map)</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSCMaps" signature="(Ljava/util/Map;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="28" end="32" startBytecode="0" endBytecode="228" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSCMaps(Map)</Message> </Method> <String value="output"> <Message>Value output</Message> </String> <Type descriptor="Ljava/util/HashMap;"> <SourceLine classname="java.util.HashMap" start="338" end="1789" sourcefile="HashMap.java" sourcepath="java/util/HashMap.java"> <Message>At HashMap.java:[lines 338-1789]</Message> </SourceLine> <Message>Type java.util.HashMap</Message> </Type> <SourceLine classname="ex.PSC_Sample" primary="true" start="28" end="28" startBytecode="4" endBytecode="4" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="a82702706ab28c96cb71ddd7439ae717" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpConditionalInLoop(Set) seems to be useless</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpConditionalInLoop" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="101" end="107" startBytecode="0" endBytecode="204" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpConditionalInLoop(Set)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="107" end="107" startBytecode="55" endBytecode="55" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 107]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="d52d50375dc66fde66f1c81ae1f08e7a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpSwitchInLoop(Set) seems to be useless</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpSwitchInLoop" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="119" end="130" startBytecode="0" endBytecode="284" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpSwitchInLoop(Set)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="130" end="130" startBytecode="85" endBytecode="85" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 130]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="152422b6c1de40776971641a598fa850" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSC(List) seems to be useless</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSC" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="21" end="25" startBytecode="0" endBytecode="196" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSC(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="25" end="25" startBytecode="51" endBytecode="51" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="c442af2a57bfc3cfeeb5030c6fd974fc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSCEnumerated() seems to be useless</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSCEnumerated" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="35" end="53" startBytecode="0" endBytecode="303" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSCEnumerated()</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="53" end="53" startBytecode="161" endBytecode="161" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 53]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="cc8d69982198bed1cb0d7269aa674fb7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpAllocationInLoop(Map) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpAllocationInLoop" signature="(Ljava/util/Map;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="133" end="141" startBytecode="0" endBytecode="272" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpAllocationInLoop(Map)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="133" end="133" startBytecode="7" endBytecode="7" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 133]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="c78d924ee3c403e0f2f932d290ef93fa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpConditionalInLoop(Set) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpConditionalInLoop" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="101" end="107" startBytecode="0" endBytecode="204" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpConditionalInLoop(Set)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="101" end="101" startBytecode="7" endBytecode="7" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 101]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="6ba896a05aaeb34faa8f668c826cd73b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpDontHaveCollectionForSizing(Iterator) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpDontHaveCollectionForSizing" signature="(Ljava/util/Iterator;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="94" end="98" startBytecode="0" endBytecode="157" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpDontHaveCollectionForSizing(Iterator)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="94" end="94" startBytecode="7" endBytecode="7" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 94]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="2b4687f70fe6bd4c105a332c7bcb811a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpPSCInCatchBlock(List) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpPSCInCatchBlock" signature="(Ljava/util/List;)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="154" end="178" startBytecode="0" endBytecode="507" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpPSCInCatchBlock(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="165" end="165" startBytecode="72" endBytecode="72" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 165]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="b8fc4154a88c27c7e0ad5611f076748e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PSC_Sample.fpSwitchInLoop(Set) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="fpSwitchInLoop" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="119" end="130" startBytecode="0" endBytecode="284" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.fpSwitchInLoop(Set)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="119" end="119" startBytecode="7" endBytecode="7" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 119]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="54c579624aae16543dd9f2bcb86892f4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSC(List) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSC" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="21" end="25" startBytecode="0" endBytecode="196" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSC(List)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="21" end="21" startBytecode="7" endBytecode="7" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="52c6f15f7feaef375a2ce6a2a4015bb5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSCEnumerated() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSCEnumerated" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="35" end="53" startBytecode="0" endBytecode="303" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSCEnumerated()</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="35" end="35" startBytecode="7" endBytecode="7" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="d83da74b422d5eee2cb57eee5e0f2aeb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.PSC_Sample.testPSCMaps(Map) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.PSC_Sample" primary="true"> <SourceLine classname="ex.PSC_Sample" start="18" end="185" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[lines 18-185]</Message> </SourceLine> <Message>In class ex.PSC_Sample</Message> </Class> <Method classname="ex.PSC_Sample" name="testPSCMaps" signature="(Ljava/util/Map;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PSC_Sample" start="28" end="32" startBytecode="0" endBytecode="228" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"/> <Message>In method ex.PSC_Sample.testPSCMaps(Map)</Message> </Method> <SourceLine classname="ex.PSC_Sample" primary="true" start="28" end="28" startBytecode="7" endBytecode="7" sourcefile="PSC_Sample.java" sourcepath="ex/PSC_Sample.java"> <Message>At PSC_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="d3a9788e372465fe422a0f751a1380ee" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.PUS_Sample does not implement a toString method</LongMessage> <Class classname="ex.PUS_Sample" primary="true"> <SourceLine classname="ex.PUS_Sample" start="7" end="29" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[lines 7-29]</Message> </SourceLine> <Message>In class ex.PUS_Sample</Message> </Class> <SourceLine classname="ex.PUS_Sample" start="7" end="29" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>At PUS_Sample.java:[lines 7-29]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="937ef7d824594604c59d5a161c657a06" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.PUS_Sample.writeIt(String) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.PUS_Sample" primary="true"> <SourceLine classname="ex.PUS_Sample" start="7" end="29" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[lines 7-29]</Message> </SourceLine> <Message>In class ex.PUS_Sample</Message> </Class> <Method classname="ex.PUS_Sample" name="writeIt" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PUS_Sample" start="22" end="29" startBytecode="0" endBytecode="168" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"/> <Message>In method ex.PUS_Sample.writeIt(String)</Message> </Method> <SourceLine classname="ex.PUS_Sample" primary="true" start="23" end="23" startBytecode="15" endBytecode="15" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM_EXCEPTION_PATH" priority="3" rank="19" abbrev="OS" category="BAD_PRACTICE" instanceHash="33b4d9c13d6dd9fa834a79c2faf416f1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream on exception</ShortMessage> <LongMessage>ex.PUS_Sample.writeIt(String) may fail to close stream on exception</LongMessage> <Class classname="ex.PUS_Sample" primary="true"> <SourceLine classname="ex.PUS_Sample" start="7" end="29" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[lines 7-29]</Message> </SourceLine> <Message>In class ex.PUS_Sample</Message> </Class> <Method classname="ex.PUS_Sample" name="writeIt" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.PUS_Sample" start="22" end="29" startBytecode="0" endBytecode="29" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"/> <Message>In method ex.PUS_Sample.writeIt(String)</Message> </Method> <Type descriptor="Ljava/io/OutputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.OutputStream" start="46" end="152" sourcefile="OutputStream.java" sourcepath="java/io/OutputStream.java"> <Message>At OutputStream.java:[lines 46-152]</Message> </SourceLine> <Message>Need to close java.io.OutputStream </Message> </Type> <SourceLine classname="ex.PUS_Sample" primary="true" start="24" end="24" startBytecode="19" endBytecode="19" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="bb940bf2e9058db99656c97b7201b9e7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.PUS_Sample is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.PUS_Sample" primary="true"> <SourceLine classname="ex.PUS_Sample" start="7" end="29" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[lines 7-29]</Message> </SourceLine> <Message>In class ex.PUS_Sample</Message> </Class> <SourceLine classname="ex.PUS_Sample" start="7" end="29" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>At PUS_Sample.java:[lines 7-29]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="4d05becf48b8f910d05e2fb0e275679a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.PUS_Sample$Inner defines fields that are used only as locals</LongMessage> <Class classname="ex.PUS_Sample$Inner" primary="true"> <SourceLine classname="ex.PUS_Sample$Inner" start="11" end="11" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 11]</Message> </SourceLine> <Message>In class ex.PUS_Sample$Inner</Message> </Class> <Field classname="ex.PUS_Sample$Inner" name="c" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.PUS_Sample$Inner" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>In PUS_Sample.java</Message> </SourceLine> <Message>Field ex.PUS_Sample$Inner.c</Message> </Field> <SourceLine classname="ex.PUS_Sample$Inner" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>In PUS_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="ff71d47862d5ea158987f9fd23d8b826" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.PUS_Sample$Inner defines fields that are used only as locals</LongMessage> <Class classname="ex.PUS_Sample$Inner" primary="true"> <SourceLine classname="ex.PUS_Sample$Inner" start="11" end="11" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 11]</Message> </SourceLine> <Message>In class ex.PUS_Sample$Inner</Message> </Class> <Field classname="ex.PUS_Sample$Inner" name="d" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.PUS_Sample$Inner" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>In PUS_Sample.java</Message> </SourceLine> <Message>Field ex.PUS_Sample$Inner.d</Message> </Field> <SourceLine classname="ex.PUS_Sample$Inner" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>In PUS_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SE_INNER_CLASS" priority="2" rank="16" abbrev="Se" category="BAD_PRACTICE" instanceHash="7d1155e81bb7ee4d82d350699c857f8d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Serializable inner class</ShortMessage> <LongMessage>ex.PUS_Sample$Inner is serializable and an inner class</LongMessage> <Class classname="ex.PUS_Sample$Inner" primary="true"> <SourceLine classname="ex.PUS_Sample$Inner" start="11" end="11" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 11]</Message> </SourceLine> <Message>In class ex.PUS_Sample$Inner</Message> </Class> <SourceLine classname="ex.PUS_Sample$Inner" start="11" end="11" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>At PUS_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="da5460557239f2d15b043a557301bc36" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.PUS_Sample$Inner is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.PUS_Sample$Inner" primary="true"> <SourceLine classname="ex.PUS_Sample$Inner" start="11" end="11" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 11]</Message> </SourceLine> <Message>In class ex.PUS_Sample$Inner</Message> </Class> <SourceLine classname="ex.PUS_Sample$Inner" start="11" end="11" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>At PUS_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="b75ec29256431c8c221de538044d8317" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.PUS_Sample$Inner be a _static_ inner class?</LongMessage> <Class classname="ex.PUS_Sample$Inner" primary="true"> <SourceLine classname="ex.PUS_Sample$Inner" start="11" end="11" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 11]</Message> </SourceLine> <Message>In class ex.PUS_Sample$Inner</Message> </Class> <SourceLine classname="ex.PUS_Sample$Inner" start="11" end="11" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>At PUS_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="72b268fdd81adff19c7984c7721c9656" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.PUS_Sample$StaticInner defines fields that are used only as locals</LongMessage> <Class classname="ex.PUS_Sample$StaticInner" primary="true"> <SourceLine classname="ex.PUS_Sample$StaticInner" start="16" end="16" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 16]</Message> </SourceLine> <Message>In class ex.PUS_Sample$StaticInner</Message> </Class> <Field classname="ex.PUS_Sample$StaticInner" name="e" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.PUS_Sample$StaticInner" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>In PUS_Sample.java</Message> </SourceLine> <Message>Field ex.PUS_Sample$StaticInner.e</Message> </Field> <SourceLine classname="ex.PUS_Sample$StaticInner" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>In PUS_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="b423f262baa9f2f611323ce3f4bb08bb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.PUS_Sample$StaticInner defines fields that are used only as locals</LongMessage> <Class classname="ex.PUS_Sample$StaticInner" primary="true"> <SourceLine classname="ex.PUS_Sample$StaticInner" start="16" end="16" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 16]</Message> </SourceLine> <Message>In class ex.PUS_Sample$StaticInner</Message> </Class> <Field classname="ex.PUS_Sample$StaticInner" name="f" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.PUS_Sample$StaticInner" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>In PUS_Sample.java</Message> </SourceLine> <Message>Field ex.PUS_Sample$StaticInner.f</Message> </Field> <SourceLine classname="ex.PUS_Sample$StaticInner" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>In PUS_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="2c1a338e0fc2dddd098d48b8fccf2f81" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.PUS_Sample$StaticInner is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.PUS_Sample$StaticInner" primary="true"> <SourceLine classname="ex.PUS_Sample$StaticInner" start="16" end="16" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java"> <Message>At PUS_Sample.java:[line 16]</Message> </SourceLine> <Message>In class ex.PUS_Sample$StaticInner</Message> </Class> <SourceLine classname="ex.PUS_Sample$StaticInner" start="16" end="16" sourcefile="PUS_Sample.java" sourcepath="ex/PUS_Sample.java" synthetic="true"> <Message>At PUS_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="DP_DO_INSIDE_DO_PRIVILEGED" priority="3" rank="20" abbrev="DP" category="MALICIOUS_CODE" instanceHash="180590f3f77fc1df04d68c49b96fbaf5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invoked that should be only be invoked inside a doPrivileged block</ShortMessage> <LongMessage>Invocation of reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block, in ex.RFI_Sample.accessSingleField()</LongMessage> <Class classname="ex.RFI_Sample" primary="true"> <SourceLine classname="ex.RFI_Sample" start="6" end="34" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"> <Message>At RFI_Sample.java:[lines 6-34]</Message> </SourceLine> <Message>In class ex.RFI_Sample</Message> </Class> <Method classname="ex.RFI_Sample" name="accessSingleField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.RFI_Sample" start="10" end="19" startBytecode="0" endBytecode="133" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"/> <Message>In method ex.RFI_Sample.accessSingleField()</Message> </Method> <Method classname="java.lang.reflect.Field" name="setAccessible" signature="(Z)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.reflect.Field" sourcefile="Field.java" sourcepath="java/lang/reflect/Field.java"/> <Message>Called method reflect.Field.setAccessible(boolean)</Message> </Method> <SourceLine classname="ex.RFI_Sample" primary="true" start="13" end="13" startBytecode="13" endBytecode="13" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"> <Message>At RFI_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="RFI_SET_ACCESSIBLE" priority="2" rank="7" abbrev="RFI" category="CORRECTNESS" instanceHash="c1b977fef07267784d67029c476df771" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses AccessibleObject.setAccessible to modify accessibility of classes</ShortMessage> <LongMessage>Method ex.RFI_Sample.accessMultipleFields() uses AccessibleObject.setAccessible to modify accessibility of classes</LongMessage> <Class classname="ex.RFI_Sample" primary="true"> <SourceLine classname="ex.RFI_Sample" start="6" end="34" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"> <Message>At RFI_Sample.java:[lines 6-34]</Message> </SourceLine> <Message>In class ex.RFI_Sample</Message> </Class> <Method classname="ex.RFI_Sample" name="accessMultipleFields" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.RFI_Sample" start="22" end="34" startBytecode="0" endBytecode="181" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"/> <Message>In method ex.RFI_Sample.accessMultipleFields()</Message> </Method> <SourceLine classname="ex.RFI_Sample" primary="true" start="26" end="26" startBytecode="32" endBytecode="32" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"> <Message>At RFI_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="RFI_SET_ACCESSIBLE" priority="2" rank="7" abbrev="RFI" category="CORRECTNESS" instanceHash="f115956dedc181c9333d9cb04e7d4595" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses AccessibleObject.setAccessible to modify accessibility of classes</ShortMessage> <LongMessage>Method ex.RFI_Sample.accessSingleField() uses AccessibleObject.setAccessible to modify accessibility of classes</LongMessage> <Class classname="ex.RFI_Sample" primary="true"> <SourceLine classname="ex.RFI_Sample" start="6" end="34" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"> <Message>At RFI_Sample.java:[lines 6-34]</Message> </SourceLine> <Message>In class ex.RFI_Sample</Message> </Class> <Method classname="ex.RFI_Sample" name="accessSingleField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.RFI_Sample" start="10" end="19" startBytecode="0" endBytecode="133" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"/> <Message>In method ex.RFI_Sample.accessSingleField()</Message> </Method> <SourceLine classname="ex.RFI_Sample" primary="true" start="13" end="13" startBytecode="13" endBytecode="13" sourcefile="RFI_Sample.java" sourcepath="ex/RFI_Sample.java"> <Message>At RFI_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="49538be23cfbd954e5931ff7bedf7bd9" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.ROOM_Sample.testRoomWithField()</LongMessage> <Class classname="ex.ROOM_Sample" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="4" end="34" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[lines 4-34]</Message> </SourceLine> <Message>In class ex.ROOM_Sample</Message> </Class> <Method classname="ex.ROOM_Sample" name="testRoomWithField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="16" end="20" startBytecode="0" endBytecode="15" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"/> <Message>In method ex.ROOM_Sample.testRoomWithField()</Message> </Method> <LocalVariable name="s" register="3" pc="27" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.ROOM_Sample" primary="true" start="19" end="19" startBytecode="26" endBytecode="26" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[line 19]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="4edc352a5d4182fea6cc80f1603d1c86" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.ROOM_Sample.testRoomWithLocals()</LongMessage> <Class classname="ex.ROOM_Sample" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="4" end="34" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[lines 4-34]</Message> </SourceLine> <Message>In class ex.ROOM_Sample</Message> </Class> <Method classname="ex.ROOM_Sample" name="testRoomWithLocals" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="9" end="13" startBytecode="0" endBytecode="26" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"/> <Message>In method ex.ROOM_Sample.testRoomWithLocals()</Message> </Method> <LocalVariable name="s" register="3" pc="45" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.ROOM_Sample" primary="true" start="12" end="12" startBytecode="44" endBytecode="44" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[line 12]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="61c8ecb0106e7f57313e5f9162f47b7b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.ROOM_Sample.testRoomWithNull()</LongMessage> <Class classname="ex.ROOM_Sample" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="4" end="34" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[lines 4-34]</Message> </SourceLine> <Message>In class ex.ROOM_Sample</Message> </Class> <Method classname="ex.ROOM_Sample" name="testRoomWithNull" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="30" end="34" startBytecode="0" endBytecode="14" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"/> <Message>In method ex.ROOM_Sample.testRoomWithNull()</Message> </Method> <LocalVariable name="s" register="3" pc="24" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.ROOM_Sample" primary="true" start="33" end="33" startBytecode="23" endBytecode="23" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[line 33]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="a46ebbbf633a651a8a810843bd98f8e9" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.ROOM_Sample.testRoomWithStatic()</LongMessage> <Class classname="ex.ROOM_Sample" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="4" end="34" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[lines 4-34]</Message> </SourceLine> <Message>In class ex.ROOM_Sample</Message> </Class> <Method classname="ex.ROOM_Sample" name="testRoomWithStatic" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="23" end="27" startBytecode="0" endBytecode="14" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"/> <Message>In method ex.ROOM_Sample.testRoomWithStatic()</Message> </Method> <LocalVariable name="s" register="3" pc="26" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.ROOM_Sample" primary="true" start="26" end="26" startBytecode="25" endBytecode="25" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[line 26]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="c19c26502743efc2f348df47c17c01ae" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ROOM_Sample does not implement a toString method</LongMessage> <Class classname="ex.ROOM_Sample" primary="true"> <SourceLine classname="ex.ROOM_Sample" start="4" end="34" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java"> <Message>At ROOM_Sample.java:[lines 4-34]</Message> </SourceLine> <Message>In class ex.ROOM_Sample</Message> </Class> <SourceLine classname="ex.ROOM_Sample" start="4" end="34" sourcefile="ROOM_Sample.java" sourcepath="ex/ROOM_Sample.java" synthetic="true"> <Message>At ROOM_Sample.java:[lines 4-34]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_OVERWRITTEN_WITHOUT_SHUTDOWN" priority="2" rank="7" abbrev="HES" category="CORRECTNESS" instanceHash="2443d97b5888bebfc416642e5be8fada" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>An ExecutorService isn't shutdown before the reference to it is lost</ShortMessage> <LongMessage>ExecutorService ex.ReplacementExecutorBad2.executor is replaced with another ExecutorService without being shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.ReplacementExecutorBad2" primary="true"> <SourceLine classname="ex.ReplacementExecutorBad2" start="290" end="312" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 290-312]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorBad2</Message> </Class> <Method classname="ex.ReplacementExecutorBad2" name="reset" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorBad2" start="297" end="299" startBytecode="0" endBytecode="54" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.ReplacementExecutorBad2.reset()</Message> </Method> <Field classname="ex.ReplacementExecutorBad2" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorBad2" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ReplacementExecutorBad2.executor</Message> </Field> <SourceLine classname="ex.ReplacementExecutorBad2" primary="true" start="297" end="297" startBytecode="5" endBytecode="5" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 297]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="1c1a5afef459814fd960eb4fbad8f497" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ReplacementExecutorBad2 does not implement a toString method</LongMessage> <Class classname="ex.ReplacementExecutorBad2" primary="true"> <SourceLine classname="ex.ReplacementExecutorBad2" start="290" end="312" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 290-312]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorBad2</Message> </Class> <SourceLine classname="ex.ReplacementExecutorBad2" start="290" end="312" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 290-312]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="a70c1b0800082488b7ce40fbf83485a4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.ReplacementExecutorBad2.task() prints the stack trace to the console</LongMessage> <Class classname="ex.ReplacementExecutorBad2" primary="true"> <SourceLine classname="ex.ReplacementExecutorBad2" start="290" end="312" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 290-312]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorBad2</Message> </Class> <Method classname="ex.ReplacementExecutorBad2" name="task" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorBad2" start="306" end="312" startBytecode="0" endBytecode="127" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.ReplacementExecutorBad2.task()</Message> </Method> <SourceLine classname="ex.ReplacementExecutorBad2" primary="true" start="310" end="310" startBytecode="35" endBytecode="35" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 310]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="4e8b45f1d591eb4466307371b0767686" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ReplacementExecutorGood does not implement a toString method</LongMessage> <Class classname="ex.ReplacementExecutorGood" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood" start="266" end="283" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 266-283]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorGood</Message> </Class> <SourceLine classname="ex.ReplacementExecutorGood" start="266" end="283" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 266-283]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="dddab5ea2ab1c3a69ffd6ba4d41672b9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.ReplacementExecutorGood.reset() prints the stack trace to the console</LongMessage> <Class classname="ex.ReplacementExecutorGood" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood" start="266" end="283" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 266-283]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorGood</Message> </Class> <Method classname="ex.ReplacementExecutorGood" name="reset" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood" start="273" end="283" startBytecode="0" endBytecode="165" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.ReplacementExecutorGood.reset()</Message> </Method> <SourceLine classname="ex.ReplacementExecutorGood" primary="true" start="280" end="280" startBytecode="52" endBytecode="52" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 280]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_OVERWRITTEN_WITHOUT_SHUTDOWN" priority="2" rank="7" abbrev="HES" category="CORRECTNESS" instanceHash="472b3e24320c31b66132ca221449423e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>An ExecutorService isn't shutdown before the reference to it is lost</ShortMessage> <LongMessage>ExecutorService ex.ReplacementExecutorGood2.executor is replaced with another ExecutorService without being shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.ReplacementExecutorGood2" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood2" start="319" end="348" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 319-348]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorGood2</Message> </Class> <Method classname="ex.ReplacementExecutorGood2" name="reset" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood2" start="325" end="333" startBytecode="0" endBytecode="97" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.ReplacementExecutorGood2.reset()</Message> </Method> <Field classname="ex.ReplacementExecutorGood2" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood2" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ReplacementExecutorGood2.executor</Message> </Field> <SourceLine classname="ex.ReplacementExecutorGood2" primary="true" start="332" end="332" startBytecode="27" endBytecode="27" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 332]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="db43472822311dbea39d8ddd2efe127a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ReplacementExecutorGood2 does not implement a toString method</LongMessage> <Class classname="ex.ReplacementExecutorGood2" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood2" start="319" end="348" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 319-348]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorGood2</Message> </Class> <SourceLine classname="ex.ReplacementExecutorGood2" start="319" end="348" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 319-348]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="730b5b435d22a615360055a566ae833c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.ReplacementExecutorGood2.task() prints the stack trace to the console</LongMessage> <Class classname="ex.ReplacementExecutorGood2" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood2" start="319" end="348" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 319-348]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorGood2</Message> </Class> <Method classname="ex.ReplacementExecutorGood2" name="task" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorGood2" start="342" end="348" startBytecode="0" endBytecode="127" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.ReplacementExecutorGood2.task()</Message> </Method> <SourceLine classname="ex.ReplacementExecutorGood2" primary="true" start="346" end="346" startBytecode="35" endBytecode="35" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 346]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_OVERWRITTEN_WITHOUT_SHUTDOWN" priority="2" rank="7" abbrev="HES" category="CORRECTNESS" instanceHash="cb8c7bd72f29d8126f4f210828d2745d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>An ExecutorService isn't shutdown before the reference to it is lost</ShortMessage> <LongMessage>ExecutorService ex.ReplacementExecutorProblem.executor is replaced with another ExecutorService without being shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.ReplacementExecutorProblem" primary="true"> <SourceLine classname="ex.ReplacementExecutorProblem" start="235" end="260" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 235-260]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorProblem</Message> </Class> <Method classname="ex.ReplacementExecutorProblem" name="reset" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorProblem" start="242" end="251" startBytecode="0" endBytecode="159" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.ReplacementExecutorProblem.reset()</Message> </Method> <Field classname="ex.ReplacementExecutorProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ReplacementExecutorProblem.executor</Message> </Field> <SourceLine classname="ex.ReplacementExecutorProblem" primary="true" start="244" end="244" startBytecode="21" endBytecode="21" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 244]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="4aabea77e228479245f31b8b020c49d8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ReplacementExecutorProblem does not implement a toString method</LongMessage> <Class classname="ex.ReplacementExecutorProblem" primary="true"> <SourceLine classname="ex.ReplacementExecutorProblem" start="235" end="260" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 235-260]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorProblem</Message> </Class> <SourceLine classname="ex.ReplacementExecutorProblem" start="235" end="260" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 235-260]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="b38f16636d5680829b0a8d862251f7ee" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.ReplacementExecutorProblem.reset() prints the stack trace to the console</LongMessage> <Class classname="ex.ReplacementExecutorProblem" primary="true"> <SourceLine classname="ex.ReplacementExecutorProblem" start="235" end="260" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 235-260]</Message> </SourceLine> <Message>In class ex.ReplacementExecutorProblem</Message> </Class> <Method classname="ex.ReplacementExecutorProblem" name="reset" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.ReplacementExecutorProblem" start="242" end="251" startBytecode="0" endBytecode="159" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.ReplacementExecutorProblem.reset()</Message> </Method> <SourceLine classname="ex.ReplacementExecutorProblem" primary="true" start="249" end="249" startBytecode="59" endBytecode="59" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 249]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="7f223f5b7c1b4797f669bb3e1bd05949" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.S508C_Sample.fpAppending(String)</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="fpAppending" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="43" end="44" startBytecode="0" endBytecode="13" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.fpAppending(String)</Message> </Method> <LocalVariable name="l" register="2" pc="29" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.S508C_Sample" primary="true" start="43" end="43" startBytecode="28" endBytecode="28" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 43]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="b632f6adcc3f1f4c945f5c4380671ccd" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.S508C_Sample.testAppending(String, String)</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="testAppending" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="39" end="40" startBytecode="0" endBytecode="14" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.testAppending(String, String)</Message> </Method> <LocalVariable name="l" register="3" pc="31" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.S508C_Sample" primary="true" start="39" end="39" startBytecode="30" endBytecode="30" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 39]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="eed1cbf87ebaf8776c631bab26205165" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to f in ex.S508C_Sample.testI18N()</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="testI18N" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="34" end="36" startBytecode="0" endBytecode="10" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.testI18N()</Message> </Method> <LocalVariable name="f" register="2" pc="20" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named f</Message> </LocalVariable> <SourceLine classname="ex.S508C_Sample" primary="true" start="35" end="35" startBytecode="19" endBytecode="19" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 35]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="f"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="1bc0a4104e1c7861998ba7beae0cfcf8" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l in ex.S508C_Sample.testI18N()</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="testI18N" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="34" end="36" startBytecode="0" endBytecode="10" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.testI18N()</Message> </Method> <LocalVariable name="l" register="1" pc="10" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l</Message> </LocalVariable> <SourceLine classname="ex.S508C_Sample" primary="true" start="34" end="34" startBytecode="9" endBytecode="9" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 34]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="4dc6c1742f8d22fecbf5f1acab05d646" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.S508C_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Field classname="ex.S508C_Sample" name="c" signature="Ljavax/swing/JComponent;" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>In S508C_Sample.java</Message> </SourceLine> <Message>Field ex.S508C_Sample.c</Message> </Field> <SourceLine classname="ex.S508C_Sample" primary="true" start="14" end="14" startBytecode="45" endBytecode="45" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="c802d53a68a1475d0d36924e5c2bafd2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.S508C_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Field classname="ex.S508C_Sample" name="fLabel" signature="Ljavax/swing/JLabel;" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>In S508C_Sample.java</Message> </SourceLine> <Message>Field ex.S508C_Sample.fLabel</Message> </Field> <SourceLine classname="ex.S508C_Sample" primary="true" start="12" end="12" startBytecode="14" endBytecode="14" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="378e3769a996654e9d3d9977c27e8ed0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.S508C_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Field classname="ex.S508C_Sample" name="imgLabel" signature="Ljavax/swing/JLabel;" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>In S508C_Sample.java</Message> </SourceLine> <Message>Field ex.S508C_Sample.imgLabel</Message> </Field> <SourceLine classname="ex.S508C_Sample" primary="true" start="13" end="13" startBytecode="34" endBytecode="34" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_APPENDED_STRING" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="95bbb0301e5f0b4d3cbd7b6d67ba0686" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes appended string to title/label of component</ShortMessage> <LongMessage>Method ex.S508C_Sample.testAppending(String, String) passes appended string to title/label of component</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="testAppending" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="39" end="40" startBytecode="0" endBytecode="107" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.testAppending(String, String)</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="39" end="39" startBytecode="27" endBytecode="27" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NON_TRANSLATABLE_STRING" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="232870d798cbef92cea11a74b59cedba" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method passes constant string to title/label of component</ShortMessage> <LongMessage>Method new ex.S508C_Sample() passes constant string to title/label of component</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="16" end="31" startBytecode="0" endBytecode="292" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method new ex.S508C_Sample()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="12" end="12" startBytecode="11" endBytecode="11" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NON_TRANSLATABLE_STRING" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="232870d798cbef92cea11a74b59cedba" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method passes constant string to title/label of component</ShortMessage> <LongMessage>Method new ex.S508C_Sample() passes constant string to title/label of component</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="16" end="31" startBytecode="0" endBytecode="292" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method new ex.S508C_Sample()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="21" end="21" startBytecode="73" endBytecode="73" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NON_TRANSLATABLE_STRING" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="497624be2ed6b8b68a80a91792ab38f3" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method passes constant string to title/label of component</ShortMessage> <LongMessage>Method ex.S508C_Sample.testI18N() passes constant string to title/label of component</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="testI18N" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="34" end="36" startBytecode="0" endBytecode="90" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.testI18N()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="34" end="34" startBytecode="6" endBytecode="6" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NON_TRANSLATABLE_STRING" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="497624be2ed6b8b68a80a91792ab38f3" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method passes constant string to title/label of component</ShortMessage> <LongMessage>Method ex.S508C_Sample.testI18N() passes constant string to title/label of component</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="testI18N" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="34" end="36" startBytecode="0" endBytecode="90" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.testI18N()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="35" end="35" startBytecode="16" endBytecode="16" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NO_SETLABELFOR" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="343d34f69afe6019ef8e4a625d1770ff" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JLabel doesn't specify what it's labeling</ShortMessage> <LongMessage>JLabel in method ex.S508C_Sample.fLabel doesn't specify what it's labeling</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Field classname="ex.S508C_Sample" name="fLabel" signature="Ljavax/swing/JLabel;" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>In S508C_Sample.java</Message> </SourceLine> <Message>Field ex.S508C_Sample.fLabel</Message> </Field> <SourceLine classname="ex.S508C_Sample" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java" synthetic="true"> <Message>In S508C_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NO_SETLABELFOR" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="521cb8e87e68b4b3cc1e7ebbb4a9a35a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JLabel doesn't specify what it's labeling</ShortMessage> <LongMessage>JLabel in method new ex.S508C_Sample() doesn't specify what it's labeling</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="16" end="31" startBytecode="0" endBytecode="292" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method new ex.S508C_Sample()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="21" end="21" startBytecode="76" endBytecode="76" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NO_SETLABELFOR" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="b4129e8b440256552859c4262072ed50" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JLabel doesn't specify what it's labeling</ShortMessage> <LongMessage>JLabel in method ex.S508C_Sample.fpAppending(String) doesn't specify what it's labeling</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="fpAppending" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="43" end="44" startBytecode="0" endBytecode="95" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.fpAppending(String)</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="43" end="43" startBytecode="28" endBytecode="28" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NO_SETLABELFOR" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="b8cb5c5355242d87583bdff3cfaed27b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JLabel doesn't specify what it's labeling</ShortMessage> <LongMessage>JLabel in method ex.S508C_Sample.testAppending(String, String) doesn't specify what it's labeling</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="testAppending" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="39" end="40" startBytecode="0" endBytecode="107" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.testAppending(String, String)</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="39" end="39" startBytecode="30" endBytecode="30" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NO_SETLABELFOR" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="6878c5f1bd1e85aeee5498684329a98d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JLabel doesn't specify what it's labeling</ShortMessage> <LongMessage>JLabel in method ex.S508C_Sample.testI18N() doesn't specify what it's labeling</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="testI18N" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="34" end="36" startBytecode="0" endBytecode="90" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method ex.S508C_Sample.testI18N()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="34" end="34" startBytecode="9" endBytecode="9" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NO_SETSIZE" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="876f0f35d63f28a1ac4db0abc5096458" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Window sets size manually, and doesn't use pack</ShortMessage> <LongMessage>Window ex.S508C_Sample sets size manually, and doesn't use pack</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="16" end="31" startBytecode="0" endBytecode="292" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method new ex.S508C_Sample()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="30" end="30" startBytecode="157" endBytecode="157" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_NULL_LAYOUT" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="9e3d3698dbbda07e4f8598fe368bba9c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>GUI uses absolute layout</ShortMessage> <LongMessage>GUI ex.S508C_Sample uses absolute layout</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="16" end="31" startBytecode="0" endBytecode="292" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method new ex.S508C_Sample()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="18" end="18" startBytecode="55" endBytecode="55" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_SET_COMP_COLOR" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="e534f5cdf81719d5f933ec642518d5b3" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method explicitly sets the color of a Component</ShortMessage> <LongMessage>Method new ex.S508C_Sample() Method explicitly sets the color of a Component</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="16" end="31" startBytecode="0" endBytecode="292" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method new ex.S508C_Sample()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="22" end="22" startBytecode="90" endBytecode="90" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="S508C_SET_COMP_COLOR" priority="2" rank="7" abbrev="S508C" category="CORRECTNESS" instanceHash="e534f5cdf81719d5f933ec642518d5b3" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method explicitly sets the color of a Component</ShortMessage> <LongMessage>Method new ex.S508C_Sample() Method explicitly sets the color of a Component</LongMessage> <Class classname="ex.S508C_Sample" primary="true"> <SourceLine classname="ex.S508C_Sample" start="12" end="44" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[lines 12-44]</Message> </SourceLine> <Message>In class ex.S508C_Sample</Message> </Class> <Method classname="ex.S508C_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.S508C_Sample" start="16" end="31" startBytecode="0" endBytecode="292" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"/> <Message>In method new ex.S508C_Sample()</Message> </Method> <SourceLine classname="ex.S508C_Sample" primary="true" start="23" end="23" startBytecode="109" endBytecode="109" sourcefile="S508C_Sample.java" sourcepath="ex/S508C_Sample.java"> <Message>At S508C_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="SACM_STATIC_ARRAY_CREATED_IN_METHOD" priority="2" rank="18" abbrev="SACM" category="PERFORMANCE" instanceHash="b3ad44d84f964b64a502fe80167ebd9d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates array using constants</ShortMessage> <LongMessage>Method ex.SACM_Sample.test(int) creates array using constants</LongMessage> <Class classname="ex.SACM_Sample" primary="true"> <SourceLine classname="ex.SACM_Sample" start="2" end="8" sourcefile="SACM_Sample.java" sourcepath="ex/SACM_Sample.java"> <Message>At SACM_Sample.java:[lines 2-8]</Message> </SourceLine> <Message>In class ex.SACM_Sample</Message> </Class> <Method classname="ex.SACM_Sample" name="test" signature="(I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SACM_Sample" start="4" end="8" startBytecode="0" endBytecode="141" sourcefile="SACM_Sample.java" sourcepath="ex/SACM_Sample.java"/> <Message>In method ex.SACM_Sample.test(int)</Message> </Method> <SourceLine classname="ex.SACM_Sample" primary="true" start="4" end="4" startBytecode="35" endBytecode="35" sourcefile="SACM_Sample.java" sourcepath="ex/SACM_Sample.java"> <Message>At SACM_Sample.java:[line 4]</Message> </SourceLine> </BugInstance> <BugInstance type="CU_CLONE_USABILITY_OBJECT_RETURN" priority="2" rank="17" abbrev="CU" category="STYLE" instanceHash="1adaf676890bd21d92b03133a5fc8c76" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Clone method declares it returns an Object</ShortMessage> <LongMessage>Clone method ex.SCA_Sample.clone() declares it returns an Object</LongMessage> <Class classname="ex.SCA_Sample" primary="true"> <SourceLine classname="ex.SCA_Sample" start="5" end="14" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"> <Message>At SCA_Sample.java:[lines 5-14]</Message> </SourceLine> <Message>In class ex.SCA_Sample</Message> </Class> <Method classname="ex.SCA_Sample" name="clone" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.SCA_Sample" start="10" end="14" startBytecode="0" endBytecode="114" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"/> <Message>In method ex.SCA_Sample.clone()</Message> </Method> <SourceLine classname="ex.SCA_Sample" start="10" end="14" startBytecode="0" endBytecode="114" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java" synthetic="true"> <Message>At SCA_Sample.java:[lines 10-14]</Message> </SourceLine> </BugInstance> <BugInstance type="CU_CLONE_USABILITY_THROWS" priority="2" rank="17" abbrev="CU" category="STYLE" instanceHash="c97ff2e667d0a5e15e8c8a6a6ddd3302" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Clone method declares it throws CloneNotSupportedException</ShortMessage> <LongMessage>Clone method ex.SCA_Sample.clone() declares it throws CloneNotSupportedException</LongMessage> <Class classname="ex.SCA_Sample" primary="true"> <SourceLine classname="ex.SCA_Sample" start="5" end="14" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"> <Message>At SCA_Sample.java:[lines 5-14]</Message> </SourceLine> <Message>In class ex.SCA_Sample</Message> </Class> <Method classname="ex.SCA_Sample" name="clone" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.SCA_Sample" start="10" end="14" startBytecode="0" endBytecode="114" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"/> <Message>In method ex.SCA_Sample.clone()</Message> </Method> <SourceLine classname="ex.SCA_Sample" start="10" end="14" startBytecode="0" endBytecode="114" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java" synthetic="true"> <Message>At SCA_Sample.java:[lines 10-14]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="4caeac3fd09903d4c80ecc1909ed6724" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SCA_Sample does not implement a toString method</LongMessage> <Class classname="ex.SCA_Sample" primary="true"> <SourceLine classname="ex.SCA_Sample" start="5" end="14" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"> <Message>At SCA_Sample.java:[lines 5-14]</Message> </SourceLine> <Message>In class ex.SCA_Sample</Message> </Class> <SourceLine classname="ex.SCA_Sample" start="5" end="14" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java" synthetic="true"> <Message>At SCA_Sample.java:[lines 5-14]</Message> </SourceLine> </BugInstance> <BugInstance type="SCA_SUSPICIOUS_CLONE_ALGORITHM" priority="2" rank="7" abbrev="SCA" category="CORRECTNESS" instanceHash="abab5151b4cbb4bc7130fd44ed355f70" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Clone method stores a new value to member field of source object</ShortMessage> <LongMessage>Clone method ex.SCA_Sample.clone() stores a new value to member field of source object</LongMessage> <Class classname="ex.SCA_Sample" primary="true"> <SourceLine classname="ex.SCA_Sample" start="5" end="14" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"> <Message>At SCA_Sample.java:[lines 5-14]</Message> </SourceLine> <Message>In class ex.SCA_Sample</Message> </Class> <Method classname="ex.SCA_Sample" name="clone" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.SCA_Sample" start="10" end="14" startBytecode="0" endBytecode="114" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"/> <Message>In method ex.SCA_Sample.clone()</Message> </Method> <SourceLine classname="ex.SCA_Sample" primary="true" start="11" end="11" startBytecode="16" endBytecode="16" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"> <Message>At SCA_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="SCA_SUSPICIOUS_CLONE_ALGORITHM" priority="2" rank="7" abbrev="SCA" category="CORRECTNESS" instanceHash="abab5151b4cbb4bc7130fd44ed355f70" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Clone method stores a new value to member field of source object</ShortMessage> <LongMessage>Clone method ex.SCA_Sample.clone() stores a new value to member field of source object</LongMessage> <Class classname="ex.SCA_Sample" primary="true"> <SourceLine classname="ex.SCA_Sample" start="5" end="14" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"> <Message>At SCA_Sample.java:[lines 5-14]</Message> </SourceLine> <Message>In class ex.SCA_Sample</Message> </Class> <Method classname="ex.SCA_Sample" name="clone" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.SCA_Sample" start="10" end="14" startBytecode="0" endBytecode="114" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"/> <Message>In method ex.SCA_Sample.clone()</Message> </Method> <SourceLine classname="ex.SCA_Sample" primary="true" start="13" end="13" startBytecode="39" endBytecode="39" sourcefile="SCA_Sample.java" sourcepath="ex/SCA_Sample.java"> <Message>At SCA_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="SCII_SPOILED_CHILD_INTERFACE_IMPLEMENTOR" priority="2" rank="17" abbrev="SCII" category="STYLE" instanceHash="6898cdfd465cd1f0d4a09b91b1f99fd9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class implements interface by relying on unknowing superclass methods</ShortMessage> <LongMessage>Class ex.SCII_Sample implements interface by relying on unknowing superclass methods</LongMessage> <Class classname="ex.SCII_Sample" primary="true"> <SourceLine classname="ex.SCII_Sample" start="1" end="9" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java"> <Message>At SCII_Sample.java:[lines 1-9]</Message> </SourceLine> <Message>In class ex.SCII_Sample</Message> </Class> <String value="Implementing interface: java.awt.event.MouseListener"> <Message>Value Implementing interface: java.awt.event.MouseListener</Message> </String> <String value="Methods:"> <Message>Value Methods:</Message> </String> <String value=" mouseEntered:(Ljava/awt/event/MouseEvent;)V"> <Message>Value mouseEntered:(Ljava/awt/event/MouseEvent;)V</Message> </String> <String value=" mouseExited:(Ljava/awt/event/MouseEvent;)V"> <Message>Value mouseExited:(Ljava/awt/event/MouseEvent;)V</Message> </String> <String value=" mouseReleased:(Ljava/awt/event/MouseEvent;)V"> <Message>Value mouseReleased:(Ljava/awt/event/MouseEvent;)V</Message> </String> <String value=" mousePressed:(Ljava/awt/event/MouseEvent;)V"> <Message>Value mousePressed:(Ljava/awt/event/MouseEvent;)V</Message> </String> <SourceLine classname="ex.SCII_Sample" start="1" end="9" sourcefile="SCII_Sample.java" sourcepath="ex/SCII_Sample.java" synthetic="true"> <Message>At SCII_Sample.java:[lines 1-9]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="57937eb70c5d48f2a04be64f720cc7b9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SCI_Sample does not implement a toString method</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java" synthetic="true"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="90265c15d314a21b05e484b5df3d1f01" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncCollectionInOtherSync() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncCollectionInOtherSync" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="87" end="95" startBytecode="0" endBytecode="306" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncCollectionInOtherSync()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="87" end="87" startBytecode="10" endBytecode="10" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 87]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="69d9e46227ddd13db4e369b289dc2058" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncCollectionInSync() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncCollectionInSync" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="76" end="84" startBytecode="0" endBytecode="306" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncCollectionInSync()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="77" end="77" startBytecode="13" endBytecode="13" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 77]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="73082ea9ddc5290613863aa500a1bb0b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncEntrySetLocal() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncEntrySetLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="34" end="40" startBytecode="0" endBytecode="242" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncEntrySetLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="34" end="34" startBytecode="10" endBytecode="10" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="8bbb662dbc347a92ef0e85d91514ad4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncKeySetLocal() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncKeySetLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="26" end="31" startBytecode="0" endBytecode="178" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncKeySetLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="26" end="26" startBytecode="10" endBytecode="10" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="4a6ee9e76d4eb02a7b2ce0537caf22f0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncListLocal() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncListLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="51" end="56" startBytecode="0" endBytecode="173" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncListLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="51" end="51" startBytecode="10" endBytecode="10" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 51]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="dd68a889f1f91536fef303e005098173" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncSortedMapLocal() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncSortedMapLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="67" end="73" startBytecode="0" endBytecode="242" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncSortedMapLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="67" end="67" startBytecode="10" endBytecode="10" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 67]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="1598e41e388dd368a64e4759be27687a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncSortedSetLocal() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncSortedSetLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="59" end="64" startBytecode="0" endBytecode="173" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncSortedSetLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="59" end="59" startBytecode="10" endBytecode="10" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 59]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="17e0c98ef0e065bae67e3ca3f82b267a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncValueSetLocal() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncValueSetLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="43" end="48" startBytecode="0" endBytecode="178" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncValueSetLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="43" end="43" startBytecode="10" endBytecode="10" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="NOS_NON_OWNED_SYNCHRONIZATION" priority="3" rank="20" abbrev="NOS" category="STYLE" instanceHash="f76c0fdd400a48a9d347aaf2092f3735" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses non owned variables to synchronize on</ShortMessage> <LongMessage>Class ex.SCI_Sample uses non owned variables to synchronize on</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncCollectionInOtherSync" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="87" end="95" startBytecode="0" endBytecode="306" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncCollectionInOtherSync()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="88" end="88" startBytecode="14" endBytecode="14" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 88]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="fd3e8aacb23297997d2bba4b675842bb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncCollectionInOtherSync() creates iterators on synchronized collections</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncCollectionInOtherSync" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="87" end="95" startBytecode="0" endBytecode="306" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncCollectionInOtherSync()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="89" end="89" startBytecode="21" endBytecode="21" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 89]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="c03ae9549b0dce3a55f1b94e44c1b61b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncEntrySetLocal() creates iterators on synchronized collections</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncEntrySetLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="34" end="40" startBytecode="0" endBytecode="242" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncEntrySetLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="35" end="35" startBytecode="17" endBytecode="17" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="43e16f69579ec97f9f58c9a54444039" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncKeySetLocal() creates iterators on synchronized collections</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncKeySetLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="26" end="31" startBytecode="0" endBytecode="178" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncKeySetLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="27" end="27" startBytecode="17" endBytecode="17" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="2e7a2af8d07fe4a94ad6d590e7ff27ea" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncListLocal() creates iterators on synchronized collections</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncListLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="51" end="56" startBytecode="0" endBytecode="173" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncListLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="52" end="52" startBytecode="12" endBytecode="12" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 52]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="adc154ce3eeb80ed830ac1f6af82144e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncMember() creates iterators on synchronized collections</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncMember" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="19" end="23" startBytecode="0" endBytecode="138" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncMember()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="19" end="19" startBytecode="4" endBytecode="4" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="b14687007a3f75a579c4a4675d58f79c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncSortedMapLocal() creates iterators on synchronized collections</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncSortedMapLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="67" end="73" startBytecode="0" endBytecode="242" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncSortedMapLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="68" end="68" startBytecode="17" endBytecode="17" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 68]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="2c0a168054c655b025f9b90dbf59fb8a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncSortedSetLocal() creates iterators on synchronized collections</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncSortedSetLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="59" end="64" startBytecode="0" endBytecode="173" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncSortedSetLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="60" end="60" startBytecode="12" endBytecode="12" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" priority="2" rank="7" abbrev="SCI" category="CORRECTNESS" instanceHash="a8ca94b53ca11b52e41dd163e14bc3b4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates iterators on synchronized collections</ShortMessage> <LongMessage>Method ex.SCI_Sample.testSyncValueSetLocal() creates iterators on synchronized collections</LongMessage> <Class classname="ex.SCI_Sample" primary="true"> <SourceLine classname="ex.SCI_Sample" start="15" end="95" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[lines 15-95]</Message> </SourceLine> <Message>In class ex.SCI_Sample</Message> </Class> <Method classname="ex.SCI_Sample" name="testSyncValueSetLocal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SCI_Sample" start="43" end="48" startBytecode="0" endBytecode="178" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"/> <Message>In method ex.SCI_Sample.testSyncValueSetLocal()</Message> </Method> <SourceLine classname="ex.SCI_Sample" primary="true" start="44" end="44" startBytecode="17" endBytecode="17" sourcefile="SCI_Sample.java" sourcepath="ex/SCI_Sample.java"> <Message>At SCI_Sample.java:[line 44]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="1d6fb0a2da58f0581e31723785a6e76b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SCRV_Sample does not implement a toString method</LongMessage> <Class classname="ex.SCRV_Sample" primary="true"> <SourceLine classname="ex.SCRV_Sample" start="4" end="9" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 4-9]</Message> </SourceLine> <Message>In class ex.SCRV_Sample</Message> </Class> <SourceLine classname="ex.SCRV_Sample" start="4" end="9" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java" synthetic="true"> <Message>At SCRV_Sample.java:[lines 4-9]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="b2228d42c9eccede58e0bb351b8b8832" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.SCRV_Sample.u</LongMessage> <Class classname="ex.SCRV_Sample" primary="true"> <SourceLine classname="ex.SCRV_Sample" start="4" end="9" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 4-9]</Message> </SourceLine> <Message>In class ex.SCRV_Sample</Message> </Class> <Field classname="ex.SCRV_Sample" name="u" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.SCRV_Sample" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>In SCRV_Sample.java</Message> </SourceLine> <Message>Field ex.SCRV_Sample.u</Message> </Field> <SourceLine classname="ex.SCRV_Sample" primary="true" start="9" end="9" startBytecode="11" endBytecode="11" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="EQ_COMPARETO_USE_OBJECT_EQUALS" priority="2" rank="16" abbrev="Eq" category="BAD_PRACTICE" instanceHash="51583c7f0ad72becb58284fe9508de14" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines compareTo(...) and uses Object.equals()</ShortMessage> <LongMessage>ex.SCRV_Sample$FPComparator defines compareTo(SCRV_Sample$FPComparator) and uses Object.equals()</LongMessage> <Class classname="ex.SCRV_Sample$FPComparator" primary="true"> <SourceLine classname="ex.SCRV_Sample$FPComparator" start="1" end="48" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-48]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$FPComparator</Message> </Class> <Method classname="ex.SCRV_Sample$FPComparator" name="compareTo" signature="(Lex/SCRV_Sample$FPComparator;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SCRV_Sample$FPComparator" start="48" end="48" startBytecode="0" endBytecode="95" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"/> <Message>In method ex.SCRV_Sample$FPComparator.compareTo(SCRV_Sample$FPComparator)</Message> </Method> <SourceLine classname="ex.SCRV_Sample$FPComparator" start="48" end="48" startBytecode="0" endBytecode="95" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java" synthetic="true"> <Message>At SCRV_Sample.java:[line 48]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="55b5d4597b9c1480905e7775e27c3907" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.SCRV_Sample$FPComparator be a _static_ inner class?</LongMessage> <Class classname="ex.SCRV_Sample$FPComparator" primary="true"> <SourceLine classname="ex.SCRV_Sample$FPComparator" start="1" end="48" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-48]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$FPComparator</Message> </Class> <SourceLine classname="ex.SCRV_Sample$FPComparator" start="1" end="48" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java" synthetic="true"> <Message>At SCRV_Sample.java:[lines 1-48]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="dda04959aa4e792362c922859a2da863" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.SCRV_Sample$FPDefaultComparator be a _static_ inner class?</LongMessage> <Class classname="ex.SCRV_Sample$FPDefaultComparator" primary="true"> <SourceLine classname="ex.SCRV_Sample$FPDefaultComparator" start="1" end="62" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-62]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$FPDefaultComparator</Message> </Class> <SourceLine classname="ex.SCRV_Sample$FPDefaultComparator" start="1" end="62" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java" synthetic="true"> <Message>At SCRV_Sample.java:[lines 1-62]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="d0f4042dd5e2f9b6c2a984ed63b5e82e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.SCRV_Sample$FPThrowsComparator be a _static_ inner class?</LongMessage> <Class classname="ex.SCRV_Sample$FPThrowsComparator" primary="true"> <SourceLine classname="ex.SCRV_Sample$FPThrowsComparator" start="1" end="55" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-55]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$FPThrowsComparator</Message> </Class> <SourceLine classname="ex.SCRV_Sample$FPThrowsComparator" start="1" end="55" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java" synthetic="true"> <Message>At SCRV_Sample.java:[lines 1-55]</Message> </SourceLine> </BugInstance> <BugInstance type="EQ_COMPARETO_USE_OBJECT_EQUALS" priority="2" rank="16" abbrev="Eq" category="BAD_PRACTICE" instanceHash="3e9efabe8865fb36bf744e9bde529212" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines compareTo(...) and uses Object.equals()</ShortMessage> <LongMessage>ex.SCRV_Sample$SampleComparable defines compareTo(Object) and uses Object.equals()</LongMessage> <Class classname="ex.SCRV_Sample$SampleComparable" primary="true"> <SourceLine classname="ex.SCRV_Sample$SampleComparable" start="1" end="27" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-27]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$SampleComparable</Message> </Class> <Method classname="ex.SCRV_Sample$SampleComparable" name="compareTo" signature="(Ljava/lang/Object;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SCRV_Sample$SampleComparable" start="1" end="1" startBytecode="0" endBytecode="40" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"/> <Message>In method ex.SCRV_Sample$SampleComparable.compareTo(Object)</Message> </Method> <SourceLine classname="ex.SCRV_Sample$SampleComparable" start="1" end="1" startBytecode="0" endBytecode="40" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java" synthetic="true"> <Message>At SCRV_Sample.java:[line 1]</Message> </SourceLine> </BugInstance> <BugInstance type="SCRV_SUSPICIOUS_COMPARATOR_RETURN_VALUES" priority="2" rank="7" abbrev="SCRV" category="CORRECTNESS" instanceHash="22316ea23021aa13d649802c015804ae" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Comparator method doesn't seem to return all ordering values</ShortMessage> <LongMessage>Comparator method ex.SCRV_Sample$SampleComparable.compareTo(SCRV_Sample) doesn't seem to return all ordering values</LongMessage> <Class classname="ex.SCRV_Sample$SampleComparable" primary="true"> <SourceLine classname="ex.SCRV_Sample$SampleComparable" start="1" end="27" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-27]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$SampleComparable</Message> </Class> <Method classname="ex.SCRV_Sample$SampleComparable" name="compareTo" signature="(Lex/SCRV_Sample;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SCRV_Sample$SampleComparable" start="24" end="27" startBytecode="0" endBytecode="86" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"/> <Message>In method ex.SCRV_Sample$SampleComparable.compareTo(SCRV_Sample)</Message> </Method> <SourceLine classname="ex.SCRV_Sample$SampleComparable" primary="true" start="24" end="24" startBytecode="0" endBytecode="0" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="SCRV_SUSPICIOUS_COMPARATOR_RETURN_VALUES" priority="2" rank="7" abbrev="SCRV" category="CORRECTNESS" instanceHash="44fc9f0358caf1cdfcb8448091d9b9e7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Comparator method doesn't seem to return all ordering values</ShortMessage> <LongMessage>Comparator method ex.SCRV_Sample$SampleComparator.compare(SCRV_Sample, SCRV_Sample) doesn't seem to return all ordering values</LongMessage> <Class classname="ex.SCRV_Sample$SampleComparator" primary="true"> <SourceLine classname="ex.SCRV_Sample$SampleComparator" start="1" end="17" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-17]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$SampleComparator</Message> </Class> <Method classname="ex.SCRV_Sample$SampleComparator" name="compare" signature="(Lex/SCRV_Sample;Lex/SCRV_Sample;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SCRV_Sample$SampleComparator" start="14" end="17" startBytecode="0" endBytecode="93" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"/> <Message>In method ex.SCRV_Sample$SampleComparator.compare(SCRV_Sample, SCRV_Sample)</Message> </Method> <SourceLine classname="ex.SCRV_Sample$SampleComparator" primary="true" start="14" end="14" startBytecode="0" endBytecode="0" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="610f2036158a215802dda1166bb4fa0f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.SCRV_Sample$SampleComparator be a _static_ inner class?</LongMessage> <Class classname="ex.SCRV_Sample$SampleComparator" primary="true"> <SourceLine classname="ex.SCRV_Sample$SampleComparator" start="1" end="17" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-17]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$SampleComparator</Message> </Class> <SourceLine classname="ex.SCRV_Sample$SampleComparator" start="1" end="17" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java" synthetic="true"> <Message>At SCRV_Sample.java:[lines 1-17]</Message> </SourceLine> </BugInstance> <BugInstance type="EQ_COMPARETO_USE_OBJECT_EQUALS" priority="2" rank="16" abbrev="Eq" category="BAD_PRACTICE" instanceHash="629ff87e742e821fd25eba75cca871f5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines compareTo(...) and uses Object.equals()</ShortMessage> <LongMessage>ex.SCRV_Sample$UnconditionalNonZeroReturnComparable defines compareTo(Object) and uses Object.equals()</LongMessage> <Class classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" primary="true"> <SourceLine classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" start="1" end="39" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-39]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$UnconditionalNonZeroReturnComparable</Message> </Class> <Method classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" name="compareTo" signature="(Ljava/lang/Object;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" start="1" end="1" startBytecode="0" endBytecode="40" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"/> <Message>In method ex.SCRV_Sample$UnconditionalNonZeroReturnComparable.compareTo(Object)</Message> </Method> <SourceLine classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" start="1" end="1" startBytecode="0" endBytecode="40" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java" synthetic="true"> <Message>At SCRV_Sample.java:[line 1]</Message> </SourceLine> </BugInstance> <BugInstance type="SCRV_SUSPICIOUS_COMPARATOR_RETURN_VALUES" priority="3" rank="10" abbrev="SCRV" category="CORRECTNESS" instanceHash="83457a448c290e5621f8da7c0e0d7ce0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Comparator method doesn't seem to return all ordering values</ShortMessage> <LongMessage>Comparator method ex.SCRV_Sample$UnconditionalNonZeroReturnComparable.compareTo(SCRV_Sample) doesn't seem to return all ordering values</LongMessage> <Class classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" primary="true"> <SourceLine classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" start="1" end="39" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[lines 1-39]</Message> </SourceLine> <Message>In class ex.SCRV_Sample$UnconditionalNonZeroReturnComparable</Message> </Class> <Method classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" name="compareTo" signature="(Lex/SCRV_Sample;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" start="34" end="39" startBytecode="0" endBytecode="111" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"/> <Message>In method ex.SCRV_Sample$UnconditionalNonZeroReturnComparable.compareTo(SCRV_Sample)</Message> </Method> <SourceLine classname="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" primary="true" start="34" end="34" startBytecode="0" endBytecode="0" sourcefile="SCRV_Sample.java" sourcepath="ex/SCRV_Sample.java"> <Message>At SCRV_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="615252cdf818ced1e8df46fafbad8f15" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.SCR_Sample.testForNameOfLocal(B) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.SCR_Sample" primary="true"> <SourceLine classname="ex.SCR_Sample" start="9" end="55" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"> <Message>At SCR_Sample.java:[lines 9-55]</Message> </SourceLine> <Message>In class ex.SCR_Sample</Message> </Class> <Method classname="ex.SCR_Sample" name="testForNameOfLocal" signature="(Lex/B;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SCR_Sample" start="33" end="36" startBytecode="0" endBytecode="117" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"/> <Message>In method ex.SCR_Sample.testForNameOfLocal(B)</Message> </Method> <SourceLine classname="ex.SCR_Sample" start="33" end="36" startBytecode="0" endBytecode="117" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java" synthetic="true"> <Message>At SCR_Sample.java:[lines 33-36]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="27015447a5cec8ec15eeddca47a9c773" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.SCR_Sample.testForNameOfMember() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.SCR_Sample" primary="true"> <SourceLine classname="ex.SCR_Sample" start="9" end="55" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"> <Message>At SCR_Sample.java:[lines 9-55]</Message> </SourceLine> <Message>In class ex.SCR_Sample</Message> </Class> <Method classname="ex.SCR_Sample" name="testForNameOfMember" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SCR_Sample" start="24" end="27" startBytecode="0" endBytecode="107" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"/> <Message>In method ex.SCR_Sample.testForNameOfMember()</Message> </Method> <SourceLine classname="ex.SCR_Sample" start="24" end="27" startBytecode="0" endBytecode="107" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java" synthetic="true"> <Message>At SCR_Sample.java:[lines 24-27]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="7907ea30bb48b134aa3dad6116dfc917" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.SCR_Sample.testForNameOfThis() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.SCR_Sample" primary="true"> <SourceLine classname="ex.SCR_Sample" start="9" end="55" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"> <Message>At SCR_Sample.java:[lines 9-55]</Message> </SourceLine> <Message>In class ex.SCR_Sample</Message> </Class> <Method classname="ex.SCR_Sample" name="testForNameOfThis" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SCR_Sample" start="15" end="18" startBytecode="0" endBytecode="107" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"/> <Message>In method ex.SCR_Sample.testForNameOfThis()</Message> </Method> <SourceLine classname="ex.SCR_Sample" start="15" end="18" startBytecode="0" endBytecode="107" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java" synthetic="true"> <Message>At SCR_Sample.java:[lines 15-18]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="f7d044cebec131e493152ca7d62c0d98" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.SCR_Sample.testForNameOfUnknown() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.SCR_Sample" primary="true"> <SourceLine classname="ex.SCR_Sample" start="9" end="55" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"> <Message>At SCR_Sample.java:[lines 9-55]</Message> </SourceLine> <Message>In class ex.SCR_Sample</Message> </Class> <Method classname="ex.SCR_Sample" name="testForNameOfUnknown" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SCR_Sample" start="42" end="45" startBytecode="0" endBytecode="107" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"/> <Message>In method ex.SCR_Sample.testForNameOfUnknown()</Message> </Method> <SourceLine classname="ex.SCR_Sample" start="42" end="45" startBytecode="0" endBytecode="107" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java" synthetic="true"> <Message>At SCR_Sample.java:[lines 42-45]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="6567a71e8e9302b0801299d3060780ce" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SCR_Sample does not implement a toString method</LongMessage> <Class classname="ex.SCR_Sample" primary="true"> <SourceLine classname="ex.SCR_Sample" start="9" end="55" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java"> <Message>At SCR_Sample.java:[lines 9-55]</Message> </SourceLine> <Message>In class ex.SCR_Sample</Message> </Class> <SourceLine classname="ex.SCR_Sample" start="9" end="55" sourcefile="SCR_Sample.java" sourcepath="ex/SCR_Sample.java" synthetic="true"> <Message>At SCR_Sample.java:[lines 9-55]</Message> </SourceLine> </BugInstance> <BugInstance type="SCSS_SUSPICIOUS_CLUSTERED_SESSION_SUPPORT" priority="2" rank="7" abbrev="SCSS" category="CORRECTNESS" instanceHash="97126c1dd9428620edb6de68d5f2b45d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method modifies an http session attribute without calling setAttribute</ShortMessage> <LongMessage>Method ex.SCSS_Sample.arrayChange(HttpSession) modifies an http session attribute without calling setAttribute</LongMessage> <Class classname="ex.SCSS_Sample" primary="true"> <SourceLine classname="ex.SCSS_Sample" start="8" end="23" sourcefile="SCSS_Sample.java" sourcepath="ex/SCSS_Sample.java"> <Message>At SCSS_Sample.java:[lines 8-23]</Message> </SourceLine> <Message>In class ex.SCSS_Sample</Message> </Class> <Method classname="ex.SCSS_Sample" name="arrayChange" signature="(Ljavax/servlet/http/HttpSession;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SCSS_Sample" start="15" end="17" startBytecode="0" endBytecode="86" sourcefile="SCSS_Sample.java" sourcepath="ex/SCSS_Sample.java"/> <Message>In method ex.SCSS_Sample.arrayChange(HttpSession)</Message> </Method> <SourceLine classname="ex.SCSS_Sample" primary="true" start="16" end="16" startBytecode="15" endBytecode="15" sourcefile="SCSS_Sample.java" sourcepath="ex/SCSS_Sample.java"> <Message>At SCSS_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="SCSS_SUSPICIOUS_CLUSTERED_SESSION_SUPPORT" priority="2" rank="7" abbrev="SCSS" category="CORRECTNESS" instanceHash="e981ac2ad949d1f79a024147ac63a974" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method modifies an http session attribute without calling setAttribute</ShortMessage> <LongMessage>Method ex.SCSS_Sample.setChange(HttpSession) modifies an http session attribute without calling setAttribute</LongMessage> <Class classname="ex.SCSS_Sample" primary="true"> <SourceLine classname="ex.SCSS_Sample" start="8" end="23" sourcefile="SCSS_Sample.java" sourcepath="ex/SCSS_Sample.java"> <Message>At SCSS_Sample.java:[lines 8-23]</Message> </SourceLine> <Message>In class ex.SCSS_Sample</Message> </Class> <Method classname="ex.SCSS_Sample" name="setChange" signature="(Ljavax/servlet/http/HttpSession;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SCSS_Sample" start="10" end="12" startBytecode="0" endBytecode="109" sourcefile="SCSS_Sample.java" sourcepath="ex/SCSS_Sample.java"/> <Message>In method ex.SCSS_Sample.setChange(HttpSession)</Message> </Method> <SourceLine classname="ex.SCSS_Sample" primary="true" start="11" end="11" startBytecode="15" endBytecode="15" sourcefile="SCSS_Sample.java" sourcepath="ex/SCSS_Sample.java"> <Message>At SCSS_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="def659196e9955fd8863605716b69e38" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method new ex.SEC_Sample(List) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.SEC_Sample" primary="true"> <SourceLine classname="ex.SEC_Sample" start="6" end="19" sourcefile="SEC_Sample.java" sourcepath="ex/SEC_Sample.java"> <Message>At SEC_Sample.java:[lines 6-19]</Message> </SourceLine> <Message>In class ex.SEC_Sample</Message> </Class> <Method classname="ex.SEC_Sample" name="<init>" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SEC_Sample" start="6" end="8" startBytecode="0" endBytecode="90" sourcefile="SEC_Sample.java" sourcepath="ex/SEC_Sample.java"/> <Message>In method new ex.SEC_Sample(List)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.SEC_Sample" start="6" end="8" startBytecode="0" endBytecode="90" sourcefile="SEC_Sample.java" sourcepath="ex/SEC_Sample.java" synthetic="true"> <Message>At SEC_Sample.java:[lines 6-8]</Message> </SourceLine> </BugInstance> <BugInstance type="SEC_SIDE_EFFECT_CONSTRUCTOR" priority="2" rank="17" abbrev="SEC" category="STYLE" instanceHash="fed48b894935bd01e14518369c42576e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a Side Effect Constructor</ShortMessage> <LongMessage>Method ex.SEC_Sample.main(String[]) uses a Side Effect Constructor</LongMessage> <Class classname="ex.SEC_Sample" primary="true"> <SourceLine classname="ex.SEC_Sample" start="6" end="19" sourcefile="SEC_Sample.java" sourcepath="ex/SEC_Sample.java"> <Message>At SEC_Sample.java:[lines 6-19]</Message> </SourceLine> <Message>In class ex.SEC_Sample</Message> </Class> <Method classname="ex.SEC_Sample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.SEC_Sample" start="11" end="13" startBytecode="0" endBytecode="93" sourcefile="SEC_Sample.java" sourcepath="ex/SEC_Sample.java"/> <Message>In method ex.SEC_Sample.main(String[])</Message> </Method> <SourceLine classname="ex.SEC_Sample" primary="true" start="13" end="13" startBytecode="15" endBytecode="15" sourcefile="SEC_Sample.java" sourcepath="ex/SEC_Sample.java"> <Message>At SEC_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RANDOM_SEED" priority="3" rank="10" abbrev="MDM" category="CORRECTNESS" instanceHash="bb2a3620c7b7ace8c24ecee783895a99" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates insecure Random object</ShortMessage> <LongMessage>Method ex.SEO_Sample.calcA() creates an insecure Random object, which may be a security risk</LongMessage> <Class classname="ex.SEO_Sample" primary="true"> <SourceLine classname="ex.SEO_Sample" start="5" end="40" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 5-40]</Message> </SourceLine> <Message>In class ex.SEO_Sample</Message> </Class> <Method classname="ex.SEO_Sample" name="calcA" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample" start="19" end="20" startBytecode="0" endBytecode="70" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"/> <Message>In method ex.SEO_Sample.calcA()</Message> </Method> <Method classname="java.util.Random" name="<init>" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Random" start="105" end="106" startBytecode="0" endBytecode="39" sourcefile="Random.java" sourcepath="java/util/Random.java"/> <Message>Called method new java.util.Random()</Message> </Method> <SourceLine classname="ex.SEO_Sample" primary="true" start="19" end="19" startBytecode="4" endBytecode="4" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RANDOM_SEED" priority="3" rank="10" abbrev="MDM" category="CORRECTNESS" instanceHash="ef432c72686c3815910d8a131c19af52" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates insecure Random object</ShortMessage> <LongMessage>Method ex.SEO_Sample.calcB() creates an insecure Random object, which may be a security risk</LongMessage> <Class classname="ex.SEO_Sample" primary="true"> <SourceLine classname="ex.SEO_Sample" start="5" end="40" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 5-40]</Message> </SourceLine> <Message>In class ex.SEO_Sample</Message> </Class> <Method classname="ex.SEO_Sample" name="calcB" signature="()I" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample" start="24" end="25" startBytecode="0" endBytecode="70" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"/> <Message>In method ex.SEO_Sample.calcB()</Message> </Method> <Method classname="java.util.Random" name="<init>" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Random" start="105" end="106" startBytecode="0" endBytecode="39" sourcefile="Random.java" sourcepath="java/util/Random.java"/> <Message>Called method new java.util.Random()</Message> </Method> <SourceLine classname="ex.SEO_Sample" primary="true" start="24" end="24" startBytecode="4" endBytecode="4" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RANDOM_SEED" priority="3" rank="10" abbrev="MDM" category="CORRECTNESS" instanceHash="c14644f530225d9b5df0f654471f3bc2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates insecure Random object</ShortMessage> <LongMessage>Method ex.SEO_Sample.hasC() creates an insecure Random object, which may be a security risk</LongMessage> <Class classname="ex.SEO_Sample" primary="true"> <SourceLine classname="ex.SEO_Sample" start="5" end="40" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 5-40]</Message> </SourceLine> <Message>In class ex.SEO_Sample</Message> </Class> <Method classname="ex.SEO_Sample" name="hasC" signature="()Z" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample" start="29" end="30" startBytecode="0" endBytecode="68" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"/> <Message>In method ex.SEO_Sample.hasC()</Message> </Method> <Method classname="java.util.Random" name="<init>" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Random" start="105" end="106" startBytecode="0" endBytecode="39" sourcefile="Random.java" sourcepath="java/util/Random.java"/> <Message>Called method new java.util.Random()</Message> </Method> <SourceLine classname="ex.SEO_Sample" primary="true" start="29" end="29" startBytecode="4" endBytecode="4" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="SEO_SUBOPTIMAL_EXPRESSION_ORDER" priority="2" rank="18" abbrev="SEO" category="PERFORMANCE" instanceHash="69a2db767840ad652913a23729da3124" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method orders expressions in a conditional in a sub optimal way</ShortMessage> <LongMessage>Method ex.SEO_Sample.fp223Aliasing() orders expressions in a conditional in a sub optimal way</LongMessage> <Class classname="ex.SEO_Sample" primary="true"> <SourceLine classname="ex.SEO_Sample" start="5" end="40" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 5-40]</Message> </SourceLine> <Message>In class ex.SEO_Sample</Message> </Class> <Method classname="ex.SEO_Sample" name="fp223Aliasing" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample" start="34" end="40" startBytecode="0" endBytecode="131" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"/> <Message>In method ex.SEO_Sample.fp223Aliasing()</Message> </Method> <SourceLine classname="ex.SEO_Sample" primary="true" start="37" end="37" startBytecode="25" endBytecode="25" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="SEO_SUBOPTIMAL_EXPRESSION_ORDER" priority="2" rank="18" abbrev="SEO" category="PERFORMANCE" instanceHash="5aaaf0d94f044b1fcd46fb4f10c9a50a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method orders expressions in a conditional in a sub optimal way</ShortMessage> <LongMessage>Method ex.SEO_Sample.seo() orders expressions in a conditional in a sub optimal way</LongMessage> <Class classname="ex.SEO_Sample" primary="true"> <SourceLine classname="ex.SEO_Sample" start="5" end="40" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 5-40]</Message> </SourceLine> <Message>In class ex.SEO_Sample</Message> </Class> <Method classname="ex.SEO_Sample" name="seo" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample" start="8" end="16" startBytecode="0" endBytecode="139" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"/> <Message>In method ex.SEO_Sample.seo()</Message> </Method> <SourceLine classname="ex.SEO_Sample" primary="true" start="13" end="13" startBytecode="27" endBytecode="27" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="1b183e61f7c2e44e41b205b64f9983c1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.SEO_Sample.fp223Aliasing() is never called</LongMessage> <Class classname="ex.SEO_Sample" primary="true"> <SourceLine classname="ex.SEO_Sample" start="5" end="40" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 5-40]</Message> </SourceLine> <Message>In class ex.SEO_Sample</Message> </Class> <Method classname="ex.SEO_Sample" name="fp223Aliasing" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample" start="34" end="40" startBytecode="0" endBytecode="131" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"/> <Message>In method ex.SEO_Sample.fp223Aliasing()</Message> </Method> <SourceLine classname="ex.SEO_Sample" start="34" end="40" startBytecode="0" endBytecode="131" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java" synthetic="true"> <Message>At SEO_Sample.java:[lines 34-40]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="442f4e2f03db28bbbf197db6a36694a9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.SEO_Sample$Holder.getData() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.SEO_Sample$Holder" primary="true"> <SourceLine classname="ex.SEO_Sample$Holder" start="42" end="50" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 42-50]</Message> </SourceLine> <Message>In class ex.SEO_Sample$Holder</Message> </Class> <Method classname="ex.SEO_Sample$Holder" name="getData" signature="()[I" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample$Holder" start="46" end="46" startBytecode="0" endBytecode="46" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"/> <Message>In method ex.SEO_Sample$Holder.getData()</Message> </Method> <SourceLine classname="ex.SEO_Sample$Holder" start="46" end="46" startBytecode="0" endBytecode="46" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java" synthetic="true"> <Message>At SEO_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="9f7474a47875805a528253ccc56de984" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field data in ex.SEO_Sample$Holder.checkIt()</LongMessage> <Class classname="ex.SEO_Sample$Holder" primary="true"> <SourceLine classname="ex.SEO_Sample$Holder" start="42" end="50" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 42-50]</Message> </SourceLine> <Message>In class ex.SEO_Sample$Holder</Message> </Class> <Method classname="ex.SEO_Sample$Holder" name="checkIt" signature="()Z" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample$Holder" start="50" end="50" startBytecode="0" endBytecode="62" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"/> <Message>In method ex.SEO_Sample$Holder.checkIt()</Message> </Method> <Field classname="ex.SEO_Sample$Holder" name="data" signature="[I" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample$Holder" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>In SEO_Sample.java</Message> </SourceLine> <Message>Field ex.SEO_Sample$Holder.data</Message> </Field> <SourceLine classname="ex.SEO_Sample$Holder" primary="true" start="50" end="50" startBytecode="4" endBytecode="4" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="1c676680566ea36726f32f27fd9e2939" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.SEO_Sample$Holder be a _static_ inner class?</LongMessage> <Class classname="ex.SEO_Sample$Holder" primary="true"> <SourceLine classname="ex.SEO_Sample$Holder" start="42" end="50" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 42-50]</Message> </SourceLine> <Message>In class ex.SEO_Sample$Holder</Message> </Class> <SourceLine classname="ex.SEO_Sample$Holder" start="42" end="50" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java" synthetic="true"> <Message>At SEO_Sample.java:[lines 42-50]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="3f0bab8ac937bc361fbe2c4c7deccacf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.SEO_Sample$Holder.data</LongMessage> <Class classname="ex.SEO_Sample$Holder" primary="true"> <SourceLine classname="ex.SEO_Sample$Holder" start="42" end="50" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[lines 42-50]</Message> </SourceLine> <Message>In class ex.SEO_Sample$Holder</Message> </Class> <Field classname="ex.SEO_Sample$Holder" name="data" signature="[I" isStatic="false" primary="true"> <SourceLine classname="ex.SEO_Sample$Holder" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>In SEO_Sample.java</Message> </SourceLine> <Message>Field ex.SEO_Sample$Holder.data</Message> </Field> <SourceLine classname="ex.SEO_Sample$Holder" primary="true" start="46" end="46" startBytecode="1" endBytecode="1" sourcefile="SEO_Sample.java" sourcepath="ex/SEO_Sample.java"> <Message>At SEO_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="61186f88e675089f25c2081b24af1de0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SGSU_Sample does not implement a toString method</LongMessage> <Class classname="ex.SGSU_Sample" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="2" end="23" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[lines 2-23]</Message> </SourceLine> <Message>In class ex.SGSU_Sample</Message> </Class> <SourceLine classname="ex.SGSU_Sample" start="2" end="23" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java" synthetic="true"> <Message>At SGSU_Sample.java:[lines 2-23]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="65aab8b8afb0e8e6e65f97bbf0268591" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field foo2 in ex.SGSU_Sample.fpSGSUFields()</LongMessage> <Class classname="ex.SGSU_Sample" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="2" end="23" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[lines 2-23]</Message> </SourceLine> <Message>In class ex.SGSU_Sample</Message> </Class> <Method classname="ex.SGSU_Sample" name="fpSGSUFields" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="15" end="16" startBytecode="0" endBytecode="60" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"/> <Message>In method ex.SGSU_Sample.fpSGSUFields()</Message> </Method> <Field classname="ex.SGSU_Sample" name="foo2" signature="Lex/SGSU_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>In SGSU_Sample.java</Message> </SourceLine> <Message>Field ex.SGSU_Sample.foo2</Message> </Field> <SourceLine classname="ex.SGSU_Sample" primary="true" start="15" end="15" startBytecode="8" endBytecode="8" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="SGSU_SUSPICIOUS_GETTER_SETTER_USE" priority="2" rank="7" abbrev="SGSU" category="CORRECTNESS" instanceHash="237b091490fe5dc39f5e9c16249541f8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses same bean's getter value for setter</ShortMessage> <LongMessage>Method ex.SGSU_Sample.testSGSUFields() uses same bean's getter value for setter</LongMessage> <Class classname="ex.SGSU_Sample" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="2" end="23" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[lines 2-23]</Message> </SourceLine> <Message>In class ex.SGSU_Sample</Message> </Class> <Method classname="ex.SGSU_Sample" name="testSGSUFields" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="11" end="12" startBytecode="0" endBytecode="60" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"/> <Message>In method ex.SGSU_Sample.testSGSUFields()</Message> </Method> <SourceLine classname="ex.SGSU_Sample" primary="true" start="11" end="11" startBytecode="11" endBytecode="11" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="SGSU_SUSPICIOUS_GETTER_SETTER_USE" priority="2" rank="7" abbrev="SGSU" category="CORRECTNESS" instanceHash="2aaae1db9eb9f467b703172a5c202893" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses same bean's getter value for setter</ShortMessage> <LongMessage>Method ex.SGSU_Sample.testSGSULocals(SGSU_Sample, SGSU_Sample) uses same bean's getter value for setter</LongMessage> <Class classname="ex.SGSU_Sample" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="2" end="23" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[lines 2-23]</Message> </SourceLine> <Message>In class ex.SGSU_Sample</Message> </Class> <Method classname="ex.SGSU_Sample" name="testSGSULocals" signature="(Lex/SGSU_Sample;Lex/SGSU_Sample;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="7" end="8" startBytecode="0" endBytecode="74" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"/> <Message>In method ex.SGSU_Sample.testSGSULocals(SGSU_Sample, SGSU_Sample)</Message> </Method> <SourceLine classname="ex.SGSU_Sample" primary="true" start="7" end="7" startBytecode="5" endBytecode="5" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="98f6c18013a17c000c7ab9c25f94480" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field not initialized in constructor but dereferenced without null check</ShortMessage> <LongMessage>SGSU_Sample.foo not initialized in constructor and dereferenced in ex.SGSU_Sample.fpSGSUFields()</LongMessage> <Class classname="ex.SGSU_Sample" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="2" end="23" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[lines 2-23]</Message> </SourceLine> <Message>In class ex.SGSU_Sample</Message> </Class> <Field classname="ex.SGSU_Sample" name="foo" signature="Lex/SGSU_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>In SGSU_Sample.java</Message> </SourceLine> <Message>Field ex.SGSU_Sample.foo</Message> </Field> <Method classname="ex.SGSU_Sample" name="fpSGSUFields" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="15" end="16" startBytecode="0" endBytecode="60" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"/> <Message>In method ex.SGSU_Sample.fpSGSUFields()</Message> </Method> <SourceLine classname="ex.SGSU_Sample" primary="true" start="15" end="15" startBytecode="11" endBytecode="11" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="f8c484a605f35cf48334641852ed0bc1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field not initialized in constructor but dereferenced without null check</ShortMessage> <LongMessage>SGSU_Sample.foo not initialized in constructor and dereferenced in ex.SGSU_Sample.testSGSUFields()</LongMessage> <Class classname="ex.SGSU_Sample" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="2" end="23" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[lines 2-23]</Message> </SourceLine> <Message>In class ex.SGSU_Sample</Message> </Class> <Field classname="ex.SGSU_Sample" name="foo" signature="Lex/SGSU_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>In SGSU_Sample.java</Message> </SourceLine> <Message>Field ex.SGSU_Sample.foo</Message> </Field> <Method classname="ex.SGSU_Sample" name="testSGSUFields" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="11" end="12" startBytecode="0" endBytecode="60" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"/> <Message>In method ex.SGSU_Sample.testSGSUFields()</Message> </Method> <SourceLine classname="ex.SGSU_Sample" primary="true" start="11" end="11" startBytecode="8" endBytecode="8" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="cf73d671bb5bd341107be7479660c8ab" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.SGSU_Sample.foo2</LongMessage> <Class classname="ex.SGSU_Sample" primary="true"> <SourceLine classname="ex.SGSU_Sample" start="2" end="23" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[lines 2-23]</Message> </SourceLine> <Message>In class ex.SGSU_Sample</Message> </Class> <Field classname="ex.SGSU_Sample" name="foo2" signature="Lex/SGSU_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SGSU_Sample" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>In SGSU_Sample.java</Message> </SourceLine> <Message>Field ex.SGSU_Sample.foo2</Message> </Field> <SourceLine classname="ex.SGSU_Sample" primary="true" start="15" end="15" startBytecode="5" endBytecode="5" sourcefile="SGSU_Sample.java" sourcepath="ex/SGSU_Sample.java"> <Message>At SGSU_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD" priority="1" rank="9" abbrev="DLS" category="STYLE" instanceHash="a868000852a175008a67159fa436d9b9" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable that shadows field</ShortMessage> <LongMessage>Dead store to s rather than field with same name in ex.SG_Sample.windowClosing(WindowEvent)</LongMessage> <Class classname="ex.SG_Sample" primary="true"> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> <Message>In class ex.SG_Sample</Message> </Class> <Method classname="ex.SG_Sample" name="windowClosing" signature="(Ljava/awt/event/WindowEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SG_Sample" start="33" end="34" startBytecode="0" endBytecode="3" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"/> <Message>In method ex.SG_Sample.windowClosing(WindowEvent)</Message> </Method> <LocalVariable name="s" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <Field classname="ex.SG_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true" role="FIELD_DID_YOU_MEAN"> <SourceLine classname="ex.SG_Sample" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>In SG_Sample.java</Message> </SourceLine> <Message>Did you mean to refer to the field ex.SG_Sample.s?</Message> </Field> <SourceLine classname="ex.SG_Sample" primary="true" start="33" end="33" startBytecode="4" endBytecode="4" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[line 33]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.SHADOWS_FIELD" value="true"/> </BugInstance> <BugInstance type="DMI_HARDCODED_ABSOLUTE_FILENAME" priority="2" rank="17" abbrev="DMI" category="STYLE" instanceHash="a8e8a37429bcfd331c87a6a3db102968" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Code contains a hard coded reference to an absolute pathname</ShortMessage> <LongMessage>Hard coded reference to an absolute pathname in ex.SG_Sample.actionPerformed(ActionEvent)</LongMessage> <Class classname="ex.SG_Sample" primary="true"> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> <Message>In class ex.SG_Sample</Message> </Class> <Method classname="ex.SG_Sample" name="actionPerformed" signature="(Ljava/awt/event/ActionEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SG_Sample" start="19" end="30" startBytecode="0" endBytecode="25" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"/> <Message>In method ex.SG_Sample.actionPerformed(ActionEvent)</Message> </Method> <String value="c:/a.out" role="FILE_NAME"> <Message>File name c:/a.out</Message> </String> <SourceLine classname="ex.SG_Sample" primary="true" start="21" end="21" startBytecode="8" endBytecode="8" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_DEFAULT_ENCODING" priority="1" rank="19" abbrev="Dm" category="I18N" instanceHash="f95b318e215a4d907aedb5542180f2ab" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Reliance on default encoding</ShortMessage> <LongMessage>Found reliance on default encoding in ex.SG_Sample.actionPerformed(ActionEvent): new java.io.FileReader(String)</LongMessage> <Class classname="ex.SG_Sample" primary="true"> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> <Message>In class ex.SG_Sample</Message> </Class> <Method classname="ex.SG_Sample" name="actionPerformed" signature="(Ljava/awt/event/ActionEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SG_Sample" start="19" end="30" startBytecode="0" endBytecode="277" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"/> <Message>In method ex.SG_Sample.actionPerformed(ActionEvent)</Message> </Method> <Method classname="java.io.FileReader" name="<init>" signature="(Ljava/lang/String;)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.io.FileReader" start="58" end="59" startBytecode="0" endBytecode="40" sourcefile="FileReader.java" sourcepath="java/io/FileReader.java"/> <Message>Called method new java.io.FileReader(String)</Message> </Method> <SourceLine classname="ex.SG_Sample" primary="true" start="21" end="21" startBytecode="8" endBytecode="8" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_DEFAULT_ENCODING" priority="1" rank="19" abbrev="Dm" category="I18N" instanceHash="e7b52efc6b5b584d204249f3f1a6425" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Reliance on default encoding</ShortMessage> <LongMessage>Found reliance on default encoding in ex.SG_Sample.getRoot(): String.getBytes()</LongMessage> <Class classname="ex.SG_Sample" primary="true"> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> <Message>In class ex.SG_Sample</Message> </Class> <Method classname="ex.SG_Sample" name="getRoot" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SG_Sample" start="38" end="43" startBytecode="0" endBytecode="165" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"/> <Message>In method ex.SG_Sample.getRoot()</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="()[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="958" end="958" startBytecode="0" endBytecode="37" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes()</Message> </Method> <SourceLine classname="ex.SG_Sample" primary="true" start="40" end="40" startBytecode="18" endBytecode="18" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="6478c554f59bc8070c46541d692a9a67" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SG_Sample does not implement a toString method</LongMessage> <Class classname="ex.SG_Sample" primary="true"> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> <Message>In class ex.SG_Sample</Message> </Class> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java" synthetic="true"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_STRING_BYTES_ENCODING" priority="2" rank="7" abbrev="MDM" category="CORRECTNESS" instanceHash="fa4224fa851e056aa18fa8ec7abeb164" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method encodes String bytes without specifying the character encoding</ShortMessage> <LongMessage>Method ex.SG_Sample.getRoot() encodes String bytes without specifying the character encoding</LongMessage> <Class classname="ex.SG_Sample" primary="true"> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> <Message>In class ex.SG_Sample</Message> </Class> <Method classname="ex.SG_Sample" name="getRoot" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SG_Sample" start="38" end="43" startBytecode="0" endBytecode="165" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"/> <Message>In method ex.SG_Sample.getRoot()</Message> </Method> <Method classname="java.lang.String" name="getBytes" signature="()[B" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="958" end="958" startBytecode="0" endBytecode="37" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.getBytes()</Message> </Method> <SourceLine classname="ex.SG_Sample" primary="true" start="40" end="40" startBytecode="18" endBytecode="18" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="REC_CATCH_EXCEPTION" priority="2" rank="17" abbrev="REC" category="STYLE" instanceHash="7ee626a6a46503f1af97f6ad83a533c2" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="396"> <ShortMessage>Exception is caught when Exception is not thrown</ShortMessage> <LongMessage>Exception is caught when Exception is not thrown in ex.SG_Sample.getRoot()</LongMessage> <Class classname="ex.SG_Sample" primary="true"> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> <Message>In class ex.SG_Sample</Message> </Class> <Method classname="ex.SG_Sample" name="getRoot" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SG_Sample" start="38" end="43" startBytecode="0" endBytecode="165" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"/> <Message>In method ex.SG_Sample.getRoot()</Message> </Method> <SourceLine classname="ex.SG_Sample" primary="true" start="42" end="42" startBytecode="40" endBytecode="40" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="SG_SLUGGISH_GUI" priority="2" rank="18" abbrev="SG" category="PERFORMANCE" instanceHash="2ee8486588334d0b0d97dbf1b29efcd7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method performs time consuming operation in GUI thread</ShortMessage> <LongMessage>Method ex.SG_Sample.actionPerformed(ActionEvent) performs time consuming operation in GUI thread</LongMessage> <Class classname="ex.SG_Sample" primary="true"> <SourceLine classname="ex.SG_Sample" start="15" end="63" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"> <Message>At SG_Sample.java:[lines 15-63]</Message> </SourceLine> <Message>In class ex.SG_Sample</Message> </Class> <Method classname="ex.SG_Sample" name="actionPerformed" signature="(Ljava/awt/event/ActionEvent;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SG_Sample" start="19" end="30" startBytecode="0" endBytecode="277" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java"/> <Message>In method ex.SG_Sample.actionPerformed(ActionEvent)</Message> </Method> <SourceLine classname="ex.SG_Sample" start="19" end="30" startBytecode="0" endBytecode="277" sourcefile="SG_Sample.java" sourcepath="ex/SG_Sample.java" synthetic="true"> <Message>At SG_Sample.java:[lines 19-30]</Message> </SourceLine> </BugInstance> <BugInstance type="ODR_OPEN_DATABASE_RESOURCE" priority="2" rank="16" abbrev="ODR" category="BAD_PRACTICE" instanceHash="37c96d9bed4f321ccdedfa6a616f01e0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close database resource</ShortMessage> <LongMessage>ex.SIL_Sample.test(ResultSet) may fail to close PreparedStatement</LongMessage> <Class classname="ex.SIL_Sample" primary="true"> <SourceLine classname="ex.SIL_Sample" start="8" end="18" sourcefile="SIL_Sample.java" sourcepath="ex/SIL_Sample.java"> <Message>At SIL_Sample.java:[lines 8-18]</Message> </SourceLine> <Message>In class ex.SIL_Sample</Message> </Class> <Method classname="ex.SIL_Sample" name="test" signature="(Ljava/sql/ResultSet;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SIL_Sample" start="10" end="18" startBytecode="0" endBytecode="23" sourcefile="SIL_Sample.java" sourcepath="ex/SIL_Sample.java"/> <Message>In method ex.SIL_Sample.test(ResultSet)</Message> </Method> <Type descriptor="Ljava/sql/PreparedStatement;" role="TYPE_CLOSEIT"> <SourceLine classname="java.sql.PreparedStatement" start="1265" end="1318" sourcefile="PreparedStatement.java" sourcepath="java/sql/PreparedStatement.java"> <Message>At PreparedStatement.java:[lines 1265-1318]</Message> </SourceLine> <Message>Need to close java.sql.PreparedStatement </Message> </Type> <SourceLine classname="ex.SIL_Sample" primary="true" start="11" end="11" startBytecode="15" endBytecode="15" sourcefile="SIL_Sample.java" sourcepath="ex/SIL_Sample.java"> <Message>At SIL_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="fa255523d5c84ef9cb3bfa03f6c58ba9" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to c in ex.SJVU_Sample.fpExternalJavax()</LongMessage> <Class classname="ex.SJVU_Sample" primary="true"> <SourceLine classname="ex.SJVU_Sample" start="4" end="36" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[lines 4-36]</Message> </SourceLine> <Message>In class ex.SJVU_Sample</Message> </Class> <Method classname="ex.SJVU_Sample" name="fpExternalJavax" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SJVU_Sample" start="12" end="36" startBytecode="0" endBytecode="5" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"/> <Message>In method ex.SJVU_Sample.fpExternalJavax()</Message> </Method> <LocalVariable name="c" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named c</Message> </LocalVariable> <SourceLine classname="ex.SJVU_Sample" primary="true" start="12" end="12" startBytecode="8" endBytecode="8" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[line 12]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="c"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="75fc390ccdc8d48003b5a53d1b2974b1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable sb of method ex.SJVU_Sample.test14using15(int)</LongMessage> <Class classname="ex.SJVU_Sample" primary="true"> <SourceLine classname="ex.SJVU_Sample" start="4" end="36" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[lines 4-36]</Message> </SourceLine> <Message>In class ex.SJVU_Sample</Message> </Class> <Method classname="ex.SJVU_Sample" name="test14using15" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.SJVU_Sample" start="6" end="9" startBytecode="0" endBytecode="106" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"/> <Message>In method ex.SJVU_Sample.test14using15(int)</Message> </Method> <String value="sb"> <Message>Value sb</Message> </String> <Type descriptor="Ljava/lang/StringBuilder;"> <SourceLine classname="java.lang.StringBuilder" start="76" end="437" sourcefile="StringBuilder.java" sourcepath="java/lang/StringBuilder.java"> <Message>At StringBuilder.java:[lines 76-437]</Message> </SourceLine> <Message>Type StringBuilder</Message> </Type> <SourceLine classname="ex.SJVU_Sample" primary="true" start="7" end="7" startBytecode="9" endBytecode="9" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="6e4b566502e88b52289e1264a3439e63" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SJVU_Sample.test14using15(int) seems to be useless</LongMessage> <Class classname="ex.SJVU_Sample" primary="true"> <SourceLine classname="ex.SJVU_Sample" start="4" end="36" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[lines 4-36]</Message> </SourceLine> <Message>In class ex.SJVU_Sample</Message> </Class> <Method classname="ex.SJVU_Sample" name="test14using15" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.SJVU_Sample" start="6" end="9" startBytecode="0" endBytecode="106" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"/> <Message>In method ex.SJVU_Sample.test14using15(int)</Message> </Method> <SourceLine classname="ex.SJVU_Sample" primary="true" start="9" end="9" startBytecode="22" endBytecode="22" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="9207499b6a54caed7d23b398686a07c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SJVU_Sample.fpExternalJavax() seems to be useless</LongMessage> <Class classname="ex.SJVU_Sample" primary="true"> <SourceLine classname="ex.SJVU_Sample" start="4" end="36" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[lines 4-36]</Message> </SourceLine> <Message>In class ex.SJVU_Sample</Message> </Class> <Method classname="ex.SJVU_Sample" name="fpExternalJavax" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SJVU_Sample" start="12" end="36" startBytecode="0" endBytecode="65" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"/> <Message>In method ex.SJVU_Sample.fpExternalJavax()</Message> </Method> <SourceLine classname="ex.SJVU_Sample" primary="true" start="36" end="36" startBytecode="9" endBytecode="9" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="c57470c1b6dc415e5d20fa5c870ef975" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.SJVU_Sample$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.SJVU_Sample$1" primary="true"> <SourceLine classname="ex.SJVU_Sample$1" start="1" end="33" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java"> <Message>At SJVU_Sample.java:[lines 1-33]</Message> </SourceLine> <Message>In class ex.SJVU_Sample$1</Message> </Class> <SourceLine classname="ex.SJVU_Sample$1" start="1" end="33" sourcefile="SJVU_Sample.java" sourcepath="ex/SJVU_Sample.java" synthetic="true"> <Message>At SJVU_Sample.java:[lines 1-33]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="c033ae24694c294e608e1b19778af104" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.SLS_Sample.fpReturn(List, String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpReturn" signature="(Ljava/util/List;Ljava/lang/String;)Lex/SLS_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="51" end="59" startBytecode="0" endBytecode="209" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpReturn(List, String)</Message> </Method> <SourceLine classname="ex.SLS_Sample" start="51" end="59" startBytecode="0" endBytecode="209" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java" synthetic="true"> <Message>At SLS_Sample.java:[lines 51-59]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="cd666e103e35fcb59723a21bccd19309" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SLS_Sample does not implement a toString method</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java" synthetic="true"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="21d0022c192b1518001440f194cd78db" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.SLS_Sample.fpContinue(BufferedReader) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpContinue" signature="(Ljava/io/BufferedReader;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="136" end="149" startBytecode="0" endBytecode="185" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpContinue(BufferedReader)</Message> </Method> <SourceLine classname="ex.SLS_Sample" primary="true" start="139" end="139" startBytecode="8" endBytecode="8" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 139]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="21d0022c192b1518001440f194cd78db" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.SLS_Sample.fpContinue(BufferedReader) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpContinue" signature="(Ljava/io/BufferedReader;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="136" end="149" startBytecode="0" endBytecode="185" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpContinue(BufferedReader)</Message> </Method> <SourceLine classname="ex.SLS_Sample" primary="true" start="143" end="143" startBytecode="22" endBytecode="22" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 143]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_NULL_ON_SOME_PATH" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="94a364b3e333cd9fa79eb8c64d1ccc84" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Possible null pointer dereference</ShortMessage> <LongMessage>Possible null pointer dereference of s in ex.SLS_Sample.fpSetFlag(Map, String)</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpSetFlag" signature="(Ljava/util/Map;Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="63" end="71" startBytecode="0" endBytecode="263" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpSetFlag(Map, String)</Message> </Method> <LocalVariable name="s" register="4" pc="51" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from s</Message> </LocalVariable> <SourceLine classname="ex.SLS_Sample" primary="true" start="67" end="67" startBytecode="52" endBytecode="52" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java" role="SOURCE_LINE_DEREF"> <Message>Dereferenced at SLS_Sample.java:[line 67]</Message> </SourceLine> <SourceLine classname="ex.SLS_Sample" start="65" end="65" startBytecode="32" endBytecode="32" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java" role="SOURCE_LINE_KNOWN_NULL"> <Message>Known null at SLS_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="29faf4bfae987415509fa3c0b520b1fb" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field name in ex.SLS_Sample.fpBreak(List, String)</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpBreak" signature="(Ljava/util/List;Ljava/lang/String;)Lex/SLS_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="38" end="46" startBytecode="0" endBytecode="229" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpBreak(List, String)</Message> </Method> <Field classname="ex.SLS_Sample" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>In SLS_Sample.java</Message> </SourceLine> <Message>Field ex.SLS_Sample.name</Message> </Field> <SourceLine classname="ex.SLS_Sample" primary="true" start="40" end="40" startBytecode="31" endBytecode="31" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="c1b47b829abe91a1155aea1c49727de3" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field name in ex.SLS_Sample.fpCalcTotal(List, String)</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpCalcTotal" signature="(Ljava/util/List;Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="75" end="82" startBytecode="0" endBytecode="206" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpCalcTotal(List, String)</Message> </Method> <Field classname="ex.SLS_Sample" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>In SLS_Sample.java</Message> </SourceLine> <Message>Field ex.SLS_Sample.name</Message> </Field> <SourceLine classname="ex.SLS_Sample" primary="true" start="77" end="77" startBytecode="31" endBytecode="31" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 77]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="2d01590b4ffffbdee380794f2bb573ac" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field name in ex.SLS_Sample.fpReturn(List, String)</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpReturn" signature="(Ljava/util/List;Ljava/lang/String;)Lex/SLS_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="51" end="59" startBytecode="0" endBytecode="209" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpReturn(List, String)</Message> </Method> <Field classname="ex.SLS_Sample" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>In SLS_Sample.java</Message> </SourceLine> <Message>Field ex.SLS_Sample.name</Message> </Field> <SourceLine classname="ex.SLS_Sample" primary="true" start="53" end="53" startBytecode="31" endBytecode="31" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 53]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="55ef727748be23e70b0feeaf655355e8" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field name in ex.SLS_Sample.fpSetFlag(Map, String)</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpSetFlag" signature="(Ljava/util/Map;Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="63" end="71" startBytecode="0" endBytecode="263" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpSetFlag(Map, String)</Message> </Method> <Field classname="ex.SLS_Sample" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>In SLS_Sample.java</Message> </SourceLine> <Message>Field ex.SLS_Sample.name</Message> </Field> <SourceLine classname="ex.SLS_Sample" primary="true" start="65" end="65" startBytecode="41" endBytecode="41" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="5d63f5c86fadfc75bd05c9880b8c8d12" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field name in ex.SLS_Sample.fpTwoSets(List, String, int, int)</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpTwoSets" signature="(Ljava/util/List;Ljava/lang/String;II)V" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="86" end="101" startBytecode="0" endBytecode="423" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpTwoSets(List, String, int, int)</Message> </Method> <Field classname="ex.SLS_Sample" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>In SLS_Sample.java</Message> </SourceLine> <Message>Field ex.SLS_Sample.name</Message> </Field> <SourceLine classname="ex.SLS_Sample" primary="true" start="91" end="91" startBytecode="38" endBytecode="38" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 91]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="9f69903ec4dc57eed36d602acb51d295" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field name in ex.SLS_Sample.hasIt(List, String)</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="hasIt" signature="(Ljava/util/List;Ljava/lang/String;)Lex/SLS_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="14" end="21" startBytecode="0" endBytecode="203" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.hasIt(List, String)</Message> </Method> <Field classname="ex.SLS_Sample" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>In SLS_Sample.java</Message> </SourceLine> <Message>Field ex.SLS_Sample.name</Message> </Field> <SourceLine classname="ex.SLS_Sample" primary="true" start="16" end="16" startBytecode="31" endBytecode="31" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="SLS_SUSPICIOUS_LOOP_SEARCH" priority="2" rank="7" abbrev="SLS" category="CORRECTNESS" instanceHash="27ac261bf9e3298fb10e78826dbf077e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method continues a loop after finding an equality condition</ShortMessage> <LongMessage>This method ex.SLS_Sample.hasAge(List, int) continues a loop after finding an equality condition</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="hasAge" signature="(Ljava/util/List;I)Lex/SLS_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="26" end="33" startBytecode="0" endBytecode="198" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.hasAge(List, int)</Message> </Method> <SourceLine classname="ex.SLS_Sample" primary="true" start="29" end="29" startBytecode="36" endBytecode="36" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="SLS_SUSPICIOUS_LOOP_SEARCH" priority="2" rank="7" abbrev="SLS" category="CORRECTNESS" instanceHash="6008e35b1300652f7c965e1af760861d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method continues a loop after finding an equality condition</ShortMessage> <LongMessage>This method ex.SLS_Sample.hasIt(List, String) continues a loop after finding an equality condition</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="hasIt" signature="(Ljava/util/List;Ljava/lang/String;)Lex/SLS_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="14" end="21" startBytecode="0" endBytecode="203" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.hasIt(List, String)</Message> </Method> <SourceLine classname="ex.SLS_Sample" primary="true" start="17" end="17" startBytecode="39" endBytecode="39" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="7162df222f84ac544051c949359da687" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SLS_Sample.fpStateMachine(char[], String) seems to be useless</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpStateMachine" signature="([CLjava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="108" end="132" startBytecode="0" endBytecode="342" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpStateMachine(char[], String)</Message> </Method> <SourceLine classname="ex.SLS_Sample" primary="true" start="132" end="132" startBytecode="121" endBytecode="121" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 132]</Message> </SourceLine> </BugInstance> <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" rank="17" abbrev="USBR" category="STYLE" instanceHash="a1d6a451a2a3f45bbb76d3497329509f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stores return result in local before immediately returning it</ShortMessage> <LongMessage>Method ex.SLS_Sample.fpReturn(List, String) stores return result in local before immediately returning it</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Method classname="ex.SLS_Sample" name="fpReturn" signature="(Ljava/util/List;Ljava/lang/String;)Lex/SLS_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" start="51" end="59" startBytecode="0" endBytecode="209" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"/> <Message>In method ex.SLS_Sample.fpReturn(List, String)</Message> </Method> <SourceLine classname="ex.SLS_Sample" primary="true" start="55" end="55" startBytecode="41" endBytecode="41" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="c0cfb015d88d0d74608416321b2a794a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.SLS_Sample.name</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Field classname="ex.SLS_Sample" name="name" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>In SLS_Sample.java</Message> </SourceLine> <Message>Field ex.SLS_Sample.name</Message> </Field> <SourceLine classname="ex.SLS_Sample" primary="true" start="16" end="16" startBytecode="27" endBytecode="27" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="3" rank="15" abbrev="UwF" category="CORRECTNESS" instanceHash="3e72d13e64de57623d24a23b532817f2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.SLS_Sample.height</LongMessage> <Class classname="ex.SLS_Sample" primary="true"> <SourceLine classname="ex.SLS_Sample" start="7" end="149" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[lines 7-149]</Message> </SourceLine> <Message>In class ex.SLS_Sample</Message> </Class> <Field classname="ex.SLS_Sample" name="height" signature="I" isStatic="false" primary="true"> <SourceLine classname="ex.SLS_Sample" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>In SLS_Sample.java</Message> </SourceLine> <Message>Field ex.SLS_Sample.height</Message> </Field> <SourceLine classname="ex.SLS_Sample" primary="true" start="95" end="95" startBytecode="75" endBytecode="75" sourcefile="SLS_Sample.java" sourcepath="ex/SLS_Sample.java"> <Message>At SLS_Sample.java:[line 95]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="3e3a17e1aab46c635e22d0d4c0822318" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to c in ex.SMII_Sample.test_ClassForName()</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_ClassForName" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="37" end="38" startBytecode="0" endBytecode="3" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_ClassForName()</Message> </Method> <LocalVariable name="c" register="1" pc="6" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named c</Message> </LocalVariable> <SourceLine classname="ex.SMII_Sample" primary="true" start="37" end="37" startBytecode="5" endBytecode="5" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 37]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="c"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="702ae3580e6ddee1820511ed30197cdf" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to name in ex.SMII_Sample.test_ClassGetName()</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_ClassGetName" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="41" end="42" startBytecode="0" endBytecode="3" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_ClassGetName()</Message> </Method> <LocalVariable name="name" register="1" pc="6" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named name</Message> </LocalVariable> <SourceLine classname="ex.SMII_Sample" primary="true" start="41" end="41" startBytecode="5" endBytecode="5" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 41]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="name"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DM_CONVERT_CASE" priority="3" rank="20" abbrev="Dm" category="I18N" instanceHash="77f7460f90c2e128c56a0be2cfb164b1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Consider using Locale parameterized version of invoked method</ShortMessage> <LongMessage>Use of non-localized String.toUpperCase() or String.toLowerCase() in ex.SMII_Sample.test_empty2(SMII_Sample)</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_empty2" signature="(Lex/SMII_Sample;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="20" end="21" startBytecode="0" endBytecode="64" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_empty2(SMII_Sample)</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="20" end="20" startBytecode="2" endBytecode="2" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="IL_INFINITE_RECURSIVE_LOOP" priority="1" rank="9" abbrev="IL" category="CORRECTNESS" instanceHash="5ef80b5911a67a2fba396c81c1e3a748" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="674"> <ShortMessage>An apparent infinite recursive loop</ShortMessage> <LongMessage>There is an apparent infinite recursive loop in ex.SMII_Sample.fp1()</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="fp1" signature="()Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="53" end="58" startBytecode="0" endBytecode="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.fp1()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="55" end="55" startBytecode="8" endBytecode="8" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="IL_INFINITE_RECURSIVE_LOOP" priority="1" rank="9" abbrev="IL" category="CORRECTNESS" instanceHash="5ef80b5911a67a2fba396c81c1e3a748" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="674"> <ShortMessage>An apparent infinite recursive loop</ShortMessage> <LongMessage>There is an apparent infinite recursive loop in ex.SMII_Sample.fp1()</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="fp1" signature="()Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="53" end="58" startBytecode="0" endBytecode="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.fp1()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="56" end="56" startBytecode="12" endBytecode="12" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="5710006eb94a10becd5c43f746df6ee7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SMII_Sample does not implement a toString method</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="b3bd5d1f78abe97e1697fe2d86818a72" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.SMII_Sample.fp1() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="fp1" signature="()Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="53" end="58" startBytecode="0" endBytecode="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.fp1()</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.SMII_Sample" start="53" end="58" startBytecode="0" endBytecode="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[lines 53-58]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="de8d4c78f1a9599b754046b69900a3f6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.SMII_Sample.static_empty() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="static_empty" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="10" end="10" startBytecode="0" endBytecode="32" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.static_empty()</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.SMII_Sample" start="10" end="10" startBytecode="0" endBytecode="32" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="5104cd845c206981619d54ce4642d45f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.SMII_Sample.static_one(String) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="static_one" signature="(Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="13" end="13" startBytecode="0" endBytecode="42" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.static_one(String)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.SMII_Sample" start="13" end="13" startBytecode="0" endBytecode="42" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="47ca8e1402fc19e4557746d8cd5acd90" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.SMII_Sample.testInstanceAsFirstParm(SMII_Sample, String) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="testInstanceAsFirstParm" signature="(Lex/SMII_Sample;Ljava/lang/String;)Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="71" end="71" startBytecode="0" endBytecode="53" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.testInstanceAsFirstParm(SMII_Sample, String)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.SMII_Sample" start="71" end="71" startBytecode="0" endBytecode="53" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[line 71]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="64a33520b0d8c2d6f13987bbd2692d22" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.SMII_Sample.testInstanceAsFirstParm(String) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="testInstanceAsFirstParm" signature="(Ljava/lang/String;)Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="67" end="67" startBytecode="0" endBytecode="49" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.testInstanceAsFirstParm(String)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.SMII_Sample" start="67" end="67" startBytecode="0" endBytecode="49" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[line 67]</Message> </SourceLine> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="2" rank="18" abbrev="PRMC" category="PERFORMANCE" instanceHash="995af23f6c2480a1086953b6d8075c3a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.SMII_Sample.fp1() appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="fp1" signature="()Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="53" end="58" startBytecode="0" endBytecode="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.fp1()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="56" end="56" startBytecode="12" endBytecode="12" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 56]</Message> </SourceLine> <String value="fp1()Lex/SMII_Sample;"> <Message>Value fp1()Lex/SMII_Sample;</Message> </String> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="1" rank="15" abbrev="RV" category="STYLE" instanceHash="37c265d3a00bc27681bf188481c65e54" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of fp1() ignored, but method has no side effect</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="fp1" signature="()Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="53" end="58" startBytecode="0" endBytecode="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.fp1()</Message> </Method> <Method classname="ex.SMII_Sample" name="fp1" signature="()Lex/SMII_Sample;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="ex.SMII_Sample" start="53" end="58" startBytecode="0" endBytecode="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>Called method ex.SMII_Sample.fp1()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="55" end="55" startBytecode="8" endBytecode="8" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 55]</Message> </SourceLine> <SourceLine classname="ex.SMII_Sample" start="56" end="56" startBytecode="12" endBytecode="12" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SMII_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="7cd7142625fe18fc6de88087179cbba5" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of testInstanceAsFirstParm(SMII_Sample, String) ignored, but method has no side effect</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="testFP2Instance" signature="(Lex/SMII_Sample;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="62" end="64" startBytecode="0" endBytecode="73" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.testFP2Instance(SMII_Sample)</Message> </Method> <Method classname="ex.SMII_Sample" name="testInstanceAsFirstParm" signature="(Lex/SMII_Sample;Ljava/lang/String;)Lex/SMII_Sample;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="ex.SMII_Sample" start="71" end="71" startBytecode="0" endBytecode="53" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>Called method ex.SMII_Sample.testInstanceAsFirstParm(SMII_Sample, String)</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="62" end="62" startBytecode="3" endBytecode="3" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="6cb059f3253bcba4a3dd74ced94d208f" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of testInstanceAsFirstParm(String) ignored, but method has no side effect</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="testFP2Instance" signature="(Lex/SMII_Sample;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="62" end="64" startBytecode="0" endBytecode="73" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.testFP2Instance(SMII_Sample)</Message> </Method> <Method classname="ex.SMII_Sample" name="testInstanceAsFirstParm" signature="(Ljava/lang/String;)Lex/SMII_Sample;" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="ex.SMII_Sample" start="67" end="67" startBytecode="0" endBytecode="49" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>Called method ex.SMII_Sample.testInstanceAsFirstParm(String)</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="63" end="63" startBytecode="9" endBytecode="9" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 63]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="68c50e7ef3741e939768bf1edd6e911" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of getSMI() ignored, but method has no side effect</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_chaining" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="28" end="29" startBytecode="0" endBytecode="62" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_chaining()</Message> </Method> <Method classname="ex.SMII_Sample" name="getSMI" signature="()Lex/SMII_Sample;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="ex.SMII_Sample" start="24" end="24" startBytecode="0" endBytecode="49" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>Called method ex.SMII_Sample.getSMI()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="28" end="28" startBytecode="7" endBytecode="7" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="SMII_STATIC_METHOD_INSTANCE_INVOCATION" priority="2" rank="17" abbrev="SMII" category="STYLE" instanceHash="aa63e9eebcae9b993b2a94fd3c4cbfe9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls static method on instance reference</ShortMessage> <LongMessage>Method ex.SMII_Sample.test_chaining() calls static method on instance reference</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_chaining" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="28" end="29" startBytecode="0" endBytecode="62" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_chaining()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="28" end="28" startBytecode="13" endBytecode="13" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_CONVERSION_OF_STRING_LITERAL" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="f933e72a567b34fb7750d273cc6c7969" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts a String literal</ShortMessage> <LongMessage>Method ex.SMII_Sample.test_empty2(SMII_Sample) calls String.toUpperCase() on a String Literal</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_empty2" signature="(Lex/SMII_Sample;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="20" end="21" startBytecode="0" endBytecode="64" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_empty2(SMII_Sample)</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="20" end="20" startBytecode="2" endBytecode="2" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 20]</Message> </SourceLine> <Method classname="java.lang.String" name="toUpperCase" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="2833" end="2833" startBytecode="0" endBytecode="31" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.toUpperCase()</Message> </Method> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="3301ad4b76d06f0626c82dfb974326a8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.SMII_Sample.test_dotclass()</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_dotclass" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="32" end="34" startBytecode="0" endBytecode="77" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_dotclass()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.SMII_Sample" primary="true" start="32" end="32" startBytecode="4" endBytecode="4" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="7bc24b01ecf6f9475a8a766773b65046" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SMII_Sample.test_dotclass() seems to be useless</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_dotclass" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="32" end="34" startBytecode="0" endBytecode="77" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_dotclass()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="34" end="34" startBytecode="17" endBytecode="17" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="a5ba066bbe691214ee3c70dd93748251" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SMII_Sample.test_ClassGetName() seems to be useless</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_ClassGetName" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="41" end="42" startBytecode="0" endBytecode="62" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_ClassGetName()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="42" end="42" startBytecode="6" endBytecode="6" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="abe0b456abe91016533cd0026cd22c2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.SMII_Sample.static_one(String) has unused parameters</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="static_one" signature="(Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="13" end="13" startBytecode="0" endBytecode="42" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.static_one(String)</Message> </Method> <String value="Parameter 1: s"> <Message>Value Parameter 1: s</Message> </String> <SourceLine classname="ex.SMII_Sample" start="13" end="13" startBytecode="0" endBytecode="42" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[line 13]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="4666790dca848d7dd63b53668924591b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.SMII_Sample.testInstanceAsFirstParm(SMII_Sample, String) has unused parameters</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="testInstanceAsFirstParm" signature="(Lex/SMII_Sample;Ljava/lang/String;)Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="71" end="71" startBytecode="0" endBytecode="53" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.testInstanceAsFirstParm(SMII_Sample, String)</Message> </Method> <String value="Parameter 2: s1"> <Message>Value Parameter 2: s1</Message> </String> <SourceLine classname="ex.SMII_Sample" start="71" end="71" startBytecode="0" endBytecode="53" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[line 71]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="49237ee44ae27365450b66e233eb0f20" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.SMII_Sample.testInstanceAsFirstParm(String) has unused parameters</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="testInstanceAsFirstParm" signature="(Ljava/lang/String;)Lex/SMII_Sample;" isStatic="true" primary="true"> <SourceLine classname="ex.SMII_Sample" start="67" end="67" startBytecode="0" endBytecode="49" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.testInstanceAsFirstParm(String)</Message> </Method> <String value="Parameter 1: s1"> <Message>Value Parameter 1: s1</Message> </String> <SourceLine classname="ex.SMII_Sample" start="67" end="67" startBytecode="0" endBytecode="49" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java" synthetic="true"> <Message>At SMII_Sample.java:[line 67]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="778968dac9810ebe3e92b8c8fc0e2ccd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.SMII_Sample.i</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Field classname="ex.SMII_Sample" name="i" signature="Lex/SMII_Sample$Inner;" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>In SMII_Sample.java</Message> </SourceLine> <Message>Field ex.SMII_Sample.i</Message> </Field> <SourceLine classname="ex.SMII_Sample" primary="true" start="7" end="7" startBytecode="12" endBytecode="12" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="721452ea66984a7c4365816115c0017f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.SMII_Sample.test_dotclass() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.SMII_Sample" primary="true"> <SourceLine classname="ex.SMII_Sample" start="6" end="71" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 6-71]</Message> </SourceLine> <Message>In class ex.SMII_Sample</Message> </Class> <Method classname="ex.SMII_Sample" name="test_dotclass" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample" start="32" end="34" startBytecode="0" endBytecode="77" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"/> <Message>In method ex.SMII_Sample.test_dotclass()</Message> </Method> <SourceLine classname="ex.SMII_Sample" primary="true" start="32" end="32" startBytecode="7" endBytecode="7" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="4f640561206256cb57646472732b9e5f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.SMII_Sample$Inner defines fields that are used only as locals</LongMessage> <Class classname="ex.SMII_Sample$Inner" primary="true"> <SourceLine classname="ex.SMII_Sample$Inner" start="48" end="49" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 48-49]</Message> </SourceLine> <Message>In class ex.SMII_Sample$Inner</Message> </Class> <Field classname="ex.SMII_Sample$Inner" name="next" signature="Lex/SMII_Sample$Inner;" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample$Inner" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>In SMII_Sample.java</Message> </SourceLine> <Message>Field ex.SMII_Sample$Inner.next</Message> </Field> <SourceLine classname="ex.SMII_Sample$Inner" primary="true" start="49" end="49" startBytecode="2" endBytecode="2" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="2c51413e46e1ce748d9f989ee4d27eea" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.SMII_Sample$Inner.next</LongMessage> <Class classname="ex.SMII_Sample$Inner" primary="true"> <SourceLine classname="ex.SMII_Sample$Inner" start="48" end="49" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[lines 48-49]</Message> </SourceLine> <Message>In class ex.SMII_Sample$Inner</Message> </Class> <Field classname="ex.SMII_Sample$Inner" name="next" signature="Lex/SMII_Sample$Inner;" isStatic="false" primary="true"> <SourceLine classname="ex.SMII_Sample$Inner" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>In SMII_Sample.java</Message> </SourceLine> <Message>Field ex.SMII_Sample$Inner.next</Message> </Field> <SourceLine classname="ex.SMII_Sample$Inner" primary="true" start="49" end="49" startBytecode="2" endBytecode="2" sourcefile="SMII_Sample.java" sourcepath="ex/SMII_Sample.java"> <Message>At SMII_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="e55fa76e1b61d6ef46bee416edb8abb1" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to l1 in ex.SNG_Sample.badSNGLocals(Object, Object)</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="badSNGLocals" signature="(Ljava/lang/Object;Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="19" end="22" startBytecode="0" endBytecode="4" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.badSNGLocals(Object, Object)</Message> </Method> <LocalVariable name="l1" register="1" pc="6" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named l1</Message> </LocalVariable> <SourceLine classname="ex.SNG_Sample" primary="true" start="20" end="20" startBytecode="5" endBytecode="5" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 20]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.COPY_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.IS_PARAMETER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="l1"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.TWO_STORES_MULTIPLE_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="8663428251edd2c7a309441b2e78fbe2" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.SNG_Sample.fpSelfAdjustingLocal(String)</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="fpSelfAdjustingLocal" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="37" end="40" startBytecode="0" endBytecode="5" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.fpSelfAdjustingLocal(String)</Message> </Method> <LocalVariable name="s" register="1" pc="9" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.SNG_Sample" primary="true" start="38" end="38" startBytecode="8" endBytecode="8" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 38]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.IS_PARAMETER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.TWO_STORES_MULTIPLE_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE_OF_NULL" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="962ea9d9b3e4045a81480d96733e45b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store of null to local variable</ShortMessage> <LongMessage>Dead store of null to s1 in ex.SNG_Sample.fpNGLocalSetToNull(String)</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="fpNGLocalSetToNull" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="31" end="34" startBytecode="0" endBytecode="4" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.fpNGLocalSetToNull(String)</Message> </Method> <LocalVariable name="s1" register="1" pc="6" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s1</Message> </LocalVariable> <SourceLine classname="ex.SNG_Sample" primary="true" start="32" end="32" startBytecode="5" endBytecode="5" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 32]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEFENSIVE_CONSTANT_OPCODE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.IS_PARAMETER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s1"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.STORE_OF_NULL" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.TWO_STORES_MULTIPLE_LOADS" value="true"/> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="c2ce83ba15ba58d0280ec97328b0e9f9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.SNG_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Field classname="ex.SNG_Sample" name="buffer" signature="[B" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.buffer</Message> </Field> <SourceLine classname="ex.SNG_Sample" primary="true" start="9" end="9" startBytecode="21" endBytecode="21" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="d26b42d52414cd1a09de323431558e8f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.SNG_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Field classname="ex.SNG_Sample" name="f2" signature="Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.f2</Message> </Field> <SourceLine classname="ex.SNG_Sample" primary="true" start="7" end="7" startBytecode="11" endBytecode="11" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="e30b41aaab360488fc7e41bad054f876" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.SNG_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Field classname="ex.SNG_Sample" name="file" signature="Ljava/io/File;" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.file</Message> </Field> <SourceLine classname="ex.SNG_Sample" primary="true" start="8" end="8" startBytecode="16" endBytecode="16" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="b5aef11f8974d320efbcf8d92ce1b627" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SNG_Sample does not implement a toString method</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java" synthetic="true"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="bd693cc24348f5d42f1662bbd42660af" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field otherSample in ex.SNG_Sample.fpOtherFieldObject()</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="fpOtherFieldObject" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="57" end="60" startBytecode="0" endBytecode="80" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.fpOtherFieldObject()</Message> </Method> <Field classname="ex.SNG_Sample" name="otherSample" signature="Lex/SNG_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.otherSample</Message> </Field> <SourceLine classname="ex.SNG_Sample" primary="true" start="57" end="57" startBytecode="4" endBytecode="4" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 57]</Message> </SourceLine> </BugInstance> <BugInstance type="SNG_SUSPICIOUS_NULL_FIELD_GUARD" priority="2" rank="7" abbrev="SNG" category="CORRECTNESS" instanceHash="6e6593404a3cdc2890dc32795e16c632" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method tests a field for not null as guard and reassigns it</ShortMessage> <LongMessage>Method ex.SNG_Sample.badSNGFields() tests a field for not null as guard and reassigns it</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="badSNGFields" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="13" end="16" startBytecode="0" endBytecode="72" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.badSNGFields()</Message> </Method> <SourceLine classname="ex.SNG_Sample" primary="true" start="14" end="14" startBytecode="10" endBytecode="10" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="SNG_SUSPICIOUS_NULL_LOCAL_GUARD" priority="2" rank="7" abbrev="SNG" category="CORRECTNESS" instanceHash="de616202086db784de4c5424971bc77c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method tests a local variable for not null as guard and reassigns it</ShortMessage> <LongMessage>Method ex.SNG_Sample.badSNGLocals(Object, Object) tests a local variable for not null as guard and reassigns it</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="badSNGLocals" signature="(Ljava/lang/Object;Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="19" end="22" startBytecode="0" endBytecode="85" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.badSNGLocals(Object, Object)</Message> </Method> <SourceLine classname="ex.SNG_Sample" primary="true" start="20" end="20" startBytecode="5" endBytecode="5" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_TOSTRING_STORED_IN_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="df46e4f810339f31b61af4f74a745ab2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method stores the value of a toString() call into a field</ShortMessage> <LongMessage>This method ex.SNG_Sample stores the value of a toString() call into a field</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="fpSelfAdjustingField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="43" end="46" startBytecode="0" endBytecode="77" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.fpSelfAdjustingField()</Message> </Method> <SourceLine classname="ex.SNG_Sample" primary="true" start="44" end="44" startBytecode="15" endBytecode="15" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 44]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="812b0bbda859a4f8306981eb69d889bb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SNG_Sample.badSNGLocals(Object, Object) seems to be useless</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="badSNGLocals" signature="(Ljava/lang/Object;Ljava/lang/Object;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="19" end="22" startBytecode="0" endBytecode="85" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.badSNGLocals(Object, Object)</Message> </Method> <SourceLine classname="ex.SNG_Sample" primary="true" start="22" end="22" startBytecode="6" endBytecode="6" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="855a356d00eb49a5c1fa050ec1f596a2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SNG_Sample.fpNGLocalSetToNull(String) seems to be useless</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="fpNGLocalSetToNull" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="31" end="34" startBytecode="0" endBytecode="75" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.fpNGLocalSetToNull(String)</Message> </Method> <SourceLine classname="ex.SNG_Sample" primary="true" start="34" end="34" startBytecode="6" endBytecode="6" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="8a3a21169134075696d4ace3ac31f617" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SNG_Sample.fpSelfAdjustingLocal(String) seems to be useless</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Method classname="ex.SNG_Sample" name="fpSelfAdjustingLocal" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" start="37" end="40" startBytecode="0" endBytecode="78" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"/> <Message>In method ex.SNG_Sample.fpSelfAdjustingLocal(String)</Message> </Method> <SourceLine classname="ex.SNG_Sample" primary="true" start="40" end="40" startBytecode="9" endBytecode="9" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="3" rank="20" abbrev="UrF" category="PERFORMANCE" instanceHash="2a5b039ff03bfe65b7637d51e9b62ec4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.SNG_Sample.EMPTY_BYTE_ARRAY</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Field classname="ex.SNG_Sample" name="EMPTY_BYTE_ARRAY" signature="[B" isStatic="true" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.EMPTY_BYTE_ARRAY</Message> </Field> <SourceLine classname="ex.SNG_Sample" primary="true" start="5" end="5" startBytecode="3" endBytecode="3" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 5]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="3" rank="20" abbrev="UrF" category="PERFORMANCE" instanceHash="9f532295d8c507c7b445ee1a993c220f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.SNG_Sample.buffer</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Field classname="ex.SNG_Sample" name="buffer" signature="[B" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.buffer</Message> </Field> <SourceLine classname="ex.SNG_Sample" primary="true" start="9" end="9" startBytecode="21" endBytecode="21" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="3" rank="20" abbrev="UrF" category="PERFORMANCE" instanceHash="8a0e1372ab0bc7c1a3c7e157356f2d8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.SNG_Sample.f2</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Field classname="ex.SNG_Sample" name="f2" signature="Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.f2</Message> </Field> <SourceLine classname="ex.SNG_Sample" primary="true" start="7" end="7" startBytecode="11" endBytecode="11" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="3" rank="20" abbrev="UrF" category="PERFORMANCE" instanceHash="c4de1340cebd589ac0fb196e05a50120" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.SNG_Sample.file</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Field classname="ex.SNG_Sample" name="file" signature="Ljava/io/File;" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.file</Message> </Field> <SourceLine classname="ex.SNG_Sample" primary="true" start="8" end="8" startBytecode="16" endBytecode="16" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[line 8]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_NULL_FIELD" priority="1" rank="10" abbrev="UwF" category="CORRECTNESS" instanceHash="dee30019c5c2429017ef08b69193a856" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field only ever set to null</ShortMessage> <LongMessage>Field only ever set to null: ex.SNG_Sample.otherSample</LongMessage> <Class classname="ex.SNG_Sample" primary="true"> <SourceLine classname="ex.SNG_Sample" start="4" end="60" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>At SNG_Sample.java:[lines 4-60]</Message> </SourceLine> <Message>In class ex.SNG_Sample</Message> </Class> <Field classname="ex.SNG_Sample" name="otherSample" signature="Lex/SNG_Sample;" isStatic="false" primary="true"> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java"> <Message>In SNG_Sample.java</Message> </SourceLine> <Message>Field ex.SNG_Sample.otherSample</Message> </Field> <SourceLine classname="ex.SNG_Sample" sourcefile="SNG_Sample.java" sourcepath="ex/SNG_Sample.java" synthetic="true"> <Message>In SNG_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="67c8340080c6fcbe735ded1c5741df60" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.SPP_Sample.cpNullOrZero(StringTokenizer) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="cpNullOrZero" signature="(Ljava/util/StringTokenizer;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="236" end="246" startBytecode="0" endBytecode="136" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.cpNullOrZero(StringTokenizer)</Message> </Method> <SourceLine classname="ex.SPP_Sample" start="236" end="246" startBytecode="0" endBytecode="136" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" synthetic="true"> <Message>At SPP_Sample.java:[lines 236-246]</Message> </SourceLine> </BugInstance> <BugInstance type="CNT_ROUGH_CONSTANT_VALUE" priority="2" rank="16" abbrev="CNT" category="BAD_PRACTICE" instanceHash="14711eb0451cb20e290759ccac4664cb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Rough value of known constant found</ShortMessage> <LongMessage>Rough value of Math.PI found: 3.14</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="area" signature="(D)D" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="57" end="57" startBytecode="0" endBytecode="59" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.area(double)</Message> </Method> <String value="3.14"> <Message>Value 3.14</Message> </String> <String value="Math.PI"> <Message>Value Math.PI</Message> </String> <SourceLine classname="ex.SPP_Sample" primary="true" start="57" end="57" startBytecode="0" endBytecode="0" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 57]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="9e1e2e67150512849a8b6b977a5bfbab" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to sb in ex.SPP_Sample.fpIssue199SBWithNum()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="fpIssue199SBWithNum" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="443" end="444" startBytecode="0" endBytecode="5" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.fpIssue199SBWithNum()</Message> </Method> <LocalVariable name="sb" register="1" pc="10" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named sb</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="443" end="443" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 443]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="sb"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="69313b5f6ac1e1b26602505ecdb52ed8" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to sb in ex.SPP_Sample.testEmptySB()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testEmptySB" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="102" end="103" startBytecode="0" endBytecode="5" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testEmptySB()</Message> </Method> <LocalVariable name="sb" register="1" pc="10" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named sb</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="102" end="102" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 102]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="sb"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="6484b355299b60f0dd1ae2cbd1e0a21b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to sb in ex.SPP_Sample.testSBAssigning(StringBuilder)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSBAssigning" signature="(Ljava/lang/StringBuilder;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="334" end="336" startBytecode="0" endBytecode="12" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSBAssigning(StringBuilder)</Message> </Method> <LocalVariable name="sb" register="1" pc="28" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named sb</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="335" end="335" startBytecode="27" endBytecode="27" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 335]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.IS_PARAMETER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="sb"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="3e9969ac1d0223bee8f6ca0d78d24cf" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.SPP_Sample.castRandomToInt()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="castRandomToInt" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="294" end="300" startBytecode="0" endBytecode="15" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.castRandomToInt()</Message> </Method> <LocalVariable name="i" register="1" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="299" end="299" startBytecode="24" endBytecode="24" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 299]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="9eb9423e6ec116774c8c5a7987aba176" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to lf in ex.SPP_Sample.testGetProperties()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testGetProperties" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="278" end="279" startBytecode="0" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testGetProperties()</Message> </Method> <LocalVariable name="lf" register="1" pc="10" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named lf</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="278" end="278" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 278]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="lf"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="934efc91f1ec529017ff8b8378df15d6" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to a in ex.SPP_Sample.testStutter(String)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStutter" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="61" end="62" startBytecode="0" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStutter(String)</Message> </Method> <LocalVariable name="a" register="2" pc="3" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named a</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="61" end="61" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 61]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DUP_THEN_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="a"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="3" rank="20" abbrev="DLS" category="STYLE" instanceHash="3e9969ac1d0223bee8f6ca0d78d24cf" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.SPP_Sample.castRandomToInt()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="castRandomToInt" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="294" end="300" startBytecode="0" endBytecode="15" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.castRandomToInt()</Message> </Method> <LocalVariable name="i" register="1" pc="25" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="294" end="294" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 294]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="297" end="297" startBytecode="18" endBytecode="18" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SPP_Sample.java:[line 297]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE" priority="2" rank="7" abbrev="DMI" category="CORRECTNESS" instanceHash="452f9ecaf86a031c5415195ac3d7c1e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>BigDecimal constructed from double that isn't represented precisely</ShortMessage> <LongMessage>BigDecimal constructed from 2.1 in ex.SPP_Sample.testBigDecimal()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testBigDecimal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="97" end="99" startBytecode="0" endBytecode="78" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testBigDecimal()</Message> </Method> <Method classname="java.math.BigDecimal" name="<init>" signature="(D)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.math.BigDecimal" start="872" end="873" startBytecode="0" endBytecode="36" sourcefile="BigDecimal.java" sourcepath="java/math/BigDecimal.java"/> <Message>Called method new java.math.BigDecimal(double)</Message> </Method> <Method classname="java.math.BigDecimal" name="valueOf" signature="(D)Ljava/math/BigDecimal;" isStatic="true" role="METHOD_ALTERNATIVE_TARGET"> <SourceLine classname="java.math.BigDecimal" start="1274" end="1274" startBytecode="0" endBytecode="35" sourcefile="BigDecimal.java" sourcepath="java/math/BigDecimal.java"/> <Message>Did you intend to invoke java.math.BigDecimal.valueOf(double)</Message> </Method> <String value="2.1"> <Message>Value 2.1</Message> </String> <String value="2.100000000000000088817841970012523233890533447265625"> <Message>Value 2.100000000000000088817841970012523233890533447265625</Message> </String> <SourceLine classname="ex.SPP_Sample" primary="true" start="97" end="97" startBytecode="7" endBytecode="7" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_CONVERT_CASE" priority="3" rank="20" abbrev="Dm" category="I18N" instanceHash="52e416295edc628b9be392448138792e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Consider using Locale parameterized version of invoked method</ShortMessage> <LongMessage>Use of non-localized String.toUpperCase() or String.toLowerCase() in ex.SPP_Sample.testCasing(String, String)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCasing" signature="(Ljava/lang/String;Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="282" end="290" startBytecode="0" endBytecode="115" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCasing(String, String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="282" end="282" startBytecode="1" endBytecode="1" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 282]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="286" end="286" startBytecode="14" endBytecode="14" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SPP_Sample.java:[line 286]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_CONVERT_CASE" priority="3" rank="20" abbrev="Dm" category="I18N" instanceHash="fda2971f0cabdd709f36dbe9c3e97095" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Consider using Locale parameterized version of invoked method</ShortMessage> <LongMessage>Use of non-localized String.toUpperCase() or String.toLowerCase() in ex.SPP_Sample.testStringToString(String)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStringToString" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="359" end="382" startBytecode="0" endBytecode="229" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStringToString(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="362" end="362" startBytecode="16" endBytecode="16" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 362]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="366" end="366" startBytecode="43" endBytecode="43" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SPP_Sample.java:[line 366]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="373" end="373" startBytecode="80" endBytecode="80" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SPP_Sample.java:[line 373]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="377" end="377" startBytecode="103" endBytecode="103" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SPP_Sample.java:[line 377]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_STRING_TOSTRING" priority="3" rank="20" abbrev="Dm" category="PERFORMANCE" instanceHash="578a8d8a7a5b49642b373e703c8ee41a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes toString() method on a String</ShortMessage> <LongMessage>ex.SPP_Sample.testStringToString(String) invokes toString() method on a String</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStringToString" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="359" end="382" startBytecode="0" endBytecode="229" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStringToString(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="359" end="359" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 359]</Message> </SourceLine> </BugInstance> <BugInstance type="FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER" priority="1" rank="6" abbrev="FE" category="CORRECTNESS" instanceHash="e2ed6ed78708d894d4737627c392efe7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Doomed test for equality to NaN</ShortMessage> <LongMessage>Doomed test for equality to NaN in ex.SPP_Sample.testNAN(double)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testNAN" signature="(D)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="65" end="68" startBytecode="0" endBytecode="85" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testNAN(double)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="65" end="65" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 65]</Message> </SourceLine> </BugInstance> <BugInstance type="FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER" priority="1" rank="6" abbrev="FE" category="CORRECTNESS" instanceHash="143fcd2db5f724d0f8bff15448d12172" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Doomed test for equality to NaN</ShortMessage> <LongMessage>Doomed test for equality to NaN in ex.SPP_Sample.testNAN(float)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testNAN" signature="(F)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="91" end="94" startBytecode="0" endBytecode="84" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testNAN(float)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="91" end="91" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 91]</Message> </SourceLine> </BugInstance> <BugInstance type="FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER" priority="1" rank="6" abbrev="FE" category="CORRECTNESS" instanceHash="7cae962195dc54f707e98bf01fc0597b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Doomed test for equality to NaN</ShortMessage> <LongMessage>Doomed test for equality to NaN in ex.SPP_Sample.testNAN2(Double)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testNAN2" signature="(Ljava/lang/Double;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="71" end="78" startBytecode="0" endBytecode="112" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testNAN2(Double)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="71" end="71" startBytecode="7" endBytecode="7" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 71]</Message> </SourceLine> </BugInstance> <BugInstance type="FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER" priority="1" rank="6" abbrev="FE" category="CORRECTNESS" instanceHash="94447dc899f0c329f0f8186f330079ac" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Doomed test for equality to NaN</ShortMessage> <LongMessage>Doomed test for equality to NaN in ex.SPP_Sample.testNotNAN(double)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testNotNAN" signature="(D)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="81" end="88" startBytecode="0" endBytecode="109" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testNotNAN(double)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="81" end="81" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 81]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="bc56df9eee391d6264c1d6e836dc880c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.SPP_Sample.fpGitHubIssue81(PreparedStatement, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="fpGitHubIssue81" signature="(Ljava/sql/PreparedStatement;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="437" end="440" startBytecode="0" endBytecode="124" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.fpGitHubIssue81(PreparedStatement, String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="437" end="437" startBytecode="12" endBytecode="12" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 437]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="a4c64a4f2882cd5628eb3b37cdc25911" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.SPP_Sample.sbToString(StringBuffer) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="sbToString" signature="(Ljava/lang/StringBuffer;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="228" end="233" startBytecode="0" endBytecode="119" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.sbToString(StringBuffer)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="230" end="230" startBytecode="27" endBytecode="27" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 230]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="660539a0e3a5f833869532141d23d2b9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.SPP_Sample.testEmptyIgnoreCase(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testEmptyIgnoreCase" signature="(Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="320" end="320" startBytecode="0" endBytecode="58" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testEmptyIgnoreCase(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="320" end="320" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 320]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="3b78e05317c4db53f6e4bd516724f96f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.SPP_Sample.testFPTrimNotUsed(StringProducer, String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testFPTrimNotUsed" signature="(Lex/StringProducer;Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="428" end="432" startBytecode="0" endBytecode="101" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testFPTrimNotUsed(StringProducer, String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="432" end="432" startBytecode="19" endBytecode="19" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 432]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="4d7216a2410a39f9fc69f43f216ccab8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.SPP_Sample.testTrim(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testTrim" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="324" end="331" startBytecode="0" endBytecode="131" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testTrim(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="328" end="328" startBytecode="24" endBytecode="24" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 328]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="7ba3d2d3861c5c7b22a16bfd92d95606" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SPP_Sample.testEmptySB() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testEmptySB" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="102" end="103" startBytecode="0" endBytecode="66" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testEmptySB()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="102" end="102" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 102]</Message> </SourceLine> </BugInstance> <BugInstance type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" priority="1" rank="5" abbrev="LSYC" category="CORRECTNESS" instanceHash="c4667a853caaaecdc22164e00c63679e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates local variable-based synchronized collection</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSBWithChars() creates local variable-based synchronized collection</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSBWithChars" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="51" end="53" startBytecode="0" endBytecode="81" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSBWithChars()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="51" end="51" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 51]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_RANDOM_SEED" priority="3" rank="10" abbrev="MDM" category="CORRECTNESS" instanceHash="6a61c95ce06cfd4ea9710b64224f61ca" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates insecure Random object</ShortMessage> <LongMessage>Method ex.SPP_Sample.castRandomToInt() creates an insecure Random object, which may be a security risk</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="castRandomToInt" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="294" end="300" startBytecode="0" endBytecode="103" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.castRandomToInt()</Message> </Method> <Method classname="java.util.Random" name="<init>" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Random" start="105" end="106" startBytecode="0" endBytecode="39" sourcefile="Random.java" sourcepath="java/util/Random.java"/> <Message>Called method new java.util.Random()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="296" end="296" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 296]</Message> </SourceLine> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="2" rank="18" abbrev="PRMC" category="PERFORMANCE" instanceHash="d73ebc963b79f0c9d24b7cdade488769" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.SPP_Sample.testToString() appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testToString" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="416" end="421" startBytecode="0" endBytecode="92" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testToString()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="419" end="419" startBytecode="22" endBytecode="22" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 419]</Message> </SourceLine> <String value="toString()Ljava/lang/String;"> <Message>Value toString()Ljava/lang/String;</Message> </String> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="76f199c6348831e9015777cfe63f21a7" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of e, which is known to be non-null in ex.SPP_Sample.testFPSST(String)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testFPSST" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="188" end="225" startBytecode="0" endBytecode="482" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testFPSST(String)</Message> </Method> <LocalVariable name="e" register="6" pc="71" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from e</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="207" end="207" startBytecode="94" endBytecode="94" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at SPP_Sample.java:[line 207]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="211" end="211" startBytecode="115" endBytecode="115" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SPP_Sample.java:[line 211]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="648c21ec8f6cb1117021db77ca817e4a" instanceOccurrenceNum="0" instanceOccurrenceMax="1" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of e, which is known to be non-null in ex.SPP_Sample.testSuspiciousStringTests(String)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSuspiciousStringTests" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="163" end="185" startBytecode="0" endBytecode="329" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSuspiciousStringTests(String)</Message> </Method> <LocalVariable name="e" register="6" pc="71" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from e</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="179" end="179" startBytecode="94" endBytecode="94" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at SPP_Sample.java:[line 179]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="182" end="182" startBytecode="115" endBytecode="115" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SPP_Sample.java:[line 182]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="9b3c5becbc1f74ac867c729c85faa83e" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of sField, which is known to be non-null in ex.SPP_Sample.cpNullOrZero(StringTokenizer)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="cpNullOrZero" signature="(Ljava/util/StringTokenizer;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="236" end="246" startBytecode="0" endBytecode="136" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.cpNullOrZero(StringTokenizer)</Message> </Method> <LocalVariable name="sField" register="2" pc="8" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from sField</Message> </LocalVariable> <Method classname="java.util.StringTokenizer" name="nextToken" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="java.util.StringTokenizer" start="341" end="352" startBytecode="0" endBytecode="174" sourcefile="StringTokenizer.java" sourcepath="java/util/StringTokenizer.java"/> <Message>Return value of java.util.StringTokenizer.nextToken() of type String</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="239" end="239" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at SPP_Sample.java:[line 239]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="76f199c6348831e9015777cfe63f21a7" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of e, which is known to be non-null in ex.SPP_Sample.testFPSST(String)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testFPSST" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="188" end="225" startBytecode="0" endBytecode="482" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testFPSST(String)</Message> </Method> <LocalVariable name="e" register="6" pc="92" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from e</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="203" end="203" startBytecode="73" endBytecode="73" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at SPP_Sample.java:[line 203]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="648c21ec8f6cb1117021db77ca817e4a" instanceOccurrenceNum="1" instanceOccurrenceMax="1" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of e, which is known to be non-null in ex.SPP_Sample.testSuspiciousStringTests(String)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSuspiciousStringTests" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="163" end="185" startBytecode="0" endBytecode="329" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSuspiciousStringTests(String)</Message> </Method> <LocalVariable name="e" register="6" pc="92" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from e</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="176" end="176" startBytecode="73" endBytecode="73" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at SPP_Sample.java:[line 176]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_01_TO_INT" priority="1" rank="1" abbrev="RV" category="CORRECTNESS" instanceHash="d37226116afd1da076949674f1c3b244" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Random value from 0 to 1 is coerced to the integer 0</ShortMessage> <LongMessage>ex.SPP_Sample.castRandomToInt() uses generates a random value from 0 to 1 and then coerces that value to the integer 0</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="castRandomToInt" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="294" end="300" startBytecode="0" endBytecode="103" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.castRandomToInt()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="294" end="294" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 294]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="297" end="297" startBytecode="17" endBytecode="17" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at SPP_Sample.java:[line 297]</Message> </SourceLine> </BugInstance> <BugInstance type="RpC_REPEATED_CONDITIONAL_TEST" priority="1" rank="6" abbrev="RpC" category="CORRECTNESS" instanceHash="592bfe02193eaac932bd7c95dd4b96fc" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Repeated conditional tests</ShortMessage> <LongMessage>Repeated conditional test in ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCPPBoolean" signature="(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="112" end="118" startBytecode="0" endBytecode="164" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="112" end="112" startBytecode="0" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 112]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="112" end="112" startBytecode="7" endBytecode="10" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 112]</Message> </SourceLine> </BugInstance> <BugInstance type="RpC_REPEATED_CONDITIONAL_TEST" priority="1" rank="6" abbrev="RpC" category="CORRECTNESS" instanceHash="592bfe02193eaac932bd7c95dd4b96fc" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Repeated conditional tests</ShortMessage> <LongMessage>Repeated conditional test in ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCPPBoolean" signature="(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="112" end="118" startBytecode="0" endBytecode="164" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="115" end="115" startBytecode="22" endBytecode="26" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 115]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" start="115" end="115" startBytecode="30" endBytecode="34" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 115]</Message> </SourceLine> </BugInstance> <BugInstance type="SA_LOCAL_DOUBLE_ASSIGNMENT" priority="2" rank="17" abbrev="SA" category="STYLE" instanceHash="9e916857be60eb943667773238c96096" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Double assignment of local variable </ShortMessage> <LongMessage>Double assignment of a in ex.SPP_Sample.testStutter(String)</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStutter" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="61" end="62" startBytecode="0" endBytecode="70" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStutter(String)</Message> </Method> <LocalVariable name="a" register="2" pc="3" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named a</Message> </LocalVariable> <SourceLine classname="ex.SPP_Sample" primary="true" start="61" end="61" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_CONVERSION_OF_STRING_LITERAL" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="d43a8fa2871ffa9baaccf2c4971e8e10" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts a String literal</ShortMessage> <LongMessage>Method ex.SPP_Sample.testStringToString(String) calls String.toLowerCase() on a String Literal</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStringToString" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="359" end="382" startBytecode="0" endBytecode="229" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStringToString(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="362" end="362" startBytecode="16" endBytecode="16" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 362]</Message> </SourceLine> <Method classname="java.lang.String" name="toLowerCase" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="2670" end="2670" startBytecode="0" endBytecode="31" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.toLowerCase()</Message> </Method> </BugInstance> <BugInstance type="SPP_CONVERSION_OF_STRING_LITERAL" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="80c8c4002c0c3ae96f79ee959179a31a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts a String literal</ShortMessage> <LongMessage>Method ex.SPP_Sample.testStringToString(String) calls String.toUpperCase() on a String Literal</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStringToString" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="359" end="382" startBytecode="0" endBytecode="229" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStringToString(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="366" end="366" startBytecode="43" endBytecode="43" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 366]</Message> </SourceLine> <Method classname="java.lang.String" name="toUpperCase" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="2833" end="2833" startBytecode="0" endBytecode="31" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.toUpperCase()</Message> </Method> </BugInstance> <BugInstance type="SPP_CONVERSION_OF_STRING_LITERAL" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="cf411eb5e9becead8db4ea5776bed049" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts a String literal</ShortMessage> <LongMessage>Method ex.SPP_Sample.testStringToString(String) calls String.trim() on a String Literal</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStringToString" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="359" end="382" startBytecode="0" endBytecode="229" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStringToString(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="370" end="370" startBytecode="70" endBytecode="70" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 370]</Message> </SourceLine> <Method classname="java.lang.String" name="trim" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="2868" end="2878" startBytecode="0" endBytecode="152" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.trim()</Message> </Method> </BugInstance> <BugInstance type="SPP_CONVERSION_OF_STRING_LITERAL" priority="3" rank="10" abbrev="SPP" category="CORRECTNESS" instanceHash="95c4968b6fc7d3850dc4232449ed440" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts a String literal</ShortMessage> <LongMessage>Method ex.SPP_Sample.testStringToString(String) calls String.toLowerCase(Locale) on a String Literal</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStringToString" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="359" end="382" startBytecode="0" endBytecode="229" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStringToString(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="364" end="364" startBytecode="31" endBytecode="31" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 364]</Message> </SourceLine> <Method classname="java.lang.String" name="toLowerCase" signature="(Ljava/util/Locale;)Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="2562" end="2647" startBytecode="0" endBytecode="913" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.toLowerCase(Locale)</Message> </Method> </BugInstance> <BugInstance type="SPP_CONVERSION_OF_STRING_LITERAL" priority="3" rank="10" abbrev="SPP" category="CORRECTNESS" instanceHash="776715b57a426b16b218e3097343cacb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method converts a String literal</ShortMessage> <LongMessage>Method ex.SPP_Sample.testStringToString(String) calls String.toUpperCase(Locale) on a String Literal</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStringToString" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="359" end="382" startBytecode="0" endBytecode="229" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStringToString(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="368" end="368" startBytecode="58" endBytecode="58" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 368]</Message> </SourceLine> <Method classname="java.lang.String" name="toUpperCase" signature="(Ljava/util/Locale;)Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.String" start="2722" end="2810" startBytecode="0" endBytecode="919" sourcefile="String.java" sourcepath="java/lang/String.java"/> <Message>Called method String.toUpperCase(Locale)</Message> </Method> </BugInstance> <BugInstance type="SPP_EMPTY_CASING" priority="2" rank="17" abbrev="SPP" category="STYLE" instanceHash="a1c47498391b9a87bc875b0c158b5b9f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an empty string to equalsIgnoreCase or compareToIgnoreCase</ShortMessage> <LongMessage>Method ex.SPP_Sample.testEmptyIgnoreCase(String) passes an empty string to equalsIgnoreCase or compareToIgnoreCase</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testEmptyIgnoreCase" signature="(Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="320" end="320" startBytecode="0" endBytecode="58" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testEmptyIgnoreCase(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="320" end="320" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 320]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_EQUALS_ON_ENUM" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="679333c5b42586a95152b5af7e86a6bf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls equals on an enum instance</ShortMessage> <LongMessage>Method ex.SPP_Sample.equalsOnEnum(SPP_Sample$Flap) calls equals on an enum instance</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="equalsOnEnum" signature="(Lex/SPP_Sample$Flap;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="106" end="109" startBytecode="0" endBytecode="87" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.equalsOnEnum(SPP_Sample$Flap)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="106" end="106" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 106]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_INTERN_ON_CONSTANT" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="a46c6b2404572f0a5cc5243389748ea2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls intern on a string constant</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSPPIntern() calls intern on a string constant</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSPPIntern" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="47" end="47" startBytecode="0" endBytecode="47" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSPPIntern()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="47" end="47" startBytecode="2" endBytecode="2" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_INVALID_BOOLEAN_NULL_CHECK" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="b97ce18c3e49855ea064e73e72a199fe" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method uses invalid C++ style null check on Boolean</ShortMessage> <LongMessage>Method ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean) uses invalid C++ style null check on Boolean</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCPPBoolean" signature="(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="112" end="118" startBytecode="0" endBytecode="164" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="112" end="112" startBytecode="8" endBytecode="8" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 112]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_INVALID_BOOLEAN_NULL_CHECK" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="b97ce18c3e49855ea064e73e72a199fe" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method uses invalid C++ style null check on Boolean</ShortMessage> <LongMessage>Method ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean) uses invalid C++ style null check on Boolean</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCPPBoolean" signature="(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="112" end="118" startBytecode="0" endBytecode="164" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="115" end="115" startBytecode="32" endBytecode="32" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 115]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_INVALID_CALENDAR_COMPARE" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="5729d377df2d8759ae0c24a2ecfd3931" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes a non calendar object to Calendar.before or Calendar.after</ShortMessage> <LongMessage>Method ex.SPP_Sample.testCalBeforeAfter(Calendar, Date) passes a non calendar object to Calendar.before or Calendar.after</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCalBeforeAfter" signature="(Ljava/util/Calendar;Ljava/util/Date;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="250" end="250" startBytecode="0" endBytecode="90" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCalBeforeAfter(Calendar, Date)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="250" end="250" startBytecode="2" endBytecode="2" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 250]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NEGATIVE_BITSET_ITEM" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="bd7723e6ce715646ba6577f937315720" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes a negative number as a bit to a BitSet which isn't supported</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSPPBitSet(BitSet) passes a negative number as a bit to a BitSet which isn't supported</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSPPBitSet" signature="(Ljava/util/BitSet;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="43" end="44" startBytecode="0" endBytecode="61" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSPPBitSet(BitSet)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="43" end="43" startBytecode="2" endBytecode="2" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_ARRAY_PARM" priority="1" rank="5" abbrev="SPP" category="CORRECTNESS" instanceHash="abc1d63692061de47e7aeb38c7c134dd" instanceOccurrenceNum="0" instanceOccurrenceMax="2"> <ShortMessage>Method passes a non array object to a parameter that expects an array</ShortMessage> <LongMessage>Method ex.SPP_Sample.testArray() passes a non array object to a parameter that expects an array</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testArray" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="310" end="317" startBytecode="0" endBytecode="111" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testArray()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="312" end="312" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 312]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_ARRAY_PARM" priority="1" rank="5" abbrev="SPP" category="CORRECTNESS" instanceHash="abc1d63692061de47e7aeb38c7c134dd" instanceOccurrenceNum="1" instanceOccurrenceMax="2"> <ShortMessage>Method passes a non array object to a parameter that expects an array</ShortMessage> <LongMessage>Method ex.SPP_Sample.testArray() passes a non array object to a parameter that expects an array</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testArray" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="310" end="317" startBytecode="0" endBytecode="111" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testArray()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="314" end="314" startBytecode="15" endBytecode="15" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 314]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_ARRAY_PARM" priority="1" rank="5" abbrev="SPP" category="CORRECTNESS" instanceHash="abc1d63692061de47e7aeb38c7c134dd" instanceOccurrenceNum="2" instanceOccurrenceMax="2"> <ShortMessage>Method passes a non array object to a parameter that expects an array</ShortMessage> <LongMessage>Method ex.SPP_Sample.testArray() passes a non array object to a parameter that expects an array</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testArray" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="310" end="317" startBytecode="0" endBytecode="111" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testArray()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="316" end="316" startBytecode="22" endBytecode="22" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 316]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_ARRAY_PARM" priority="1" rank="5" abbrev="SPP" category="CORRECTNESS" instanceHash="c9a0fa126bb1275b069d37f9c5a24c68" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method passes a non array object to a parameter that expects an array</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSAC(List) passes a non array object to a parameter that expects an array</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSAC" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="303" end="307" startBytecode="0" endBytecode="120" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSAC(List)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="304" end="304" startBytecode="16" endBytecode="16" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 304]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_ARRAY_PARM" priority="1" rank="5" abbrev="SPP" category="CORRECTNESS" instanceHash="c9a0fa126bb1275b069d37f9c5a24c68" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method passes a non array object to a parameter that expects an array</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSAC(List) passes a non array object to a parameter that expects an array</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSAC" signature="(Ljava/util/List;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="303" end="307" startBytecode="0" endBytecode="120" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSAC(List)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="306" end="306" startBytecode="25" endBytecode="25" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 306]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_USEFUL_TOSTRING" priority="3" rank="20" abbrev="SPP" category="STYLE" instanceHash="2454e7ea71e65c4ba935d8a93b746d17" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls toString() on an instance of a class that hasn't overridden toString()</ShortMessage> <LongMessage>Method ex.SPP_Sample.testToString() calls toString() on an instance of a class that hasn't overridden toString()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testToString" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="416" end="421" startBytecode="0" endBytecode="92" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testToString()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="417" end="417" startBytecode="12" endBytecode="12" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 417]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NO_CHAR_SB_CTOR" priority="3" rank="10" abbrev="SPP" category="CORRECTNESS" instanceHash="f87df97d8a0a6473f810a6962b1983d6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to pass character to StringBuffer or StringBuilder integer constructor</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSBWithChars() appears to pass character to StringBuffer or StringBuilder integer constructor</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSBWithChars" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="51" end="53" startBytecode="0" endBytecode="81" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSBWithChars()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="51" end="51" startBytecode="6" endBytecode="6" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 51]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NULL_BEFORE_INSTANCEOF" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="a4c1269a85a9889ac3b9478291236ab5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks a reference for null before calling instanceof</ShortMessage> <LongMessage>Method ex.SPP_Sample.nullAndInstanceOf(double, double, double, Object) checks a reference for null before calling instanceof</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="nullAndInstanceOf" signature="(DDDLjava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="350" end="353" startBytecode="0" endBytecode="121" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.nullAndInstanceOf(double, double, double, Object)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="350" end="350" startBytecode="10" endBytecode="10" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 350]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NULL_BEFORE_INSTANCEOF" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="4003e5815855472549df7928f85e354" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks a reference for null before calling instanceof</ShortMessage> <LongMessage>Method ex.SPP_Sample.nullAndInstanceOf(Object) checks a reference for null before calling instanceof</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="nullAndInstanceOf" signature="(Ljava/lang/Object;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="343" end="346" startBytecode="0" endBytecode="83" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.nullAndInstanceOf(Object)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="343" end="343" startBytecode="8" endBytecode="8" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 343]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NULL_CHECK_ON_MAP_SUBSET_ACCESSOR" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="77cd51cb16a14206e6926a08cfec7139" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks whether the keySet(), entrySet() or values() collection of a Map is null</ShortMessage> <LongMessage>Method ex.SPP_Sample.testKeySetForNull(Map) checks whether the keySet(), entrySet() or values() collection of a Map is null</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testKeySetForNull" signature="(Ljava/util/Map;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="141" end="141" startBytecode="0" endBytecode="91" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testKeySetForNull(Map)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="141" end="141" startBytecode="6" endBytecode="6" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 141]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NULL_CHECK_ON_OPTIONAL" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="73f2b74225007702cb8c959e876e828a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks an Optional reference for null or non nullness</ShortMessage> <LongMessage>Method ex.SPP_Sample.testOptional(Optional) checks an Optional reference for null or non nullness</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testOptional" signature="(Lcom/google/common/base/Optional;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="386" end="390" startBytecode="0" endBytecode="101" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testOptional(Optional)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="386" end="386" startBytecode="1" endBytecode="1" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 386]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_SERIALVER_SHOULD_BE_PRIVATE" priority="3" rank="20" abbrev="SPP" category="STYLE" instanceHash="6b0ced04f56a984bf7b33888ef9d1d9a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines a serialVersionUID as non private</ShortMessage> <LongMessage>Class ex.SPP_Sample defines a serialVersionUID as non private</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Field classname="ex.SPP_Sample" name="serialVersionUID" signature="J" isStatic="true" primary="true"> <SourceLine classname="ex.SPP_Sample" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>In SPP_Sample.java</Message> </SourceLine> <Message>Field ex.SPP_Sample.serialVersionUID</Message> </Field> <SourceLine classname="ex.SPP_Sample" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" synthetic="true"> <Message>In SPP_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_STATIC_FORMAT_STRING" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="7a5e7deb74ef19ba95474e619b526ee0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls String.format on a static (non parameterized) format string</ShortMessage> <LongMessage>Method ex.SPP_Sample.testFormatLiteral() calls String.format on a static (non parameterized) format string</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testFormatLiteral" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="137" end="137" startBytecode="0" endBytecode="51" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testFormatLiteral()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="137" end="137" startBytecode="6" endBytecode="6" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 137]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_STRINGBUFFER_WITH_EMPTY_STRING" priority="2" rank="18" abbrev="SPP" category="PERFORMANCE" instanceHash="152f99a3a0a7532aa7db5fd478863d8d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes an empty string to StringBuffer of StringBuilder constructor</ShortMessage> <LongMessage>Method ex.SPP_Sample.testEmptySB() passes an empty string to StringBuffer of StringBuilder constructor</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testEmptySB" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="102" end="103" startBytecode="0" endBytecode="66" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testEmptySB()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="102" end="102" startBytecode="6" endBytecode="6" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 102]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_STUTTERED_ASSIGNMENT" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="de7237e84b9c2f83dd8da4d5388b552a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method assigns a value to a local twice in a row</ShortMessage> <LongMessage>Method ex.SPP_Sample.testStutter(String) assigns a value to a local twice in a row</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStutter" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="61" end="62" startBytecode="0" endBytecode="70" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStutter(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="61" end="61" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_SUSPECT_STRING_TEST" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="a251cb9d04756fbdcd55bc65e8a29193" instanceOccurrenceNum="0" instanceOccurrenceMax="5"> <ShortMessage>Method possibly mixes up normal strings and empty strings in branching logic</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSuspiciousStringTests(String) treats null and normal strings the same, when it should probably treat null and empty strings the same</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSuspiciousStringTests" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="163" end="185" startBytecode="0" endBytecode="329" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSuspiciousStringTests(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="166" end="166" startBytecode="22" endBytecode="22" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 166]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_SUSPECT_STRING_TEST" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="a251cb9d04756fbdcd55bc65e8a29193" instanceOccurrenceNum="1" instanceOccurrenceMax="5"> <ShortMessage>Method possibly mixes up normal strings and empty strings in branching logic</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSuspiciousStringTests(String) treats null and normal strings the same, when it should probably treat null and empty strings the same</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSuspiciousStringTests" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="163" end="185" startBytecode="0" endBytecode="329" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSuspiciousStringTests(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="169" end="169" startBytecode="41" endBytecode="41" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 169]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_SUSPECT_STRING_TEST" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="a251cb9d04756fbdcd55bc65e8a29193" instanceOccurrenceNum="2" instanceOccurrenceMax="5"> <ShortMessage>Method possibly mixes up normal strings and empty strings in branching logic</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSuspiciousStringTests(String) treats null and normal strings the same, when it should probably treat null and empty strings the same</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSuspiciousStringTests" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="163" end="185" startBytecode="0" endBytecode="329" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSuspiciousStringTests(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="172" end="172" startBytecode="60" endBytecode="60" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 172]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_SUSPECT_STRING_TEST" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="a251cb9d04756fbdcd55bc65e8a29193" instanceOccurrenceNum="3" instanceOccurrenceMax="5"> <ShortMessage>Method possibly mixes up normal strings and empty strings in branching logic</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSuspiciousStringTests(String) treats null and normal strings the same, when it should probably treat null and empty strings the same</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSuspiciousStringTests" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="163" end="185" startBytecode="0" endBytecode="329" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSuspiciousStringTests(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="176" end="176" startBytecode="81" endBytecode="81" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 176]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_SUSPECT_STRING_TEST" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="a251cb9d04756fbdcd55bc65e8a29193" instanceOccurrenceNum="4" instanceOccurrenceMax="5"> <ShortMessage>Method possibly mixes up normal strings and empty strings in branching logic</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSuspiciousStringTests(String) treats null and normal strings the same, when it should probably treat null and empty strings the same</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSuspiciousStringTests" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="163" end="185" startBytecode="0" endBytecode="329" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSuspiciousStringTests(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="179" end="179" startBytecode="102" endBytecode="102" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 179]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_SUSPECT_STRING_TEST" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="a251cb9d04756fbdcd55bc65e8a29193" instanceOccurrenceNum="5" instanceOccurrenceMax="5"> <ShortMessage>Method possibly mixes up normal strings and empty strings in branching logic</ShortMessage> <LongMessage>Method ex.SPP_Sample.testSuspiciousStringTests(String) treats null and normal strings the same, when it should probably treat null and empty strings the same</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testSuspiciousStringTests" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="163" end="185" startBytecode="0" endBytecode="329" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testSuspiciousStringTests(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="182" end="182" startBytecode="123" endBytecode="123" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 182]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_TEMPORARY_TRIM" priority="2" rank="17" abbrev="SPP" category="STYLE" instanceHash="af1a5f358f72b15a2d2e68275ba37924" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method trims a String temporarily</ShortMessage> <LongMessage>Method ex.SPP_Sample.testTrim(String) trims a String temporarily</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testTrim" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="324" end="331" startBytecode="0" endBytecode="131" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testTrim(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="324" end="324" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 324]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_TEMPORARY_TRIM" priority="2" rank="17" abbrev="SPP" category="STYLE" instanceHash="af1a5f358f72b15a2d2e68275ba37924" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method trims a String temporarily</ShortMessage> <LongMessage>Method ex.SPP_Sample.testTrim(String) trims a String temporarily</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testTrim" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="324" end="331" startBytecode="0" endBytecode="131" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testTrim(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="328" end="328" startBytecode="24" endBytecode="24" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 328]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_TOSTRING_ON_STRING" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="9b8a447fc7363489ba5d5cdd4754b2be" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls toString() on a String</ShortMessage> <LongMessage>Method ex.SPP_Sample.testStringToString(String) calls toString() on a String</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStringToString" signature="(Ljava/lang/String;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="359" end="382" startBytecode="0" endBytecode="229" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStringToString(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="359" end="359" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 359]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USELESS_CASING" priority="2" rank="18" abbrev="SPP" category="PERFORMANCE" instanceHash="58e7faa25cf8e43516bdd990af004638" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method compares string without case after enforcing a case</ShortMessage> <LongMessage>Method ex.SPP_Sample.testCasing(String, String) compares string without case after enforcing a case</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCasing" signature="(Ljava/lang/String;Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="282" end="290" startBytecode="0" endBytecode="115" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCasing(String, String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="282" end="282" startBytecode="5" endBytecode="5" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 282]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USELESS_CASING" priority="2" rank="18" abbrev="SPP" category="PERFORMANCE" instanceHash="58e7faa25cf8e43516bdd990af004638" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method compares string without case after enforcing a case</ShortMessage> <LongMessage>Method ex.SPP_Sample.testCasing(String, String) compares string without case after enforcing a case</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCasing" signature="(Ljava/lang/String;Ljava/lang/String;)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="282" end="290" startBytecode="0" endBytecode="115" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCasing(String, String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="286" end="286" startBytecode="18" endBytecode="18" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 286]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USELESS_TERNARY" priority="2" rank="18" abbrev="SPP" category="PERFORMANCE" instanceHash="38ac6bcadd59e3c761ef8965b87a92f9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a ternary operator to cast a boolean to true or false</ShortMessage> <LongMessage>Method ex.SPP_Sample.testUselessTrinary(boolean) uses a ternary operator to cast a boolean to true or false</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testUselessTrinary" signature="(Z)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="128" end="128" startBytecode="0" endBytecode="72" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testUselessTrinary(boolean)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="128" end="128" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 128]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_BIGDECIMAL_STRING_CTOR" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="c7389b6a9d8c4c8cbc7be293bf345b10" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes double value to BigDecimal Constructor</ShortMessage> <LongMessage>Method ex.SPP_Sample.testBigDecimal() passes double value to BigDecimal Constructor</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testBigDecimal" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="97" end="99" startBytecode="0" endBytecode="78" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testBigDecimal()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="97" end="97" startBytecode="7" endBytecode="7" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 97]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_CHARAT" priority="2" rank="18" abbrev="SPP" category="PERFORMANCE" instanceHash="9fb841463e5fa12ccc31810a0da4c825" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method fetches character array just to do the equivalent of the charAt method</ShortMessage> <LongMessage>Method ex.SPP_Sample.usechatAt(String) fetches character array just to do the equivalent of the charAt method</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="usechatAt" signature="(Ljava/lang/String;)C" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="121" end="124" startBytecode="0" endBytecode="85" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.usechatAt(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="122" end="122" startBytecode="12" endBytecode="12" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 122]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_CONTAINSKEY" priority="2" rank="17" abbrev="SPP" category="STYLE" instanceHash="1666d655e837fefd73fd373c33919d42" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls keySet() just to call contains, use containsKey instead</ShortMessage> <LongMessage>Method ex.SPP_Sample.testUseContainsKey(Map) calls keySet() just to call contains, use containsKey instead</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testUseContainsKey" signature="(Ljava/util/Map;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="254" end="257" startBytecode="0" endBytecode="94" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testUseContainsKey(Map)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="254" end="254" startBytecode="8" endBytecode="8" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 254]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_GET0" priority="2" rank="18" abbrev="SPP" category="PERFORMANCE" instanceHash="bff8749751d6f2d71d04f538cc2998fb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses iterator().next() on a List to get the first item</ShortMessage> <LongMessage>Method ex.SPP_Sample.testListFirst(List) uses iterator().next() on a List to get the first item</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testListFirst" signature="(Ljava/util/List;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="339" end="339" startBytecode="0" endBytecode="84" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testListFirst(List)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="339" end="339" startBytecode="6" endBytecode="6" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 339]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_GETPROPERTY" priority="2" rank="17" abbrev="SPP" category="STYLE" instanceHash="ae32c66663f5e5b18395a3dcdacf8d54" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls getProperties just to get one property, use getProperty instead</ShortMessage> <LongMessage>Method ex.SPP_Sample.testGetProperties() calls getProperties just to get one property, use getProperty instead</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testGetProperties" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="278" end="279" startBytecode="0" endBytecode="66" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testGetProperties()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="278" end="278" startBytecode="6" endBytecode="6" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 278]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_ISEMPTY" priority="2" rank="17" abbrev="SPP" category="STYLE" instanceHash="614028500f5c80e976588ca597ea29e3" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method checks the size of a collection against zero rather than using isEmpty()</ShortMessage> <LongMessage>Method ex.SPP_Sample.testCollectionSizeEqualsZero(Set) checks the size of a collection against zero rather than using isEmpty()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCollectionSizeEqualsZero" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="260" end="267" startBytecode="0" endBytecode="132" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCollectionSizeEqualsZero(Set)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="260" end="260" startBytecode="6" endBytecode="6" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 260]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_ISEMPTY" priority="2" rank="17" abbrev="SPP" category="STYLE" instanceHash="614028500f5c80e976588ca597ea29e3" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method checks the size of a collection against zero rather than using isEmpty()</ShortMessage> <LongMessage>Method ex.SPP_Sample.testCollectionSizeEqualsZero(Set) checks the size of a collection against zero rather than using isEmpty()</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCollectionSizeEqualsZero" signature="(Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="260" end="267" startBytecode="0" endBytecode="132" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCollectionSizeEqualsZero(Set)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="264" end="264" startBytecode="24" endBytecode="24" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 264]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_ISNAN" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="3b00b33758512c1643f2b0f8afe3563" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method incorrectly compares a floating point number to NaN</ShortMessage> <LongMessage>Method ex.SPP_Sample.testNAN(double) compares a double to Double.NaN</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testNAN" signature="(D)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="65" end="68" startBytecode="0" endBytecode="85" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testNAN(double)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="65" end="65" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 65]</Message> </SourceLine> <String value="double"> <Message>Value double</Message> </String> <String value="Double"> <Message>Value Double</Message> </String> </BugInstance> <BugInstance type="SPP_USE_ISNAN" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="d363b1ebc835dda49a75fb54c8682e50" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method incorrectly compares a floating point number to NaN</ShortMessage> <LongMessage>Method ex.SPP_Sample.testNAN(float) compares a float to Float.NaN</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testNAN" signature="(F)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="91" end="94" startBytecode="0" endBytecode="84" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testNAN(float)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="91" end="91" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 91]</Message> </SourceLine> <String value="float"> <Message>Value float</Message> </String> <String value="Float"> <Message>Value Float</Message> </String> </BugInstance> <BugInstance type="SPP_USE_ISNAN" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="20aa1b1b3b9d6d54af39880349d483fe" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method incorrectly compares a floating point number to NaN</ShortMessage> <LongMessage>Method ex.SPP_Sample.testNAN2(Double) compares a double to Double.NaN</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testNAN2" signature="(Ljava/lang/Double;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="71" end="78" startBytecode="0" endBytecode="112" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testNAN2(Double)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="71" end="71" startBytecode="7" endBytecode="7" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 71]</Message> </SourceLine> <String value="double"> <Message>Value double</Message> </String> <String value="Double"> <Message>Value Double</Message> </String> </BugInstance> <BugInstance type="SPP_USE_ISNAN" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="61463444e9fb39f77571526155c67eb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method incorrectly compares a floating point number to NaN</ShortMessage> <LongMessage>Method ex.SPP_Sample.testNotNAN(double) compares a double to Double.NaN</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testNotNAN" signature="(D)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="81" end="88" startBytecode="0" endBytecode="109" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testNotNAN(double)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="81" end="81" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 81]</Message> </SourceLine> <String value="double"> <Message>Value double</Message> </String> <String value="Double"> <Message>Value Double</Message> </String> </BugInstance> <BugInstance type="SPP_USE_MATH_CONSTANT" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="2c77fb4b21fc3a98d3a9868a0e4ae17c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses non standard math constant</ShortMessage> <LongMessage>Method ex.SPP_Sample.area(double) uses non standard math constant</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="area" signature="(D)D" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="57" end="57" startBytecode="0" endBytecode="59" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.area(double)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="57" end="57" startBytecode="0" endBytecode="0" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 57]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_STRINGBUILDER_LENGTH" priority="2" rank="18" abbrev="SPP" category="PERFORMANCE" instanceHash="d0c336c1646761f9f4ffb9e419992fdb" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method converts StringBuffer or Builder to String just to get its length</ShortMessage> <LongMessage>Method ex.SPP_Sample.sbToString(StringBuffer) converts StringBuffer or Builder to String just to get its length</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="sbToString" signature="(Ljava/lang/StringBuffer;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="228" end="233" startBytecode="0" endBytecode="119" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.sbToString(StringBuffer)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="228" end="228" startBytecode="7" endBytecode="7" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 228]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_USE_STRINGBUILDER_LENGTH" priority="2" rank="18" abbrev="SPP" category="PERFORMANCE" instanceHash="d0c336c1646761f9f4ffb9e419992fdb" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method converts StringBuffer or Builder to String just to get its length</ShortMessage> <LongMessage>Method ex.SPP_Sample.sbToString(StringBuffer) converts StringBuffer or Builder to String just to get its length</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="sbToString" signature="(Ljava/lang/StringBuffer;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="228" end="233" startBytecode="0" endBytecode="119" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.sbToString(StringBuffer)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="230" end="230" startBytecode="30" endBytecode="30" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 230]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_WRONG_COMMONS_TO_STRING_OBJECT" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="e32209e3fa90d22531c5fc8e88059a1d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not pass an object to commons-lang's ToStringBuilder</ShortMessage> <LongMessage>Method ex.SPP_Sample.testCommonsLangToStringBuilder() does not pass an object to commons-lang's ToStringBuilder</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCommonsLangToStringBuilder" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="394" end="394" startBytecode="0" endBytecode="48" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCommonsLangToStringBuilder()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="394" end="394" startBytecode="3" endBytecode="3" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 394]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_CONDITION" priority="1" rank="14" abbrev="UC" category="STYLE" instanceHash="79c28fe4690cf8ac7ef55c552dd34be5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Condition has no effect</ShortMessage> <LongMessage>Useless condition: it's known that a == true at this point</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testFPUselessTrinary" signature="(ZZ)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="151" end="155" startBytecode="0" endBytecode="112" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testFPUselessTrinary(boolean, boolean)</Message> </Method> <String value="a == true"> <Message>Value a == true</Message> </String> <SourceLine classname="ex.SPP_Sample" start="152" end="152" startBytecode="12" endBytecode="12" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_UNREACHABLE_CODE"> <Message>Unreachable code at SPP_Sample.java:[line 152]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" primary="true" start="152" end="152" startBytecode="9" endBytecode="9" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 152]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_CONDITION" priority="1" rank="14" abbrev="UC" category="STYLE" instanceHash="80e863efea717cd949d931c32ff6cb9d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Condition has no effect</ShortMessage> <LongMessage>Useless condition: it's known that b == true at this point</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testFPUselessTrinary" signature="(ZZ)Z" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="151" end="155" startBytecode="0" endBytecode="112" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testFPUselessTrinary(boolean, boolean)</Message> </Method> <String value="b == true"> <Message>Value b == true</Message> </String> <SourceLine classname="ex.SPP_Sample" start="152" end="152" startBytecode="16" endBytecode="16" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" role="SOURCE_UNREACHABLE_CODE"> <Message>Unreachable code at SPP_Sample.java:[line 152]</Message> </SourceLine> <SourceLine classname="ex.SPP_Sample" primary="true" start="152" end="152" startBytecode="13" endBytecode="13" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 152]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_CONDITION" priority="3" rank="19" abbrev="UC" category="STYLE" instanceHash="d361f55a8ff043e08c378cb7d0a60c0b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Condition has no effect</ShortMessage> <LongMessage>Useless condition: it's known that b == true at this point</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCPPBoolean" signature="(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="112" end="118" startBytecode="0" endBytecode="164" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean)</Message> </Method> <String value="b == true"> <Message>Value b == true</Message> </String> <SourceLine classname="ex.SPP_Sample" primary="true" start="112" end="112" startBytecode="11" endBytecode="11" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 112]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_CONDITION" priority="3" rank="19" abbrev="UC" category="STYLE" instanceHash="550c2d5194b684cfe59c2c00240bf854" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Condition has no effect</ShortMessage> <LongMessage>Useless condition: it's known that e == true at this point</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testCPPBoolean" signature="(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="112" end="118" startBytecode="0" endBytecode="164" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testCPPBoolean(Boolean, Boolean, Boolean, Boolean, Boolean)</Message> </Method> <String value="e == true"> <Message>Value e == true</Message> </String> <SourceLine classname="ex.SPP_Sample" primary="true" start="115" end="115" startBytecode="35" endBytecode="35" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 115]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="8e2cd8f5dcda178e6809b2420080ad2c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SPP_Sample.fpGitHubIssue238SizeReused(Collection) seems to be useless</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="fpGitHubIssue238SizeReused" signature="(Ljava/util/Collection;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="448" end="452" startBytecode="0" endBytecode="124" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.fpGitHubIssue238SizeReused(Collection)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="452" end="452" startBytecode="20" endBytecode="20" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 452]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="30f53664ce403f88bbc009c651cc150a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SPP_Sample.fpIssue199SBWithNum() seems to be useless</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="fpIssue199SBWithNum" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="443" end="444" startBytecode="0" endBytecode="66" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.fpIssue199SBWithNum()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="444" end="444" startBytecode="10" endBytecode="10" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 444]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="ddf6ee5a075ef27e6d5b1e4cc149016" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SPP_Sample.testEmptySB() seems to be useless</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testEmptySB" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="102" end="103" startBytecode="0" endBytecode="66" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testEmptySB()</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="103" end="103" startBytecode="10" endBytecode="10" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 103]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="35ed999e92e18f756c362cbfadf4713d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SPP_Sample.testStutter(String) seems to be useless</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="testStutter" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="61" end="62" startBytecode="0" endBytecode="70" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.testStutter(String)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="62" end="62" startBytecode="4" endBytecode="4" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="c99318d162d861247da13b96f126cdca" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.SPP_Sample.fpGitHubIssue238SizeReused(Collection) creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.SPP_Sample" primary="true"> <SourceLine classname="ex.SPP_Sample" start="29" end="452" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 29-452]</Message> </SourceLine> <Message>In class ex.SPP_Sample</Message> </Class> <Method classname="ex.SPP_Sample" name="fpGitHubIssue238SizeReused" signature="(Ljava/util/Collection;)V" isStatic="false" primary="true"> <SourceLine classname="ex.SPP_Sample" start="448" end="452" startBytecode="0" endBytecode="124" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"/> <Message>In method ex.SPP_Sample.fpGitHubIssue238SizeReused(Collection)</Message> </Method> <SourceLine classname="ex.SPP_Sample" primary="true" start="450" end="450" startBytecode="19" endBytecode="19" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[line 450]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_INNER_CLASS" priority="3" rank="19" abbrev="Se" category="BAD_PRACTICE" instanceHash="ea55bd5ce7a179a0fc4319050e5f2321" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Serializable inner class</ShortMessage> <LongMessage>ex.SPP_Sample$1 is serializable and an inner class</LongMessage> <Class classname="ex.SPP_Sample$1" primary="true"> <SourceLine classname="ex.SPP_Sample$1" start="1" end="270" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 1-270]</Message> </SourceLine> <Message>In class ex.SPP_Sample$1</Message> </Class> <SourceLine classname="ex.SPP_Sample$1" start="1" end="270" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" synthetic="true"> <Message>At SPP_Sample.java:[lines 1-270]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="d20a5e82a39ed1c0bdb2bf517d5a85b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.SPP_Sample$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.SPP_Sample$1" primary="true"> <SourceLine classname="ex.SPP_Sample$1" start="1" end="270" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java"> <Message>At SPP_Sample.java:[lines 1-270]</Message> </SourceLine> <Message>In class ex.SPP_Sample$1</Message> </Class> <SourceLine classname="ex.SPP_Sample$1" start="1" end="270" sourcefile="SPP_Sample.java" sourcepath="ex/SPP_Sample.java" synthetic="true"> <Message>At SPP_Sample.java:[lines 1-270]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="ac6211427cb3a1f45a866ab4afd29de0" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to s in ex.SSCU_Sample.testSimpleShade()</LongMessage> <Class classname="ex.SSCU_Sample" primary="true"> <SourceLine classname="ex.SSCU_Sample" start="6" end="11" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"> <Message>At SSCU_Sample.java:[lines 6-11]</Message> </SourceLine> <Message>In class ex.SSCU_Sample</Message> </Class> <Method classname="ex.SSCU_Sample" name="testSimpleShade" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SSCU_Sample" start="10" end="11" startBytecode="0" endBytecode="2" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"/> <Message>In method ex.SSCU_Sample.testSimpleShade()</Message> </Method> <LocalVariable name="s" register="1" pc="4" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named s</Message> </LocalVariable> <SourceLine classname="ex.SSCU_Sample" primary="true" start="10" end="10" startBytecode="3" endBytecode="3" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"> <Message>At SSCU_Sample.java:[line 10]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="s"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="SSCU_SUSPICIOUS_SHADED_CLASS_USE" priority="2" rank="7" abbrev="SSCU" category="CORRECTNESS" instanceHash="e4bbd4b1064670f8aa66da250104ef51" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls a method from a class that has been shaded by a 3rdparty jar</ShortMessage> <LongMessage>Method ex.SSCU_Sample.testSimpleShade() calls a method from a class that has been shaded by a 3rdparty jar</LongMessage> <Class classname="ex.SSCU_Sample" primary="true"> <SourceLine classname="ex.SSCU_Sample" start="6" end="11" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"> <Message>At SSCU_Sample.java:[lines 6-11]</Message> </SourceLine> <Message>In class ex.SSCU_Sample</Message> </Class> <Method classname="ex.SSCU_Sample" name="testSimpleShade" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SSCU_Sample" start="10" end="11" startBytecode="0" endBytecode="78" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"/> <Message>In method ex.SSCU_Sample.testSimpleShade()</Message> </Method> <SourceLine classname="ex.SSCU_Sample" primary="true" start="10" end="10" startBytecode="0" endBytecode="0" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"> <Message>At SSCU_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="3659f049062dae5309954aaac4a84295" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.SSCU_Sample.testSimpleShade() seems to be useless</LongMessage> <Class classname="ex.SSCU_Sample" primary="true"> <SourceLine classname="ex.SSCU_Sample" start="6" end="11" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"> <Message>At SSCU_Sample.java:[lines 6-11]</Message> </SourceLine> <Message>In class ex.SSCU_Sample</Message> </Class> <Method classname="ex.SSCU_Sample" name="testSimpleShade" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SSCU_Sample" start="10" end="11" startBytecode="0" endBytecode="78" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"/> <Message>In method ex.SSCU_Sample.testSimpleShade()</Message> </Method> <SourceLine classname="ex.SSCU_Sample" primary="true" start="11" end="11" startBytecode="4" endBytecode="4" sourcefile="SSCU_Sample.java" sourcepath="ex/SSCU_Sample.java"> <Message>At SSCU_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="a19b605613dbfc334b2dcf088f92d745" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.STB_Sample.fpTestDiffMessages(File, File)</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="24" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <LocalVariable name="ioe" register="3" pc="13" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.STB_Sample" primary="true" start="76" end="76" startBytecode="31" endBytecode="31" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 76]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="70" end="70" startBytecode="8" endBytecode="8" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 70]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="ede73c727b512619d203a68fb34523a2" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.STB_Sample.fpTestDiffMessagesByAppending(File, File)</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessagesByAppending" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="84" end="94" startBytecode="0" endBytecode="36" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File)</Message> </Method> <LocalVariable name="ioe" register="3" pc="13" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.STB_Sample" primary="true" start="90" end="90" startBytecode="45" endBytecode="45" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 90]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="84" end="84" startBytecode="8" endBytecode="8" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 84]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="1e0bf7256aa1cd107797d7ef846d3756" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File)</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestMethodDeclaresThrownType" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="56" end="66" startBytecode="0" endBytecode="22" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File)</Message> </Method> <LocalVariable name="ioe" register="3" pc="13" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.STB_Sample" primary="true" start="62" end="62" startBytecode="29" endBytecode="29" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 62]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="56" end="56" startBytecode="8" endBytecode="8" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 56]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="799019ef7ceaa6923e90bb7cb996158f" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.STB_Sample.testSTB(File, File)</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="10" end="20" startBytecode="0" endBytecode="22" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB(File, File)</Message> </Method> <LocalVariable name="ioe" register="3" pc="13" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.STB_Sample" primary="true" start="16" end="16" startBytecode="29" endBytecode="29" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 16]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="10" end="10" startBytecode="8" endBytecode="8" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 10]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="cee9b6304762cad39d85fbfd71b33ddf" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.STB_Sample.testSTB2(File, File)</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="24" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <LocalVariable name="ioe" register="3" pc="13" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.STB_Sample" primary="true" start="30" end="30" startBytecode="31" endBytecode="31" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 30]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="24" end="24" startBytecode="8" endBytecode="8" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 24]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.EXCEPTION_HANDLER" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="ffee10035bc06db6dd7e6930d8229756" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to ioe in ex.STB_Sample.testSTB3(File, File)</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB3" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="38" end="52" startBytecode="0" endBytecode="36" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB3(File, File)</Message> </Method> <LocalVariable name="ioe" register="3" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named ioe</Message> </LocalVariable> <SourceLine classname="ex.STB_Sample" primary="true" start="46" end="46" startBytecode="42" endBytecode="42" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 46]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="38" end="38" startBytecode="8" endBytecode="8" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 38]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.KILLED_BY_SUBSEQUENT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="ioe"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="8ff3b9c509e3b5451974806f8eaf054a" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessages(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="70" end="70" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 70]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="8ff3b9c509e3b5451974806f8eaf054a" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessages(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="76" end="76" startBytecode="28" endBytecode="28" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 76]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="3c130d00fb36f1b03159cafa50300d2f" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessagesByAppending" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="84" end="94" startBytecode="0" endBytecode="214" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="84" end="84" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 84]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="3c130d00fb36f1b03159cafa50300d2f" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessagesByAppending" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="84" end="94" startBytecode="0" endBytecode="214" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="90" end="90" startBytecode="42" endBytecode="42" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 90]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="20c096031c1512000accb1be93ee15f3" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestMethodDeclaresThrownType" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="56" end="66" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="56" end="56" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="20c096031c1512000accb1be93ee15f3" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestMethodDeclaresThrownType" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="56" end="66" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="62" end="62" startBytecode="26" endBytecode="26" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="1f829aeec7724de912115f0882e97079" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="10" end="20" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="10" end="10" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="1f829aeec7724de912115f0882e97079" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="10" end="20" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="16" end="16" startBytecode="26" endBytecode="26" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="8da1293c7185cdbab14fbbfcd74df844" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB2(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="24" end="24" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="8da1293c7185cdbab14fbbfcd74df844" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB2(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="30" end="30" startBytecode="28" endBytecode="28" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="84b13912960d15d4478afdd0a207fe64" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB3(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB3" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="38" end="52" startBytecode="0" endBytecode="244" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB3(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="38" end="38" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="84b13912960d15d4478afdd0a207fe64" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB3(File, File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB3" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="38" end="52" startBytecode="0" endBytecode="244" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB3(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="46" end="46" startBytecode="39" endBytecode="39" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="44d5a8429fdf9c9ceb012e3a57fe47ef" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.fpStackedAcrossCases(int, String) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpStackedAcrossCases" signature="(ILjava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="97" end="119" startBytecode="0" endBytecode="319" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpStackedAcrossCases(int, String)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="107" end="107" startBytecode="118" endBytecode="118" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 107]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="44d5a8429fdf9c9ceb012e3a57fe47ef" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.fpStackedAcrossCases(int, String) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpStackedAcrossCases" signature="(ILjava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="97" end="119" startBytecode="0" endBytecode="319" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpStackedAcrossCases(int, String)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="114" end="114" startBytecode="153" endBytecode="153" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 114]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="7858e9983bca82da23d0ebf5d5cefe2f" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessages(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="72" end="72" startBytecode="22" endBytecode="22" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 72]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="7858e9983bca82da23d0ebf5d5cefe2f" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessages(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="78" end="78" startBytecode="45" endBytecode="45" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="aa0a26066937af85cd97a5af066f77" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessagesByAppending" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="84" end="94" startBytecode="0" endBytecode="214" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="86" end="86" startBytecode="36" endBytecode="36" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 86]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="aa0a26066937af85cd97a5af066f77" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessagesByAppending" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="84" end="94" startBytecode="0" endBytecode="214" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="92" end="92" startBytecode="73" endBytecode="73" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 92]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="a156c46f3be5e144a97005cd4ea2141c" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestMethodDeclaresThrownType" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="56" end="66" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="58" end="58" startBytecode="20" endBytecode="20" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 58]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="a156c46f3be5e144a97005cd4ea2141c" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestMethodDeclaresThrownType" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="56" end="66" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="64" end="64" startBytecode="41" endBytecode="41" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 64]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="6d4517b70d2b08f9e57671ee6e7ab481" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="10" end="20" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="12" end="12" startBytecode="20" endBytecode="20" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="6d4517b70d2b08f9e57671ee6e7ab481" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="10" end="20" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="18" end="18" startBytecode="41" endBytecode="41" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="e124d747f90e744625f314f31d21975e" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB2(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="26" end="26" startBytecode="22" endBytecode="22" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="LEST_LOST_EXCEPTION_STACK_TRACE" priority="2" rank="7" abbrev="LEST" category="CORRECTNESS" instanceHash="e124d747f90e744625f314f31d21975e" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws alternative exception from catch block without history</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB2(File, File) throws alternative exception from catch block without history</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="32" end="32" startBytecode="45" endBytecode="45" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="287fbb6efd18dbd161b5486f1b6992c9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.STB_Sample.fpTestDiffMessages(File, File) may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="2" role="INT_OBLIGATIONS_REMAINING"> <Message>2 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.STB_Sample" primary="true" start="70" end="70" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 70] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="71" end="71" startBytecode="9" endBytecode="9" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 71]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="76" end="76" startBytecode="23" endBytecode="23" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 76]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="76" end="76" startBytecode="28" endBytecode="28" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 76] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="77" end="77" startBytecode="32" endBytecode="32" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 77]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="80" end="80" startBytecode="46" endBytecode="46" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 80]</Message> </SourceLine> <String value="{InputStream x 2}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 2}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="5b3be3b25d834acbe3bb3838e48f2cf8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.STB_Sample.fpTestDiffMessagesByAppending(File, File) may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessagesByAppending" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="84" end="94" startBytecode="0" endBytecode="214" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File)</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="2" role="INT_OBLIGATIONS_REMAINING"> <Message>2 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.STB_Sample" primary="true" start="84" end="84" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 84] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="85" end="85" startBytecode="9" endBytecode="9" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 85]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="90" end="90" startBytecode="37" endBytecode="37" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 90]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="90" end="90" startBytecode="42" endBytecode="42" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 90] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="91" end="91" startBytecode="46" endBytecode="46" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 91]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="94" end="94" startBytecode="74" endBytecode="74" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 94]</Message> </SourceLine> <String value="{InputStream x 2}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 2}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="f4e194e2238a184ef8eaa5c30af30715" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File) may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestMethodDeclaresThrownType" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="56" end="66" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File)</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="2" role="INT_OBLIGATIONS_REMAINING"> <Message>2 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.STB_Sample" primary="true" start="56" end="56" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 56] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="57" end="57" startBytecode="9" endBytecode="9" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 57]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="62" end="62" startBytecode="21" endBytecode="21" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 62]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="62" end="62" startBytecode="26" endBytecode="26" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 62] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="63" end="63" startBytecode="30" endBytecode="30" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 63]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="66" end="66" startBytecode="42" endBytecode="42" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 66]</Message> </SourceLine> <String value="{InputStream x 2}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 2}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="67846cdb0227e8a78d28ef7f71edbefc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.STB_Sample.testSTB(File, File) may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="10" end="20" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB(File, File)</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="2" role="INT_OBLIGATIONS_REMAINING"> <Message>2 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.STB_Sample" primary="true" start="10" end="10" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 10] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="11" end="11" startBytecode="9" endBytecode="9" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 11]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="16" end="16" startBytecode="21" endBytecode="21" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 16]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="16" end="16" startBytecode="26" endBytecode="26" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 16] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="17" end="17" startBytecode="30" endBytecode="30" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 17]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="20" end="20" startBytecode="42" endBytecode="42" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 20]</Message> </SourceLine> <String value="{InputStream x 2}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 2}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="9033840220f5ce98e6c355a0b47ad22f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.STB_Sample.testSTB2(File, File) may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="2" role="INT_OBLIGATIONS_REMAINING"> <Message>2 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.STB_Sample" primary="true" start="24" end="24" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 24] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="25" end="25" startBytecode="9" endBytecode="9" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 25]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="30" end="30" startBytecode="23" endBytecode="23" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 30]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="30" end="30" startBytecode="28" endBytecode="28" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 30] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="31" end="31" startBytecode="32" endBytecode="32" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 31]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="34" end="34" startBytecode="46" endBytecode="46" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 34]</Message> </SourceLine> <String value="{InputStream x 2}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 2}</Message> </String> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="3e92a5675bdd114670918c0bd5718d2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.STB_Sample.testSTB3(File, File) may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB3" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="38" end="52" startBytecode="0" endBytecode="244" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB3(File, File)</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="2" role="INT_OBLIGATIONS_REMAINING"> <Message>2 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.STB_Sample" primary="true" start="38" end="38" startBytecode="5" endBytecode="5" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 38] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="39" end="39" startBytecode="9" endBytecode="9" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 39]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="46" end="46" startBytecode="34" endBytecode="34" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 46]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="46" end="46" startBytecode="39" endBytecode="39" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at STB_Sample.java:[line 46] is not discharged</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="47" end="47" startBytecode="43" endBytecode="43" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 47]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="52" end="52" startBytecode="68" endBytecode="68" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at STB_Sample.java:[line 52]</Message> </SourceLine> <String value="{InputStream x 2}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 2}</Message> </String> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="b38dba6f7408d52ca3891b0075e9e9e4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.STB_Sample.fpTestDiffMessages(File, File) may fail to close stream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="24" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.STB_Sample" primary="true" start="70" end="70" startBytecode="0" endBytecode="0" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 70]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="76" end="76" startBytecode="23" endBytecode="23" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 76]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="54fc8f9971080fbdfd716cfe00f8e845" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.STB_Sample.fpTestDiffMessagesByAppending(File, File) may fail to close stream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessagesByAppending" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="84" end="94" startBytecode="0" endBytecode="36" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessagesByAppending(File, File)</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.STB_Sample" primary="true" start="84" end="84" startBytecode="0" endBytecode="0" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 84]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="90" end="90" startBytecode="37" endBytecode="37" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 90]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="adb2b47d26119336fb395a8b2005922" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File) may fail to close stream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestMethodDeclaresThrownType" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="56" end="66" startBytecode="0" endBytecode="22" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestMethodDeclaresThrownType(File, File)</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.STB_Sample" primary="true" start="56" end="56" startBytecode="0" endBytecode="0" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 56]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="62" end="62" startBytecode="21" endBytecode="21" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="3259eb455eb735b539edb04d2edc57d6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.STB_Sample.testSTB(File, File) may fail to close stream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="10" end="20" startBytecode="0" endBytecode="22" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB(File, File)</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.STB_Sample" primary="true" start="10" end="10" startBytecode="0" endBytecode="0" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 10]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="16" end="16" startBytecode="21" endBytecode="21" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="f6336a04e0207a46169413bccda7c56" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.STB_Sample.testSTB2(File, File) may fail to close stream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="24" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.STB_Sample" primary="true" start="24" end="24" startBytecode="0" endBytecode="0" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 24]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="30" end="30" startBytecode="23" endBytecode="23" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="a212f6cc7c8c74d6626599b6a52e2887" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.STB_Sample.testSTB3(File, File) may fail to close stream</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB3" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="38" end="52" startBytecode="0" endBytecode="36" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB3(File, File)</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.STB_Sample" primary="true" start="38" end="38" startBytecode="0" endBytecode="0" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 38]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="46" end="46" startBytecode="34" endBytecode="34" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at STB_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="STB_STACKED_TRY_BLOCKS" priority="2" rank="17" abbrev="STB" category="STYLE" instanceHash="1101f978ba0b44dd2ff543b8966521f4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stacks similar try/catch blocks</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB(File, File) stacks similar try/catch blocks</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="10" end="20" startBytecode="0" endBytecode="182" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="10" end="16" startBytecode="0" endBytecode="21" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 10-16]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="16" end="20" startBytecode="21" endBytecode="42" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 16-20]</Message> </SourceLine> </BugInstance> <BugInstance type="STB_STACKED_TRY_BLOCKS" priority="2" rank="17" abbrev="STB" category="STYLE" instanceHash="a212782fc7362065675f99eea610cb42" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stacks similar try/catch blocks</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB2(File, File) stacks similar try/catch blocks</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="24" end="30" startBytecode="0" endBytecode="23" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 24-30]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="30" end="34" startBytecode="23" endBytecode="46" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 30-34]</Message> </SourceLine> </BugInstance> <BugInstance type="STB_STACKED_TRY_BLOCKS" priority="2" rank="17" abbrev="STB" category="STYLE" instanceHash="1fb1b8de431d7ec8e9d9144807a53580" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stacks similar try/catch blocks</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB3(File, File) stacks similar try/catch blocks</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB3" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="38" end="52" startBytecode="0" endBytecode="244" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB3(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="38" end="46" startBytecode="0" endBytecode="34" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 38-46]</Message> </SourceLine> <SourceLine classname="ex.STB_Sample" start="46" end="52" startBytecode="34" endBytecode="68" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 46-52]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="f88db6e2210678775810f8b6a1538122" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.STB_Sample.fpStackedAcrossCases(int, String) throws exception with static message string</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpStackedAcrossCases" signature="(ILjava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="97" end="119" startBytecode="0" endBytecode="319" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpStackedAcrossCases(int, String)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="107" end="107" startBytecode="118" endBytecode="118" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 107]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="f88db6e2210678775810f8b6a1538122" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.STB_Sample.fpStackedAcrossCases(int, String) throws exception with static message string</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpStackedAcrossCases" signature="(ILjava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="97" end="119" startBytecode="0" endBytecode="319" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpStackedAcrossCases(int, String)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="114" end="114" startBytecode="153" endBytecode="153" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 114]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="1a15d4dd6f1a5af71ca8854650f0b8f5" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessages(File, File) throws exception with static message string</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="72" end="72" startBytecode="22" endBytecode="22" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 72]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="1a15d4dd6f1a5af71ca8854650f0b8f5" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.STB_Sample.fpTestDiffMessages(File, File) throws exception with static message string</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="fpTestDiffMessages" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="70" end="80" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.fpTestDiffMessages(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="78" end="78" startBytecode="45" endBytecode="45" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="9815c73708443a5577c3bcd403e0ff22" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB2(File, File) throws exception with static message string</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="26" end="26" startBytecode="22" endBytecode="22" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="9815c73708443a5577c3bcd403e0ff22" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB2(File, File) throws exception with static message string</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB2" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="24" end="34" startBytecode="0" endBytecode="186" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB2(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="32" end="32" startBytecode="45" endBytecode="45" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="55d2ef35e61e1cb38ee6463aa74fa43a" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB3(File, File) throws exception with static message string</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB3" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="38" end="52" startBytecode="0" endBytecode="244" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB3(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="42" end="42" startBytecode="33" endBytecode="33" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="55d2ef35e61e1cb38ee6463aa74fa43a" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.STB_Sample.testSTB3(File, File) throws exception with static message string</LongMessage> <Class classname="ex.STB_Sample" primary="true"> <SourceLine classname="ex.STB_Sample" start="7" end="119" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[lines 7-119]</Message> </SourceLine> <Message>In class ex.STB_Sample</Message> </Class> <Method classname="ex.STB_Sample" name="testSTB3" signature="(Ljava/io/File;Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STB_Sample" start="38" end="52" startBytecode="0" endBytecode="244" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"/> <Message>In method ex.STB_Sample.testSTB3(File, File)</Message> </Method> <SourceLine classname="ex.STB_Sample" primary="true" start="50" end="50" startBytecode="67" endBytecode="67" sourcefile="STB_Sample.java" sourcepath="ex/STB_Sample.java"> <Message>At STB_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_YIELD" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="5ba14b4fa73fcd3d6e79b67d7ac4cffa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to manually schedule threads</ShortMessage> <LongMessage>Method ex.STS_Sample.main(String[]) attempts to manually schedule threads by calling method Thread.sleep(long)</LongMessage> <Class classname="ex.STS_Sample" primary="true"> <SourceLine classname="ex.STS_Sample" start="4" end="20" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 4-20]</Message> </SourceLine> <Message>In class ex.STS_Sample</Message> </Class> <Method classname="ex.STS_Sample" name="main" signature="([Ljava/lang/String;)V" isStatic="true" primary="true"> <SourceLine classname="ex.STS_Sample" start="8" end="20" startBytecode="0" endBytecode="207" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample.main(String[])</Message> </Method> <Method classname="java.lang.Thread" name="sleep" signature="(J)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.sleep(long)</Message> </Method> <SourceLine classname="ex.STS_Sample" primary="true" start="17" end="17" startBytecode="80" endBytecode="80" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 17]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="93dab6586996849c8ee04b96ced68086" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.STS_Sample$Calculator.run() prints the stack trace to the console</LongMessage> <Class classname="ex.STS_Sample$Calculator" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="44" end="61" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 44-61]</Message> </SourceLine> <Message>In class ex.STS_Sample$Calculator</Message> </Class> <Method classname="ex.STS_Sample$Calculator" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="49" end="61" startBytecode="0" endBytecode="216" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Calculator.run()</Message> </Method> <SourceLine classname="ex.STS_Sample$Calculator" primary="true" start="58" end="58" startBytecode="43" endBytecode="43" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 58]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_THREAD_YIELD" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="f568c592734223d34713c038a11df33c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method attempts to manually schedule threads</ShortMessage> <LongMessage>Method ex.STS_Sample$Calculator.run() attempts to manually schedule threads by calling method Thread.sleep(long)</LongMessage> <Class classname="ex.STS_Sample$Calculator" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="44" end="61" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 44-61]</Message> </SourceLine> <Message>In class ex.STS_Sample$Calculator</Message> </Class> <Method classname="ex.STS_Sample$Calculator" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="49" end="61" startBytecode="0" endBytecode="216" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Calculator.run()</Message> </Method> <Method classname="java.lang.Thread" name="sleep" signature="(J)V" isStatic="true" role="METHOD_CALLED"> <SourceLine classname="java.lang.Thread" sourcefile="Thread.java" sourcepath="java/lang/Thread.java"/> <Message>Called method Thread.sleep(long)</Message> </Method> <SourceLine classname="ex.STS_Sample$Calculator" primary="true" start="55" end="55" startBytecode="31" endBytecode="31" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="NOS_NON_OWNED_SYNCHRONIZATION" priority="3" rank="20" abbrev="NOS" category="STYLE" instanceHash="5981e960014eb41152416300873d665a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses non owned variables to synchronize on</ShortMessage> <LongMessage>Class ex.STS_Sample$Calculator uses non owned variables to synchronize on</LongMessage> <Class classname="ex.STS_Sample$Calculator" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="44" end="61" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 44-61]</Message> </SourceLine> <Message>In class ex.STS_Sample$Calculator</Message> </Class> <Method classname="ex.STS_Sample$Calculator" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="49" end="61" startBytecode="0" endBytecode="216" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Calculator.run()</Message> </Method> <SourceLine classname="ex.STS_Sample$Calculator" primary="true" start="49" end="49" startBytecode="3" endBytecode="3" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 49]</Message> </SourceLine> </BugInstance> <BugInstance type="NO_NOTIFY_NOT_NOTIFYALL" priority="3" rank="17" abbrev="No" category="MT_CORRECTNESS" instanceHash="dc4a94d227b544ed33b344454c8a1ed8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Using notify() rather than notifyAll()</ShortMessage> <LongMessage>Using notify rather than notifyAll in ex.STS_Sample$Calculator.run()</LongMessage> <Class classname="ex.STS_Sample$Calculator" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="44" end="61" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 44-61]</Message> </SourceLine> <Message>In class ex.STS_Sample$Calculator</Message> </Class> <Method classname="ex.STS_Sample$Calculator" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="49" end="61" startBytecode="0" endBytecode="216" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Calculator.run()</Message> </Method> <SourceLine classname="ex.STS_Sample$Calculator" primary="true" start="56" end="56" startBytecode="35" endBytecode="35" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="STS_SPURIOUS_THREAD_STATES" priority="2" rank="16" abbrev="STS" category="MT_CORRECTNESS" instanceHash="e1c0281ff8fdecb74f8019632bc70413" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls wait, notify or notifyAll on a Thread instance</ShortMessage> <LongMessage>Method ex.STS_Sample$Calculator.run() calls wait, notify or notifyAll on a Thread instance</LongMessage> <Class classname="ex.STS_Sample$Calculator" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="44" end="61" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 44-61]</Message> </SourceLine> <Message>In class ex.STS_Sample$Calculator</Message> </Class> <Method classname="ex.STS_Sample$Calculator" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="49" end="61" startBytecode="0" endBytecode="216" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Calculator.run()</Message> </Method> <SourceLine classname="ex.STS_Sample$Calculator" primary="true" start="56" end="56" startBytecode="35" endBytecode="35" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="SWL_SLEEP_WITH_LOCK_HELD" priority="2" rank="14" abbrev="SWL" category="MT_CORRECTNESS" instanceHash="10dd55330da7d93ba0e0512cb35a8994" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls Thread.sleep() with a lock held</ShortMessage> <LongMessage>ex.STS_Sample$Calculator.run() calls Thread.sleep() with a lock held</LongMessage> <Class classname="ex.STS_Sample$Calculator" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="44" end="61" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 44-61]</Message> </SourceLine> <Message>In class ex.STS_Sample$Calculator</Message> </Class> <Method classname="ex.STS_Sample$Calculator" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Calculator" start="49" end="61" startBytecode="0" endBytecode="216" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Calculator.run()</Message> </Method> <SourceLine classname="ex.STS_Sample$Calculator" primary="true" start="55" end="55" startBytecode="31" endBytecode="31" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="e29fbfff4854e3160c14172fcfda288c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method ex.STS_Sample$Reader.run() sleeps without timeout when calling Object.wait()</LongMessage> <Class classname="ex.STS_Sample$Reader" primary="true"> <SourceLine classname="ex.STS_Sample$Reader" start="25" end="41" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 25-41]</Message> </SourceLine> <Message>In class ex.STS_Sample$Reader</Message> </Class> <Method classname="ex.STS_Sample$Reader" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Reader" start="31" end="41" startBytecode="0" endBytecode="255" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Reader.run()</Message> </Method> <Method classname="java.lang.Object" name="wait" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="502" end="503" startBytecode="0" endBytecode="33" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.wait()</Message> </Method> <SourceLine classname="ex.STS_Sample$Reader" primary="true" start="34" end="34" startBytecode="42" endBytecode="42" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="STS_SPURIOUS_THREAD_STATES" priority="2" rank="16" abbrev="STS" category="MT_CORRECTNESS" instanceHash="b063632c577822e9ea56f13e6b27fc79" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls wait, notify or notifyAll on a Thread instance</ShortMessage> <LongMessage>Method ex.STS_Sample$Reader.run() calls wait, notify or notifyAll on a Thread instance</LongMessage> <Class classname="ex.STS_Sample$Reader" primary="true"> <SourceLine classname="ex.STS_Sample$Reader" start="25" end="41" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 25-41]</Message> </SourceLine> <Message>In class ex.STS_Sample$Reader</Message> </Class> <Method classname="ex.STS_Sample$Reader" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Reader" start="31" end="41" startBytecode="0" endBytecode="255" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Reader.run()</Message> </Method> <SourceLine classname="ex.STS_Sample$Reader" primary="true" start="34" end="34" startBytecode="42" endBytecode="42" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="UW_UNCOND_WAIT" priority="2" rank="14" abbrev="UW" category="MT_CORRECTNESS" instanceHash="a5ecb130013c8aee4dc5898acc116a8c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unconditional wait</ShortMessage> <LongMessage>Unconditional wait in ex.STS_Sample$Reader.run()</LongMessage> <Class classname="ex.STS_Sample$Reader" primary="true"> <SourceLine classname="ex.STS_Sample$Reader" start="25" end="41" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 25-41]</Message> </SourceLine> <Message>In class ex.STS_Sample$Reader</Message> </Class> <Method classname="ex.STS_Sample$Reader" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Reader" start="31" end="41" startBytecode="0" endBytecode="255" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Reader.run()</Message> </Method> <SourceLine classname="ex.STS_Sample$Reader" primary="true" start="34" end="34" startBytecode="42" endBytecode="42" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="WA_NOT_IN_LOOP" priority="2" rank="14" abbrev="Wa" category="MT_CORRECTNESS" instanceHash="6ffcc829abbd41cbab7be1816d125bcc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Wait not in loop </ShortMessage> <LongMessage>Wait not in loop in ex.STS_Sample$Reader.run()</LongMessage> <Class classname="ex.STS_Sample$Reader" primary="true"> <SourceLine classname="ex.STS_Sample$Reader" start="25" end="41" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[lines 25-41]</Message> </SourceLine> <Message>In class ex.STS_Sample$Reader</Message> </Class> <Method classname="ex.STS_Sample$Reader" name="run" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STS_Sample$Reader" start="31" end="41" startBytecode="0" endBytecode="255" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"/> <Message>In method ex.STS_Sample$Reader.run()</Message> </Method> <SourceLine classname="ex.STS_Sample$Reader" primary="true" start="34" end="34" startBytecode="42" endBytecode="42" sourcefile="STS_Sample.java" sourcepath="ex/STS_Sample.java"> <Message>At STS_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="f5c718713a04de0de5b08af7a9c1d20d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.STT_Sample does not implement a toString method</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java" synthetic="true"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_STRING_PARSING_A_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="6079914cb35e87b0984d2e271da1bc26" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>This method parses a String that is a field</ShortMessage> <LongMessage>This method ex.STT_Sample.testParseOfMapResult() parses a String that is a field</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Method classname="ex.STT_Sample" name="testParseOfMapResult" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" start="35" end="37" startBytecode="0" endBytecode="98" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"/> <Message>In method ex.STT_Sample.testParseOfMapResult()</Message> </Method> <SourceLine classname="ex.STT_Sample" primary="true" start="36" end="36" startBytecode="18" endBytecode="18" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_STRING_PARSING_A_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="6079914cb35e87b0984d2e271da1bc26" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>This method parses a String that is a field</ShortMessage> <LongMessage>This method ex.STT_Sample.testParseOfMapResult() parses a String that is a field</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Method classname="ex.STT_Sample" name="testParseOfMapResult" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" start="35" end="37" startBytecode="0" endBytecode="98" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"/> <Message>In method ex.STT_Sample.testParseOfMapResult()</Message> </Method> <SourceLine classname="ex.STT_Sample" primary="true" start="37" end="37" startBytecode="25" endBytecode="25" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_TOSTRING_MAP_KEYING" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="d65732a140ddb94d5988549fe3ff773c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method uses a concatenated String as a map key</ShortMessage> <LongMessage>This method ex.STT_Sample.testLocalMapKeyedByStringifiedType(String, String) uses a concatenated String as a map key</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Method classname="ex.STT_Sample" name="testLocalMapKeyedByStringifiedType" signature="(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" start="41" end="43" startBytecode="0" endBytecode="150" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"/> <Message>In method ex.STT_Sample.testLocalMapKeyedByStringifiedType(String, String)</Message> </Method> <SourceLine classname="ex.STT_Sample" primary="true" start="42" end="42" startBytecode="45" endBytecode="45" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_TOSTRING_STORED_IN_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="cf4055e245b412f98beba3205ded0e1c" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>This method stores the value of a toString() call into a field</ShortMessage> <LongMessage>This method ex.STT_Sample stores the value of a toString() call into a field</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Method classname="ex.STT_Sample" name="testSBToMapField" signature="(Ljava/util/Date;Ljava/util/Date;)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" start="30" end="31" startBytecode="0" endBytecode="133" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"/> <Message>In method ex.STT_Sample.testSBToMapField(Date, Date)</Message> </Method> <SourceLine classname="ex.STT_Sample" primary="true" start="30" end="30" startBytecode="29" endBytecode="29" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_TOSTRING_STORED_IN_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="cf4055e245b412f98beba3205ded0e1c" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>This method stores the value of a toString() call into a field</ShortMessage> <LongMessage>This method ex.STT_Sample stores the value of a toString() call into a field</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Method classname="ex.STT_Sample" name="testSBToMapField" signature="(Ljava/util/Date;Ljava/util/Date;)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" start="30" end="31" startBytecode="0" endBytecode="133" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"/> <Message>In method ex.STT_Sample.testSBToMapField(Date, Date)</Message> </Method> <SourceLine classname="ex.STT_Sample" primary="true" start="31" end="31" startBytecode="62" endBytecode="62" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 31]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_TOSTRING_STORED_IN_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="7c8b3e7218645ccdccb16253bd96c74" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method stores the value of a toString() call into a field</ShortMessage> <LongMessage>This method ex.STT_Sample stores the value of a toString() call into a field</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Method classname="ex.STT_Sample" name="testSBWithToStringToField" signature="(Ljava/util/Date;Ljava/lang/Integer;)V" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" start="23" end="27" startBytecode="0" endBytecode="116" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"/> <Message>In method ex.STT_Sample.testSBWithToStringToField(Date, Integer)</Message> </Method> <SourceLine classname="ex.STT_Sample" primary="true" start="26" end="26" startBytecode="25" endBytecode="25" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="STT_TOSTRING_STORED_IN_FIELD" priority="2" rank="17" abbrev="STT" category="STYLE" instanceHash="935b3e902c97a3caa7777a658bd2de57" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method stores the value of a toString() call into a field</ShortMessage> <LongMessage>This method ex.STT_Sample stores the value of a toString() call into a field</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Method classname="ex.STT_Sample" name="testToStringToField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" start="19" end="20" startBytecode="0" endBytecode="56" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"/> <Message>In method ex.STT_Sample.testToStringToField()</Message> </Method> <SourceLine classname="ex.STT_Sample" primary="true" start="19" end="19" startBytecode="7" endBytecode="7" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="bb69f81284f0138f3e3e476696c52160" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.STT_Sample.testParseOfMapResult() passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Method classname="ex.STT_Sample" name="testParseOfMapResult" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" start="35" end="37" startBytecode="0" endBytecode="98" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"/> <Message>In method ex.STT_Sample.testParseOfMapResult()</Message> </Method> <SourceLine classname="ex.STT_Sample" primary="true" start="36" end="36" startBytecode="18" endBytecode="18" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="f5fe16d104183488663210bd3ec4ca6b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.STT_Sample.val</LongMessage> <Class classname="ex.STT_Sample" primary="true"> <SourceLine classname="ex.STT_Sample" start="8" end="52" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[lines 8-52]</Message> </SourceLine> <Message>In class ex.STT_Sample</Message> </Class> <Field classname="ex.STT_Sample" name="val" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.STT_Sample" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>In STT_Sample.java</Message> </SourceLine> <Message>Field ex.STT_Sample.val</Message> </Field> <SourceLine classname="ex.STT_Sample" primary="true" start="19" end="19" startBytecode="7" endBytecode="7" sourcefile="STT_Sample.java" sourcepath="ex/STT_Sample.java"> <Message>At STT_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="187d0ba0f20e5433eeb59ed2f30df871" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SUA_Sample does not implement a toString method</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java" synthetic="true"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> </BugInstance> <BugInstance type="SUA_SUSPICIOUS_UNINITIALIZED_ARRAY" priority="2" rank="7" abbrev="SUA" category="CORRECTNESS" instanceHash="50d7993ce81c79341395c8e938c9cb7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns an array that appears not to be initialized</ShortMessage> <LongMessage>Method ex.SUA_Sample.getAnArray() returns an array that appears not to be initialized</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <Method classname="ex.SUA_Sample" name="getAnArray" signature="()[I" isStatic="false" primary="true"> <SourceLine classname="ex.SUA_Sample" start="9" end="9" startBytecode="0" endBytecode="46" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"/> <Message>In method ex.SUA_Sample.getAnArray()</Message> </Method> <SourceLine classname="ex.SUA_Sample" primary="true" start="9" end="9" startBytecode="4" endBytecode="4" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="SUA_SUSPICIOUS_UNINITIALIZED_ARRAY" priority="2" rank="7" abbrev="SUA" category="CORRECTNESS" instanceHash="c4b00a05ce4e27fafc69b03cea52af91" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns an array that appears not to be initialized</ShortMessage> <LongMessage>Method ex.SUA_Sample.getDetailedArray() returns an array that appears not to be initialized</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <Method classname="ex.SUA_Sample" name="getDetailedArray" signature="()[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.SUA_Sample" start="30" end="37" startBytecode="0" endBytecode="139" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"/> <Message>In method ex.SUA_Sample.getDetailedArray()</Message> </Method> <SourceLine classname="ex.SUA_Sample" primary="true" start="37" end="37" startBytecode="30" endBytecode="30" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="SUA_SUSPICIOUS_UNINITIALIZED_ARRAY" priority="2" rank="7" abbrev="SUA" category="CORRECTNESS" instanceHash="3ca64a7dd787d9fb7c27c5e763fca3a3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns an array that appears not to be initialized</ShortMessage> <LongMessage>Method ex.SUA_Sample.getMulti() returns an array that appears not to be initialized</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <Method classname="ex.SUA_Sample" name="getMulti" signature="()[[Ljava/lang/Long;" isStatic="false" primary="true"> <SourceLine classname="ex.SUA_Sample" start="45" end="46" startBytecode="0" endBytecode="64" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"/> <Message>In method ex.SUA_Sample.getMulti()</Message> </Method> <SourceLine classname="ex.SUA_Sample" primary="true" start="46" end="46" startBytecode="8" endBytecode="8" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="8e4f17f8370f0c6546ed180ff84d1b70" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.SUA_Sample.initArray(int[]) has unused parameters</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <Method classname="ex.SUA_Sample" name="initArray" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.SUA_Sample" start="62" end="62" startBytecode="0" endBytecode="52" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"/> <Message>In method ex.SUA_Sample.initArray(int[])</Message> </Method> <String value="Parameter 1: i"> <Message>Value Parameter 1: i</Message> </String> <SourceLine classname="ex.SUA_Sample" start="62" end="62" startBytecode="0" endBytecode="52" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java" synthetic="true"> <Message>At SUA_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="3e10e577741f102a116c74fcded94875" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.SUA_Sample.b</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <Field classname="ex.SUA_Sample" name="b" signature="[Z" isStatic="false" primary="true"> <SourceLine classname="ex.SUA_Sample" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>In SUA_Sample.java</Message> </SourceLine> <Message>Field ex.SUA_Sample.b</Message> </Field> <SourceLine classname="ex.SUA_Sample" primary="true" start="25" end="25" startBytecode="6" endBytecode="6" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" rank="17" abbrev="USBR" category="STYLE" instanceHash="ada291714b93166c85f3546d84ef2160" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stores return result in local before immediately returning it</ShortMessage> <LongMessage>Method ex.SUA_Sample.getMulti() stores return result in local before immediately returning it</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <Method classname="ex.SUA_Sample" name="getMulti" signature="()[[Ljava/lang/Long;" isStatic="false" primary="true"> <SourceLine classname="ex.SUA_Sample" start="45" end="46" startBytecode="0" endBytecode="64" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"/> <Message>In method ex.SUA_Sample.getMulti()</Message> </Method> <SourceLine classname="ex.SUA_Sample" primary="true" start="46" end="46" startBytecode="8" endBytecode="8" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="9099892789ec3caf03c3d31b0d1b6e5f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.SUA_Sample.copy(int[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <Method classname="ex.SUA_Sample" name="copy" signature="([I)[I" isStatic="false" primary="true"> <SourceLine classname="ex.SUA_Sample" start="65" end="67" startBytecode="0" endBytecode="85" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"/> <Message>In method ex.SUA_Sample.copy(int[])</Message> </Method> <SourceLine classname="ex.SUA_Sample" start="65" end="67" startBytecode="0" endBytecode="85" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java" synthetic="true"> <Message>At SUA_Sample.java:[lines 65-67]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="9f5e341edb46aad7da04d8502e7a9a42" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.SUA_Sample.initArray(int[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.SUA_Sample" primary="true"> <SourceLine classname="ex.SUA_Sample" start="5" end="87" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"> <Message>At SUA_Sample.java:[lines 5-87]</Message> </SourceLine> <Message>In class ex.SUA_Sample</Message> </Class> <Method classname="ex.SUA_Sample" name="initArray" signature="([I)V" isStatic="false" primary="true"> <SourceLine classname="ex.SUA_Sample" start="62" end="62" startBytecode="0" endBytecode="52" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java"/> <Message>In method ex.SUA_Sample.initArray(int[])</Message> </Method> <SourceLine classname="ex.SUA_Sample" start="62" end="62" startBytecode="0" endBytecode="52" sourcefile="SUA_Sample.java" sourcepath="ex/SUA_Sample.java" synthetic="true"> <Message>At SUA_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="41b50c095d0d45bfd343417741d17aab" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SWCO_Sample does not implement a toString method</LongMessage> <Class classname="ex.SWCO_Sample" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> <Message>In class ex.SWCO_Sample</Message> </Class> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java" synthetic="true"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> </BugInstance> <BugInstance type="JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT" priority="1" rank="12" abbrev="JLM" category="MT_CORRECTNESS" instanceHash="238a7407cfe0784379410ccbb46d5df7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Using monitor style wait methods on util.concurrent abstraction</ShortMessage> <LongMessage>Calling wait rather than await in ex.SWCO_Sample.waitCDL()</LongMessage> <Class classname="ex.SWCO_Sample" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> <Message>In class ex.SWCO_Sample</Message> </Class> <Method classname="ex.SWCO_Sample" name="waitCDL" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="15" end="16" startBytecode="0" endBytecode="53" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"/> <Message>In method ex.SWCO_Sample.waitCDL()</Message> </Method> <Method classname="java.lang.Object" name="wait" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="502" end="503" startBytecode="0" endBytecode="33" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.wait()</Message> </Method> <Method classname="java.util.concurrent.CountDownLatch" name="await" signature="()V" isStatic="false" role="METHOD_ALTERNATIVE_TARGET"> <SourceLine classname="java.util.concurrent.CountDownLatch" start="231" end="232" startBytecode="0" endBytecode="36" sourcefile="CountDownLatch.java" sourcepath="java/util/concurrent/CountDownLatch.java"/> <Message>Did you intend to invoke java.util.concurrent.CountDownLatch.await()</Message> </Method> <Type descriptor="Ljava/util/concurrent/CountDownLatch;" role="TYPE_FOUND"> <SourceLine classname="java.util.concurrent.CountDownLatch" start="198" end="313" sourcefile="CountDownLatch.java" sourcepath="java/util/concurrent/CountDownLatch.java"> <Message>At CountDownLatch.java:[lines 198-313]</Message> </SourceLine> <Message>Actual type java.util.concurrent.CountDownLatch</Message> </Type> <SourceLine classname="ex.SWCO_Sample" primary="true" start="15" end="15" startBytecode="4" endBytecode="4" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="c9c1e833793c4830145b078e6281d743" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method ex.SWCO_Sample.waitCB() sleeps without timeout when calling Object.wait()</LongMessage> <Class classname="ex.SWCO_Sample" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> <Message>In class ex.SWCO_Sample</Message> </Class> <Method classname="ex.SWCO_Sample" name="waitCB" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="19" end="20" startBytecode="0" endBytecode="53" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"/> <Message>In method ex.SWCO_Sample.waitCB()</Message> </Method> <Method classname="java.lang.Object" name="wait" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="502" end="503" startBytecode="0" endBytecode="33" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.wait()</Message> </Method> <SourceLine classname="ex.SWCO_Sample" primary="true" start="19" end="19" startBytecode="4" endBytecode="4" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="MDM_WAIT_WITHOUT_TIMEOUT" priority="3" rank="17" abbrev="MDM" category="MT_CORRECTNESS" instanceHash="ec6181bd58995158419cd09b1e65f11e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method sleeps without timeout</ShortMessage> <LongMessage>Method ex.SWCO_Sample.waitCDL() sleeps without timeout when calling Object.wait()</LongMessage> <Class classname="ex.SWCO_Sample" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> <Message>In class ex.SWCO_Sample</Message> </Class> <Method classname="ex.SWCO_Sample" name="waitCDL" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="15" end="16" startBytecode="0" endBytecode="53" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"/> <Message>In method ex.SWCO_Sample.waitCDL()</Message> </Method> <Method classname="java.lang.Object" name="wait" signature="()V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="502" end="503" startBytecode="0" endBytecode="33" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.wait()</Message> </Method> <SourceLine classname="ex.SWCO_Sample" primary="true" start="15" end="15" startBytecode="4" endBytecode="4" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="SWCO_SUSPICIOUS_WAIT_ON_CONCURRENT_OBJECT" priority="2" rank="7" abbrev="SWCO" category="CORRECTNESS" instanceHash="ad7b31d8f2ba2860e342fc5aa63af847" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls wait when await was probably intended</ShortMessage> <LongMessage>Method ex.SWCO_Sample.waitCB() calls wait when await was probably intended</LongMessage> <Class classname="ex.SWCO_Sample" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> <Message>In class ex.SWCO_Sample</Message> </Class> <Method classname="ex.SWCO_Sample" name="waitCB" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="19" end="20" startBytecode="0" endBytecode="53" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"/> <Message>In method ex.SWCO_Sample.waitCB()</Message> </Method> <SourceLine classname="ex.SWCO_Sample" primary="true" start="19" end="19" startBytecode="4" endBytecode="4" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="SWCO_SUSPICIOUS_WAIT_ON_CONCURRENT_OBJECT" priority="2" rank="7" abbrev="SWCO" category="CORRECTNESS" instanceHash="2d33b9a0c703ebed0e3bef0ff408a7aa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls wait when await was probably intended</ShortMessage> <LongMessage>Method ex.SWCO_Sample.waitCDL() calls wait when await was probably intended</LongMessage> <Class classname="ex.SWCO_Sample" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> <Message>In class ex.SWCO_Sample</Message> </Class> <Method classname="ex.SWCO_Sample" name="waitCDL" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="15" end="16" startBytecode="0" endBytecode="53" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"/> <Message>In method ex.SWCO_Sample.waitCDL()</Message> </Method> <SourceLine classname="ex.SWCO_Sample" primary="true" start="15" end="15" startBytecode="4" endBytecode="4" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="WA_NOT_IN_LOOP" priority="2" rank="14" abbrev="Wa" category="MT_CORRECTNESS" instanceHash="e07570fad75abc7b3c1c45b6873f274" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Wait not in loop </ShortMessage> <LongMessage>Wait not in loop in ex.SWCO_Sample.waitCB()</LongMessage> <Class classname="ex.SWCO_Sample" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> <Message>In class ex.SWCO_Sample</Message> </Class> <Method classname="ex.SWCO_Sample" name="waitCB" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="19" end="20" startBytecode="0" endBytecode="53" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"/> <Message>In method ex.SWCO_Sample.waitCB()</Message> </Method> <SourceLine classname="ex.SWCO_Sample" primary="true" start="19" end="19" startBytecode="4" endBytecode="4" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="WA_NOT_IN_LOOP" priority="2" rank="14" abbrev="Wa" category="MT_CORRECTNESS" instanceHash="93ddf6d780c9617f720d9d885f919ba3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Wait not in loop </ShortMessage> <LongMessage>Wait not in loop in ex.SWCO_Sample.waitCDL()</LongMessage> <Class classname="ex.SWCO_Sample" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="9" end="20" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[lines 9-20]</Message> </SourceLine> <Message>In class ex.SWCO_Sample</Message> </Class> <Method classname="ex.SWCO_Sample" name="waitCDL" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SWCO_Sample" start="15" end="16" startBytecode="0" endBytecode="53" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"/> <Message>In method ex.SWCO_Sample.waitCDL()</Message> </Method> <SourceLine classname="ex.SWCO_Sample" primary="true" start="15" end="15" startBytecode="4" endBytecode="4" sourcefile="SWCO_Sample.java" sourcepath="ex/SWCO_Sample.java"> <Message>At SWCO_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="746a7c80838f2beab0a7077447c3dc34" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.SampleExecutable.methodThrows() throws exception with static message string</LongMessage> <Class classname="ex.SampleExecutable" primary="true"> <SourceLine classname="ex.SampleExecutable" start="25" end="37" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 25-37]</Message> </SourceLine> <Message>In class ex.SampleExecutable</Message> </Class> <Method classname="ex.SampleExecutable" name="methodThrows" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.SampleExecutable" start="34" end="37" startBytecode="0" endBytecode="69" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.SampleExecutable.methodThrows()</Message> </Method> <SourceLine classname="ex.SampleExecutable" primary="true" start="35" end="35" startBytecode="19" endBytecode="19" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_NEVER_SHUTDOWN" priority="2" rank="7" abbrev="HES" category="CORRECTNESS" instanceHash="1cb2c1650386a97d6e552219b718d458" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>ExecutorService field doesn't ever get shutdown</ShortMessage> <LongMessage>ExecutorService ex.ScheduledThreadPoolProblem.executor is instantiated, but never shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.ScheduledThreadPoolProblem" primary="true"> <SourceLine classname="ex.ScheduledThreadPoolProblem" start="198" end="205" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 198-205]</Message> </SourceLine> <Message>In class ex.ScheduledThreadPoolProblem</Message> </Class> <Field classname="ex.ScheduledThreadPoolProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.ScheduledThreadPoolProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ScheduledThreadPoolProblem.executor</Message> </Field> <Field classname="ex.ScheduledThreadPoolProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false"> <SourceLine classname="ex.ScheduledThreadPoolProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ScheduledThreadPoolProblem.executor</Message> </Field> <SourceLine classname="ex.ScheduledThreadPoolProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>In HES_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="f733107518fef90eb93a7ff8e7ad156e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ScheduledThreadPoolProblem does not implement a toString method</LongMessage> <Class classname="ex.ScheduledThreadPoolProblem" primary="true"> <SourceLine classname="ex.ScheduledThreadPoolProblem" start="198" end="205" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 198-205]</Message> </SourceLine> <Message>In class ex.ScheduledThreadPoolProblem</Message> </Class> <SourceLine classname="ex.ScheduledThreadPoolProblem" start="198" end="205" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 198-205]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_NEVER_SHUTDOWN" priority="3" rank="10" abbrev="HES" category="CORRECTNESS" instanceHash="bf8fa195d0031406449e5414a0b5e7c5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>ExecutorService field doesn't ever get shutdown</ShortMessage> <LongMessage>ExecutorService ex.ScheduledThreadPoolProblemCustomThreadFactory.executor is instantiated, but never shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" primary="true"> <SourceLine classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" start="213" end="228" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 213-228]</Message> </SourceLine> <Message>In class ex.ScheduledThreadPoolProblemCustomThreadFactory</Message> </Class> <Field classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ScheduledThreadPoolProblemCustomThreadFactory.executor</Message> </Field> <Field classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false"> <SourceLine classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.ScheduledThreadPoolProblemCustomThreadFactory.executor</Message> </Field> <SourceLine classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>In HES_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="5689cd96ece81c46bce9a0d00e4ff1be" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.ScheduledThreadPoolProblemCustomThreadFactory does not implement a toString method</LongMessage> <Class classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" primary="true"> <SourceLine classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" start="213" end="228" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 213-228]</Message> </SourceLine> <Message>In class ex.ScheduledThreadPoolProblemCustomThreadFactory</Message> </Class> <SourceLine classname="ex.ScheduledThreadPoolProblemCustomThreadFactory" start="213" end="228" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 213-228]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="97a46b4ce726cad5ab35a2743cc9fd45" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.ScheduledThreadPoolProblemCustomThreadFactory$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.ScheduledThreadPoolProblemCustomThreadFactory$1" primary="true"> <SourceLine classname="ex.ScheduledThreadPoolProblemCustomThreadFactory$1" start="1" end="220" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 1-220]</Message> </SourceLine> <Message>In class ex.ScheduledThreadPoolProblemCustomThreadFactory$1</Message> </Class> <SourceLine classname="ex.ScheduledThreadPoolProblemCustomThreadFactory$1" start="1" end="220" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 1-220]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="5094b64fdb49b09960f565fbbd71f36c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SingleThreadExecutorGood does not implement a toString method</LongMessage> <Class classname="ex.SingleThreadExecutorGood" primary="true"> <SourceLine classname="ex.SingleThreadExecutorGood" start="60" end="71" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 60-71]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorGood</Message> </Class> <SourceLine classname="ex.SingleThreadExecutorGood" start="60" end="71" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 60-71]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="696a11ac091c553c1909c535993b693a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SingleThreadExecutorGood1 does not implement a toString method</LongMessage> <Class classname="ex.SingleThreadExecutorGood1" primary="true"> <SourceLine classname="ex.SingleThreadExecutorGood1" start="78" end="89" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 78-89]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorGood1</Message> </Class> <SourceLine classname="ex.SingleThreadExecutorGood1" start="78" end="89" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 78-89]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="a3d4475a1f27bf154640900a9da308c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SingleThreadExecutorGood2 does not implement a toString method</LongMessage> <Class classname="ex.SingleThreadExecutorGood2" primary="true"> <SourceLine classname="ex.SingleThreadExecutorGood2" start="96" end="112" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 96-112]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorGood2</Message> </Class> <SourceLine classname="ex.SingleThreadExecutorGood2" start="96" end="112" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 96-112]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="3107eeae8716c9260fe8f9abc5e35a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.SingleThreadExecutorGood2.shutDown() prints the stack trace to the console</LongMessage> <Class classname="ex.SingleThreadExecutorGood2" primary="true"> <SourceLine classname="ex.SingleThreadExecutorGood2" start="96" end="112" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 96-112]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorGood2</Message> </Class> <Method classname="ex.SingleThreadExecutorGood2" name="shutDown" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SingleThreadExecutorGood2" start="107" end="112" startBytecode="0" endBytecode="122" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.SingleThreadExecutorGood2.shutDown()</Message> </Method> <SourceLine classname="ex.SingleThreadExecutorGood2" primary="true" start="109" end="109" startBytecode="21" endBytecode="21" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 109]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_NEVER_SHUTDOWN" priority="2" rank="7" abbrev="HES" category="CORRECTNESS" instanceHash="7f1916a4954ec1e1b1be768e35a99cde" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>ExecutorService field doesn't ever get shutdown</ShortMessage> <LongMessage>ExecutorService ex.SingleThreadExecutorProblem.executor is instantiated, but never shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.SingleThreadExecutorProblem" primary="true"> <SourceLine classname="ex.SingleThreadExecutorProblem" start="45" end="52" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 45-52]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorProblem</Message> </Class> <Field classname="ex.SingleThreadExecutorProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.SingleThreadExecutorProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.SingleThreadExecutorProblem.executor</Message> </Field> <Field classname="ex.SingleThreadExecutorProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false"> <SourceLine classname="ex.SingleThreadExecutorProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.SingleThreadExecutorProblem.executor</Message> </Field> <SourceLine classname="ex.SingleThreadExecutorProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>In HES_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="4f9a4a1520c96846a4d35b0d0f80b4eb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SingleThreadExecutorProblem does not implement a toString method</LongMessage> <Class classname="ex.SingleThreadExecutorProblem" primary="true"> <SourceLine classname="ex.SingleThreadExecutorProblem" start="45" end="52" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 45-52]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorProblem</Message> </Class> <SourceLine classname="ex.SingleThreadExecutorProblem" start="45" end="52" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 45-52]</Message> </SourceLine> </BugInstance> <BugInstance type="HES_EXECUTOR_NEVER_SHUTDOWN" priority="3" rank="10" abbrev="HES" category="CORRECTNESS" instanceHash="be7b31f163bd9a33069c508c79e824b6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>ExecutorService field doesn't ever get shutdown</ShortMessage> <LongMessage>ExecutorService ex.SingleThreadExecutorThreadFactoryMehProblem.executor is instantiated, but never shutdown, potentially preventing the entire JVM from shutting down</LongMessage> <Class classname="ex.SingleThreadExecutorThreadFactoryMehProblem" primary="true"> <SourceLine classname="ex.SingleThreadExecutorThreadFactoryMehProblem" start="176" end="190" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 176-190]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorThreadFactoryMehProblem</Message> </Class> <Field classname="ex.SingleThreadExecutorThreadFactoryMehProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false" primary="true"> <SourceLine classname="ex.SingleThreadExecutorThreadFactoryMehProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.SingleThreadExecutorThreadFactoryMehProblem.executor</Message> </Field> <Field classname="ex.SingleThreadExecutorThreadFactoryMehProblem" name="executor" signature="Ljava/util/concurrent/ExecutorService;" isStatic="false"> <SourceLine classname="ex.SingleThreadExecutorThreadFactoryMehProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>In HES_Sample.java</Message> </SourceLine> <Message>Field ex.SingleThreadExecutorThreadFactoryMehProblem.executor</Message> </Field> <SourceLine classname="ex.SingleThreadExecutorThreadFactoryMehProblem" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>In HES_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="36c425623ea65fb918b23027952cfc34" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SingleThreadExecutorThreadFactoryMehProblem does not implement a toString method</LongMessage> <Class classname="ex.SingleThreadExecutorThreadFactoryMehProblem" primary="true"> <SourceLine classname="ex.SingleThreadExecutorThreadFactoryMehProblem" start="176" end="190" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 176-190]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorThreadFactoryMehProblem</Message> </Class> <SourceLine classname="ex.SingleThreadExecutorThreadFactoryMehProblem" start="176" end="190" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 176-190]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="6bb41da44f9f96ac35ade1bdd9d90d00" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.SingleThreadExecutorThreadFactoryMehProblem$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.SingleThreadExecutorThreadFactoryMehProblem$1" primary="true"> <SourceLine classname="ex.SingleThreadExecutorThreadFactoryMehProblem$1" start="1" end="182" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 1-182]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorThreadFactoryMehProblem$1</Message> </Class> <SourceLine classname="ex.SingleThreadExecutorThreadFactoryMehProblem$1" start="1" end="182" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 1-182]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="7eada0017f8568e66929d89a26b1afc8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SingleThreadExecutorTryProblem does not implement a toString method</LongMessage> <Class classname="ex.SingleThreadExecutorTryProblem" primary="true"> <SourceLine classname="ex.SingleThreadExecutorTryProblem" start="120" end="139" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 120-139]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorTryProblem</Message> </Class> <SourceLine classname="ex.SingleThreadExecutorTryProblem" start="120" end="139" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java" synthetic="true"> <Message>At HES_Sample.java:[lines 120-139]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" priority="2" rank="17" abbrev="IMC" category="STYLE" instanceHash="41212297bdc87da8ca06d1ae14004610" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method prints the stack trace to the console</ShortMessage> <LongMessage>Method ex.SingleThreadExecutorTryProblem.shutDown() prints the stack trace to the console</LongMessage> <Class classname="ex.SingleThreadExecutorTryProblem" primary="true"> <SourceLine classname="ex.SingleThreadExecutorTryProblem" start="120" end="139" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[lines 120-139]</Message> </SourceLine> <Message>In class ex.SingleThreadExecutorTryProblem</Message> </Class> <Method classname="ex.SingleThreadExecutorTryProblem" name="shutDown" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SingleThreadExecutorTryProblem" start="131" end="139" startBytecode="0" endBytecode="122" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"/> <Message>In method ex.SingleThreadExecutorTryProblem.shutDown()</Message> </Method> <SourceLine classname="ex.SingleThreadExecutorTryProblem" primary="true" start="136" end="136" startBytecode="30" endBytecode="30" sourcefile="HES_Sample.java" sourcepath="ex/HES_Sample.java"> <Message>At HES_Sample.java:[line 136]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="79c8b02d8b935233768a7285741abf9b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SubChild does not implement a toString method</LongMessage> <Class classname="ex.SubChild" primary="true"> <SourceLine classname="ex.SubChild" start="24" end="29" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 24-29]</Message> </SourceLine> <Message>In class ex.SubChild</Message> </Class> <SourceLine classname="ex.SubChild" start="24" end="29" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 24-29]</Message> </SourceLine> </BugInstance> <BugInstance type="NPMC_NON_PRODUCTIVE_METHOD_CALL" priority="2" rank="7" abbrev="NPMC" category="CORRECTNESS" instanceHash="1ded942bf6b4698f35e71218fc235722" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method ignores return value of a non mutating method</ShortMessage> <LongMessage>Method ex.SubChild.subChildTest() ignores return value of a non mutating method</LongMessage> <Class classname="ex.SubChild" primary="true"> <SourceLine classname="ex.SubChild" start="24" end="29" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 24-29]</Message> </SourceLine> <Message>In class ex.SubChild</Message> </Class> <Method classname="ex.SubChild" name="subChildTest" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SubChild" start="28" end="29" startBytecode="0" endBytecode="54" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"/> <Message>In method ex.SubChild.subChildTest()</Message> </Method> <SourceLine classname="ex.SubChild" primary="true" start="28" end="28" startBytecode="7" endBytecode="7" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 28]</Message> </SourceLine> <String value="java/lang/Object@toString()Ljava/lang/String;"> <Message>Value java/lang/Object@toString()Ljava/lang/String;</Message> </String> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="67cd61bc897f3f93befc4464e35f6028" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.SubChild.subChildTest() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.SubChild" primary="true"> <SourceLine classname="ex.SubChild" start="24" end="29" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 24-29]</Message> </SourceLine> <Message>In class ex.SubChild</Message> </Class> <Method classname="ex.SubChild" name="subChildTest" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SubChild" start="28" end="29" startBytecode="0" endBytecode="54" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"/> <Message>In method ex.SubChild.subChildTest()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.SubChild" start="28" end="29" startBytecode="0" endBytecode="54" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 28-29]</Message> </SourceLine> </BugInstance> <BugInstance type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" priority="2" rank="17" abbrev="RV" category="STYLE" instanceHash="9ac7fee507a532c0ecc8dc4fadccce15" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Return value of method without side effect is ignored</ShortMessage> <LongMessage>Return value of Object.toString() ignored, but method has no side effect</LongMessage> <Class classname="ex.SubChild" primary="true"> <SourceLine classname="ex.SubChild" start="24" end="29" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 24-29]</Message> </SourceLine> <Message>In class ex.SubChild</Message> </Class> <Method classname="ex.SubChild" name="subChildTest" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SubChild" start="28" end="29" startBytecode="0" endBytecode="54" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"/> <Message>In method ex.SubChild.subChildTest()</Message> </Method> <Method classname="java.lang.Object" name="toString" signature="()Ljava/lang/String;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Object" start="236" end="236" startBytecode="0" endBytecode="59" sourcefile="Object.java" sourcepath="java/lang/Object.java"/> <Message>Called method Object.toString()</Message> </Method> <SourceLine classname="ex.SubChild" primary="true" start="28" end="28" startBytecode="4" endBytecode="4" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_NON_USEFUL_TOSTRING" priority="3" rank="20" abbrev="SPP" category="STYLE" instanceHash="1831e937900b0008d54ee6ceb45d4131" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls toString() on an instance of a class that hasn't overridden toString()</ShortMessage> <LongMessage>Method ex.SubChild.subChildTest() calls toString() on an instance of a class that hasn't overridden toString()</LongMessage> <Class classname="ex.SubChild" primary="true"> <SourceLine classname="ex.SubChild" start="24" end="29" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 24-29]</Message> </SourceLine> <Message>In class ex.SubChild</Message> </Class> <Method classname="ex.SubChild" name="subChildTest" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.SubChild" start="28" end="29" startBytecode="0" endBytecode="54" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"/> <Message>In method ex.SubChild.subChildTest()</Message> </Method> <SourceLine classname="ex.SubChild" primary="true" start="28" end="28" startBytecode="4" endBytecode="4" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[line 28]</Message> </SourceLine> </BugInstance> <BugInstance type="DRE_DECLARED_RUNTIME_EXCEPTION" priority="3" rank="20" abbrev="DRE" category="STYLE" instanceHash="25ba48fe4a063b4538219b1690ee977d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares RuntimeException in throws clause</ShortMessage> <LongMessage>Method ex.Super.constrainedByRuntime() declares RuntimeException in throws clause</LongMessage> <Class classname="ex.Super" primary="true"> <SourceLine classname="ex.Super" start="88" end="96" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"> <Message>At EXS_Sample.java:[lines 88-96]</Message> </SourceLine> <Message>In class ex.Super</Message> </Class> <Method classname="ex.Super" name="constrainedByRuntime" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.Super" start="96" end="96" startBytecode="0" endBytecode="42" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java"/> <Message>In method ex.Super.constrainedByRuntime()</Message> </Method> <String value="java.lang.RuntimeException"> <Message>Value java.lang.RuntimeException</Message> </String> <SourceLine classname="ex.Super" start="96" end="96" startBytecode="0" endBytecode="42" sourcefile="EXS_Sample.java" sourcepath="ex/EXS_Sample.java" synthetic="true"> <Message>At EXS_Sample.java:[line 96]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="13a84cfb272d63b1e20d874c41cd7fce" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.SuspectBuilderUse does not implement a toString method</LongMessage> <Class classname="ex.SuspectBuilderUse" primary="true"> <SourceLine classname="ex.SuspectBuilderUse" start="62" end="67" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java"> <Message>At FCCD_Sample.java:[lines 62-67]</Message> </SourceLine> <Message>In class ex.SuspectBuilderUse</Message> </Class> <SourceLine classname="ex.SuspectBuilderUse" start="62" end="67" sourcefile="FCCD_Sample.java" sourcepath="ex/FCCD_Sample.java" synthetic="true"> <Message>At FCCD_Sample.java:[lines 62-67]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="db5c30d752ddea7628a96b6c988839d0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.TBP_Sample.questionable(String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.TBP_Sample" primary="true"> <SourceLine classname="ex.TBP_Sample" start="2" end="7" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"> <Message>At TBP_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.TBP_Sample</Message> </Class> <Method classname="ex.TBP_Sample" name="questionable" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.TBP_Sample" start="4" end="7" startBytecode="0" endBytecode="83" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"/> <Message>In method ex.TBP_Sample.questionable(String)</Message> </Method> <SourceLine classname="ex.TBP_Sample" start="4" end="7" startBytecode="0" endBytecode="83" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java" synthetic="true"> <Message>At TBP_Sample.java:[lines 4-7]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="70f921c4aed54e8be66c4120ae2478fa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.TBP_Sample.questionable(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.TBP_Sample" primary="true"> <SourceLine classname="ex.TBP_Sample" start="2" end="7" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"> <Message>At TBP_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.TBP_Sample</Message> </Class> <Method classname="ex.TBP_Sample" name="questionable" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.TBP_Sample" start="4" end="7" startBytecode="0" endBytecode="83" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"/> <Message>In method ex.TBP_Sample.questionable(String)</Message> </Method> <SourceLine classname="ex.TBP_Sample" primary="true" start="4" end="4" startBytecode="3" endBytecode="3" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"> <Message>At TBP_Sample.java:[line 4]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_BOOLEAN_RETURN_NULL" priority="2" rank="14" abbrev="NP" category="BAD_PRACTICE" instanceHash="fb053e67cf633d34a112e61541d51dc4" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Method with Boolean return type returns explicit null</ShortMessage> <LongMessage>ex.TBP_Sample.questionable(String) has Boolean return type and returns explicit null</LongMessage> <Class classname="ex.TBP_Sample" primary="true"> <SourceLine classname="ex.TBP_Sample" start="2" end="7" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"> <Message>At TBP_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.TBP_Sample</Message> </Class> <Method classname="ex.TBP_Sample" name="questionable" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.TBP_Sample" start="4" end="7" startBytecode="0" endBytecode="83" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"/> <Message>In method ex.TBP_Sample.questionable(String)</Message> </Method> <SourceLine classname="ex.TBP_Sample" primary="true" start="7" end="7" startBytecode="14" endBytecode="14" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"> <Message>At TBP_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="TBP_TRISTATE_BOOLEAN_PATTERN" priority="2" rank="17" abbrev="TBP" category="STYLE" instanceHash="be0f187068982c567252ee88054364f5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns null for Boolean type</ShortMessage> <LongMessage>Method ex.TBP_Sample.questionable(String) returns null for Boolean type</LongMessage> <Class classname="ex.TBP_Sample" primary="true"> <SourceLine classname="ex.TBP_Sample" start="2" end="7" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"> <Message>At TBP_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.TBP_Sample</Message> </Class> <Method classname="ex.TBP_Sample" name="questionable" signature="(Ljava/lang/String;)Ljava/lang/Boolean;" isStatic="false" primary="true"> <SourceLine classname="ex.TBP_Sample" start="4" end="7" startBytecode="0" endBytecode="83" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"/> <Message>In method ex.TBP_Sample.questionable(String)</Message> </Method> <SourceLine classname="ex.TBP_Sample" primary="true" start="7" end="7" startBytecode="14" endBytecode="14" sourcefile="TBP_Sample.java" sourcepath="ex/TBP_Sample.java"> <Message>At TBP_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="4c01fc00bea1799653facdc98f2f5621" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.TR_Sample.factorial(int) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.TR_Sample" primary="true"> <SourceLine classname="ex.TR_Sample" start="2" end="7" sourcefile="TR_Sample.java" sourcepath="ex/TR_Sample.java"> <Message>At TR_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.TR_Sample</Message> </Class> <Method classname="ex.TR_Sample" name="factorial" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.TR_Sample" start="4" end="7" startBytecode="0" endBytecode="85" sourcefile="TR_Sample.java" sourcepath="ex/TR_Sample.java"/> <Message>In method ex.TR_Sample.factorial(int)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.TR_Sample" start="4" end="7" startBytecode="0" endBytecode="85" sourcefile="TR_Sample.java" sourcepath="ex/TR_Sample.java" synthetic="true"> <Message>At TR_Sample.java:[lines 4-7]</Message> </SourceLine> </BugInstance> <BugInstance type="TR_TAIL_RECURSION" priority="2" rank="18" abbrev="TR" category="PERFORMANCE" instanceHash="e2e9ff911b4d4b0dfe72844e6128f758" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method employs tail recursion</ShortMessage> <LongMessage>Method ex.TR_Sample.factorial(int) employs tail recursion</LongMessage> <Class classname="ex.TR_Sample" primary="true"> <SourceLine classname="ex.TR_Sample" start="2" end="7" sourcefile="TR_Sample.java" sourcepath="ex/TR_Sample.java"> <Message>At TR_Sample.java:[lines 2-7]</Message> </SourceLine> <Message>In class ex.TR_Sample</Message> </Class> <Method classname="ex.TR_Sample" name="factorial" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.TR_Sample" start="4" end="7" startBytecode="0" endBytecode="85" sourcefile="TR_Sample.java" sourcepath="ex/TR_Sample.java"/> <Message>In method ex.TR_Sample.factorial(int)</Message> </Method> <SourceLine classname="ex.TR_Sample" primary="true" start="7" end="7" startBytecode="12" endBytecode="12" sourcefile="TR_Sample.java" sourcepath="ex/TR_Sample.java"> <Message>At TR_Sample.java:[line 7]</Message> </SourceLine> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="89d0813b2e0d818a464cbd58f8d439f8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.TestNG.testUseAssertEquals(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="159" end="161" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertEquals(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="160" end="160" startBytecode="13" endBytecode="13" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 160]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="3aad24007732353a127473908b48840d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.TestNG.testUseAssertEqualsCrossed(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="177" end="179" startBytecode="0" endBytecode="119" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="178" end="178" startBytecode="21" endBytecode="21" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 178]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="98ac9656db9df23c269fb6e04d13d949" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.TestNG.testUseAssertNotEquals(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="165" end="167" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="166" end="166" startBytecode="13" endBytecode="13" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 166]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="55db8d7a22157aef5296ded0e62e3493" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.TestNG.testUseAssertNotEqualsCrossed(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertNotEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="171" end="173" startBytecode="0" endBytecode="119" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertNotEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="172" end="172" startBytecode="21" endBytecode="21" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 172]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_ACTUAL_CONSTANT" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="b4a1b77300b67194d1b44ec6f899af3e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method passes constant to first (actual) assertion parameter</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testWrongOrder(int) passes constant to first (actual) assertion parameter</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testWrongOrder" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="143" end="144" startBytecode="0" endBytecode="62" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testWrongOrder(int)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="143" end="143" startBytecode="3" endBytecode="3" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 143]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_ASSERT_USED" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="4a5a40b809df085e23771599480fbdc6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method uses Java asserts rather than a TestNG assertion</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testAssertUsed(String) uses Java asserts rather than a TestNG assertion</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testAssertUsed" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="154" end="155" startBytecode="0" endBytecode="83" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testAssertUsed(String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="154" end="154" startBytecode="17" endBytecode="17" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 154]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_BOOLEAN_ASSERT" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="96fa5c18fe3751997677dc94f1723740" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method asserts that a value is true or false</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testFalse(boolean) asserts that a value is true or false</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testFalse" signature="(Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="123" end="124" startBytecode="0" endBytecode="63" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testFalse(boolean)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="123" end="123" startBytecode="4" endBytecode="4" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 123]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_BOOLEAN_ASSERT" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="3658100d1cfdc6704803bad070717778" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method asserts that a value is true or false</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testTrue(boolean) asserts that a value is true or false</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testTrue" signature="(Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="118" end="119" startBytecode="0" endBytecode="61" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testTrue(boolean)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="118" end="118" startBytecode="2" endBytecode="2" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 118]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_IMPOSSIBLE_NULL" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="1051fe2fea9a3cef754d54c17de8c045" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>TestNG test method asserts that an autoboxed value is not null</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testAutoBoxNotNull(int) asserts that an autoboxed value is not null</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testAutoBoxNotNull" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="148" end="150" startBytecode="0" endBytecode="94" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testAutoBoxNotNull(int)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="148" end="148" startBytecode="4" endBytecode="4" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 148]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_IMPOSSIBLE_NULL" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="1051fe2fea9a3cef754d54c17de8c045" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>TestNG test method asserts that an autoboxed value is not null</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testAutoBoxNotNull(int) asserts that an autoboxed value is not null</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testAutoBoxNotNull" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="148" end="150" startBytecode="0" endBytecode="94" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testAutoBoxNotNull(int)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="149" end="149" startBytecode="20" endBytecode="20" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 149]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_INEXACT_DOUBLE" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="a6bab494cd857f377beba512c26c3041" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method asserts that two doubles are exactly equal</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testExactDoubles(double, double) asserts that two doubles are exactly equal</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testExactDoubles" signature="(DD)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="128" end="129" startBytecode="0" endBytecode="79" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testExactDoubles(double, double)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="128" end="128" startBytecode="10" endBytecode="10" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 128]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_NO_ASSERT" priority="3" rank="11" abbrev="UTAO" category="CORRECTNESS" instanceHash="d92456ccbcbb9f394c4ad5ceaf3aa434" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method appears to have no assertions</ShortMessage> <LongMessage>TestNG test method ex.TestNG.nada() appears to have no assertions</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="nada" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="114" end="114" startBytecode="0" endBytecode="42" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.nada()</Message> </Method> <SourceLine classname="ex.TestNG" start="114" end="114" startBytecode="0" endBytecode="42" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java" synthetic="true"> <Message>At UTAO_Sample.java:[line 114]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="ba092212dcf5192977c6b6cdea626c30" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>TestNG test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testUseAssertEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="159" end="161" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertEquals(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="159" end="159" startBytecode="5" endBytecode="5" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 159]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="ba092212dcf5192977c6b6cdea626c30" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>TestNG test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testUseAssertEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="159" end="161" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertEquals(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="160" end="160" startBytecode="24" endBytecode="24" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 160]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="f3b041b2a65928752bd9bd46f0dffeb8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testUseAssertEqualsCrossed(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="177" end="179" startBytecode="0" endBytecode="119" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="178" end="178" startBytecode="32" endBytecode="32" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 178]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="1ab855ccb0ceb87ac1196ebd0927d7fc" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>TestNG test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testUseAssertNotEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="165" end="167" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="165" end="165" startBytecode="5" endBytecode="5" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 165]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="1ab855ccb0ceb87ac1196ebd0927d7fc" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>TestNG test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testUseAssertNotEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="165" end="167" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="166" end="166" startBytecode="24" endBytecode="24" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 166]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="d37be9154a7bab362a111cf9d6b9315" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testUseAssertNotEqualsCrossed(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testUseAssertNotEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="171" end="173" startBytecode="0" endBytecode="119" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testUseAssertNotEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="172" end="172" startBytecode="32" endBytecode="32" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 172]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_NOT_NULL" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="1dac26bb40d643693f4d01329413c839" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method passes null Assert.assertNotEquals</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testNotNull(String) passes null to Assert.assertNotEquals</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testNotNull" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="138" end="139" startBytecode="0" endBytecode="61" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testNotNull(String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="138" end="138" startBytecode="2" endBytecode="2" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 138]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_NULL" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="d13169f0916c12c7de6994c111c61248" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>TestNG test method passes null Assert.assertEquals</ShortMessage> <LongMessage>TestNG test method ex.TestNG.testNull(String) passes null to Assert.assertEquals</LongMessage> <Class classname="ex.TestNG" primary="true"> <SourceLine classname="ex.TestNG" start="111" end="189" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 111-189]</Message> </SourceLine> <Message>In class ex.TestNG</Message> </Class> <Method classname="ex.TestNG" name="testNull" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.TestNG" start="133" end="134" startBytecode="0" endBytecode="61" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.TestNG.testNull(String)</Message> </Method> <SourceLine classname="ex.TestNG" primary="true" start="133" end="133" startBytecode="2" endBytecode="2" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 133]</Message> </SourceLine> </BugInstance> <BugInstance type="DRE_DECLARED_RUNTIME_EXCEPTION" priority="3" rank="20" abbrev="DRE" category="STYLE" instanceHash="1c702b39c5598a2508285c035c00c728" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares RuntimeException in throws clause</ShortMessage> <LongMessage>Method ex.ThrowsRuntimeException.someMethod() declares RuntimeException in throws clause</LongMessage> <Class classname="ex.ThrowsRuntimeException" primary="true"> <SourceLine classname="ex.ThrowsRuntimeException" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"> <Message>In DRE_Sample.java</Message> </SourceLine> <Message>In class ex.ThrowsRuntimeException</Message> </Class> <Method classname="ex.ThrowsRuntimeException" name="someMethod" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.ThrowsRuntimeException" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java"/> <Message>In method ex.ThrowsRuntimeException.someMethod()</Message> </Method> <String value="java.lang.RuntimeException"> <Message>Value java.lang.RuntimeException</Message> </String> <SourceLine classname="ex.ThrowsRuntimeException" sourcefile="DRE_Sample.java" sourcepath="ex/DRE_Sample.java" synthetic="true"> <Message>In DRE_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="2d27062ed794a24a6d5b4e2960238f38" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.UAA_Sample does not implement a toString method</LongMessage> <Class classname="ex.UAA_Sample" primary="true"> <SourceLine classname="ex.UAA_Sample" start="8" end="99" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[lines 8-99]</Message> </SourceLine> <Message>In class ex.UAA_Sample</Message> </Class> <SourceLine classname="ex.UAA_Sample" start="8" end="99" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java" synthetic="true"> <Message>At UAA_Sample.java:[lines 8-99]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="b0e070b7aa1ebab6207bccfecd5b9355" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.UAA_Sample.testFromArray(String[]) does not presize the allocation of a collection</LongMessage> <Class classname="ex.UAA_Sample" primary="true"> <SourceLine classname="ex.UAA_Sample" start="8" end="99" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[lines 8-99]</Message> </SourceLine> <Message>In class ex.UAA_Sample</Message> </Class> <Method classname="ex.UAA_Sample" name="testFromArray" signature="([Ljava/lang/String;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UAA_Sample" start="59" end="63" startBytecode="0" endBytecode="183" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"/> <Message>In method ex.UAA_Sample.testFromArray(String[])</Message> </Method> <SourceLine classname="ex.UAA_Sample" primary="true" start="61" end="61" startBytecode="29" endBytecode="29" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="ec7672b50579ec5fc7eaed54c302f0bb" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.UAA_Sample.testKeyOrValueAdd(Map) does not presize the allocation of a collection</LongMessage> <Class classname="ex.UAA_Sample" primary="true"> <SourceLine classname="ex.UAA_Sample" start="8" end="99" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[lines 8-99]</Message> </SourceLine> <Message>In class ex.UAA_Sample</Message> </Class> <Method classname="ex.UAA_Sample" name="testKeyOrValueAdd" signature="(Ljava/util/Map;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UAA_Sample" start="33" end="40" startBytecode="0" endBytecode="268" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"/> <Message>In method ex.UAA_Sample.testKeyOrValueAdd(Map)</Message> </Method> <SourceLine classname="ex.UAA_Sample" primary="true" start="35" end="35" startBytecode="37" endBytecode="37" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="ec7672b50579ec5fc7eaed54c302f0bb" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.UAA_Sample.testKeyOrValueAdd(Map) does not presize the allocation of a collection</LongMessage> <Class classname="ex.UAA_Sample" primary="true"> <SourceLine classname="ex.UAA_Sample" start="8" end="99" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[lines 8-99]</Message> </SourceLine> <Message>In class ex.UAA_Sample</Message> </Class> <Method classname="ex.UAA_Sample" name="testKeyOrValueAdd" signature="(Ljava/util/Map;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UAA_Sample" start="33" end="40" startBytecode="0" endBytecode="268" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"/> <Message>In method ex.UAA_Sample.testKeyOrValueAdd(Map)</Message> </Method> <SourceLine classname="ex.UAA_Sample" primary="true" start="38" end="38" startBytecode="82" endBytecode="82" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[line 38]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="eadacc2d08afd473b6eeb8726db01eb8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.UAA_Sample.testLocalSet(Set) does not presize the allocation of a collection</LongMessage> <Class classname="ex.UAA_Sample" primary="true"> <SourceLine classname="ex.UAA_Sample" start="8" end="99" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[lines 8-99]</Message> </SourceLine> <Message>In class ex.UAA_Sample</Message> </Class> <Method classname="ex.UAA_Sample" name="testLocalSet" signature="(Ljava/util/Set;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UAA_Sample" start="14" end="20" startBytecode="0" endBytecode="220" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"/> <Message>In method ex.UAA_Sample.testLocalSet(Set)</Message> </Method> <SourceLine classname="ex.UAA_Sample" primary="true" start="18" end="18" startBytecode="50" endBytecode="50" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="decbd982f351e70a8da225b0fabcba00" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.UAA_Sample.testFromArray(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.UAA_Sample" primary="true"> <SourceLine classname="ex.UAA_Sample" start="8" end="99" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[lines 8-99]</Message> </SourceLine> <Message>In class ex.UAA_Sample</Message> </Class> <Method classname="ex.UAA_Sample" name="testFromArray" signature="([Ljava/lang/String;)Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UAA_Sample" start="59" end="63" startBytecode="0" endBytecode="183" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"/> <Message>In method ex.UAA_Sample.testFromArray(String[])</Message> </Method> <SourceLine classname="ex.UAA_Sample" start="59" end="63" startBytecode="0" endBytecode="183" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java" synthetic="true"> <Message>At UAA_Sample.java:[lines 59-63]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="8dccac5caeefd20b1f6b3a95d9e89ac8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.UAA_Sample.testFP1934619_B(List, Set) throws exception with static message string</LongMessage> <Class classname="ex.UAA_Sample" primary="true"> <SourceLine classname="ex.UAA_Sample" start="8" end="99" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[lines 8-99]</Message> </SourceLine> <Message>In class ex.UAA_Sample</Message> </Class> <Method classname="ex.UAA_Sample" name="testFP1934619_B" signature="(Ljava/util/List;Ljava/util/Set;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UAA_Sample" start="93" end="99" startBytecode="0" endBytecode="250" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"/> <Message>In method ex.UAA_Sample.testFP1934619_B(List, Set)</Message> </Method> <SourceLine classname="ex.UAA_Sample" primary="true" start="95" end="95" startBytecode="41" endBytecode="41" sourcefile="UAA_Sample.java" sourcepath="ex/UAA_Sample.java"> <Message>At UAA_Sample.java:[line 95]</Message> </SourceLine> </BugInstance> <BugInstance type="UAC_UNNECESSARY_API_CONVERSION_DATE_TO_INSTANT" priority="2" rank="7" abbrev="UAC" category="CORRECTNESS" instanceHash="98660e133427d60a9ea87abf3e32f727" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method constructs a Date object, merely to convert it to an Instant object</ShortMessage> <LongMessage>Method ex.UAC_Sample.getInstant() constructs a Date object, merely to convert it to an Instant object</LongMessage> <Class classname="ex.UAC_Sample" primary="true"> <SourceLine classname="ex.UAC_Sample" start="8" end="16" sourcefile="UAC_Sample.java" sourcepath="ex/UAC_Sample.java"> <Message>At UAC_Sample.java:[lines 8-16]</Message> </SourceLine> <Message>In class ex.UAC_Sample</Message> </Class> <Method classname="ex.UAC_Sample" name="getInstant" signature="()Ljava/time/Instant;" isStatic="false" primary="true"> <SourceLine classname="ex.UAC_Sample" start="11" end="11" startBytecode="0" endBytecode="52" sourcefile="UAC_Sample.java" sourcepath="ex/UAC_Sample.java"/> <Message>In method ex.UAC_Sample.getInstant()</Message> </Method> <SourceLine classname="ex.UAC_Sample" primary="true" start="11" end="11" startBytecode="7" endBytecode="7" sourcefile="UAC_Sample.java" sourcepath="ex/UAC_Sample.java"> <Message>At UAC_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="UAC_UNNECESSARY_API_CONVERSION_FILE_TO_PATH" priority="2" rank="7" abbrev="UAC" category="CORRECTNESS" instanceHash="ee6509e1fe2895e3e085af21c88de8b4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method constructs a File object, merely to convert it to a Path object</ShortMessage> <LongMessage>Method ex.UAC_Sample.getPath() constructs a File object, merely to convert it to a Path object</LongMessage> <Class classname="ex.UAC_Sample" primary="true"> <SourceLine classname="ex.UAC_Sample" start="8" end="16" sourcefile="UAC_Sample.java" sourcepath="ex/UAC_Sample.java"> <Message>At UAC_Sample.java:[lines 8-16]</Message> </SourceLine> <Message>In class ex.UAC_Sample</Message> </Class> <Method classname="ex.UAC_Sample" name="getPath" signature="()Ljava/nio/file/Path;" isStatic="false" primary="true"> <SourceLine classname="ex.UAC_Sample" start="16" end="16" startBytecode="0" endBytecode="54" sourcefile="UAC_Sample.java" sourcepath="ex/UAC_Sample.java"/> <Message>In method ex.UAC_Sample.getPath()</Message> </Method> <SourceLine classname="ex.UAC_Sample" primary="true" start="16" end="16" startBytecode="9" endBytecode="9" sourcefile="UAC_Sample.java" sourcepath="ex/UAC_Sample.java"> <Message>At UAC_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="ABC_ARRAY_BASED_COLLECTIONS" priority="2" rank="7" abbrev="ABC" category="CORRECTNESS" instanceHash="4e3a10620458796b10a375e86702e90d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses array as basis of collection</ShortMessage> <LongMessage>Method ex.UCC_Sample.test3() uses array as basis of collection</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="test3" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="42" end="45" startBytecode="0" endBytecode="129" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.test3()</Message> </Method> <SourceLine classname="ex.UCC_Sample" primary="true" start="43" end="43" startBytecode="20" endBytecode="20" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="DMI_HARDCODED_ABSOLUTE_FILENAME" priority="2" rank="17" abbrev="DMI" category="STYLE" instanceHash="a21737cdf309ce44cfc286a638ac73ae" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="440"> <ShortMessage>Code contains a hard coded reference to an absolute pathname</ShortMessage> <LongMessage>Hard coded reference to an absolute pathname in ex.UCC_Sample.getPath()</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="getPath" signature="()Ljava/io/File;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="69" end="69" startBytecode="0" endBytecode="4" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.getPath()</Message> </Method> <String value="c:\\temp" role="FILE_NAME"> <Message>File name c:\\temp</Message> </String> <SourceLine classname="ex.UCC_Sample" primary="true" start="69" end="69" startBytecode="6" endBytecode="6" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 69]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="b6d4ff9175893bdb71ed1531c1270661" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.UCC_Sample.test1() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="test1" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="28" end="34" startBytecode="0" endBytecode="129" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.test1()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.UCC_Sample" primary="true" start="29" end="29" startBytecode="18" endBytecode="18" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="85ef116c04dcd098fd6cf94d6365257d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.UCC_Sample does not implement a toString method</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java" synthetic="true"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="f6d5f325f35c59982bd62e0fe951324f" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field b1 in ex.UCC_Sample.fpTwoDifferentFieldSources()</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="fpTwoDifferentFieldSources" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="55" end="57" startBytecode="0" endBytecode="82" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.fpTwoDifferentFieldSources()</Message> </Method> <Field classname="ex.UCC_Sample" name="b1" signature="Lex/UCC_Sample$Bean1;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample.b1</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="55" end="55" startBytecode="4" endBytecode="4" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="6cfcb24033b4376e5f73af4571c8e69" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field b2 in ex.UCC_Sample.fpTwoDifferentFieldSources()</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="fpTwoDifferentFieldSources" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="55" end="57" startBytecode="0" endBytecode="82" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.fpTwoDifferentFieldSources()</Message> </Method> <Field classname="ex.UCC_Sample" name="b2" signature="Lex/UCC_Sample$Bean2;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample.b2</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="56" end="56" startBytecode="19" endBytecode="19" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="caefb61047a833a9b54e9f3d6c39f4d5" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field data in ex.UCC_Sample.fpTwoDifferentFieldSources()</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="fpTwoDifferentFieldSources" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="55" end="57" startBytecode="0" endBytecode="82" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.fpTwoDifferentFieldSources()</Message> </Method> <Field classname="ex.UCC_Sample$Bean1" name="data" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Bean1" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Bean1.data</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="55" end="55" startBytecode="9" endBytecode="9" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_FIELD" priority="2" rank="8" abbrev="NP" category="CORRECTNESS" instanceHash="eb6a1042fdca46b3c714c4820de35992" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten field</ShortMessage> <LongMessage>Read of unwritten field data in ex.UCC_Sample.fpTwoDifferentFieldSources()</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="fpTwoDifferentFieldSources" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="55" end="57" startBytecode="0" endBytecode="82" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.fpTwoDifferentFieldSources()</Message> </Method> <Field classname="ex.UCC_Sample$Bean2" name="data" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Bean2" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Bean2.data</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="56" end="56" startBytecode="26" endBytecode="26" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="14" abbrev="NP" category="STYLE" instanceHash="e751b26a5af31fed6ff596219c64a340" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten public or protected field</ShortMessage> <LongMessage>Read of unwritten public or protected field ts in ex.UCC_Sample.fpTwoDifferentFieldSources2(UCC_Sample$Holder)</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="fpTwoDifferentFieldSources2" signature="(Lex/UCC_Sample$Holder;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="60" end="66" startBytecode="0" endBytecode="174" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.fpTwoDifferentFieldSources2(UCC_Sample$Holder)</Message> </Method> <Field classname="ex.UCC_Sample$Container" name="ts" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Container" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Container.ts</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="61" end="61" startBytecode="16" endBytecode="16" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 61]</Message> </SourceLine> <SourceLine classname="ex.UCC_Sample" start="64" end="64" startBytecode="48" endBytecode="48" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at UCC_Sample.java:[line 64]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="14" abbrev="NP" category="STYLE" instanceHash="d925058cce5f3261ee98a0e209f8bbad" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten public or protected field</ShortMessage> <LongMessage>Read of unwritten public or protected field ic in ex.UCC_Sample.fpTwoDifferentFieldSources2(UCC_Sample$Holder)</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="fpTwoDifferentFieldSources2" signature="(Lex/UCC_Sample$Holder;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="60" end="66" startBytecode="0" endBytecode="174" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.fpTwoDifferentFieldSources2(UCC_Sample$Holder)</Message> </Method> <Field classname="ex.UCC_Sample$Holder" name="ic" signature="Lex/UCC_Sample$Container;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Holder" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Holder.ic</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="61" end="61" startBytecode="9" endBytecode="9" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="14" abbrev="NP" category="STYLE" instanceHash="ed4598edee4f7ef9b9fdf0ea77cb9479" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Read of unwritten public or protected field</ShortMessage> <LongMessage>Read of unwritten public or protected field lc in ex.UCC_Sample.fpTwoDifferentFieldSources2(UCC_Sample$Holder)</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="fpTwoDifferentFieldSources2" signature="(Lex/UCC_Sample$Holder;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="60" end="66" startBytecode="0" endBytecode="174" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.fpTwoDifferentFieldSources2(UCC_Sample$Holder)</Message> </Method> <Field classname="ex.UCC_Sample$Holder" name="lc" signature="Lex/UCC_Sample$Container;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Holder" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Holder.lc</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="64" end="64" startBytecode="40" endBytecode="40" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 64]</Message> </SourceLine> </BugInstance> <BugInstance type="UCC_UNRELATED_COLLECTION_CONTENTS" priority="2" rank="17" abbrev="UCC" category="STYLE" instanceHash="28114c952bb7bd2d65df0fc9cee8e85c" instanceOccurrenceNum="0" instanceOccurrenceMax="2"> <ShortMessage>Method adds unrelated types to collection or array</ShortMessage> <LongMessage>Method UCC_Sample.java:[line 30] adds unrelated types to collection or array</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <SourceLine classname="ex.UCC_Sample" primary="true" start="30" end="30" startBytecode="36" endBytecode="36" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 30]</Message> </SourceLine> <SourceLine classname="ex.UCC_Sample" start="29" end="29" startBytecode="21" endBytecode="21" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="UCC_UNRELATED_COLLECTION_CONTENTS" priority="2" rank="17" abbrev="UCC" category="STYLE" instanceHash="28114c952bb7bd2d65df0fc9cee8e85c" instanceOccurrenceNum="1" instanceOccurrenceMax="2"> <ShortMessage>Method adds unrelated types to collection or array</ShortMessage> <LongMessage>Method UCC_Sample.java:[line 32] adds unrelated types to collection or array</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <SourceLine classname="ex.UCC_Sample" primary="true" start="32" end="32" startBytecode="61" endBytecode="61" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 32]</Message> </SourceLine> <SourceLine classname="ex.UCC_Sample" start="37" end="37" startBytecode="12" endBytecode="12" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="UCC_UNRELATED_COLLECTION_CONTENTS" priority="2" rank="17" abbrev="UCC" category="STYLE" instanceHash="28114c952bb7bd2d65df0fc9cee8e85c" instanceOccurrenceNum="2" instanceOccurrenceMax="2"> <ShortMessage>Method adds unrelated types to collection or array</ShortMessage> <LongMessage>Method UCC_Sample.java:[line 43] adds unrelated types to collection or array</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <SourceLine classname="ex.UCC_Sample" primary="true" start="43" end="43" startBytecode="20" endBytecode="20" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 43]</Message> </SourceLine> <SourceLine classname="ex.UCC_Sample" start="44" end="44" startBytecode="41" endBytecode="41" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 44]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="a969ed1f4d90e49efb6937a800d058a3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable files of method ex.UCC_Sample.bug1678805()</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="bug1678805" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="48" end="52" startBytecode="0" endBytecode="119" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.bug1678805()</Message> </Method> <String value="files"> <Message>Value files</Message> </String> <Type descriptor="[Ljava/io/File;"> <Message>Type java.io.File[]</Message> </Type> <SourceLine classname="ex.UCC_Sample" primary="true" start="48" end="48" startBytecode="1" endBytecode="1" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 48]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="5e9e4321e1c7b555fea6c0f23dbd0b2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable tm of method ex.UCC_Sample.test0()</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="test0" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="22" end="25" startBytecode="0" endBytecode="114" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.test0()</Message> </Method> <String value="tm"> <Message>Value tm</Message> </String> <Type descriptor="Ljava/util/TreeSet;"> <SourceLine classname="java.util.TreeSet" start="101" end="556" sourcefile="TreeSet.java" sourcepath="java/util/TreeSet.java"> <Message>At TreeSet.java:[lines 101-556]</Message> </SourceLine> <Message>Type java.util.TreeSet</Message> </Type> <SourceLine classname="ex.UCC_Sample" primary="true" start="22" end="22" startBytecode="4" endBytecode="4" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="ef938858c119d88dbb9cb9080f72d998" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.UCC_Sample.test3()</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="test3" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="42" end="45" startBytecode="0" endBytecode="129" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.test3()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.UCC_Sample" primary="true" start="42" end="42" startBytecode="4" endBytecode="4" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="24456201ddf54b0c13474627f193ddc2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.UCC_Sample.test3() seems to be useless</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="test3" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="42" end="45" startBytecode="0" endBytecode="129" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.test3()</Message> </Method> <SourceLine classname="ex.UCC_Sample" primary="true" start="45" end="45" startBytecode="47" endBytecode="47" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="125be6cdfef820a4a026bcf0568ac281" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.UCC_Sample.b1</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Field classname="ex.UCC_Sample" name="b1" signature="Lex/UCC_Sample$Bean1;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample.b1</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="55" end="55" startBytecode="1" endBytecode="1" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="a75273cd7e2adf894207c99b198d79c4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.UCC_Sample.b2</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Field classname="ex.UCC_Sample" name="b2" signature="Lex/UCC_Sample$Bean2;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample.b2</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="56" end="56" startBytecode="16" endBytecode="16" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="cdc5646356e1782e9cbe998de39ca5db" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.UCC_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Field classname="ex.UCC_Sample" name="listData" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample.listData</Message> </Field> <SourceLine classname="ex.UCC_Sample" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java" synthetic="true"> <Message>In UCC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="c960a5df5232c81c534182af5eceb399" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.UCC_Sample.test0() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="test0" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="22" end="25" startBytecode="0" endBytecode="114" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.test0()</Message> </Method> <SourceLine classname="ex.UCC_Sample" primary="true" start="22" end="22" startBytecode="7" endBytecode="7" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="f2df206edc7fbd85d49a0c3947e25349" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.UCC_Sample.test3() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.UCC_Sample" primary="true"> <SourceLine classname="ex.UCC_Sample" start="15" end="69" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 15-69]</Message> </SourceLine> <Message>In class ex.UCC_Sample</Message> </Class> <Method classname="ex.UCC_Sample" name="test3" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample" start="42" end="45" startBytecode="0" endBytecode="129" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"/> <Message>In method ex.UCC_Sample.test3()</Message> </Method> <SourceLine classname="ex.UCC_Sample" primary="true" start="42" end="42" startBytecode="7" endBytecode="7" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC_ANON" priority="3" rank="20" abbrev="SIC" category="PERFORMANCE" instanceHash="d33b7fe5af9d3498943181caf7465bb3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Could be refactored into a named static inner class</ShortMessage> <LongMessage>The class ex.UCC_Sample$1 could be refactored into a named _static_ inner class</LongMessage> <Class classname="ex.UCC_Sample$1" primary="true"> <SourceLine classname="ex.UCC_Sample$1" start="1" end="37" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[lines 1-37]</Message> </SourceLine> <Message>In class ex.UCC_Sample$1</Message> </Class> <SourceLine classname="ex.UCC_Sample$1" start="1" end="37" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java" synthetic="true"> <Message>At UCC_Sample.java:[lines 1-37]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="ad45bf6eb110b90875311c5578c6e9a8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.UCC_Sample$Bean1.data</LongMessage> <Class classname="ex.UCC_Sample$Bean1" primary="true"> <SourceLine classname="ex.UCC_Sample$Bean1" start="72" end="72" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 72]</Message> </SourceLine> <Message>In class ex.UCC_Sample$Bean1</Message> </Class> <Field classname="ex.UCC_Sample$Bean1" name="data" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Bean1" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Bean1.data</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="55" end="55" startBytecode="4" endBytecode="4" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_FIELD" priority="2" rank="12" abbrev="UwF" category="CORRECTNESS" instanceHash="2c34cddc62e5b758f4355951dea1cba2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten field</ShortMessage> <LongMessage>Unwritten field: ex.UCC_Sample$Bean2.data</LongMessage> <Class classname="ex.UCC_Sample$Bean2" primary="true"> <SourceLine classname="ex.UCC_Sample$Bean2" start="76" end="76" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 76]</Message> </SourceLine> <Message>In class ex.UCC_Sample$Bean2</Message> </Class> <Field classname="ex.UCC_Sample$Bean2" name="data" signature="Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Bean2" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Bean2.data</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="56" end="56" startBytecode="19" endBytecode="19" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 56]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="17" abbrev="UwF" category="STYLE" instanceHash="398b75617e4839e814858839e5e2e8f4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten public or protected field</ShortMessage> <LongMessage>Unwritten public or protected field: ex.UCC_Sample$Container.ts</LongMessage> <Class classname="ex.UCC_Sample$Container" primary="true"> <SourceLine classname="ex.UCC_Sample$Container" start="85" end="85" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 85]</Message> </SourceLine> <Message>In class ex.UCC_Sample$Container</Message> </Class> <Field classname="ex.UCC_Sample$Container" name="ts" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Container" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Container.ts</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="61" end="61" startBytecode="9" endBytecode="9" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="17" abbrev="UwF" category="STYLE" instanceHash="ed1258cfa07dddb12e36f1866efe4c54" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten public or protected field</ShortMessage> <LongMessage>Unwritten public or protected field: ex.UCC_Sample$Holder.ic</LongMessage> <Class classname="ex.UCC_Sample$Holder" primary="true"> <SourceLine classname="ex.UCC_Sample$Holder" start="80" end="80" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 80]</Message> </SourceLine> <Message>In class ex.UCC_Sample$Holder</Message> </Class> <Field classname="ex.UCC_Sample$Holder" name="ic" signature="Lex/UCC_Sample$Container;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Holder" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Holder.ic</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="61" end="61" startBytecode="6" endBytecode="6" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" priority="2" rank="17" abbrev="UwF" category="STYLE" instanceHash="f2707dec51d8e01d08bc2e1947ff417c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unwritten public or protected field</ShortMessage> <LongMessage>Unwritten public or protected field: ex.UCC_Sample$Holder.lc</LongMessage> <Class classname="ex.UCC_Sample$Holder" primary="true"> <SourceLine classname="ex.UCC_Sample$Holder" start="80" end="80" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 80]</Message> </SourceLine> <Message>In class ex.UCC_Sample$Holder</Message> </Class> <Field classname="ex.UCC_Sample$Holder" name="lc" signature="Lex/UCC_Sample$Container;" isStatic="false" primary="true"> <SourceLine classname="ex.UCC_Sample$Holder" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>In UCC_Sample.java</Message> </SourceLine> <Message>Field ex.UCC_Sample$Holder.lc</Message> </Field> <SourceLine classname="ex.UCC_Sample" primary="true" start="64" end="64" startBytecode="37" endBytecode="37" sourcefile="UCC_Sample.java" sourcepath="ex/UCC_Sample.java"> <Message>At UCC_Sample.java:[line 64]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="e136d78665f91c3f6c3a8620e7776dae" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.UCPM_Sample does not implement a toString method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java" synthetic="true"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="df66dbe53bd97ea79bef541b00fa0dbd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.UCPM_Sample.okIssue95(int) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="okIssue95" signature="(I)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="73" end="74" startBytecode="0" endBytecode="92" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.okIssue95(int)</Message> </Method> <SourceLine classname="ex.UCPM_Sample" primary="true" start="74" end="74" startBytecode="11" endBytecode="11" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 74]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="1a3c1eead81bea8ed48fcca7d924964d" instanceOccurrenceNum="0" instanceOccurrenceMax="6"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.UCPM_Sample.test(String) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="test" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="15" end="47" startBytecode="0" endBytecode="290" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.test(String)</Message> </Method> <SourceLine classname="ex.UCPM_Sample" primary="true" start="19" end="19" startBytecode="27" endBytecode="27" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="1a3c1eead81bea8ed48fcca7d924964d" instanceOccurrenceNum="1" instanceOccurrenceMax="6"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.UCPM_Sample.test(String) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="test" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="15" end="47" startBytecode="0" endBytecode="290" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.test(String)</Message> </Method> <SourceLine classname="ex.UCPM_Sample" primary="true" start="21" end="21" startBytecode="37" endBytecode="37" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 21]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="1a3c1eead81bea8ed48fcca7d924964d" instanceOccurrenceNum="2" instanceOccurrenceMax="6"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.UCPM_Sample.test(String) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="test" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="15" end="47" startBytecode="0" endBytecode="290" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.test(String)</Message> </Method> <SourceLine classname="ex.UCPM_Sample" primary="true" start="23" end="23" startBytecode="57" endBytecode="57" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="1a3c1eead81bea8ed48fcca7d924964d" instanceOccurrenceNum="3" instanceOccurrenceMax="6"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.UCPM_Sample.test(String) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="test" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="15" end="47" startBytecode="0" endBytecode="290" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.test(String)</Message> </Method> <SourceLine classname="ex.UCPM_Sample" primary="true" start="27" end="27" startBytecode="72" endBytecode="72" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="1a3c1eead81bea8ed48fcca7d924964d" instanceOccurrenceNum="4" instanceOccurrenceMax="6"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.UCPM_Sample.test(String) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="test" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="15" end="47" startBytecode="0" endBytecode="290" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.test(String)</Message> </Method> <SourceLine classname="ex.UCPM_Sample" primary="true" start="32" end="32" startBytecode="91" endBytecode="91" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="1a3c1eead81bea8ed48fcca7d924964d" instanceOccurrenceNum="5" instanceOccurrenceMax="6"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.UCPM_Sample.test(String) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="test" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="15" end="47" startBytecode="0" endBytecode="290" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.test(String)</Message> </Method> <SourceLine classname="ex.UCPM_Sample" primary="true" start="42" end="42" startBytecode="145" endBytecode="145" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" priority="2" rank="18" abbrev="UCPM" category="PERFORMANCE" instanceHash="1a3c1eead81bea8ed48fcca7d924964d" instanceOccurrenceNum="6" instanceOccurrenceMax="6"> <ShortMessage>Method passes constant String of length 1 to character overridden method</ShortMessage> <LongMessage>Method ex.UCPM_Sample.test(String) passes constant String of length 1 to character overridden method</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="test" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="15" end="47" startBytecode="0" endBytecode="290" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.test(String)</Message> </Method> <SourceLine classname="ex.UCPM_Sample" primary="true" start="47" end="47" startBytecode="166" endBytecode="166" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="98abe715a3c01ed755bf97714b1aca9f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable sb2 of method ex.UCPM_Sample.test(String)</LongMessage> <Class classname="ex.UCPM_Sample" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="3" end="80" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[lines 3-80]</Message> </SourceLine> <Message>In class ex.UCPM_Sample</Message> </Class> <Method classname="ex.UCPM_Sample" name="test" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.UCPM_Sample" start="15" end="47" startBytecode="0" endBytecode="290" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"/> <Message>In method ex.UCPM_Sample.test(String)</Message> </Method> <String value="sb2"> <Message>Value sb2</Message> </String> <Type descriptor="Ljava/lang/StringBuilder;"> <SourceLine classname="java.lang.StringBuilder" start="76" end="437" sourcefile="StringBuilder.java" sourcepath="java/lang/StringBuilder.java"> <Message>At StringBuilder.java:[lines 76-437]</Message> </SourceLine> <Message>Type StringBuilder</Message> </Type> <SourceLine classname="ex.UCPM_Sample" primary="true" start="25" end="25" startBytecode="65" endBytecode="65" sourcefile="UCPM_Sample.java" sourcepath="ex/UCPM_Sample.java"> <Message>At UCPM_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="1f4a2193eeafcb0d5da579352d44dcf9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.UEC_Sample.deal() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Method classname="ex.UEC_Sample" name="deal" signature="()Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" start="38" end="42" startBytecode="0" endBytecode="129" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"/> <Message>In method ex.UEC_Sample.deal()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.UEC_Sample" primary="true" start="39" end="39" startBytecode="18" endBytecode="18" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 39]</Message> </SourceLine> <SourceLine classname="ex.UEC_Sample" start="40" end="40" startBytecode="37" endBytecode="37" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at UEC_Sample.java:[line 40]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="ffa55ea9b40b01e6ade2a7356ede6963" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.UEC_Sample.eDeal() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Method classname="ex.UEC_Sample" name="eDeal" signature="()Ljava/util/EnumMap;" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" start="46" end="50" startBytecode="0" endBytecode="127" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"/> <Message>In method ex.UEC_Sample.eDeal()</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.UEC_Sample" primary="true" start="47" end="47" startBytecode="20" endBytecode="20" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 47]</Message> </SourceLine> <SourceLine classname="ex.UEC_Sample" start="48" end="48" startBytecode="37" endBytecode="37" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java" role="SOURCE_LINE_ANOTHER_INSTANCE"> <Message>Another occurrence at UEC_Sample.java:[line 48]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="8ac6887664c0e95ab7ebdd8bcc5e8370" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.UEC_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Field classname="ex.UEC_Sample" name="eWildSuites" signature="Ljava/util/EnumSet;" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>In UEC_Sample.java</Message> </SourceLine> <Message>Field ex.UEC_Sample.eWildSuites</Message> </Field> <SourceLine classname="ex.UEC_Sample" primary="true" start="20" end="20" startBytecode="21" endBytecode="21" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="a5470f38d7d14b23df2336780287e2fc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.UEC_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Field classname="ex.UEC_Sample" name="wildSuites" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>In UEC_Sample.java</Message> </SourceLine> <Message>Field ex.UEC_Sample.wildSuites</Message> </Field> <SourceLine classname="ex.UEC_Sample" primary="true" start="19" end="19" startBytecode="12" endBytecode="12" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="997bcc42d79d26e75383a2bb77c3eb2b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.UEC_Sample does not implement a toString method</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java" synthetic="true"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="d485db60af7c4cccce61a98593b3bc78" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable es of method ex.UEC_Sample.fpEnumsWithInf()</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Method classname="ex.UEC_Sample" name="fpEnumsWithInf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" start="70" end="74" startBytecode="0" endBytecode="124" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"/> <Message>In method ex.UEC_Sample.fpEnumsWithInf()</Message> </Method> <String value="es"> <Message>Value es</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.UEC_Sample" primary="true" start="70" end="70" startBytecode="4" endBytecode="4" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 70]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="ed365ae5e1fc5a407216a79680f7bc90" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.UEC_Sample.fpEnumsWithInf() seems to be useless</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Method classname="ex.UEC_Sample" name="fpEnumsWithInf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" start="70" end="74" startBytecode="0" endBytecode="124" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"/> <Message>In method ex.UEC_Sample.fpEnumsWithInf()</Message> </Method> <SourceLine classname="ex.UEC_Sample" primary="true" start="74" end="74" startBytecode="38" endBytecode="38" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 74]</Message> </SourceLine> </BugInstance> <BugInstance type="UEC_USE_ENUM_COLLECTIONS" priority="2" rank="18" abbrev="UEC" category="PERFORMANCE" instanceHash="83df3a138680e0cdf06cfa2f59f1f9c9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses an ordinary set or map with an enum class as the key</ShortMessage> <LongMessage>Class ex.UEC_Sample uses an ordinary set or map with an enum class as the key</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Method classname="ex.UEC_Sample" name="<init>" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" start="29" end="31" startBytecode="0" endBytecode="95" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"/> <Message>In method new ex.UEC_Sample()</Message> </Method> <SourceLine classname="ex.UEC_Sample" primary="true" start="30" end="30" startBytecode="31" endBytecode="31" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 30]</Message> </SourceLine> </BugInstance> <BugInstance type="UEC_USE_ENUM_COLLECTIONS" priority="2" rank="18" abbrev="UEC" category="PERFORMANCE" instanceHash="8b35fe387e6dd69d39ef3c089573b182" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class uses an ordinary set or map with an enum class as the key</ShortMessage> <LongMessage>Class ex.UEC_Sample uses an ordinary set or map with an enum class as the key</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Method classname="ex.UEC_Sample" name="deal" signature="()Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" start="38" end="42" startBytecode="0" endBytecode="129" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"/> <Message>In method ex.UEC_Sample.deal()</Message> </Method> <SourceLine classname="ex.UEC_Sample" primary="true" start="39" end="39" startBytecode="21" endBytecode="21" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 39]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="3" rank="20" abbrev="UrF" category="PERFORMANCE" instanceHash="6d657cf561dab4652a2b924ee0862033" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.UEC_Sample.eWildSuites</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Field classname="ex.UEC_Sample" name="eWildSuites" signature="Ljava/util/EnumSet;" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>In UEC_Sample.java</Message> </SourceLine> <Message>Field ex.UEC_Sample.eWildSuites</Message> </Field> <SourceLine classname="ex.UEC_Sample" primary="true" start="20" end="20" startBytecode="21" endBytecode="21" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="41dcb0703d40f4a7076074ae6ced41dc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.UEC_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Field classname="ex.UEC_Sample" name="eWildSuites" signature="Ljava/util/EnumSet;" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>In UEC_Sample.java</Message> </SourceLine> <Message>Field ex.UEC_Sample.eWildSuites</Message> </Field> <SourceLine classname="ex.UEC_Sample" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java" synthetic="true"> <Message>In UEC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="39d62b9fe7dcc68928c0344af741f2e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.UEC_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Field classname="ex.UEC_Sample" name="wildSuites" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>In UEC_Sample.java</Message> </SourceLine> <Message>Field ex.UEC_Sample.wildSuites</Message> </Field> <SourceLine classname="ex.UEC_Sample" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java" synthetic="true"> <Message>In UEC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="3a4eafc83a42e66a59c5848212b211d4" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.UEC_Sample.fpEnumsWithInf() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.UEC_Sample" primary="true"> <SourceLine classname="ex.UEC_Sample" start="19" end="74" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[lines 19-74]</Message> </SourceLine> <Message>In class ex.UEC_Sample</Message> </Class> <Method classname="ex.UEC_Sample" name="fpEnumsWithInf" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UEC_Sample" start="70" end="74" startBytecode="0" endBytecode="124" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"/> <Message>In method ex.UEC_Sample.fpEnumsWithInf()</Message> </Method> <SourceLine classname="ex.UEC_Sample" primary="true" start="70" end="70" startBytecode="7" endBytecode="7" sourcefile="UEC_Sample.java" sourcepath="ex/UEC_Sample.java"> <Message>At UEC_Sample.java:[line 70]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="16f562557f5a2dbefd51d384bbff04c0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.UMTP_Sample.getFoo() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.UMTP_Sample" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="5" end="42" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[lines 5-42]</Message> </SourceLine> <Message>In class ex.UMTP_Sample</Message> </Class> <Method classname="ex.UMTP_Sample" name="getFoo" signature="()Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="42" end="42" startBytecode="0" endBytecode="43" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"/> <Message>In method ex.UMTP_Sample.getFoo()</Message> </Method> <SourceLine classname="ex.UMTP_Sample" start="42" end="42" startBytecode="0" endBytecode="43" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java" synthetic="true"> <Message>At UMTP_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_STRING_TOSTRING" priority="3" rank="20" abbrev="Dm" category="PERFORMANCE" instanceHash="9c0bf97315d99e3ae80ccca5239e4fce" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes toString() method on a String</ShortMessage> <LongMessage>ex.UMTP_Sample.fpUseClass(Class) invokes toString() method on a String</LongMessage> <Class classname="ex.UMTP_Sample" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="5" end="42" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[lines 5-42]</Message> </SourceLine> <Message>In class ex.UMTP_Sample</Message> </Class> <Method classname="ex.UMTP_Sample" name="fpUseClass" signature="(Ljava/lang/Class;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="19" end="19" startBytecode="0" endBytecode="77" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"/> <Message>In method ex.UMTP_Sample.fpUseClass(Class)</Message> </Method> <SourceLine classname="ex.UMTP_Sample" primary="true" start="19" end="19" startBytecode="4" endBytecode="4" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="PSC_PRESIZE_COLLECTIONS" priority="2" rank="18" abbrev="PSC" category="PERFORMANCE" instanceHash="392f471091b605e363eda3732a7e3b1c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method does not presize the allocation of a collection</ShortMessage> <LongMessage>Method ex.UMTP_Sample.fpKVReverseMap(Map) does not presize the allocation of a collection</LongMessage> <Class classname="ex.UMTP_Sample" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="5" end="42" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[lines 5-42]</Message> </SourceLine> <Message>In class ex.UMTP_Sample</Message> </Class> <Method classname="ex.UMTP_Sample" name="fpKVReverseMap" signature="(Ljava/util/Map;)Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="27" end="32" startBytecode="0" endBytecode="220" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"/> <Message>In method ex.UMTP_Sample.fpKVReverseMap(Map)</Message> </Method> <SourceLine classname="ex.UMTP_Sample" primary="true" start="29" end="29" startBytecode="48" endBytecode="48" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="SPP_TOSTRING_ON_STRING" priority="2" rank="7" abbrev="SPP" category="CORRECTNESS" instanceHash="99489e5aab2e42c77b04fff8fcbf040f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method calls toString() on a String</ShortMessage> <LongMessage>Method ex.UMTP_Sample.fpUseClass(Class) calls toString() on a String</LongMessage> <Class classname="ex.UMTP_Sample" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="5" end="42" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[lines 5-42]</Message> </SourceLine> <Message>In class ex.UMTP_Sample</Message> </Class> <Method classname="ex.UMTP_Sample" name="fpUseClass" signature="(Ljava/lang/Class;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="19" end="19" startBytecode="0" endBytecode="77" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"/> <Message>In method ex.UMTP_Sample.fpUseClass(Class)</Message> </Method> <SourceLine classname="ex.UMTP_Sample" primary="true" start="19" end="19" startBytecode="4" endBytecode="4" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER" priority="2" rank="7" abbrev="UMTP" category="CORRECTNESS" instanceHash="3681fd1f36c13658af2c4011447d37e2" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method declares unbound method template parameter(s)</ShortMessage> <LongMessage>Method ex.UMTP_Sample.getT(String, int, Class) declares unbound method template parameter(s)</LongMessage> <Class classname="ex.UMTP_Sample" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="5" end="42" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[lines 5-42]</Message> </SourceLine> <Message>In class ex.UMTP_Sample</Message> </Class> <Method classname="ex.UMTP_Sample" name="getT" signature="(Ljava/lang/String;ILjava/lang/Class;)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="8" end="11" startBytecode="0" endBytecode="139" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"/> <Message>In method ex.UMTP_Sample.getT(String, int, Class)</Message> </Method> <String value="Template Parameter: T"> <Message>Value Template Parameter: T</Message> </String> <SourceLine classname="ex.UMTP_Sample" start="8" end="11" startBytecode="0" endBytecode="139" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java" synthetic="true"> <Message>At UMTP_Sample.java:[lines 8-11]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="9ac0e375a39934c123026bae85eb90e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.UMTP_Sample.fpKVReverseMap(Map) is never called</LongMessage> <Class classname="ex.UMTP_Sample" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="5" end="42" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[lines 5-42]</Message> </SourceLine> <Message>In class ex.UMTP_Sample</Message> </Class> <Method classname="ex.UMTP_Sample" name="fpKVReverseMap" signature="(Ljava/util/Map;)Ljava/util/Map;" isStatic="false" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="27" end="32" startBytecode="0" endBytecode="220" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"/> <Message>In method ex.UMTP_Sample.fpKVReverseMap(Map)</Message> </Method> <SourceLine classname="ex.UMTP_Sample" start="27" end="32" startBytecode="0" endBytecode="220" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java" synthetic="true"> <Message>At UMTP_Sample.java:[lines 27-32]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="1cdd04d4d2b7efd556cc88e4dd8d5634" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.UMTP_Sample.fpUseArray(Object[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.UMTP_Sample" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="5" end="42" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"> <Message>At UMTP_Sample.java:[lines 5-42]</Message> </SourceLine> <Message>In class ex.UMTP_Sample</Message> </Class> <Method classname="ex.UMTP_Sample" name="fpUseArray" signature="([Ljava/lang/Object;)Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.UMTP_Sample" start="23" end="23" startBytecode="0" endBytecode="58" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java"/> <Message>In method ex.UMTP_Sample.fpUseArray(Object[])</Message> </Method> <SourceLine classname="ex.UMTP_Sample" start="23" end="23" startBytecode="0" endBytecode="58" sourcefile="UMTP_Sample.java" sourcepath="ex/UMTP_Sample.java" synthetic="true"> <Message>At UMTP_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="64b81c6de5dcdbb7ed85a606d7613b0e" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of s, which is known to be non-null in ex.UNNC_Sample.testNegANEWARRAY()</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testNegANEWARRAY" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="33" end="39" startBytecode="0" endBytecode="101" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testNegANEWARRAY()</Message> </Method> <LocalVariable name="s" register="1" pc="6" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from s</Message> </LocalVariable> <SourceLine classname="ex.UNNC_Sample" primary="true" start="34" end="34" startBytecode="7" endBytecode="7" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at UNNC_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="56148cc4f8711e0462ff1ff157e604be" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of s, which is known to be non-null in ex.UNNC_Sample.testNegMULTIANEWARRAY()</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testNegMULTIANEWARRAY" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="49" end="55" startBytecode="0" endBytecode="103" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testNegMULTIANEWARRAY()</Message> </Method> <LocalVariable name="s" register="1" pc="8" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from s</Message> </LocalVariable> <SourceLine classname="ex.UNNC_Sample" primary="true" start="50" end="50" startBytecode="9" endBytecode="9" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at UNNC_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="821c78beae8a88106276a13ffdd452b7" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of sample, which is known to be non-null in ex.UNNC_Sample.testNegNEW()</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testNegNEW" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="16" end="23" startBytecode="0" endBytecode="103" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testNegNEW()</Message> </Method> <LocalVariable name="sample" register="1" pc="8" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from sample</Message> </LocalVariable> <Method classname="ex.UNNC_Sample" name="<init>" signature="()V" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="ex.UNNC_Sample" start="5" end="5" startBytecode="0" endBytecode="46" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>Return value of new ex.UNNC_Sample() of type void</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="18" end="18" startBytecode="9" endBytecode="9" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at UNNC_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="69e4d88b0af88fec1ec9109b1684975f" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of s, which is known to be non-null in ex.UNNC_Sample.testPosANEWARAY()</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testPosANEWARAY" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="26" end="30" startBytecode="0" endBytecode="96" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testPosANEWARAY()</Message> </Method> <LocalVariable name="s" register="1" pc="6" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from s</Message> </LocalVariable> <SourceLine classname="ex.UNNC_Sample" primary="true" start="27" end="27" startBytecode="7" endBytecode="7" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at UNNC_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="5b6948729e8dd8556d3df3081837f78c" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of s, which is known to be non-null in ex.UNNC_Sample.testPosMULTIANEWARRAY()</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testPosMULTIANEWARRAY" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="42" end="46" startBytecode="0" endBytecode="98" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testPosMULTIANEWARRAY()</Message> </Method> <LocalVariable name="s" register="1" pc="8" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from s</Message> </LocalVariable> <SourceLine classname="ex.UNNC_Sample" primary="true" start="43" end="43" startBytecode="9" endBytecode="9" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at UNNC_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="a28e63981276b314a710387d107a7a9b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of sample, which is known to be non-null in ex.UNNC_Sample.testPosNEW()</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testPosNEW" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="8" end="13" startBytecode="0" endBytecode="98" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testPosNEW()</Message> </Method> <LocalVariable name="sample" register="1" pc="8" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from sample</Message> </LocalVariable> <Method classname="ex.UNNC_Sample" name="<init>" signature="()V" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="ex.UNNC_Sample" start="5" end="5" startBytecode="0" endBytecode="46" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>Return value of new ex.UNNC_Sample() of type void</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="10" end="10" startBytecode="9" endBytecode="9" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at UNNC_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="1" rank="15" abbrev="UC" category="STYLE" instanceHash="22dfb10e06cc8befbe39030736b6bd9d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.UNNC_Sample.testFPFinally() seems to be useless</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testFPFinally" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="58" end="67" startBytecode="0" endBytecode="171" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testFPFinally()</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="67" end="67" startBytecode="41" endBytecode="41" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[line 67]</Message> </SourceLine> </BugInstance> <BugInstance type="UNNC_UNNECESSARY_NEW_NULL_CHECK" priority="2" rank="7" abbrev="UNNC" category="CORRECTNESS" instanceHash="4a7952720be31632c5d3f7a09ccddfac" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks the result of a new allocation</ShortMessage> <LongMessage>Method ex.UNNC_Sample.testNegANEWARRAY() checks the result of a new allocation</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testNegANEWARRAY" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="33" end="39" startBytecode="0" endBytecode="101" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testNegANEWARRAY()</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="34" end="34" startBytecode="7" endBytecode="7" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[line 34]</Message> </SourceLine> </BugInstance> <BugInstance type="UNNC_UNNECESSARY_NEW_NULL_CHECK" priority="2" rank="7" abbrev="UNNC" category="CORRECTNESS" instanceHash="aee47d8f306be637d1352e8b13c7960a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks the result of a new allocation</ShortMessage> <LongMessage>Method ex.UNNC_Sample.testNegMULTIANEWARRAY() checks the result of a new allocation</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testNegMULTIANEWARRAY" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="49" end="55" startBytecode="0" endBytecode="103" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testNegMULTIANEWARRAY()</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="50" end="50" startBytecode="9" endBytecode="9" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="UNNC_UNNECESSARY_NEW_NULL_CHECK" priority="2" rank="7" abbrev="UNNC" category="CORRECTNESS" instanceHash="ff146221a259baf48719be59297c8af3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks the result of a new allocation</ShortMessage> <LongMessage>Method ex.UNNC_Sample.testNegNEW() checks the result of a new allocation</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testNegNEW" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="16" end="23" startBytecode="0" endBytecode="103" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testNegNEW()</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="18" end="18" startBytecode="9" endBytecode="9" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="UNNC_UNNECESSARY_NEW_NULL_CHECK" priority="2" rank="7" abbrev="UNNC" category="CORRECTNESS" instanceHash="30147f4a2e563e3420bd5bca7f5916db" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks the result of a new allocation</ShortMessage> <LongMessage>Method ex.UNNC_Sample.testPosANEWARAY() checks the result of a new allocation</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testPosANEWARAY" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="26" end="30" startBytecode="0" endBytecode="96" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testPosANEWARAY()</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="27" end="27" startBytecode="7" endBytecode="7" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="UNNC_UNNECESSARY_NEW_NULL_CHECK" priority="2" rank="7" abbrev="UNNC" category="CORRECTNESS" instanceHash="71aeb731808180a278a044b0a2b113fc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks the result of a new allocation</ShortMessage> <LongMessage>Method ex.UNNC_Sample.testPosMULTIANEWARRAY() checks the result of a new allocation</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testPosMULTIANEWARRAY" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="42" end="46" startBytecode="0" endBytecode="98" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testPosMULTIANEWARRAY()</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="43" end="43" startBytecode="9" endBytecode="9" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="UNNC_UNNECESSARY_NEW_NULL_CHECK" priority="2" rank="7" abbrev="UNNC" category="CORRECTNESS" instanceHash="f6e99e3f7927005672c8fbb72b59dc09" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method checks the result of a new allocation</ShortMessage> <LongMessage>Method ex.UNNC_Sample.testPosNEW() checks the result of a new allocation</LongMessage> <Class classname="ex.UNNC_Sample" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="5" end="75" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[lines 5-75]</Message> </SourceLine> <Message>In class ex.UNNC_Sample</Message> </Class> <Method classname="ex.UNNC_Sample" name="testPosNEW" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.UNNC_Sample" start="8" end="13" startBytecode="0" endBytecode="98" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"/> <Message>In method ex.UNNC_Sample.testPosNEW()</Message> </Method> <SourceLine classname="ex.UNNC_Sample" primary="true" start="10" end="10" startBytecode="9" endBytecode="9" sourcefile="UNNC_Sample.java" sourcepath="ex/UNNC_Sample.java"> <Message>At UNNC_Sample.java:[line 10]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="bc71a059c2f3823100bab36dbd5748e9" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to c in new ex.UP_Sample(int, double, float, char)</LongMessage> <Class classname="ex.UP_Sample" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="46" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"> <Message>At UP_Sample.java:[lines 9-46]</Message> </SourceLine> <Message>In class ex.UP_Sample</Message> </Class> <Method classname="ex.UP_Sample" name="<init>" signature="(IDFC)V" isStatic="false" primary="true"> <SourceLine classname="ex.UP_Sample" start="32" end="38" startBytecode="0" endBytecode="13" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"/> <Message>In method new ex.UP_Sample(int, double, float, char)</Message> </Method> <LocalVariable name="c" register="5" pc="20" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named c</Message> </LocalVariable> <SourceLine classname="ex.UP_Sample" primary="true" start="37" end="37" startBytecode="18" endBytecode="18" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"> <Message>At UP_Sample.java:[line 37]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="c"/> </BugInstance> <BugInstance type="SE_NO_SERIALVERSIONID" priority="3" rank="19" abbrev="SnVI" category="BAD_PRACTICE" instanceHash="7afa8480f45805d2d9b2c712a664f526" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class is Serializable, but doesn't define serialVersionUID</ShortMessage> <LongMessage>ex.UP_Sample is Serializable; consider declaring a serialVersionUID</LongMessage> <Class classname="ex.UP_Sample" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="46" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"> <Message>At UP_Sample.java:[lines 9-46]</Message> </SourceLine> <Message>In class ex.UP_Sample</Message> </Class> <SourceLine classname="ex.UP_Sample" start="9" end="46" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java" synthetic="true"> <Message>At UP_Sample.java:[lines 9-46]</Message> </SourceLine> </BugInstance> <BugInstance type="UPM_UNCALLED_PRIVATE_METHOD" priority="3" rank="20" abbrev="UPM" category="PERFORMANCE" instanceHash="f62b6fbc678c9cf440c7e7247d6d38a3" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Private method is never called</ShortMessage> <LongMessage>Private method ex.UP_Sample.testUP1(int, double, float, char) is never called</LongMessage> <Class classname="ex.UP_Sample" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="46" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"> <Message>At UP_Sample.java:[lines 9-46]</Message> </SourceLine> <Message>In class ex.UP_Sample</Message> </Class> <Method classname="ex.UP_Sample" name="testUP1" signature="(IDFC)I" isStatic="false" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="13" startBytecode="0" endBytecode="109" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"/> <Message>In method ex.UP_Sample.testUP1(int, double, float, char)</Message> </Method> <SourceLine classname="ex.UP_Sample" start="9" end="13" startBytecode="0" endBytecode="109" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java" synthetic="true"> <Message>At UP_Sample.java:[lines 9-13]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="2473d40eb43fa440370325b0afdbe53b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.UP_Sample.testUP1(int, double, float, char) has unused parameters</LongMessage> <Class classname="ex.UP_Sample" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="46" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"> <Message>At UP_Sample.java:[lines 9-46]</Message> </SourceLine> <Message>In class ex.UP_Sample</Message> </Class> <Method classname="ex.UP_Sample" name="testUP1" signature="(IDFC)I" isStatic="false" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="13" startBytecode="0" endBytecode="109" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"/> <Message>In method ex.UP_Sample.testUP1(int, double, float, char)</Message> </Method> <String value="Parameter 2: d"> <Message>Value Parameter 2: d</Message> </String> <SourceLine classname="ex.UP_Sample" start="9" end="13" startBytecode="0" endBytecode="109" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java" synthetic="true"> <Message>At UP_Sample.java:[lines 9-13]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="35a14b53c604252a471b8a62beda7753" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.UP_Sample.testUP1(int, double, float, char) has unused parameters</LongMessage> <Class classname="ex.UP_Sample" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="46" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"> <Message>At UP_Sample.java:[lines 9-46]</Message> </SourceLine> <Message>In class ex.UP_Sample</Message> </Class> <Method classname="ex.UP_Sample" name="testUP1" signature="(IDFC)I" isStatic="false" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="13" startBytecode="0" endBytecode="109" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"/> <Message>In method ex.UP_Sample.testUP1(int, double, float, char)</Message> </Method> <String value="Parameter 4: c"> <Message>Value Parameter 4: c</Message> </String> <SourceLine classname="ex.UP_Sample" start="9" end="13" startBytecode="0" endBytecode="109" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java" synthetic="true"> <Message>At UP_Sample.java:[lines 9-13]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="3236910f92d2f23e496f5ea2c15ad400" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.UP_Sample.testUP2(int, double, float, char) has unused parameters</LongMessage> <Class classname="ex.UP_Sample" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="46" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"> <Message>At UP_Sample.java:[lines 9-46]</Message> </SourceLine> <Message>In class ex.UP_Sample</Message> </Class> <Method classname="ex.UP_Sample" name="testUP2" signature="(IDFC)I" isStatic="true" primary="true"> <SourceLine classname="ex.UP_Sample" start="17" end="21" startBytecode="0" endBytecode="98" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"/> <Message>In method ex.UP_Sample.testUP2(int, double, float, char)</Message> </Method> <String value="Parameter 2: d"> <Message>Value Parameter 2: d</Message> </String> <SourceLine classname="ex.UP_Sample" start="17" end="21" startBytecode="0" endBytecode="98" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java" synthetic="true"> <Message>At UP_Sample.java:[lines 17-21]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="9d00f5eee88ba968567151e9b62c57ef" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.UP_Sample.testUP2(int, double, float, char) has unused parameters</LongMessage> <Class classname="ex.UP_Sample" primary="true"> <SourceLine classname="ex.UP_Sample" start="9" end="46" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"> <Message>At UP_Sample.java:[lines 9-46]</Message> </SourceLine> <Message>In class ex.UP_Sample</Message> </Class> <Method classname="ex.UP_Sample" name="testUP2" signature="(IDFC)I" isStatic="true" primary="true"> <SourceLine classname="ex.UP_Sample" start="17" end="21" startBytecode="0" endBytecode="98" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java"/> <Message>In method ex.UP_Sample.testUP2(int, double, float, char)</Message> </Method> <String value="Parameter 4: c"> <Message>Value Parameter 4: c</Message> </String> <SourceLine classname="ex.UP_Sample" start="17" end="21" startBytecode="0" endBytecode="98" sourcefile="UP_Sample.java" sourcepath="ex/UP_Sample.java" synthetic="true"> <Message>At UP_Sample.java:[lines 17-21]</Message> </SourceLine> </BugInstance> <BugInstance type="DM_NUMBER_CTOR" priority="2" rank="18" abbrev="Bx" category="PERFORMANCE" instanceHash="a5171afdb5b7282e206b9d2020323720" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method invokes inefficient Number constructor; use static valueOf instead</ShortMessage> <LongMessage>ex.URV_Sample.getInheritedInfo(boolean) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead</LongMessage> <Class classname="ex.URV_Sample" primary="true"> <SourceLine classname="ex.URV_Sample" start="6" end="26" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.URV_Sample</Message> </Class> <Method classname="ex.URV_Sample" name="getInheritedInfo" signature="(Z)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.URV_Sample" start="23" end="26" startBytecode="0" endBytecode="90" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"/> <Message>In method ex.URV_Sample.getInheritedInfo(boolean)</Message> </Method> <Method classname="java.lang.Integer" name="<init>" signature="(I)V" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.lang.Integer" start="849" end="851" startBytecode="0" endBytecode="41" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Called method new Integer(int)</Message> </Method> <Method classname="java.lang.Integer" name="valueOf" signature="(I)Ljava/lang/Integer;" isStatic="true" role="SHOULD_CALL"> <SourceLine classname="java.lang.Integer" start="830" end="832" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Should call Integer.valueOf(int) instead</Message> </Method> <SourceLine classname="ex.URV_Sample" primary="true" start="24" end="24" startBytecode="9" endBytecode="9" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="URV_CHANGE_RETURN_TYPE" priority="2" rank="17" abbrev="URV" category="STYLE" instanceHash="a1961cec71762db08257de95f2ab98bc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns more specific type of object than declared</ShortMessage> <LongMessage>Method ex.URV_Sample.getASet(boolean) returns more specific type of object than declared</LongMessage> <Class classname="ex.URV_Sample" primary="true"> <SourceLine classname="ex.URV_Sample" start="6" end="26" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.URV_Sample</Message> </Class> <Method classname="ex.URV_Sample" name="getASet" signature="(Z)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.URV_Sample" start="8" end="11" startBytecode="0" endBytecode="88" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"/> <Message>In method ex.URV_Sample.getASet(boolean)</Message> </Method> <String value="java.lang.Cloneable"> <Message>Value java.lang.Cloneable</Message> </String> <SourceLine classname="ex.URV_Sample" primary="true" start="9" end="9" startBytecode="11" endBytecode="11" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[line 9]</Message> </SourceLine> <SourceLine classname="ex.URV_Sample" start="11" end="11" startBytecode="19" endBytecode="19" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="URV_INHERITED_METHOD_WITH_RELATED_TYPES" priority="2" rank="17" abbrev="URV" category="STYLE" instanceHash="7ef0ea632387474f81bcd7b99547c2ec" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Inherited method returns more specific type of object than declared</ShortMessage> <LongMessage>Inherited method ex.URV_Sample.getInheritedInfo(boolean) returns more specific type of object than declared</LongMessage> <Class classname="ex.URV_Sample" primary="true"> <SourceLine classname="ex.URV_Sample" start="6" end="26" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.URV_Sample</Message> </Class> <Method classname="ex.URV_Sample" name="getInheritedInfo" signature="(Z)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.URV_Sample" start="23" end="26" startBytecode="0" endBytecode="90" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"/> <Message>In method ex.URV_Sample.getInheritedInfo(boolean)</Message> </Method> <String value="java.lang.Comparable"> <Message>Value java.lang.Comparable</Message> </String> <SourceLine classname="ex.URV_Sample" primary="true" start="26" end="26" startBytecode="21" endBytecode="21" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[line 26]</Message> </SourceLine> <SourceLine classname="ex.URV_Sample" start="24" end="24" startBytecode="12" endBytecode="12" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[line 24]</Message> </SourceLine> </BugInstance> <BugInstance type="URV_UNRELATED_RETURN_VALUES" priority="2" rank="17" abbrev="URV" category="STYLE" instanceHash="764df6ea0f3e750261c69872424f6f07" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method returns different types of unrelated Objects</ShortMessage> <LongMessage>Method ex.URV_Sample.getInfo(boolean) returns different types of unrelated Objects</LongMessage> <Class classname="ex.URV_Sample" primary="true"> <SourceLine classname="ex.URV_Sample" start="6" end="26" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[lines 6-26]</Message> </SourceLine> <Message>In class ex.URV_Sample</Message> </Class> <Method classname="ex.URV_Sample" name="getInfo" signature="(Z)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.URV_Sample" start="15" end="18" startBytecode="0" endBytecode="80" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"/> <Message>In method ex.URV_Sample.getInfo(boolean)</Message> </Method> <SourceLine classname="ex.URV_Sample" primary="true" start="16" end="16" startBytecode="8" endBytecode="8" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[line 16]</Message> </SourceLine> <SourceLine classname="ex.URV_Sample" start="18" end="18" startBytecode="11" endBytecode="11" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="c97c46d5757f4718e32028c5d46c6ef8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.URV_Super.getInheritedInfo(boolean) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.URV_Super" primary="true"> <SourceLine classname="ex.URV_Super" start="30" end="32" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"> <Message>At URV_Sample.java:[lines 30-32]</Message> </SourceLine> <Message>In class ex.URV_Super</Message> </Class> <Method classname="ex.URV_Super" name="getInheritedInfo" signature="(Z)Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.URV_Super" start="32" end="32" startBytecode="0" endBytecode="53" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java"/> <Message>In method ex.URV_Super.getInheritedInfo(boolean)</Message> </Method> <SourceLine classname="ex.URV_Super" start="32" end="32" startBytecode="0" endBytecode="53" sourcefile="URV_Sample.java" sourcepath="ex/URV_Sample.java" synthetic="true"> <Message>At URV_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="db0b033afa1dfd15bc6671a28648645e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.USBR_Sample.fpReturnException(String) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.USBR_Sample" primary="true"> <SourceLine classname="ex.USBR_Sample" start="3" end="44" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[lines 3-44]</Message> </SourceLine> <Message>In class ex.USBR_Sample</Message> </Class> <Method classname="ex.USBR_Sample" name="fpReturnException" signature="(Ljava/lang/String;)Ljava/lang/Exception;" isStatic="false" primary="true"> <SourceLine classname="ex.USBR_Sample" start="28" end="31" startBytecode="0" endBytecode="113" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"/> <Message>In method ex.USBR_Sample.fpReturnException(String)</Message> </Method> <SourceLine classname="ex.USBR_Sample" start="28" end="31" startBytecode="0" endBytecode="113" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java" synthetic="true"> <Message>At USBR_Sample.java:[lines 28-31]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="567dcacedddd5c69277dd58a55d912af" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to i in ex.USBR_Sample.fpReturnException(String)</LongMessage> <Class classname="ex.USBR_Sample" primary="true"> <SourceLine classname="ex.USBR_Sample" start="3" end="44" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[lines 3-44]</Message> </SourceLine> <Message>In class ex.USBR_Sample</Message> </Class> <Method classname="ex.USBR_Sample" name="fpReturnException" signature="(Ljava/lang/String;)Ljava/lang/Exception;" isStatic="false" primary="true"> <SourceLine classname="ex.USBR_Sample" start="28" end="31" startBytecode="0" endBytecode="7" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"/> <Message>In method ex.USBR_Sample.fpReturnException(String)</Message> </Method> <LocalVariable name="i" register="2" pc="5" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named i</Message> </LocalVariable> <SourceLine classname="ex.USBR_Sample" primary="true" start="28" end="28" startBytecode="4" endBytecode="4" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[line 28]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.BASE_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="i"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="IL_INFINITE_RECURSIVE_LOOP" priority="1" rank="9" abbrev="IL" category="CORRECTNESS" instanceHash="5a99ba18741af4e2e0f647d2c096c6ee" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="674"> <ShortMessage>An apparent infinite recursive loop</ShortMessage> <LongMessage>There is an apparent infinite recursive loop in ex.USBR_Sample.fpOrEquals(boolean)</LongMessage> <Class classname="ex.USBR_Sample" primary="true"> <SourceLine classname="ex.USBR_Sample" start="3" end="44" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[lines 3-44]</Message> </SourceLine> <Message>In class ex.USBR_Sample</Message> </Class> <Method classname="ex.USBR_Sample" name="fpOrEquals" signature="(Z)Z" isStatic="false" primary="true"> <SourceLine classname="ex.USBR_Sample" start="43" end="44" startBytecode="0" endBytecode="65" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"/> <Message>In method ex.USBR_Sample.fpOrEquals(boolean)</Message> </Method> <SourceLine classname="ex.USBR_Sample" primary="true" start="43" end="43" startBytecode="3" endBytecode="3" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="bd7a254d72f2e4e0a9f2d0dbabf64d9f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.USBR_Sample.dontReport(int) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.USBR_Sample" primary="true"> <SourceLine classname="ex.USBR_Sample" start="3" end="44" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[lines 3-44]</Message> </SourceLine> <Message>In class ex.USBR_Sample</Message> </Class> <Method classname="ex.USBR_Sample" name="dontReport" signature="(I)I" isStatic="false" primary="true"> <SourceLine classname="ex.USBR_Sample" start="18" end="23" startBytecode="0" endBytecode="135" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"/> <Message>In method ex.USBR_Sample.dontReport(int)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.USBR_Sample" start="18" end="23" startBytecode="0" endBytecode="135" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java" synthetic="true"> <Message>At USBR_Sample.java:[lines 18-23]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="cd87e76fe71f791beb2896ab4f31100c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.USBR_Sample.fpOrEquals(boolean) is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.USBR_Sample" primary="true"> <SourceLine classname="ex.USBR_Sample" start="3" end="44" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[lines 3-44]</Message> </SourceLine> <Message>In class ex.USBR_Sample</Message> </Class> <Method classname="ex.USBR_Sample" name="fpOrEquals" signature="(Z)Z" isStatic="false" primary="true"> <SourceLine classname="ex.USBR_Sample" start="43" end="44" startBytecode="0" endBytecode="65" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"/> <Message>In method ex.USBR_Sample.fpOrEquals(boolean)</Message> </Method> <String value="- Method declared public but could be declared private"> <Message>Value - Method declared public but could be declared private</Message> </String> <SourceLine classname="ex.USBR_Sample" start="43" end="44" startBytecode="0" endBytecode="65" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java" synthetic="true"> <Message>At USBR_Sample.java:[lines 43-44]</Message> </SourceLine> </BugInstance> <BugInstance type="TR_TAIL_RECURSION" priority="2" rank="18" abbrev="TR" category="PERFORMANCE" instanceHash="34512c346eaccfaac460b9f88d65dd33" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method employs tail recursion</ShortMessage> <LongMessage>Method ex.USBR_Sample.fpOrEquals(boolean) employs tail recursion</LongMessage> <Class classname="ex.USBR_Sample" primary="true"> <SourceLine classname="ex.USBR_Sample" start="3" end="44" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[lines 3-44]</Message> </SourceLine> <Message>In class ex.USBR_Sample</Message> </Class> <Method classname="ex.USBR_Sample" name="fpOrEquals" signature="(Z)Z" isStatic="false" primary="true"> <SourceLine classname="ex.USBR_Sample" start="43" end="44" startBytecode="0" endBytecode="65" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"/> <Message>In method ex.USBR_Sample.fpOrEquals(boolean)</Message> </Method> <SourceLine classname="ex.USBR_Sample" primary="true" start="43" end="43" startBytecode="3" endBytecode="3" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[line 43]</Message> </SourceLine> </BugInstance> <BugInstance type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" priority="2" rank="17" abbrev="USBR" category="STYLE" instanceHash="1d48f3c71a6a4e97a9b3f8504f71aefe" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method stores return result in local before immediately returning it</ShortMessage> <LongMessage>Method ex.USBR_Sample.addEm(String) stores return result in local before immediately returning it</LongMessage> <Class classname="ex.USBR_Sample" primary="true"> <SourceLine classname="ex.USBR_Sample" start="3" end="44" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[lines 3-44]</Message> </SourceLine> <Message>In class ex.USBR_Sample</Message> </Class> <Method classname="ex.USBR_Sample" name="addEm" signature="(Ljava/lang/String;)I" isStatic="false" primary="true"> <SourceLine classname="ex.USBR_Sample" start="5" end="12" startBytecode="0" endBytecode="203" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"/> <Message>In method ex.USBR_Sample.addEm(String)</Message> </Method> <SourceLine classname="ex.USBR_Sample" primary="true" start="12" end="12" startBytecode="55" endBytecode="55" sourcefile="USBR_Sample.java" sourcepath="ex/USBR_Sample.java"> <Message>At USBR_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="9e767d8c06d77028960fec0e60229969" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.USFW1_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.USFW1_Sample" primary="true"> <SourceLine classname="ex.USFW1_Sample" start="20" end="26" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 20-26]</Message> </SourceLine> <Message>In class ex.USFW1_Sample</Message> </Class> <Field classname="ex.USFW1_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USFW1_Sample" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>In USFW_Sample.java</Message> </SourceLine> <Message>Field ex.USFW1_Sample.s</Message> </Field> <SourceLine classname="ex.USFW1_Sample" primary="true" start="25" end="25" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="25a0a8b1bd31a74f8513ddcb59615c5d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.USFW1_Sample does not implement a toString method</LongMessage> <Class classname="ex.USFW1_Sample" primary="true"> <SourceLine classname="ex.USFW1_Sample" start="20" end="26" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 20-26]</Message> </SourceLine> <Message>In class ex.USFW1_Sample</Message> </Class> <SourceLine classname="ex.USFW1_Sample" start="20" end="26" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java" synthetic="true"> <Message>At USFW_Sample.java:[lines 20-26]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="4cc611aacd6b9ee4fcb574928293191a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.USFW1_Sample.s</LongMessage> <Class classname="ex.USFW1_Sample" primary="true"> <SourceLine classname="ex.USFW1_Sample" start="20" end="26" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 20-26]</Message> </SourceLine> <Message>In class ex.USFW1_Sample</Message> </Class> <Field classname="ex.USFW1_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USFW1_Sample" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>In USFW_Sample.java</Message> </SourceLine> <Message>Field ex.USFW1_Sample.s</Message> </Field> <SourceLine classname="ex.USFW1_Sample" primary="true" start="25" end="25" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES" priority="2" rank="7" abbrev="USFW" category="CORRECTNESS" instanceHash="edbf8746421505d6559ef50382e55f1d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method of Singleton class writes to a field in an unsynchronized manner</ShortMessage> <LongMessage>Method ex.USFW1_Sample.writeToField() of Singleton class writes to a field in an unsynchronized manner</LongMessage> <Class classname="ex.USFW1_Sample" primary="true"> <SourceLine classname="ex.USFW1_Sample" start="20" end="26" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 20-26]</Message> </SourceLine> <Message>In class ex.USFW1_Sample</Message> </Class> <Method classname="ex.USFW1_Sample" name="writeToField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.USFW1_Sample" start="25" end="26" startBytecode="0" endBytecode="52" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"/> <Message>In method ex.USFW1_Sample.writeToField()</Message> </Method> <SourceLine classname="ex.USFW1_Sample" primary="true" start="25" end="25" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="83348d2708792237c605d793cc0321e1" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.USFW2_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.USFW2_Sample" primary="true"> <SourceLine classname="ex.USFW2_Sample" start="31" end="37" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 31-37]</Message> </SourceLine> <Message>In class ex.USFW2_Sample</Message> </Class> <Field classname="ex.USFW2_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USFW2_Sample" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>In USFW_Sample.java</Message> </SourceLine> <Message>Field ex.USFW2_Sample.s</Message> </Field> <SourceLine classname="ex.USFW2_Sample" primary="true" start="36" end="36" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="a26cce3513c59e0c213d914690f83f9a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.USFW2_Sample does not implement a toString method</LongMessage> <Class classname="ex.USFW2_Sample" primary="true"> <SourceLine classname="ex.USFW2_Sample" start="31" end="37" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 31-37]</Message> </SourceLine> <Message>In class ex.USFW2_Sample</Message> </Class> <SourceLine classname="ex.USFW2_Sample" start="31" end="37" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java" synthetic="true"> <Message>At USFW_Sample.java:[lines 31-37]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="4d684a532ed3f97c26f1ca65e1653c0f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.USFW2_Sample.s</LongMessage> <Class classname="ex.USFW2_Sample" primary="true"> <SourceLine classname="ex.USFW2_Sample" start="31" end="37" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 31-37]</Message> </SourceLine> <Message>In class ex.USFW2_Sample</Message> </Class> <Field classname="ex.USFW2_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USFW2_Sample" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>In USFW_Sample.java</Message> </SourceLine> <Message>Field ex.USFW2_Sample.s</Message> </Field> <SourceLine classname="ex.USFW2_Sample" primary="true" start="36" end="36" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES" priority="2" rank="7" abbrev="USFW" category="CORRECTNESS" instanceHash="239131246292c4131c691fcb6362cb6f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method of Singleton class writes to a field in an unsynchronized manner</ShortMessage> <LongMessage>Method ex.USFW2_Sample.writeToField() of Singleton class writes to a field in an unsynchronized manner</LongMessage> <Class classname="ex.USFW2_Sample" primary="true"> <SourceLine classname="ex.USFW2_Sample" start="31" end="37" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 31-37]</Message> </SourceLine> <Message>In class ex.USFW2_Sample</Message> </Class> <Method classname="ex.USFW2_Sample" name="writeToField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.USFW2_Sample" start="36" end="37" startBytecode="0" endBytecode="52" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"/> <Message>In method ex.USFW2_Sample.writeToField()</Message> </Method> <SourceLine classname="ex.USFW2_Sample" primary="true" start="36" end="36" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 36]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="4ca06d8655209ed0d0778873fdf9b05d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.USFW3_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.USFW3_Sample" primary="true"> <SourceLine classname="ex.USFW3_Sample" start="42" end="48" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 42-48]</Message> </SourceLine> <Message>In class ex.USFW3_Sample</Message> </Class> <Field classname="ex.USFW3_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USFW3_Sample" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>In USFW_Sample.java</Message> </SourceLine> <Message>Field ex.USFW3_Sample.s</Message> </Field> <SourceLine classname="ex.USFW3_Sample" primary="true" start="47" end="47" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="9fabc37cef623d0d4e7e9bfd8ec3553e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.USFW3_Sample does not implement a toString method</LongMessage> <Class classname="ex.USFW3_Sample" primary="true"> <SourceLine classname="ex.USFW3_Sample" start="42" end="48" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 42-48]</Message> </SourceLine> <Message>In class ex.USFW3_Sample</Message> </Class> <SourceLine classname="ex.USFW3_Sample" start="42" end="48" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java" synthetic="true"> <Message>At USFW_Sample.java:[lines 42-48]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="86cde8e52b00c0621351ad0d2186f36" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.USFW3_Sample.s</LongMessage> <Class classname="ex.USFW3_Sample" primary="true"> <SourceLine classname="ex.USFW3_Sample" start="42" end="48" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 42-48]</Message> </SourceLine> <Message>In class ex.USFW3_Sample</Message> </Class> <Field classname="ex.USFW3_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USFW3_Sample" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>In USFW_Sample.java</Message> </SourceLine> <Message>Field ex.USFW3_Sample.s</Message> </Field> <SourceLine classname="ex.USFW3_Sample" primary="true" start="47" end="47" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 47]</Message> </SourceLine> </BugInstance> <BugInstance type="FCBL_FIELD_COULD_BE_LOCAL" priority="2" rank="7" abbrev="FCBL" category="CORRECTNESS" instanceHash="d4bb35f94adea4a8cddac9a8356171c6" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class defines fields that are used only as locals</ShortMessage> <LongMessage>Class ex.USFW_Sample defines fields that are used only as locals</LongMessage> <Class classname="ex.USFW_Sample" primary="true"> <SourceLine classname="ex.USFW_Sample" start="9" end="15" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 9-15]</Message> </SourceLine> <Message>In class ex.USFW_Sample</Message> </Class> <Field classname="ex.USFW_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USFW_Sample" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>In USFW_Sample.java</Message> </SourceLine> <Message>Field ex.USFW_Sample.s</Message> </Field> <SourceLine classname="ex.USFW_Sample" primary="true" start="14" end="14" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="3ebd2264fb0522b46f6282c8adb52525" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.USFW_Sample does not implement a toString method</LongMessage> <Class classname="ex.USFW_Sample" primary="true"> <SourceLine classname="ex.USFW_Sample" start="9" end="15" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 9-15]</Message> </SourceLine> <Message>In class ex.USFW_Sample</Message> </Class> <SourceLine classname="ex.USFW_Sample" start="9" end="15" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java" synthetic="true"> <Message>At USFW_Sample.java:[lines 9-15]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="80ed1fa2f5e09c31fbd96297dce9e149" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.USFW_Sample.s</LongMessage> <Class classname="ex.USFW_Sample" primary="true"> <SourceLine classname="ex.USFW_Sample" start="9" end="15" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 9-15]</Message> </SourceLine> <Message>In class ex.USFW_Sample</Message> </Class> <Field classname="ex.USFW_Sample" name="s" signature="Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USFW_Sample" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>In USFW_Sample.java</Message> </SourceLine> <Message>Field ex.USFW_Sample.s</Message> </Field> <SourceLine classname="ex.USFW_Sample" primary="true" start="14" end="14" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES" priority="2" rank="7" abbrev="USFW" category="CORRECTNESS" instanceHash="8ff47a224cb91b6e5753ef570f3a183e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method of Singleton class writes to a field in an unsynchronized manner</ShortMessage> <LongMessage>Method ex.USFW_Sample.writeToField() of Singleton class writes to a field in an unsynchronized manner</LongMessage> <Class classname="ex.USFW_Sample" primary="true"> <SourceLine classname="ex.USFW_Sample" start="9" end="15" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[lines 9-15]</Message> </SourceLine> <Message>In class ex.USFW_Sample</Message> </Class> <Method classname="ex.USFW_Sample" name="writeToField" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.USFW_Sample" start="14" end="15" startBytecode="0" endBytecode="52" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"/> <Message>In method ex.USFW_Sample.writeToField()</Message> </Method> <SourceLine classname="ex.USFW_Sample" primary="true" start="14" end="14" startBytecode="3" endBytecode="3" sourcefile="USFW_Sample.java" sourcepath="ex/USFW_Sample.java"> <Message>At USFW_Sample.java:[line 14]</Message> </SourceLine> </BugInstance> <BugInstance type="LSC_LITERAL_STRING_COMPARISON" priority="1" rank="17" abbrev="LSC" category="STYLE" instanceHash="3871609e9b09c4cdb099dd82af63a1b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method makes literal string comparisons passing the literal as an argument</ShortMessage> <LongMessage>Method ex.USS_Sample.testUssFP6(String) makes literal string comparisons passing the literal as an argument</LongMessage> <Class classname="ex.USS_Sample" primary="true"> <SourceLine classname="ex.USS_Sample" start="4" end="84" sourcefile="USS_Sample.java" sourcepath="ex/USS_Sample.java"> <Message>At USS_Sample.java:[lines 4-84]</Message> </SourceLine> <Message>In class ex.USS_Sample</Message> </Class> <Method classname="ex.USS_Sample" name="testUssFP6" signature="(Ljava/lang/String;)[Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.USS_Sample" start="71" end="84" startBytecode="0" endBytecode="247" sourcefile="USS_Sample.java" sourcepath="ex/USS_Sample.java"/> <Message>In method ex.USS_Sample.testUssFP6(String)</Message> </Method> <SourceLine classname="ex.USS_Sample" primary="true" start="78" end="78" startBytecode="38" endBytecode="38" sourcefile="USS_Sample.java" sourcepath="ex/USS_Sample.java"> <Message>At USS_Sample.java:[line 78]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="a794198f3b05d1957a7785b01d33fe0a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly boxes a boolean constant</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testFalse(boolean) needlessly boxes a boolean constant</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testFalse" signature="(Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="29" end="30" startBytecode="0" endBytecode="69" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testFalse(boolean)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="29" end="29" startBytecode="3" endBytecode="3" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" priority="2" rank="18" abbrev="NAB" category="PERFORMANCE" instanceHash="d08eb94d4f3a8f9af0b0c2f24cd481e5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method needlessly boxes a boolean constant</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testTrue(boolean) needlessly boxes a boolean constant</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testTrue" signature="(Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="25" end="26" startBytecode="0" endBytecode="67" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testTrue(boolean)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="25" end="25" startBytecode="1" endBytecode="1" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="e806974373d663146c1577b45f76086" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testUseAssertEquals(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="54" end="56" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="55" end="55" startBytecode="13" endBytecode="13" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 55]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="d3cd7b227c8f52d26e970a50639d43d6" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testUseAssertEqualsCrossed(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="73" end="77" startBytecode="0" endBytecode="214" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="74" end="74" startBytecode="21" endBytecode="21" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 74]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="d3cd7b227c8f52d26e970a50639d43d6" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testUseAssertEqualsCrossed(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="73" end="77" startBytecode="0" endBytecode="214" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="76" end="76" startBytecode="60" endBytecode="60" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 76]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="cdf1a47821e3cbd9334cc365f743f81d" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testUseAssertNotEquals(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="59" end="63" startBytecode="0" endBytecode="171" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="60" end="60" startBytecode="13" endBytecode="13" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 60]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="cdf1a47821e3cbd9334cc365f743f81d" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testUseAssertNotEquals(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="59" end="63" startBytecode="0" endBytecode="171" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="62" end="62" startBytecode="44" endBytecode="44" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 62]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="2282ef17fdf0b957e98068f61ddf5535" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testUseAssertNotEqualsCrossed(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="66" end="70" startBytecode="0" endBytecode="214" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="67" end="67" startBytecode="21" endBytecode="21" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 67]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" priority="3" rank="20" abbrev="PRMC" category="PERFORMANCE" instanceHash="2282ef17fdf0b957e98068f61ddf5535" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>Method appears to call the same method on the same object redundantly</ShortMessage> <LongMessage>Method ex.UTAO_Sample.testUseAssertNotEqualsCrossed(String, String) appears to call the same method on the same object redundantly</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="66" end="70" startBytecode="0" endBytecode="214" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="69" end="69" startBytecode="60" endBytecode="60" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 69]</Message> </SourceLine> <String value="length()I"> <Message>Value length()I</Message> </String> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_ACTUAL_CONSTANT" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="4134ce6288ed930f060c60e5f604aa49" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JUnit test method passes constant to second (actual) assertion parameter</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testWrongOrder(int) passes constant to second (actual) assertion parameter</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testWrongOrder" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="41" end="42" startBytecode="0" endBytecode="64" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testWrongOrder(int)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="41" end="41" startBytecode="5" endBytecode="5" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 41]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_ASSERT_USED" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="4d58888bbce827c370e80eced9795afd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JUnit test method uses Java asserts rather than a JUnit assertion</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testAssertUsed(String) uses Java asserts rather than a JUnit assertion</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testAssertUsed" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="50" end="51" startBytecode="0" endBytecode="83" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testAssertUsed(String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="50" end="50" startBytecode="17" endBytecode="17" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 50]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_BOOLEAN_ASSERT" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="571c085d10b9bea71d384f860bb9bce5" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JUnit test method asserts that a value is equal to true or false</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testFalse(boolean) asserts that a value is equal to true or false</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testFalse" signature="(Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="29" end="30" startBytecode="0" endBytecode="69" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testFalse(boolean)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="29" end="29" startBytecode="10" endBytecode="10" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_BOOLEAN_ASSERT" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="f7355510d862bc7905b089d635df5a1d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JUnit test method asserts that a value is equal to true or false</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testTrue(boolean) asserts that a value is equal to true or false</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testTrue" signature="(Z)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="25" end="26" startBytecode="0" endBytecode="67" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testTrue(boolean)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="25" end="25" startBytecode="8" endBytecode="8" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 25]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_IMPOSSIBLE_NULL" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="1fde087a945672c9e0c4a419761e824" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method asserts that an autoboxed value is not null</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testAutoBoxNotNull(int) asserts that an autoboxed value is not null</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testAutoBoxNotNull" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="45" end="47" startBytecode="0" endBytecode="94" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testAutoBoxNotNull(int)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="45" end="45" startBytecode="4" endBytecode="4" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_IMPOSSIBLE_NULL" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="1fde087a945672c9e0c4a419761e824" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method asserts that an autoboxed value is not null</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testAutoBoxNotNull(int) asserts that an autoboxed value is not null</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testAutoBoxNotNull" signature="(I)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="45" end="47" startBytecode="0" endBytecode="94" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testAutoBoxNotNull(int)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="46" end="46" startBytecode="20" endBytecode="20" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 46]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_INEXACT_DOUBLE" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="58c7054713fb8e32917dba356e6fd3af" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method asserts that two doubles are exactly equal</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testExactDoubles(double, double) asserts that two doubles are exactly equal</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testExactDoubles" signature="(DD)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="18" end="22" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testExactDoubles(double, double)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="18" end="18" startBytecode="2" endBytecode="2" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 18]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_INEXACT_DOUBLE" priority="2" rank="20" abbrev="UTAO" category="STYLE" instanceHash="58c7054713fb8e32917dba356e6fd3af" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method asserts that two doubles are exactly equal</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testExactDoubles(double, double) asserts that two doubles are exactly equal</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testExactDoubles" signature="(DD)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="18" end="22" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testExactDoubles(double, double)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="19" end="19" startBytecode="9" endBytecode="9" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 19]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="ba7607557ca567c8dcef9368935574a" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="54" end="56" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="54" end="54" startBytecode="5" endBytecode="5" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 54]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="ba7607557ca567c8dcef9368935574a" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="54" end="56" startBytecode="0" endBytecode="108" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="55" end="55" startBytecode="24" endBytecode="24" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="6d38c84cc2f26ce2956bcfa2e6e6c072" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertEqualsCrossed(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="73" end="77" startBytecode="0" endBytecode="214" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="74" end="74" startBytecode="32" endBytecode="32" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 74]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="6d38c84cc2f26ce2956bcfa2e6e6c072" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertEqualsCrossed(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="73" end="77" startBytecode="0" endBytecode="214" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="76" end="76" startBytecode="71" endBytecode="71" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 76]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="9c83b7fc87b587f64a161fa3721cb471" instanceOccurrenceNum="0" instanceOccurrenceMax="3"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertNotEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="59" end="63" startBytecode="0" endBytecode="171" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="59" end="59" startBytecode="5" endBytecode="5" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 59]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="9c83b7fc87b587f64a161fa3721cb471" instanceOccurrenceNum="1" instanceOccurrenceMax="3"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertNotEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="59" end="63" startBytecode="0" endBytecode="171" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="60" end="60" startBytecode="24" endBytecode="24" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 60]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="9c83b7fc87b587f64a161fa3721cb471" instanceOccurrenceNum="2" instanceOccurrenceMax="3"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertNotEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="59" end="63" startBytecode="0" endBytecode="171" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="61" end="61" startBytecode="34" endBytecode="34" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 61]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="9c83b7fc87b587f64a161fa3721cb471" instanceOccurrenceNum="3" instanceOccurrenceMax="3"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertNotEquals(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEquals" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="59" end="63" startBytecode="0" endBytecode="171" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEquals(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="62" end="62" startBytecode="55" endBytecode="55" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 62]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="499d1f40e4bb30ff189b32bef353c907" instanceOccurrenceNum="0" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertNotEqualsCrossed(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="66" end="70" startBytecode="0" endBytecode="214" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="67" end="67" startBytecode="32" endBytecode="32" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 67]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="499d1f40e4bb30ff189b32bef353c907" instanceOccurrenceNum="1" instanceOccurrenceMax="1"> <ShortMessage>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testUseAssertNotEqualsCrossed(String, String) passes boolean expression to Assert.assertFalse / Assert.assertTrue</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testUseAssertNotEqualsCrossed" signature="(Ljava/lang/String;Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="66" end="70" startBytecode="0" endBytecode="214" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testUseAssertNotEqualsCrossed(String, String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="69" end="69" startBytecode="71" endBytecode="71" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 69]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_NULL" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="63362f03eb8907b2a0fc5570bec160fb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JUnit test method passes null Assert.assertNotEquals</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testNotNull(String) passes null to Assert.assertNotEquals</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testNotNull" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="37" end="38" startBytecode="0" endBytecode="61" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testNotNull(String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="37" end="37" startBytecode="2" endBytecode="2" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 37]</Message> </SourceLine> </BugInstance> <BugInstance type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NULL" priority="2" rank="10" abbrev="UTAO" category="CORRECTNESS" instanceHash="f30291485037a1b32ad97ca96cd74a5c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>JUnit test method passes null Assert.assertEquals</ShortMessage> <LongMessage>JUnit test method ex.UTAO_Sample.testNull(String) passes null to Assert.assertEquals</LongMessage> <Class classname="ex.UTAO_Sample" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="15" end="82" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[lines 15-82]</Message> </SourceLine> <Message>In class ex.UTAO_Sample</Message> </Class> <Method classname="ex.UTAO_Sample" name="testNull" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTAO_Sample" start="33" end="34" startBytecode="0" endBytecode="61" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"/> <Message>In method ex.UTAO_Sample.testNull(String)</Message> </Method> <SourceLine classname="ex.UTAO_Sample" primary="true" start="33" end="33" startBytecode="2" endBytecode="2" sourcefile="UTAO_Sample.java" sourcepath="ex/UTAO_Sample.java"> <Message>At UTAO_Sample.java:[line 33]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="ca421340553825af9b0c0d9c53322d02" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.UTWR_Sample.fpUTWRStream(File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.UTWR_Sample" primary="true"> <SourceLine classname="ex.UTWR_Sample" start="9" end="33" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"> <Message>At UTWR_Sample.java:[lines 9-33]</Message> </SourceLine> <Message>In class ex.UTWR_Sample</Message> </Class> <Method classname="ex.UTWR_Sample" name="fpUTWRStream" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTWR_Sample" start="22" end="25" startBytecode="0" endBytecode="203" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"/> <Message>In method ex.UTWR_Sample.fpUTWRStream(File)</Message> </Method> <SourceLine classname="ex.UTWR_Sample" primary="true" start="22" end="22" startBytecode="9" endBytecode="9" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"> <Message>At UTWR_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="f621451e37be100cc596d63a3831210" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.UTWR_Sample.utwrStream(File) uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.UTWR_Sample" primary="true"> <SourceLine classname="ex.UTWR_Sample" start="9" end="33" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"> <Message>At UTWR_Sample.java:[lines 9-33]</Message> </SourceLine> <Message>In class ex.UTWR_Sample</Message> </Class> <Method classname="ex.UTWR_Sample" name="utwrStream" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTWR_Sample" start="11" end="19" startBytecode="0" endBytecode="175" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"/> <Message>In method ex.UTWR_Sample.utwrStream(File)</Message> </Method> <SourceLine classname="ex.UTWR_Sample" primary="true" start="11" end="11" startBytecode="5" endBytecode="5" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"> <Message>At UTWR_Sample.java:[line 11]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="3" rank="20" abbrev="RCN" category="STYLE" instanceHash="9043967c62e03ac53084e72c54e80e8b" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of is, which is known to be non-null in ex.UTWR_Sample.utwrStream(File)</LongMessage> <Class classname="ex.UTWR_Sample" primary="true"> <SourceLine classname="ex.UTWR_Sample" start="9" end="33" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"> <Message>At UTWR_Sample.java:[lines 9-33]</Message> </SourceLine> <Message>In class ex.UTWR_Sample</Message> </Class> <Method classname="ex.UTWR_Sample" name="utwrStream" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTWR_Sample" start="11" end="19" startBytecode="0" endBytecode="175" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"/> <Message>In method ex.UTWR_Sample.utwrStream(File)</Message> </Method> <LocalVariable name="is" register="2" pc="28" role="LOCAL_VARIABLE_VALUE_OF"> <Message>Value loaded from is</Message> </LocalVariable> <Method classname="java.io.FileInputStream" name="<init>" signature="(Ljava/io/File;)V" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="java.io.FileInputStream" start="123" end="139" startBytecode="0" endBytecode="233" sourcefile="FileInputStream.java" sourcepath="java/io/FileInputStream.java"/> <Message>Return value of new java.io.FileInputStream(File) of type void</Message> </Method> <SourceLine classname="ex.UTWR_Sample" primary="true" start="15" end="15" startBytecode="29" endBytecode="29" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at UTWR_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="UTWR_USE_TRY_WITH_RESOURCES" priority="2" rank="17" abbrev="UTWR" category="STYLE" instanceHash="f7993b9d41bf715607ce0d815729829b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method manually handles closing an auto-closeable resource</ShortMessage> <LongMessage>Method ex.UTWR_Sample.utwrStream(File) manually handles closing an auto-closeable resource</LongMessage> <Class classname="ex.UTWR_Sample" primary="true"> <SourceLine classname="ex.UTWR_Sample" start="9" end="33" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"> <Message>At UTWR_Sample.java:[lines 9-33]</Message> </SourceLine> <Message>In class ex.UTWR_Sample</Message> </Class> <Method classname="ex.UTWR_Sample" name="utwrStream" signature="(Ljava/io/File;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UTWR_Sample" start="11" end="19" startBytecode="0" endBytecode="175" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"/> <Message>In method ex.UTWR_Sample.utwrStream(File)</Message> </Method> <SourceLine classname="ex.UTWR_Sample" primary="true" start="16" end="16" startBytecode="23" endBytecode="23" sourcefile="UTWR_Sample.java" sourcepath="ex/UTWR_Sample.java"> <Message>At UTWR_Sample.java:[line 16]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="9e53efdabdd7fb42a866584959a1f666" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.UVA_Sample.toArray(Object[]) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.UVA_Sample" primary="true"> <SourceLine classname="ex.UVA_Sample" start="5" end="45" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"> <Message>At UVA_Sample.java:[lines 5-45]</Message> </SourceLine> <Message>In class ex.UVA_Sample</Message> </Class> <Method classname="ex.UVA_Sample" name="toArray" signature="([Ljava/lang/Object;)[Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.UVA_Sample" start="45" end="45" startBytecode="0" endBytecode="71" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"/> <Message>In method ex.UVA_Sample.toArray(Object[])</Message> </Method> <SourceLine classname="ex.UVA_Sample" start="45" end="45" startBytecode="0" endBytecode="71" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java" synthetic="true"> <Message>At UVA_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="PZLA_PREFER_ZERO_LENGTH_ARRAYS" priority="3" rank="20" abbrev="PZLA" category="STYLE" instanceHash="db859d4b64c348206a5567aba8a2c370" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Consider returning a zero length array rather than null</ShortMessage> <LongMessage>Should ex.UVA_Sample.toArray(Object[]) return a zero length array rather than null?</LongMessage> <Class classname="ex.UVA_Sample" primary="true"> <SourceLine classname="ex.UVA_Sample" start="5" end="45" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"> <Message>At UVA_Sample.java:[lines 5-45]</Message> </SourceLine> <Message>In class ex.UVA_Sample</Message> </Class> <Method classname="ex.UVA_Sample" name="toArray" signature="([Ljava/lang/Object;)[Ljava/lang/Object;" isStatic="false" primary="true"> <SourceLine classname="ex.UVA_Sample" start="45" end="45" startBytecode="0" endBytecode="71" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"/> <Message>In method ex.UVA_Sample.toArray(Object[])</Message> </Method> <SourceLine classname="ex.UVA_Sample" primary="true" start="45" end="45" startBytecode="1" endBytecode="1" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"> <Message>At UVA_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="UP_UNUSED_PARAMETER" priority="2" rank="17" abbrev="UP" category="STYLE" instanceHash="6ac65e81d7761ae926b709343d293c81" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Static or private method has unused parameters</ShortMessage> <LongMessage>Static or private method ex.UVA_Sample.testStaticUVA(Date[]) has unused parameters</LongMessage> <Class classname="ex.UVA_Sample" primary="true"> <SourceLine classname="ex.UVA_Sample" start="5" end="45" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"> <Message>At UVA_Sample.java:[lines 5-45]</Message> </SourceLine> <Message>In class ex.UVA_Sample</Message> </Class> <Method classname="ex.UVA_Sample" name="testStaticUVA" signature="([Ljava/util/Date;)V" isStatic="true" primary="true"> <SourceLine classname="ex.UVA_Sample" start="15" end="15" startBytecode="0" endBytecode="42" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"/> <Message>In method ex.UVA_Sample.testStaticUVA(Date[])</Message> </Method> <String value="Parameter 1: d"> <Message>Value Parameter 1: d</Message> </String> <SourceLine classname="ex.UVA_Sample" start="15" end="15" startBytecode="0" endBytecode="42" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java" synthetic="true"> <Message>At UVA_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="f255c0be046f408ed57e08bc064fccdf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.UVA_Sample.testLowUVA1(int, String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.UVA_Sample" primary="true"> <SourceLine classname="ex.UVA_Sample" start="5" end="45" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"> <Message>At UVA_Sample.java:[lines 5-45]</Message> </SourceLine> <Message>In class ex.UVA_Sample</Message> </Class> <Method classname="ex.UVA_Sample" name="testLowUVA1" signature="(I[Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UVA_Sample" start="12" end="12" startBytecode="0" endBytecode="80" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"/> <Message>In method ex.UVA_Sample.testLowUVA1(int, String[])</Message> </Method> <SourceLine classname="ex.UVA_Sample" start="12" end="12" startBytecode="0" endBytecode="80" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java" synthetic="true"> <Message>At UVA_Sample.java:[line 12]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="9f80244239c98ebd3696d730f35d812" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.UVA_Sample.testNormalUVA(String[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.UVA_Sample" primary="true"> <SourceLine classname="ex.UVA_Sample" start="5" end="45" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"> <Message>At UVA_Sample.java:[lines 5-45]</Message> </SourceLine> <Message>In class ex.UVA_Sample</Message> </Class> <Method classname="ex.UVA_Sample" name="testNormalUVA" signature="([Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.UVA_Sample" start="9" end="9" startBytecode="0" endBytecode="70" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"/> <Message>In method ex.UVA_Sample.testNormalUVA(String[])</Message> </Method> <SourceLine classname="ex.UVA_Sample" start="9" end="9" startBytecode="0" endBytecode="70" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java" synthetic="true"> <Message>At UVA_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="UVA_USE_VAR_ARGS" priority="3" rank="20" abbrev="UVA" category="STYLE" instanceHash="94f8b7824b8edccd454d608179363043" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method defines parameter list with array as last argument, rather than vararg</ShortMessage> <LongMessage>Method ex.UVA_Sample.testStaticUVA(Date[]) defines parameter list with array as last argument, rather than vararg</LongMessage> <Class classname="ex.UVA_Sample" primary="true"> <SourceLine classname="ex.UVA_Sample" start="5" end="45" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"> <Message>At UVA_Sample.java:[lines 5-45]</Message> </SourceLine> <Message>In class ex.UVA_Sample</Message> </Class> <Method classname="ex.UVA_Sample" name="testStaticUVA" signature="([Ljava/util/Date;)V" isStatic="true" primary="true"> <SourceLine classname="ex.UVA_Sample" start="15" end="15" startBytecode="0" endBytecode="42" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java"/> <Message>In method ex.UVA_Sample.testStaticUVA(Date[])</Message> </Method> <SourceLine classname="ex.UVA_Sample" start="15" end="15" startBytecode="0" endBytecode="42" sourcefile="UVA_Sample.java" sourcepath="ex/UVA_Sample.java" synthetic="true"> <Message>At UVA_Sample.java:[line 15]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="48151070892078494ceb974774be7ba8" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.VendorBlob.getBinaryStream() that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.VendorBlob" primary="true"> <SourceLine classname="ex.VendorBlob" start="20" end="75" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[lines 20-75]</Message> </SourceLine> <Message>In class ex.VendorBlob</Message> </Class> <Method classname="ex.VendorBlob" name="getBinaryStream" signature="()Ljava/io/InputStream;" isStatic="false" primary="true"> <SourceLine classname="ex.VendorBlob" start="27" end="27" startBytecode="0" endBytecode="43" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"/> <Message>In method ex.VendorBlob.getBinaryStream()</Message> </Method> <SourceLine classname="ex.VendorBlob" start="27" end="27" startBytecode="0" endBytecode="43" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java" synthetic="true"> <Message>At JVR_Sample.java:[line 27]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="6f1d5d1fce2316109d7304d0e0b2bbcb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.VendorBlob.getBinaryStream(long, long) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.VendorBlob" primary="true"> <SourceLine classname="ex.VendorBlob" start="20" end="75" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[lines 20-75]</Message> </SourceLine> <Message>In class ex.VendorBlob</Message> </Class> <Method classname="ex.VendorBlob" name="getBinaryStream" signature="(JJ)Ljava/io/InputStream;" isStatic="false" primary="true"> <SourceLine classname="ex.VendorBlob" start="75" end="75" startBytecode="0" endBytecode="63" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"/> <Message>In method ex.VendorBlob.getBinaryStream(long, long)</Message> </Method> <SourceLine classname="ex.VendorBlob" start="75" end="75" startBytecode="0" endBytecode="63" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java" synthetic="true"> <Message>At JVR_Sample.java:[line 75]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="e7413b0caa7e0bde2ac5e2dc6fcff2bc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.VendorBlob.getBytes(long, int) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.VendorBlob" primary="true"> <SourceLine classname="ex.VendorBlob" start="20" end="75" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[lines 20-75]</Message> </SourceLine> <Message>In class ex.VendorBlob</Message> </Class> <Method classname="ex.VendorBlob" name="getBytes" signature="(JI)[B" isStatic="false" primary="true"> <SourceLine classname="ex.VendorBlob" start="32" end="32" startBytecode="0" endBytecode="63" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"/> <Message>In method ex.VendorBlob.getBytes(long, int)</Message> </Method> <SourceLine classname="ex.VendorBlob" start="32" end="32" startBytecode="0" endBytecode="63" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java" synthetic="true"> <Message>At JVR_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" priority="3" rank="11" abbrev="AI" category="CORRECTNESS" instanceHash="870f02cb7ead165d0ba8c1cf14236257" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method that can return null, is missing a @Nullable annotation</ShortMessage> <LongMessage>Method ex.VendorBlob.setBinaryStream(long) that can return null, is missing a @Nullable annotation</LongMessage> <Class classname="ex.VendorBlob" primary="true"> <SourceLine classname="ex.VendorBlob" start="20" end="75" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[lines 20-75]</Message> </SourceLine> <Message>In class ex.VendorBlob</Message> </Class> <Method classname="ex.VendorBlob" name="setBinaryStream" signature="(J)Ljava/io/OutputStream;" isStatic="false" primary="true"> <SourceLine classname="ex.VendorBlob" start="52" end="52" startBytecode="0" endBytecode="53" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"/> <Message>In method ex.VendorBlob.setBinaryStream(long)</Message> </Method> <SourceLine classname="ex.VendorBlob" start="52" end="52" startBytecode="0" endBytecode="53" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java" synthetic="true"> <Message>At JVR_Sample.java:[line 52]</Message> </SourceLine> </BugInstance> <BugInstance type="OPM_OVERLY_PERMISSIVE_METHOD" priority="3" rank="20" abbrev="OPM" category="STYLE" instanceHash="38b0a2fd5eab3c1cd09c9c9a219c27ab" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>This method is declared more permissively than is used in the code base</ShortMessage> <LongMessage>This method ex.VendorBlob.convertBlobToString() is declared more permissively than is used in the code base</LongMessage> <Class classname="ex.VendorBlob" primary="true"> <SourceLine classname="ex.VendorBlob" start="20" end="75" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[lines 20-75]</Message> </SourceLine> <Message>In class ex.VendorBlob</Message> </Class> <Method classname="ex.VendorBlob" name="convertBlobToString" signature="()Ljava/lang/String;" isStatic="false" primary="true"> <SourceLine classname="ex.VendorBlob" start="22" end="22" startBytecode="0" endBytecode="44" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"/> <Message>In method ex.VendorBlob.convertBlobToString()</Message> </Method> <String value="- Method declared public but could be declared package private"> <Message>Value - Method declared public but could be declared package private</Message> </String> <SourceLine classname="ex.VendorBlob" start="22" end="22" startBytecode="0" endBytecode="44" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java" synthetic="true"> <Message>At JVR_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="PZLA_PREFER_ZERO_LENGTH_ARRAYS" priority="3" rank="20" abbrev="PZLA" category="STYLE" instanceHash="d6a47a762e774a24be4ed49392862a55" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Consider returning a zero length array rather than null</ShortMessage> <LongMessage>Should ex.VendorBlob.getBytes(long, int) return a zero length array rather than null?</LongMessage> <Class classname="ex.VendorBlob" primary="true"> <SourceLine classname="ex.VendorBlob" start="20" end="75" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[lines 20-75]</Message> </SourceLine> <Message>In class ex.VendorBlob</Message> </Class> <Method classname="ex.VendorBlob" name="getBytes" signature="(JI)[B" isStatic="false" primary="true"> <SourceLine classname="ex.VendorBlob" start="32" end="32" startBytecode="0" endBytecode="63" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"/> <Message>In method ex.VendorBlob.getBytes(long, int)</Message> </Method> <SourceLine classname="ex.VendorBlob" primary="true" start="32" end="32" startBytecode="1" endBytecode="1" sourcefile="JVR_Sample.java" sourcepath="ex/JVR_Sample.java"> <Message>At JVR_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="41cd4b6a617f8d212f78bf7f623c4346" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to is in ex.WEM_Sample.wrappingWithException()</LongMessage> <Class classname="ex.WEM_Sample" primary="true"> <SourceLine classname="ex.WEM_Sample" start="6" end="45" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[lines 6-45]</Message> </SourceLine> <Message>In class ex.WEM_Sample</Message> </Class> <Method classname="ex.WEM_Sample" name="wrappingWithException" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.WEM_Sample" start="24" end="31" startBytecode="0" endBytecode="14" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"/> <Message>In method ex.WEM_Sample.wrappingWithException()</Message> </Method> <LocalVariable name="is" register="0" pc="12" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named is</Message> </LocalVariable> <SourceLine classname="ex.WEM_Sample" primary="true" start="26" end="26" startBytecode="11" endBytecode="11" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[line 26]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="is"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" priority="2" rank="18" abbrev="IOI" category="PERFORMANCE" instanceHash="85d13617128ddb1cced6363c61c8e1cb" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method uses a FileInputStream or FileOutputStream constructor</ShortMessage> <LongMessage>Method ex.WEM_Sample.wrappingWithException() uses a FileInputStream or FileOutputStream constructor</LongMessage> <Class classname="ex.WEM_Sample" primary="true"> <SourceLine classname="ex.WEM_Sample" start="6" end="45" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[lines 6-45]</Message> </SourceLine> <Message>In class ex.WEM_Sample</Message> </Class> <Method classname="ex.WEM_Sample" name="wrappingWithException" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.WEM_Sample" start="24" end="31" startBytecode="0" endBytecode="123" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"/> <Message>In method ex.WEM_Sample.wrappingWithException()</Message> </Method> <SourceLine classname="ex.WEM_Sample" primary="true" start="26" end="26" startBytecode="8" endBytecode="8" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="OBL_UNSATISFIED_OBLIGATION" priority="2" rank="20" abbrev="OBL" category="EXPERIMENTAL" instanceHash="391e10f7217c98b029c854b607a4cc22" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to clean up stream or resource</ShortMessage> <LongMessage>ex.WEM_Sample.wrappingWithException() may fail to clean up java.io.InputStream</LongMessage> <Class classname="ex.WEM_Sample" primary="true"> <SourceLine classname="ex.WEM_Sample" start="6" end="45" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[lines 6-45]</Message> </SourceLine> <Message>In class ex.WEM_Sample</Message> </Class> <Method classname="ex.WEM_Sample" name="wrappingWithException" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.WEM_Sample" start="24" end="31" startBytecode="0" endBytecode="123" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"/> <Message>In method ex.WEM_Sample.wrappingWithException()</Message> </Method> <Class classname="java.io.InputStream" role="CLASS_REFTYPE"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Reference type java.io.InputStream</Message> </Class> <Int value="1" role="INT_OBLIGATIONS_REMAINING"> <Message>1 instances of obligation remaining</Message> </Int> <SourceLine classname="ex.WEM_Sample" primary="true" start="26" end="26" startBytecode="8" endBytecode="8" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java" role="SOURCE_LINE_OBLIGATION_CREATED"> <Message>Obligation to clean up resource created at WEM_Sample.java:[line 26] is not discharged</Message> </SourceLine> <SourceLine classname="ex.WEM_Sample" start="28" end="28" startBytecode="12" endBytecode="12" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at WEM_Sample.java:[line 28]</Message> </SourceLine> <SourceLine classname="ex.WEM_Sample" start="31" end="31" startBytecode="25" endBytecode="25" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java" role="SOURCE_LINE_PATH_CONTINUES"> <Message>Path continues at WEM_Sample.java:[line 31]</Message> </SourceLine> <String value="{InputStream x 1}" role="STRING_REMAINING_OBLIGATIONS"> <Message>Remaining obligations: {InputStream x 1}</Message> </String> </BugInstance> <BugInstance type="OS_OPEN_STREAM" priority="2" rank="16" abbrev="OS" category="BAD_PRACTICE" instanceHash="9caba878d0401536c9169c6af10abaf7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method may fail to close stream</ShortMessage> <LongMessage>ex.WEM_Sample.wrappingWithException() may fail to close stream</LongMessage> <Class classname="ex.WEM_Sample" primary="true"> <SourceLine classname="ex.WEM_Sample" start="6" end="45" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[lines 6-45]</Message> </SourceLine> <Message>In class ex.WEM_Sample</Message> </Class> <Method classname="ex.WEM_Sample" name="wrappingWithException" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.WEM_Sample" start="24" end="31" startBytecode="0" endBytecode="14" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"/> <Message>In method ex.WEM_Sample.wrappingWithException()</Message> </Method> <Type descriptor="Ljava/io/InputStream;" role="TYPE_CLOSEIT"> <SourceLine classname="java.io.InputStream" start="45" end="364" sourcefile="InputStream.java" sourcepath="java/io/InputStream.java"> <Message>At InputStream.java:[lines 45-364]</Message> </SourceLine> <Message>Need to close java.io.InputStream </Message> </Type> <SourceLine classname="ex.WEM_Sample" primary="true" start="26" end="26" startBytecode="2" endBytecode="2" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[line 26]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_OBSCURING_EXCEPTION" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="eadfcd70ba2534675f5c56a074bba036" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws a java.lang.Exception that wraps a more useful exception</ShortMessage> <LongMessage>Method ex.WEM_Sample.wrappingWithException() throws a java.lang.Exception that wraps a more useful exception</LongMessage> <Class classname="ex.WEM_Sample" primary="true"> <SourceLine classname="ex.WEM_Sample" start="6" end="45" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[lines 6-45]</Message> </SourceLine> <Message>In class ex.WEM_Sample</Message> </Class> <Method classname="ex.WEM_Sample" name="wrappingWithException" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.WEM_Sample" start="24" end="31" startBytecode="0" endBytecode="123" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"/> <Message>In method ex.WEM_Sample.wrappingWithException()</Message> </Method> <SourceLine classname="ex.WEM_Sample" primary="true" start="29" end="29" startBytecode="21" endBytecode="21" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[line 29]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="97e55a9a796310d8fd7294adb44f548d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.WEM_Sample.badException(String) throws exception with static message string</LongMessage> <Class classname="ex.WEM_Sample" primary="true"> <SourceLine classname="ex.WEM_Sample" start="6" end="45" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[lines 6-45]</Message> </SourceLine> <Message>In class ex.WEM_Sample</Message> </Class> <Method classname="ex.WEM_Sample" name="badException" signature="(Ljava/lang/String;)V" isStatic="false" primary="true"> <SourceLine classname="ex.WEM_Sample" start="8" end="11" startBytecode="0" endBytecode="87" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"/> <Message>In method ex.WEM_Sample.badException(String)</Message> </Method> <SourceLine classname="ex.WEM_Sample" primary="true" start="9" end="9" startBytecode="17" endBytecode="17" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[line 9]</Message> </SourceLine> </BugInstance> <BugInstance type="WEM_WEAK_EXCEPTION_MESSAGING" priority="3" rank="20" abbrev="WEM" category="STYLE" instanceHash="b9476d0abafc503f15fee92cb88c6edd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method throws exception with static message string</ShortMessage> <LongMessage>Method ex.WEM_Sample.ok() throws exception with static message string</LongMessage> <Class classname="ex.WEM_Sample" primary="true"> <SourceLine classname="ex.WEM_Sample" start="6" end="45" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[lines 6-45]</Message> </SourceLine> <Message>In class ex.WEM_Sample</Message> </Class> <Method classname="ex.WEM_Sample" name="ok" signature="()V" isStatic="true" primary="true"> <SourceLine classname="ex.WEM_Sample" start="20" end="20" startBytecode="0" endBytecode="41" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"/> <Message>In method ex.WEM_Sample.ok()</Message> </Method> <SourceLine classname="ex.WEM_Sample" primary="true" start="20" end="20" startBytecode="9" endBytecode="9" sourcefile="WEM_Sample.java" sourcepath="ex/WEM_Sample.java"> <Message>At WEM_Sample.java:[line 20]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="1" rank="15" abbrev="DLS" category="STYLE" instanceHash="b1fc7f2455feac8cd970dc04d663755c" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to b in ex.WI_Sample.foo()</LongMessage> <Class classname="ex.WI_Sample" primary="true"> <SourceLine classname="ex.WI_Sample" start="7" end="23" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>At WI_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.WI_Sample</Message> </Class> <Method classname="ex.WI_Sample" name="foo" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WI_Sample" start="22" end="23" startBytecode="0" endBytecode="4" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"/> <Message>In method ex.WI_Sample.foo()</Message> </Method> <LocalVariable name="b" register="1" pc="8" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named b</Message> </LocalVariable> <SourceLine classname="ex.WI_Sample" primary="true" start="22" end="22" startBytecode="7" endBytecode="7" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>At WI_Sample.java:[line 22]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.DEAD_OBJECT_STORE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="b"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.METHOD_RESULT" value="true"/> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="3" rank="20" abbrev="UC" category="STYLE" instanceHash="bb57a55bfb054ee3db4664ecd8e9ae4f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.WI_Sample.foo() seems to be useless</LongMessage> <Class classname="ex.WI_Sample" primary="true"> <SourceLine classname="ex.WI_Sample" start="7" end="23" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>At WI_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.WI_Sample</Message> </Class> <Method classname="ex.WI_Sample" name="foo" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WI_Sample" start="22" end="23" startBytecode="0" endBytecode="64" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"/> <Message>In method ex.WI_Sample.foo()</Message> </Method> <SourceLine classname="ex.WI_Sample" primary="true" start="23" end="23" startBytecode="8" endBytecode="8" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>At WI_Sample.java:[line 23]</Message> </SourceLine> </BugInstance> <BugInstance type="WI_DUPLICATE_WIRED_TYPES" priority="2" rank="7" abbrev="WI" category="CORRECTNESS" instanceHash="78c73d3ece371884084dab407a9cbfed" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class auto wires the same object into two separate fields in a class hierarchy</ShortMessage> <LongMessage>Class ex.WI_Sample auto wires the same object into two separate fields in a class hierarchy</LongMessage> <Class classname="ex.WI_Sample" primary="true"> <SourceLine classname="ex.WI_Sample" start="7" end="23" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>At WI_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.WI_Sample</Message> </Class> <Field classname="ex.WI_Sample" name="myOtherSBean" signature="Lex/SingletonBean;" isStatic="false" primary="true"> <SourceLine classname="ex.WI_Sample" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>In WI_Sample.java</Message> </SourceLine> <Message>Field ex.WI_Sample.myOtherSBean</Message> </Field> <Field classname="ex.Parent" name="pbean" signature="Lex/SingletonBean;" isStatic="false"> <SourceLine classname="ex.Parent" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>In WI_Sample.java</Message> </SourceLine> <Message>Field ex.Parent.pbean</Message> </Field> <SourceLine classname="ex.WI_Sample" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java" synthetic="true"> <Message>In WI_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WI_DUPLICATE_WIRED_TYPES" priority="2" rank="7" abbrev="WI" category="CORRECTNESS" instanceHash="a73ec411bd40ab92ddbbaeda959bf27" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class auto wires the same object into two separate fields in a class hierarchy</ShortMessage> <LongMessage>Class ex.WI_Sample auto wires the same object into two separate fields in a class hierarchy</LongMessage> <Class classname="ex.WI_Sample" primary="true"> <SourceLine classname="ex.WI_Sample" start="7" end="23" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>At WI_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.WI_Sample</Message> </Class> <Field classname="ex.WI_Sample" name="mySBean" signature="Lex/SingletonBean;" isStatic="false" primary="true"> <SourceLine classname="ex.WI_Sample" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>In WI_Sample.java</Message> </SourceLine> <Message>Field ex.WI_Sample.mySBean</Message> </Field> <Field classname="ex.Parent" name="sbean" signature="Lex/SingletonBean;" isStatic="false"> <SourceLine classname="ex.Parent" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>In WI_Sample.java</Message> </SourceLine> <Message>Field ex.Parent.sbean</Message> </Field> <SourceLine classname="ex.WI_Sample" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java" synthetic="true"> <Message>In WI_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WI_MANUALLY_ALLOCATING_AN_AUTOWIRED_BEAN" priority="2" rank="7" abbrev="WI" category="CORRECTNESS" instanceHash="e0e4baf2d0e25ff0678f50f4aa33d337" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method allocates an object with new when the class is defined as an autowireable bean</ShortMessage> <LongMessage>Method ex.WI_Sample.foo() allocates an object with new when the class is defined as an autowireable bean</LongMessage> <Class classname="ex.WI_Sample" primary="true"> <SourceLine classname="ex.WI_Sample" start="7" end="23" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>At WI_Sample.java:[lines 7-23]</Message> </SourceLine> <Message>In class ex.WI_Sample</Message> </Class> <Method classname="ex.WI_Sample" name="foo" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WI_Sample" start="22" end="23" startBytecode="0" endBytecode="64" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"/> <Message>In method ex.WI_Sample.foo()</Message> </Method> <SourceLine classname="ex.WI_Sample" primary="true" start="22" end="22" startBytecode="4" endBytecode="4" sourcefile="WI_Sample.java" sourcepath="ex/WI_Sample.java"> <Message>At WI_Sample.java:[line 22]</Message> </SourceLine> </BugInstance> <BugInstance type="BAS_BLOATED_ASSIGNMENT_SCOPE" priority="2" rank="18" abbrev="BAS" category="PERFORMANCE" instanceHash="b199a93aa48ebc8fc1a39a5694a8d013" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method assigns a variable in a larger scope than is needed</ShortMessage> <LongMessage>Method ex.WOC_Sample.fpWOCTernary(boolean, boolean) assigns a variable in a larger scope than is needed</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="fpWOCTernary" signature="(ZZ)Ljava/util/List;" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="151" end="159" startBytecode="0" endBytecode="200" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.fpWOCTernary(boolean, boolean)</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="156" end="156" startBytecode="27" endBytecode="27" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 156]</Message> </SourceLine> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="40d243ad3506077e091290b7a93a7c30" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to c in ex.WOC_Sample.testFPWOCCopy()</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testFPWOCCopy" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="77" end="82" startBytecode="0" endBytecode="15" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testFPWOCCopy()</Message> </Method> <LocalVariable name="c" register="2" pc="19" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named c</Message> </LocalVariable> <SourceLine classname="ex.WOC_Sample" primary="true" start="80" end="80" startBytecode="18" endBytecode="18" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 80]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.COPY_VALUE" value="true"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="c"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="DLS_DEAD_LOCAL_STORE" priority="2" rank="17" abbrev="DLS" category="STYLE" instanceHash="325e856e03639f2f562698b039afb066" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="563"> <ShortMessage>Dead store to local variable</ShortMessage> <LongMessage>Dead store to o in ex.WOC_Sample.testFPWOCInArray()</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testFPWOCInArray" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="86" end="89" startBytecode="0" endBytecode="16" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testFPWOCInArray()</Message> </Method> <LocalVariable name="o" register="2" pc="26" role="LOCAL_VARIABLE_NAMED"> <Message>Local variable named o</Message> </LocalVariable> <SourceLine classname="ex.WOC_Sample" primary="true" start="88" end="88" startBytecode="25" endBytecode="25" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 88]</Message> </SourceLine> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.LOCAL_NAME" value="o"/> <Property name="edu.umd.cs.findbugs.detect.DeadLocalStoreProperty.NO_LOADS" value="true"/> </BugInstance> <BugInstance type="GC_UNRELATED_TYPES" priority="1" rank="1" abbrev="GC" category="CORRECTNESS" instanceHash="f64ff988adb35f92319189cce0640afd" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>No relationship between generic parameter and method argument</ShortMessage> <LongMessage>Integer is incompatible with expected argument type String in ex.WOC_Sample.helper(int, Map)</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="helper" signature="(ILjava/util/Map;)V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="111" end="112" startBytecode="0" endBytecode="7" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.helper(int, Map)</Message> </Method> <Type descriptor="Ljava/lang/Integer;" role="TYPE_FOUND"> <SourceLine classname="java.lang.Integer" start="52" end="1590" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"> <Message>At Integer.java:[lines 52-1590]</Message> </SourceLine> <Message>Actual type Integer</Message> </Type> <Type descriptor="Ljava/lang/String;" role="TYPE_EXPECTED"> <SourceLine classname="java.lang.String" start="111" end="3141" sourcefile="String.java" sourcepath="java/lang/String.java"> <Message>At String.java:[lines 111-3141]</Message> </SourceLine> <Message>Expected String</Message> </Type> <Method classname="java.util.Map" name="get" signature="(Ljava/lang/Object;)Ljava/lang/Object;" isStatic="false" role="METHOD_CALLED"> <SourceLine classname="java.util.Map" sourcefile="Map.java" sourcepath="java/util/Map.java"/> <Message>Called method java.util.Map.get(Object)</Message> </Method> <LocalVariable name="x" register="2" pc="5" role="LOCAL_VARIABLE_INVOKED_ON"> <Message>Invoked on x</Message> </LocalVariable> <Method classname="java.lang.Integer" name="equals" signature="(Ljava/lang/Object;)Z" isStatic="false" role="METHOD_EQUALS_USED"> <SourceLine classname="java.lang.Integer" start="974" end="977" startBytecode="0" endBytecode="72" sourcefile="Integer.java" sourcepath="java/lang/Integer.java"/> <Message>Integer.equals(Object) used to determine equality</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="111" end="111" startBytecode="8" endBytecode="8" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 111]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_NO_TOSTRING" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="5241e3b1ca2a68ca40b46cc1ec4e92b9" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not implement a toString method</ShortMessage> <LongMessage>Class ex.WOC_Sample does not implement a toString method</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java" synthetic="true"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="58a4eac3ec6cbcd91acf6b51a7d3b125" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.WOC_Sample.testFPWOCCopy()</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testFPWOCCopy" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="77" end="82" startBytecode="0" endBytecode="137" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testFPWOCCopy()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/util/LinkedHashSet;"> <SourceLine classname="java.util.LinkedHashSet" start="134" end="193" sourcefile="LinkedHashSet.java" sourcepath="java/util/LinkedHashSet.java"> <Message>At LinkedHashSet.java:[lines 134-193]</Message> </SourceLine> <Message>Type java.util.LinkedHashSet</Message> </Type> <SourceLine classname="ex.WOC_Sample" primary="true" start="77" end="77" startBytecode="4" endBytecode="4" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 77]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="eaa010f62f24ce61003269cb1d9d9ff7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable o of method ex.WOC_Sample.testFPWOCInArray()</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testFPWOCInArray" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="86" end="89" startBytecode="0" endBytecode="118" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testFPWOCInArray()</Message> </Method> <String value="o"> <Message>Value o</Message> </String> <Type descriptor="[Ljava/lang/Object;"> <Message>Type Object[]</Message> </Type> <SourceLine classname="ex.WOC_Sample" primary="true" start="88" end="88" startBytecode="18" endBytecode="18" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 88]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_OBJECT" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="cfe078839ceea07e821b244d73cac160" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless object created</ShortMessage> <LongMessage>Useless object stored in variable s of method ex.WOC_Sample.testWOCSimple()</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testWOCSimple" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="32" end="38" startBytecode="0" endBytecode="160" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testWOCSimple()</Message> </Method> <String value="s"> <Message>Value s</Message> </String> <Type descriptor="Ljava/util/HashSet;"> <SourceLine classname="java.util.HashSet" start="98" end="351" sourcefile="HashSet.java" sourcepath="java/util/HashSet.java"> <Message>At HashSet.java:[lines 98-351]</Message> </SourceLine> <Message>Type java.util.HashSet</Message> </Type> <SourceLine classname="ex.WOC_Sample" primary="true" start="32" end="32" startBytecode="4" endBytecode="4" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="1b318f9bf5f3bfbdeaa0f15665dabdcf" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.WOC_Sample.testFPWOCInArray() seems to be useless</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testFPWOCInArray" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="86" end="89" startBytecode="0" endBytecode="118" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testFPWOCInArray()</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="89" end="89" startBytecode="26" endBytecode="26" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 89]</Message> </SourceLine> </BugInstance> <BugInstance type="UC_USELESS_VOID_METHOD" priority="2" rank="17" abbrev="UC" category="STYLE" instanceHash="c6f5dd53c4dd7c40043ddcc0dbe6bf36" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Useless non-empty void method</ShortMessage> <LongMessage>Method ex.WOC_Sample.testIterateEmpty() seems to be useless</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testIterateEmpty" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="51" end="55" startBytecode="0" endBytecode="141" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testIterateEmpty()</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="55" end="55" startBytecode="37" endBytecode="37" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 55]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="ca97ec46cccd2aa8876a0b638fcc5044" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field not initialized in constructor but dereferenced without null check</ShortMessage> <LongMessage>WOC_Sample.fpSet not initialized in constructor and dereferenced in ex.WOC_Sample.testFPWOCAsParm()</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Field classname="ex.WOC_Sample" name="fpSet" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>In WOC_Sample.java</Message> </SourceLine> <Message>Field ex.WOC_Sample.fpSet</Message> </Field> <Method classname="ex.WOC_Sample" name="testFPWOCAsParm" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="68" end="73" startBytecode="0" endBytecode="139" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testFPWOCAsParm()</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="71" end="71" startBytecode="37" endBytecode="37" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 71]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="9f62b90661ae0f06474274515c857867" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field not initialized in constructor but dereferenced without null check</ShortMessage> <LongMessage>WOC_Sample.fpSet not initialized in constructor and dereferenced in ex.WOC_Sample.testGuavaWOCSimple()</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Field classname="ex.WOC_Sample" name="fpSet" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>In WOC_Sample.java</Message> </SourceLine> <Message>Field ex.WOC_Sample.fpSet</Message> </Field> <Method classname="ex.WOC_Sample" name="testGuavaWOCSimple" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="42" end="48" startBytecode="0" endBytecode="156" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testGuavaWOCSimple()</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="45" end="45" startBytecode="36" endBytecode="36" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 45]</Message> </SourceLine> </BugInstance> <BugInstance type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" priority="3" rank="20" abbrev="UwF" category="STYLE" instanceHash="d205514690a1609d3f2d52e8a204ce5f" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Field not initialized in constructor but dereferenced without null check</ShortMessage> <LongMessage>WOC_Sample.fpSet not initialized in constructor and dereferenced in ex.WOC_Sample.testWOCSimple()</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Field classname="ex.WOC_Sample" name="fpSet" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>In WOC_Sample.java</Message> </SourceLine> <Message>Field ex.WOC_Sample.fpSet</Message> </Field> <Method classname="ex.WOC_Sample" name="testWOCSimple" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="32" end="38" startBytecode="0" endBytecode="160" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testWOCSimple()</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="35" end="35" startBytecode="40" endBytecode="40" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 35]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_FIELD" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="71ab99e85672ca074c4cd431c7c8f68e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Class ex.WOC_Sample creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Field classname="ex.WOC_Sample" name="memberSet" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>In WOC_Sample.java</Message> </SourceLine> <Message>Field ex.WOC_Sample.memberSet</Message> </Field> <SourceLine classname="ex.WOC_Sample" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java" synthetic="true"> <Message>In WOC_Sample.java</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="6184064d72e21c73d04e1f3d0144f1df" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.WOC_Sample.testGuavaWOCSimple() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testGuavaWOCSimple" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="42" end="48" startBytecode="0" endBytecode="156" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testGuavaWOCSimple()</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="42" end="42" startBytecode="3" endBytecode="3" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 42]</Message> </SourceLine> </BugInstance> <BugInstance type="WOC_WRITE_ONLY_COLLECTION_LOCAL" priority="2" rank="7" abbrev="WOC" category="CORRECTNESS" instanceHash="ccb9cc87b8a3033a30dc2993d4a46b78" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Method creates and initializes a collection but never reads or gains information from it</ShortMessage> <LongMessage>Method ex.WOC_Sample.testWOCSimple() creates and initializes a collection but never reads or gains information from it</LongMessage> <Class classname="ex.WOC_Sample" primary="true"> <SourceLine classname="ex.WOC_Sample" start="19" end="198" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[lines 19-198]</Message> </SourceLine> <Message>In class ex.WOC_Sample</Message> </Class> <Method classname="ex.WOC_Sample" name="testWOCSimple" signature="()V" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample" start="32" end="38" startBytecode="0" endBytecode="160" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"/> <Message>In method ex.WOC_Sample.testWOCSimple()</Message> </Method> <SourceLine classname="ex.WOC_Sample" primary="true" start="32" end="32" startBytecode="7" endBytecode="7" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 32]</Message> </SourceLine> </BugInstance> <BugInstance type="SIC_INNER_SHOULD_BE_STATIC" priority="2" rank="18" abbrev="SIC" category="PERFORMANCE" instanceHash="c779d70753cb4283b191a52481873e05" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Should be a static inner class</ShortMessage> <LongMessage>Should ex.WOC_Sample$Data be a _static_ inner class?</LongMessage> <Class classname="ex.WOC_Sample$Data" primary="true"> <SourceLine classname="ex.WOC_Sample$Data" start="200" end="200" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 200]</Message> </SourceLine> <Message>In class ex.WOC_Sample$Data</Message> </Class> <SourceLine classname="ex.WOC_Sample$Data" start="200" end="200" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java" synthetic="true"> <Message>At WOC_Sample.java:[line 200]</Message> </SourceLine> </BugInstance> <BugInstance type="URF_UNREAD_FIELD" priority="2" rank="18" abbrev="UrF" category="PERFORMANCE" instanceHash="4d56497fa0a5edc1e0a0384d9b6f096d" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Unread field</ShortMessage> <LongMessage>Unread field: ex.WOC_Sample$Data.ss</LongMessage> <Class classname="ex.WOC_Sample$Data" primary="true"> <SourceLine classname="ex.WOC_Sample$Data" start="200" end="200" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 200]</Message> </SourceLine> <Message>In class ex.WOC_Sample$Data</Message> </Class> <Field classname="ex.WOC_Sample$Data" name="ss" signature="Ljava/util/Set;" isStatic="false" primary="true"> <SourceLine classname="ex.WOC_Sample$Data" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>In WOC_Sample.java</Message> </SourceLine> <Message>Field ex.WOC_Sample$Data.ss</Message> </Field> <SourceLine classname="ex.WOC_Sample" primary="true" start="172" end="172" startBytecode="38" endBytecode="38" sourcefile="WOC_Sample.java" sourcepath="ex/WOC_Sample.java"> <Message>At WOC_Sample.java:[line 172]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_LOWER_CLASS" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="2ef762d2742350e4e5dc7ccac6539edc" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not start with an upper case letter</ShortMessage> <LongMessage>Class ex.c1 does not start with an upper case letter</LongMessage> <Class classname="ex.c1" primary="true"> <SourceLine classname="ex.c1" start="66" end="69" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 66-69]</Message> </SourceLine> <Message>In class ex.c1</Message> </Class> <SourceLine classname="ex.c1" start="66" end="69" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[lines 66-69]</Message> </SourceLine> </BugInstance> <BugInstance type="NM_CLASS_NAMING_CONVENTION" priority="3" rank="19" abbrev="Nm" category="BAD_PRACTICE" instanceHash="eea5b6e05d9ba496b91d6d5286896dfa" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class names should start with an upper case letter</ShortMessage> <LongMessage>The class name ex.c1 doesn't start with an upper case letter</LongMessage> <Class classname="ex.c1" primary="true"> <SourceLine classname="ex.c1" start="66" end="69" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 66-69]</Message> </SourceLine> <Message>In class ex.c1</Message> </Class> <SourceLine classname="ex.c1" start="66" end="69" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[lines 66-69]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_LOWER_CLASS" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="75d2e43515312d3004fda9435fc556b0" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not start with an upper case letter</ShortMessage> <LongMessage>Class ex.c2 does not start with an upper case letter</LongMessage> <Class classname="ex.c2" primary="true"> <SourceLine classname="ex.c2" start="72" end="75" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 72-75]</Message> </SourceLine> <Message>In class ex.c2</Message> </Class> <SourceLine classname="ex.c2" start="72" end="75" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[lines 72-75]</Message> </SourceLine> </BugInstance> <BugInstance type="NM_CLASS_NAMING_CONVENTION" priority="3" rank="19" abbrev="Nm" category="BAD_PRACTICE" instanceHash="9d348b8c63cdddd42ff4ad883ee52ab7" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class names should start with an upper case letter</ShortMessage> <LongMessage>The class name ex.c2 doesn't start with an upper case letter</LongMessage> <Class classname="ex.c2" primary="true"> <SourceLine classname="ex.c2" start="72" end="75" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 72-75]</Message> </SourceLine> <Message>In class ex.c2</Message> </Class> <SourceLine classname="ex.c2" start="72" end="75" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[lines 72-75]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_LOWER_CLASS" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="87411ef3b721d0c032b13b27108e5a1c" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not start with an upper case letter</ShortMessage> <LongMessage>Class ex.fpGenericConstrainedInterface does not start with an upper case letter</LongMessage> <Class classname="ex.fpGenericConstrainedInterface" primary="true"> <SourceLine classname="ex.fpGenericConstrainedInterface" start="1" end="223" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 1-223]</Message> </SourceLine> <Message>In class ex.fpGenericConstrainedInterface</Message> </Class> <SourceLine classname="ex.fpGenericConstrainedInterface" start="1" end="223" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java" synthetic="true"> <Message>At OCP_Sample.java:[lines 1-223]</Message> </SourceLine> </BugInstance> <BugInstance type="NM_CLASS_NAMING_CONVENTION" priority="3" rank="19" abbrev="Nm" category="BAD_PRACTICE" instanceHash="2fbd4e1e37b91536dd80a4adcd0e2a5e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class names should start with an upper case letter</ShortMessage> <LongMessage>The class name ex.fpGenericConstrainedInterface doesn't start with an upper case letter</LongMessage> <Class classname="ex.fpGenericConstrainedInterface" primary="true"> <SourceLine classname="ex.fpGenericConstrainedInterface" start="1" end="223" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 1-223]</Message> </SourceLine> <Message>In class ex.fpGenericConstrainedInterface</Message> </Class> <SourceLine classname="ex.fpGenericConstrainedInterface" start="1" end="223" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java" synthetic="true"> <Message>At OCP_Sample.java:[lines 1-223]</Message> </SourceLine> </BugInstance> <BugInstance type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" priority="2" rank="18" abbrev="RCN" category="STYLE" instanceHash="d0bbe9c0d583e4b726eaaf7a92582d9a" instanceOccurrenceNum="0" instanceOccurrenceMax="0" cweid="476"> <ShortMessage>Redundant nullcheck of value known to be non-null</ShortMessage> <LongMessage>Redundant nullcheck of java.util.GregorianCalendar.getGregorianChange(), which is known to be non-null in ex.fpGenericConstrainedInterface.compare(GregorianCalendar, GregorianCalendar)</LongMessage> <Class classname="ex.fpGenericConstrainedInterface" primary="true"> <SourceLine classname="ex.fpGenericConstrainedInterface" start="1" end="223" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 1-223]</Message> </SourceLine> <Message>In class ex.fpGenericConstrainedInterface</Message> </Class> <Method classname="ex.fpGenericConstrainedInterface" name="compare" signature="(Ljava/util/GregorianCalendar;Ljava/util/GregorianCalendar;)I" isStatic="false" primary="true"> <SourceLine classname="ex.fpGenericConstrainedInterface" start="220" end="223" startBytecode="0" endBytecode="104" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"/> <Message>In method ex.fpGenericConstrainedInterface.compare(GregorianCalendar, GregorianCalendar)</Message> </Method> <Method classname="java.util.GregorianCalendar" name="getGregorianChange" signature="()Ljava/util/Date;" isStatic="false" role="METHOD_RETURN_VALUE_OF"> <SourceLine classname="java.util.GregorianCalendar" start="807" end="807" startBytecode="0" endBytecode="35" sourcefile="GregorianCalendar.java" sourcepath="java/util/GregorianCalendar.java"/> <Message>Return value of java.util.GregorianCalendar.getGregorianChange() of type java.util.Date</Message> </Method> <SourceLine classname="ex.fpGenericConstrainedInterface" primary="true" start="220" end="220" startBytecode="4" endBytecode="4" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java" role="SOURCE_REDUNDANT_NULL_CHECK"> <Message>Redundant null check at OCP_Sample.java:[line 220]</Message> </SourceLine> </BugInstance> <BugInstance type="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE" priority="2" rank="19" abbrev="Se" category="BAD_PRACTICE" instanceHash="803e474d7d2c34d062768772bcbc808a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Comparator doesn't implement Serializable</ShortMessage> <LongMessage>ex.fpGenericConstrainedInterface implements Comparator but not Serializable</LongMessage> <Class classname="ex.fpGenericConstrainedInterface" primary="true"> <SourceLine classname="ex.fpGenericConstrainedInterface" start="1" end="223" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 1-223]</Message> </SourceLine> <Message>In class ex.fpGenericConstrainedInterface</Message> </Class> <SourceLine classname="ex.fpGenericConstrainedInterface" start="1" end="223" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java" synthetic="true"> <Message>At OCP_Sample.java:[lines 1-223]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_LOWER_CLASS" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="8943b2f0b88d53fbc71e18822798654b" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not start with an upper case letter</ShortMessage> <LongMessage>Class ex.fpOverride does not start with an upper case letter</LongMessage> <Class classname="ex.fpOverride" primary="true"> <SourceLine classname="ex.fpOverride" start="205" end="213" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 205-213]</Message> </SourceLine> <Message>In class ex.fpOverride</Message> </Class> <SourceLine classname="ex.fpOverride" start="205" end="213" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java" synthetic="true"> <Message>At OCP_Sample.java:[lines 205-213]</Message> </SourceLine> </BugInstance> <BugInstance type="NM_CLASS_NAMING_CONVENTION" priority="3" rank="19" abbrev="Nm" category="BAD_PRACTICE" instanceHash="ddc2be3b4c3f3e4f357fa18bf3d91092" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class names should start with an upper case letter</ShortMessage> <LongMessage>The class name ex.fpOverride doesn't start with an upper case letter</LongMessage> <Class classname="ex.fpOverride" primary="true"> <SourceLine classname="ex.fpOverride" start="205" end="213" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java"> <Message>At OCP_Sample.java:[lines 205-213]</Message> </SourceLine> <Message>In class ex.fpOverride</Message> </Class> <SourceLine classname="ex.fpOverride" start="205" end="213" sourcefile="OCP_Sample.java" sourcepath="ex/OCP_Sample.java" synthetic="true"> <Message>At OCP_Sample.java:[lines 205-213]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_LOWER_CLASS" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="a595a0fda3934fcd9a36dc6b592c9600" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not start with an upper case letter</ShortMessage> <LongMessage>Class ex.s1 does not start with an upper case letter</LongMessage> <Class classname="ex.s1" primary="true"> <SourceLine classname="ex.s1" start="78" end="82" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 78-82]</Message> </SourceLine> <Message>In class ex.s1</Message> </Class> <SourceLine classname="ex.s1" start="78" end="82" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[lines 78-82]</Message> </SourceLine> </BugInstance> <BugInstance type="NM_CLASS_NAMING_CONVENTION" priority="3" rank="19" abbrev="Nm" category="BAD_PRACTICE" instanceHash="a203efba92efefd2c008623bf7a51b38" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class names should start with an upper case letter</ShortMessage> <LongMessage>The class name ex.s1 doesn't start with an upper case letter</LongMessage> <Class classname="ex.s1" primary="true"> <SourceLine classname="ex.s1" start="78" end="82" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 78-82]</Message> </SourceLine> <Message>In class ex.s1</Message> </Class> <SourceLine classname="ex.s1" start="78" end="82" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[lines 78-82]</Message> </SourceLine> </BugInstance> <BugInstance type="IMC_IMMATURE_CLASS_LOWER_CLASS" priority="3" rank="20" abbrev="IMC" category="STYLE" instanceHash="91c3de97f073897955f6387167ec517e" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class does not start with an upper case letter</ShortMessage> <LongMessage>Class ex.s2 does not start with an upper case letter</LongMessage> <Class classname="ex.s2" primary="true"> <SourceLine classname="ex.s2" start="86" end="91" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 86-91]</Message> </SourceLine> <Message>In class ex.s2</Message> </Class> <SourceLine classname="ex.s2" start="86" end="91" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[lines 86-91]</Message> </SourceLine> </BugInstance> <BugInstance type="NM_CLASS_NAMING_CONVENTION" priority="3" rank="19" abbrev="Nm" category="BAD_PRACTICE" instanceHash="7c4b37a805b89327d9d2dfdf3fc3c2a" instanceOccurrenceNum="0" instanceOccurrenceMax="0"> <ShortMessage>Class names should start with an upper case letter</ShortMessage> <LongMessage>The class name ex.s2 doesn't start with an upper case letter</LongMessage> <Class classname="ex.s2" primary="true"> <SourceLine classname="ex.s2" start="86" end="91" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java"> <Message>At COM_Sample.java:[lines 86-91]</Message> </SourceLine> <Message>In class ex.s2</Message> </Class> <SourceLine classname="ex.s2" start="86" end="91" sourcefile="COM_Sample.java" sourcepath="ex/COM_Sample.java" synthetic="true"> <Message>At COM_Sample.java:[lines 86-91]</Message> </SourceLine> </BugInstance> <BugCategory category="BAD_PRACTICE"> <Description>Bad practice</Description> </BugCategory> <BugCategory category="MALICIOUS_CODE"> <Description>Malicious code vulnerability</Description> </BugCategory> <BugCategory category="CORRECTNESS"> <Description>Correctness</Description> </BugCategory> <BugCategory category="PERFORMANCE"> <Description>Performance</Description> </BugCategory> <BugCategory category="STYLE"> <Description>Dodgy code</Description> </BugCategory> <BugCategory category="EXPERIMENTAL"> <Description>Experimental</Description> </BugCategory> <BugCategory category="MT_CORRECTNESS"> <Description>Multithreaded correctness</Description> </BugCategory> <BugCategory category="I18N"> <Description>Internationalization</Description> </BugCategory> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_USING_DEPRECATED" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>JUnit 4 test using deprecated junit.framework.* classes</ShortDescription> <Details><![CDATA[ <p>This JUnit 4 test is still using classes from the junit.framework.* package. You should switch them over to the corresponding org.junit.* set of classes, instead.</p> ]]></Details> </BugPattern> <BugPattern type="PSC_PRESIZE_COLLECTIONS" abbrev="PSC" category="PERFORMANCE"> <ShortDescription>Method does not presize the allocation of a collection</ShortDescription> <Details><![CDATA[ <p>This method allocates a collection using the default constructor even though it is known a priori how many items are going to be placed in the collection (or at least can be reasonably guessed) and thus needlessly causes intermediate reallocations of the collection.</p> <p>You can use the constructor that takes an initial size and that will be much better, but due to the loadFactor of Maps and Sets, even this will not be a correct estimate.</p> <p>If you are using Guava, use its methods that allocate maps and sets with a predetermined size, to get the best chance for no reallocations, such as: <ul> <li>Sets.newHashSetWithExpectedSize(int)</li> <li>Maps.newHashMapWithExpectedSize(int)</li> </ul> If not, a good estimate would be the expectedSize / {LOADING_FACTOR} which by default is 0.75 </p> ]]></Details> </BugPattern> <BugPattern type="IMC_IMMATURE_CLASS_PRINTSTACKTRACE" abbrev="IMC" category="STYLE"> <ShortDescription>Method prints the stack trace to the console</ShortDescription> <Details><![CDATA[ <p>This method prints a stack trace to the console. This is non configurable, and causes an application to look unprofessional. Switch to using loggers so that users can control what is logged and where.</p> ]]></Details> </BugPattern> <BugPattern type="NO_NOTIFY_NOT_NOTIFYALL" abbrev="No" category="MT_CORRECTNESS"> <ShortDescription>Using notify() rather than notifyAll()</ShortDescription> <Details><![CDATA[ <p> This method calls <code>notify()</code> rather than <code>notifyAll()</code>. Java monitors are often used for multiple conditions. Calling <code>notify()</code> only wakes up one thread, meaning that the thread woken up might not be the one waiting for the condition that the caller just satisfied.</p> ]]></Details> </BugPattern> <BugPattern type="CLI_CONSTANT_LIST_INDEX" abbrev="CLI" category="CORRECTNESS"> <ShortDescription>Method accesses list or array with constant index</ShortDescription> <Details><![CDATA[ <p>This method accesses an array or list using a constant integer index. Often, this is a typo where a loop variable is intended to be used. If however, specific list indices mean different specific things, then perhaps replacing the list with a first-class object with meaningful accessors would make the code less brittle.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_ASSERT_USED" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>TestNG test method uses Java asserts rather than a TestNG assertion</ShortDescription> <Details><![CDATA[ <p>This method uses a Java assert to assure that a certain state is in effect. As this is a TestNG test it makes more sense to either check this condition with a TestNG assert, or allow a following exception to occur.</p> ]]></Details> </BugPattern> <BugPattern type="WOC_WRITE_ONLY_COLLECTION_FIELD" abbrev="WOC" category="CORRECTNESS"> <ShortDescription>Class creates and initializes a collection but never reads or gains information from it</ShortDescription> <Details><![CDATA[ <p>This class creates and initializes a collection as a field but then never access this collection to gain information, or fetch items from the collection. It is likely that this collection is left over from a past effort, and can be removed.</p> ]]></Details> </BugPattern> <BugPattern type="IMC_IMMATURE_CLASS_WRONG_FIELD_ORDER" abbrev="IMC" category="STYLE"> <ShortDescription>Class orders instance fields before static fields</ShortDescription> <Details><![CDATA[ <p>This class adds fields to the class in an order that is confusing, and not expected by other developers. The standard is for static fields to be listed first, followed by instance fields. when fields are listed out of order, developers may make assumptions about their behaviour that is incorrect and lead to bugs.</p> ]]></Details> </BugPattern> <BugPattern type="NAB_NEEDLESS_BOX_TO_CAST" abbrev="NAB" category="PERFORMANCE"> <ShortDescription>Method creates Boxed primitive from primitive only to cast to another primitive type</ShortDescription> <Details><![CDATA[ <p>This method constructs a Boxed Primitive from a primitive only to call the primitiveValue() method to cast the value to another primitive type. It is simpler to just use casting.</p> <p>Instead of something like:<br/> <pre><code> double someDouble = ... float f = new Double(someDouble).floatValue(); int someInt = ... byte b = new Integer(someInt).byteValue(); </code></pre> Simply do: <br/> <pre><code> double someDouble = ... float f = (float) someDouble; int someInt = ... byte b = (byte)someInt; </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="REC_CATCH_EXCEPTION" abbrev="REC" category="STYLE" cweid="396"> <ShortDescription>Exception is caught when Exception is not thrown</ShortDescription> <Details><![CDATA[ <p> This method uses a try-catch block that catches Exception objects, but Exception is not thrown within the try block, and RuntimeException is not explicitly caught. It is a common bug pattern to say try { ... } catch (Exception e) { something } as a shorthand for catching a number of types of exception each of whose catch blocks is identical, but this construct also accidentally catches RuntimeException as well, masking potential bugs. </p> <p>A better approach is to either explicitly catch the specific exceptions that are thrown, or to explicitly catch RuntimeException exception, rethrow it, and then catch all non-Runtime Exceptions, as shown below:</p> <pre> try { ... } catch (RuntimeException e) { throw e; } catch (Exception e) { ... deal with all non-runtime exceptions ... }</pre> ]]></Details> </BugPattern> <BugPattern type="OBL_UNSATISFIED_OBLIGATION" abbrev="OBL" category="EXPERIMENTAL"> <ShortDescription>Method may fail to clean up stream or resource</ShortDescription> <Details><![CDATA[ <p> This method may fail to clean up (close, dispose of) a stream, database object, or other resource requiring an explicit cleanup operation. </p> <p> In general, if a method opens a stream or other resource, the method should use a try/finally block to ensure that the stream or resource is cleaned up before the method returns. </p> <p> This bug pattern is essentially the same as the OS_OPEN_STREAM and ODR_OPEN_DATABASE_RESOURCE bug patterns, but is based on a different (and hopefully better) static analysis technique. We are interested is getting feedback about the usefulness of this bug pattern. To send feedback, either: </p> <ul> <li>send email to [email protected]</li> <li>file a bug report: <a href="http://findbugs.sourceforge.net/reportingBugs.html">http://findbugs.sourceforge.net/reportingBugs.html</a></li> </ul> <p> In particular, the false-positive suppression heuristics for this bug pattern have not been extensively tuned, so reports about false positives are helpful to us. </p> <p> See Weimer and Necula, <i>Finding and Preventing Run-Time Error Handling Mistakes</i>, for a description of the analysis technique. </p> ]]></Details> </BugPattern> <BugPattern type="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" abbrev="RCN" category="STYLE"> <ShortDescription>Redundant nullcheck of value known to be non-null</ShortDescription> <Details><![CDATA[ <p> This method contains a redundant check of a known non-null value against the constant null.</p> ]]></Details> </BugPattern> <BugPattern type="OI_OPTIONAL_ISSUES_USES_IMMEDIATE_EXECUTION" abbrev="OI" category="CORRECTNESS"> <ShortDescription>Method uses immediate execution of a block of code that is often not used</ShortDescription> <Details><![CDATA[ <p>This method uses the Optional.orElse() method passing in some code that will execute immediately, whether or not the else case of the Optional is needed. This may cause incorrect side effects to happen, or at the minimum, code to execute for no reason. It would be better to use Optional.orElseGet() ]]></Details> </BugPattern> <BugPattern type="LO_EMBEDDED_SIMPLE_STRING_FORMAT_IN_FORMAT_STRING" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Method passes a simple String.format result to an SLF4J's or Log4j2's format string</ShortDescription> <Details><![CDATA[ <p>This method uses an SLF4J or Log4j2 logger to log a string, which was produced through a call to String.format, where the format string passed was a constant string containing only simple format markers that could be directly handled by slf4j or Log4j. Rather than doing <pre> logger.error("String.format("This %s is an error", s)); <pre> do <pre> logger.error(This {} is an error", s); </pre> </p> ]]></Details> </BugPattern> <BugPattern type="NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION" abbrev="NAB" category="PERFORMANCE"> <ShortDescription>Method needlessly boxes a boolean constant</ShortDescription> <Details><![CDATA[ <p>This method assigns a Boxed boolean constant to a primitive boolean variable, or assigns a primitive boolean constant to a Boxed boolean variable. Use the correct constant for the variable desired. Use <br/> <pre><code> boolean b = true; boolean b = false; </code></pre> or <br/> <pre><code> Boolean b = Boolean.TRUE; Boolean b = Boolean.FALSE; </code></pre> </p> <p>Be aware that this boxing happens automatically when you might not expect it. For example, <br/> <pre><code> Map<String, Boolean> statusMap = ... public Boolean someMethod() { statusMap.put("foo", true); //the "true" here is boxed return false; //the "false" here is boxed } </code></pre> has two cases of this needless autoboxing. This can be made more efficient by simply substituting in the constant values: <br/> <pre><code> Map<String, Boolean> statusMap = ... public Boolean someMethod() { statusMap.put("foo", Boolean.TRUE); return Boolean.FALSE; } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="CAO_CONFUSING_AUTOBOXED_OVERLOADING" abbrev="CAO" category="CORRECTNESS"> <ShortDescription>Class defines methods which confuse Character with int parameters</ShortDescription> <Details><![CDATA[ <p>This class defines two methods that differ only by a parameter being defined as Character vs. int, long, float or double. As autoboxing is present, it may be assumed that a parameter of 'a' would map to the Character version, but it does not.</p> ]]></Details> </BugPattern> <BugPattern type="RANGE_STRING_INDEX" abbrev="RANGE" category="CORRECTNESS"> <ShortDescription>String index is out of bounds</ShortDescription> <Details><![CDATA[ <p> String method is called and specified string index is out of bounds. This will result in StringIndexOutOfBoundsException at runtime. </p> ]]></Details> </BugPattern> <BugPattern type="SIC_INNER_SHOULD_BE_STATIC_ANON" abbrev="SIC" category="PERFORMANCE"> <ShortDescription>Could be refactored into a named static inner class</ShortDescription> <Details><![CDATA[ <p> This class is an inner class, but does not use its embedded reference to the object which created it. This reference makes the instances of the class larger, and may keep the reference to the creator object alive longer than necessary. If possible, the class should be made into a <em>static</em> inner class. Since anonymous inner classes cannot be marked as static, doing this will require refactoring the inner class so that it is a named inner class.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_STRINGBUFFER_WITH_EMPTY_STRING" abbrev="SPP" category="PERFORMANCE"> <ShortDescription>Method passes an empty string to StringBuffer of StringBuilder constructor</ShortDescription> <Details><![CDATA[ <p>This method calls the StringBuffer or StringBuilder constructor passing in a constant empty string (""). This is the same as calling the default constructor, but makes the code work harder. Consider passing in a default size instead.</p> ]]></Details> </BugPattern> <BugPattern type="MOM_MISLEADING_OVERLOAD_MODEL" abbrev="MOM" category="STYLE"> <ShortDescription>Class 'overloads' a method with both instance and static versions</ShortDescription> <Details><![CDATA[ <p>This class 'overloads' the same method with both an instance and static version. As the use of these two models is different, it will be confusing to the users of these methods.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_RUNFINALIZATION" abbrev="MDM" category="CORRECTNESS"> <ShortDescription>Method triggers finalization</ShortDescription> <Details><![CDATA[ <p>Manually triggering finalization can result in serious performance problems and may be masking resource cleanup bugs. Only the garbage collector, not application code, should be concerned with finalization.</p> ]]></Details> </BugPattern> <BugPattern type="UR_UNINIT_READ" abbrev="UR" category="CORRECTNESS"> <ShortDescription>Uninitialized read of field in constructor</ShortDescription> <Details><![CDATA[ <p> This constructor reads a field which has not yet been assigned a value. This is often caused when the programmer mistakenly uses the field instead of one of the constructor's parameters.</p> ]]></Details> </BugPattern> <BugPattern type="LGO_LINGERING_GRAPHICS_OBJECT" abbrev="LGO" category="PERFORMANCE"> <ShortDescription>Method allocations a java.awt.Graphics object without disposing it</ShortDescription> <Details><![CDATA[ <p>This method allocates a java.awt.Graphics object but doesn't dispose of it when done. While the garbage collector will clean this up, given that a large number of Graphics objects can be created in a short period of time, it is recommended that you explicitly dispose() of them.</p> ]]></Details> </BugPattern> <BugPattern type="NP_UNWRITTEN_FIELD" abbrev="NP" category="CORRECTNESS"> <ShortDescription>Read of unwritten field</ShortDescription> <Details><![CDATA[ <p> The program is dereferencing a field that does not seem to ever have a non-null value written to it. Unless the field is initialized via some mechanism not seen by the analysis, dereferencing this value will generate a null pointer exception. </p> ]]></Details> </BugPattern> <BugPattern type="LO_APPENDED_STRING_IN_FORMAT_STRING" abbrev="LO" category="PERFORMANCE"> <ShortDescription>Method passes a concatenated string to SLF4J's or Log4j2's format string</ShortDescription> <Details><![CDATA[ <p>This method uses an SLF4J or Log4j2 logger to log a string, where the first (format) string is created using concatenation. You should use {} markers to inject dynamic content into the string, so that String building is delayed until the actual log string is needed. If the log level is high enough that this log statement isn't used, then the appends will never be executed.</p> ]]></Details> </BugPattern> <BugPattern type="PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS" abbrev="PCOA" category="CORRECTNESS"> <ShortDescription>Constructor makes call to non-final method</ShortDescription> <Details><![CDATA[ <p>This constructor makes a call to a non-final method. Since this method can be overridden, a subclasses implementation will be executing against an object that has not been initialized at the subclass level. You should mark all methods called from the constructor as final to avoid this problem.</p> ]]></Details> </BugPattern> <BugPattern type="RR_NOT_CHECKED" abbrev="RR" category="BAD_PRACTICE"> <ShortDescription>Method ignores results of InputStream.read()</ShortDescription> <Details><![CDATA[ <p> This method ignores the return value of one of the variants of <code>java.io.InputStream.read()</code> which can return multiple bytes. If the return value is not checked, the caller will not be able to correctly handle the case where fewer bytes were read than the caller requested. This is a particularly insidious kind of bug, because in many programs, reads from input streams usually do read the full amount of data requested, causing the program to fail only sporadically.</p> ]]></Details> </BugPattern> <BugPattern type="SEC_SIDE_EFFECT_CONSTRUCTOR" abbrev="SEC" category="STYLE"> <ShortDescription>Method uses a Side Effect Constructor</ShortDescription> <Details><![CDATA[ <p>This method creates an object but does not assign this object to any variable or field. This implies that the class operates through side effects in the constructor, which is a bad pattern to use, as it adds unnecessary coupling. Consider pulling the side effect out of the constructor, into a separate method, or into the calling method.</p> ]]></Details> </BugPattern> <BugPattern type="SNG_SUSPICIOUS_NULL_LOCAL_GUARD" abbrev="SNG" category="CORRECTNESS"> <ShortDescription>Method tests a local variable for not null as guard and reassigns it</ShortDescription> <Details><![CDATA[ <p>This method tests a local variable to make sure it's not null before executing a conditional block of code. However, in the conditional block it reassigns the local variable. It is likely that the guard should have been a check to see if the local variable is null, not that the local variable was not null.</p> <p>example: <pre><code> if (name != null) { name = person.getName(); } </code></pre> It is possible this is correct, but it seems likely the guard was meant to be <code>if (name == null)</code> </p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_NO_ASSERT" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>TestNG test method appears to have no assertions</ShortDescription> <Details><![CDATA[ <p>This TestNG test method has no assertions. While a unit test could still be valid if it relies on whether or not an exception is thrown, it is usually a sign of a weak test if there are no assertions. It is also possible that assertions occur in a called method that is not seen by this detector, but this makes the logic of this test more difficult to reason about.</p> ]]></Details> </BugPattern> <BugPattern type="ISB_TOSTRING_APPENDING" abbrev="ISB" category="CORRECTNESS"> <ShortDescription>Method concatenates the result of a toString() call</ShortDescription> <Details><![CDATA[ <p>This method concatenates the output of a <code>toString()</code> call into a <code>StringBuffer</code> or <code>StringBuilder</code>. It is simpler just to pass the object you want to append to the append call, as that form does not suffer the potential for <code>NullPointerException</code>s, and is easier to read.</p> <p> Keep in mind that Java compiles simple <code>String</code> concatenation to use <code>StringBuilder</code>s, so you may see this bug even when you don't use <code>StringBuilder</code>s explicitly. </p> <p> Instead of: <br/> <pre><code> StringBuilder builder = ...; builder.append(someObj.toString()); ... System.out.println("Problem with the object :" + someObj.toString()); </code></pre> just do: <br/> <pre><code> StringBuilder builder = ... builder.append(someObj); ... System.out.println("Problem with the object :" + someObj); </code></pre> to avoid the possibility of <code>NullPointerException</code>s when someObj is <code>null</code>. </p> ]]></Details> </BugPattern> <BugPattern type="SMII_STATIC_METHOD_INSTANCE_INVOCATION" abbrev="SMII" category="STYLE"> <ShortDescription>Method calls static method on instance reference</ShortDescription> <Details><![CDATA[ <p>This method makes a static method call on an instance reference. For reading comprehension of the code is better to call the method on the class, rather than an instance. Perhaps this method's static nature has changed since this code was written, and should be revisited.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortDescription> <Details><![CDATA[ <p>This method evaluates a boolean expression and passes that to Assert.assertFalse / Assert.assertTrue. It is better to pass the two values that are being equated to the Assert.assertEquals method so that the JUnit failure method is more descriptive of the intended test.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_RUNTIME_EXIT_OR_HALT" abbrev="MDM" category="CORRECTNESS"> <ShortDescription>Method calls Runtime.exit() or Runtime.halt()</ShortDescription> <Details><![CDATA[ <p>Calling <code>Runtime.exit()</code> or <code>Runtime.halt()</code> shuts down the entire Java virtual machine. This should only be done in very rare circumstances. Such calls make it hard or impossible for your code to be invoked by other code. Consider throwing a RuntimeException instead.</p> ]]></Details> </BugPattern> <BugPattern type="STT_STRING_PARSING_A_FIELD" abbrev="STT" category="STYLE"> <ShortDescription>This method parses a String that is a field</ShortDescription> <Details><![CDATA[ <p>This method calls a parsing method (indexOf, lastIndexOf, startsWith, endsWith, substring, indexOf) on a String that is a field, or comes from a collection that is a field. This implies that the String in question is holding multiple parts of information inside the string, which would be more maintainable and type safe if that value was a true collection or a first class object with fields, rather than a String. </p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_ACTUAL_CONSTANT" abbrev="UTAO" category="STYLE"> <ShortDescription>TestNG test method passes constant to first (actual) assertion parameter</ShortDescription> <Details><![CDATA[ <p>This method calls assert passing a constant value as the first of the two values. The assert method assumes that the expected value is the second parameter, and so it appears that the order of values has been swapped here.</p> ]]></Details> </BugPattern> <BugPattern type="LO_SUSPECT_LOG_CLASS" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Method specifies an unrelated class when allocating a Logger</ShortDescription> <Details><![CDATA[ <p>This method creates a Logger by passing in a specification for a class that is unrelated to the class in which the logger is going to be used. This is likely caused by copy/paste code.</p> ]]></Details> </BugPattern> <BugPattern type="PMB_INSTANCE_BASED_THREAD_LOCAL" abbrev="PMB" category="CORRECTNESS"> <ShortDescription>Field is an instance based ThreadLocal variable</ShortDescription> <Details><![CDATA[ <p>This ThreadLocal field is defined as being instance based (not static). As all ThreadLocal variables describe permanent reachability roots so far as the garbage collector is concerned, these variables will never be reclaimed (so long as the Thread lives). Since this ThreadLocal is instanced, you potentially will be creating many non reclaimable variables, even after the owning instance has been reclaimed. It is almost a certainty that you want to use static based ThreadLocal variables.</p> ]]></Details> </BugPattern> <BugPattern type="RV_RETURN_VALUE_IGNORED" abbrev="RV" category="CORRECTNESS"> <ShortDescription>Method ignores return value</ShortDescription> <Details><![CDATA[ <p> The return value of this method should be checked. One common cause of this warning is to invoke a method on an immutable object, thinking that it updates the object. For example, in the following code fragment,</p> <blockquote> <pre> String dateString = getHeaderField(name); dateString.trim(); </pre> </blockquote> <p>the programmer seems to be thinking that the trim() method will update the String referenced by dateString. But since Strings are immutable, the trim() function returns a new String value, which is being ignored here. The code should be corrected to: </p> <blockquote> <pre> String dateString = getHeaderField(name); dateString = dateString.trim(); </pre> </blockquote> ]]></Details> </BugPattern> <BugPattern type="PZLA_PREFER_ZERO_LENGTH_ARRAYS" abbrev="PZLA" category="STYLE"> <ShortDescription>Consider returning a zero length array rather than null</ShortDescription> <Details><![CDATA[ <p> It is often a better design to return a length zero array rather than a null reference to indicate that there are no results (i.e., an empty list of results). This way, no explicit check for null is needed by clients of the method.</p> <p>On the other hand, using null to indicate "there is no answer to this question" is probably appropriate. For example, <code>File.listFiles()</code> returns an empty list if given a directory containing no files, and returns null if the file is not a directory.</p> ]]></Details> </BugPattern> <BugPattern type="AI_ANNOTATION_ISSUES_NEEDS_NULLABLE" abbrev="AI" category="CORRECTNESS"> <ShortDescription>Method that can return null, is missing a @Nullable annotation</ShortDescription> <Details><![CDATA[ <p>This method can return null, but is not annotated with an @Nullable annotation. Without this annotation, various IDEs, and static analysis tools may not be able to fully discover possible NullPointerExceptions in your code. By Adding these annotations, you will discover problems around null-ness, more easily.</p> <p>Unfortunately there isn't just one @Nullable annotation, but this detector will recognize:</p> <ul> <li>org.jetbrains.annotations.Nullable</li> <li>javax.annotation.Nullable</li> <li>javax.annotation.CheckForNull</li> <li>edu.umd.cs.findbugs.annotations.Nullable</li> <li>org.springframework.lang.Nullable</li> <li>android.support.annotations.Nullable</li> </ul> <p> You can supply a comma separated list of classes that are custom Nullable Annotations if you desire, by using the system property -Dfb-contrib.ai.annotations="com.acme.Foo,com.acme.Boo" when run. ]]></Details> </BugPattern> <BugPattern type="NAB_NEEDLESS_BOX_TO_UNBOX" abbrev="NAB" category="PERFORMANCE"> <ShortDescription>Method creates Boxed primitive from primitive only to get primitive value</ShortDescription> <Details><![CDATA[ <p>This method constructs a Boxed Primitive from a primitive only to call the primitiveValue() method to convert it back to a primitive. Just use the primitive value instead.</p> <p>Instead of something like:<br/> <pre><code> boolean bo = new Boolean(true).booleanValue(); float f = new Float(1.234f).floatValue(); </code></pre> Simply do: <br/> <pre><code> boolean bo = true; float f = 1.234f; </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="COM_PARENT_DELEGATED_CALL" abbrev="COM" category="STYLE"> <ShortDescription>Method merely delegates to its superclass's version</ShortDescription> <Details><![CDATA[ <p>This method is implemented to just delegate its implementation by calling the superclass method with the same signature. This method can just be removed.</p> ]]></Details> </BugPattern> <BugPattern type="JPAI_TRANSACTION_ON_NON_PUBLIC_METHOD" abbrev="JPAI" category="CORRECTNESS"> <ShortDescription>Method has a Spring @Transactional annotation on it, but is non-public</ShortDescription> <Details><![CDATA[ <p>This method specifies a Spring @Transactional annotation but the method is defined as being non-public. Spring only creates transactional boundaries on methods that are public, and so this annotation is not doing anything for this method. Make the method public, or place the annotation on a more appropriate method.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_NON_USEFUL_TOSTRING" abbrev="SPP" category="STYLE"> <ShortDescription>Method calls toString() on an instance of a class that hasn't overridden toString()</ShortDescription> <Details><![CDATA[ <p>This method calls toString() on an object that hasn't overridden the toString() method, and thus relies on the version found in java.lang.Object. This string is just a raw display of the object's class and location, and provides no information about the information of use. You should implement toString in this class.</p> ]]></Details> </BugPattern> <BugPattern type="EXS_EXCEPTION_SOFTENING_RETURN_FALSE" abbrev="EXS" category="STYLE"> <ShortDescription>method converts an exception into a boolean 'error code' value</ShortDescription> <Details><![CDATA[ <p>This method catches an exception and returns a boolean that represents whether an exception occurred or not. This throws away the value of exception handling and lets code ignore the resultant 'error code' return value. You should just throw the exception to the caller instead.</p> ]]></Details> </BugPattern> <BugPattern type="IKNC_INCONSISTENT_HTTP_PARAM_CASING" abbrev="IKNC" category="STYLE"> <ShortDescription>Method uses the same HttpRequest parameter name but with different casing</ShortDescription> <Details><![CDATA[ <p>This method fetches an HttpServletRequest parameter with a parameter name that was used in other locations but with a different casing. As HttpServletRequest parameters are case-sensitive, this will be very confusing.</p> ]]></Details> </BugPattern> <BugPattern type="LO_STUTTERED_MESSAGE" abbrev="LO" category="STYLE"> <ShortDescription>Method stutters exception message in logger</ShortDescription> <Details><![CDATA[ <p>This method uses a logger method that takes an exception, and passes the result of the getMessage() method on the exception that occurred as the log message. Since you are already passing in the exception, that message is already present in the logs, and by passing it in as the message, you are just stuttering information. It would be more helpful to provide a hand written message that describes the error in this method, possibly including the values of key variables.</p> ]]></Details> </BugPattern> <BugPattern type="STT_TOSTRING_STORED_IN_FIELD" abbrev="STT" category="STYLE"> <ShortDescription>This method stores the value of a toString() call into a field</ShortDescription> <Details><![CDATA[ <p>This method calls the toString() method on an object and stores the value in a field. Doing this throws away the type safety of having the object defined by a Class. Using String makes it very easy to use the wrong type of value, and the compiler will not catch these mistakes. You should delay converting values to Strings for as long as possible, and thus not store them as fields. </p> ]]></Details> </BugPattern> <BugPattern type="EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC" abbrev="Eq" category="CORRECTNESS"> <ShortDescription>equals method overrides equals in superclass and may not be symmetric</ShortDescription> <Details><![CDATA[ <p> This class defines an equals method that overrides an equals method in a superclass. Both equals methods methods use <code>instanceof</code> in the determination of whether two objects are equal. This is fraught with peril, since it is important that the equals method is symmetrical (in other words, <code>a.equals(b) == b.equals(a)</code>). If B is a subtype of A, and A's equals method checks that the argument is an instanceof A, and B's equals method checks that the argument is an instanceof B, it is quite likely that the equivalence relation defined by these methods is not symmetric. </p> ]]></Details> </BugPattern> <BugPattern type="ABC_ARRAY_BASED_COLLECTIONS" abbrev="ABC" category="CORRECTNESS"> <ShortDescription>Method uses array as basis of collection</ShortDescription> <Details><![CDATA[ <p>This method passes an array as the key to a Map, element in a Set, or item in a List when the contains method is used on the List. Since arrays do not and cannot override the equals method, collection inclusion is based on the reference's address, which is probably not desired. In the case that this is a TreeMap or TreeSet, consider passing a Comparator to the map's constructor.</p> ]]></Details> </BugPattern> <BugPattern type="EI_EXPOSE_REP2" abbrev="EI2" category="MALICIOUS_CODE" cweid="374"> <ShortDescription>May expose internal representation by incorporating reference to mutable object</ShortDescription> <Details><![CDATA[ <p> This code stores a reference to an externally mutable object into the internal representation of the object. If instances are accessed by untrusted code, and unchecked changes to the mutable object would compromise security or other important properties, you will need to do something different. Storing a copy of the object is better approach in many situations.</p> ]]></Details> </BugPattern> <BugPattern type="BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS" abbrev="BC" category="BAD_PRACTICE"> <ShortDescription>Equals method should not assume anything about the type of its argument</ShortDescription> <Details><![CDATA[ <p> The <code>equals(Object o)</code> method shouldn't make any assumptions about the type of <code>o</code>. It should simply return false if <code>o</code> is not the same type as <code>this</code>. </p> ]]></Details> </BugPattern> <BugPattern type="CEBE_COMMONS_EQUALS_BUILDER_ISEQUALS" abbrev="CEBE" category="CORRECTNESS"> <ShortDescription>Method returns the result of invoking equals() on EqualsBuilder</ShortDescription> <Details><![CDATA[ <p>This method returns the result of equals on the EqualsBuilder type instead of calling the method isEqual().</p> ]]></Details> </BugPattern> <BugPattern type="EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS" abbrev="EXS" category="STYLE"> <ShortDescription>Unconstrained method converts checked exception to unchecked</ShortDescription> <Details><![CDATA[ <p>This method is not constrained by an interface or superclass, but converts a caught checked exception to unchecked exception and thrown. It would be more appropriate just to throw the checked exception, adding the exception to the throws clause of the method.</p> ]]></Details> </BugPattern> <BugPattern type="JPAI_INEFFICIENT_EAGER_FETCH" abbrev="JPAI" category="CORRECTNESS"> <ShortDescription>OneToMany join specifies 1+n EAGER join</ShortDescription> <Details><![CDATA[ <p>This JPA entity specifies a @OneToMany join with a fetch type of EAGER. By default EAGER joins perform select operations on each element returned from the original query in sequence, thus producing 1 + n queries. If you are going to use EAGER joins, it is wise to specify a Join type by using @Fetch annotations in Hibernate or @JoinFetch/@BatchFetch annotations (or hints) in EclipseLink, for example. Even so, these annotations may only apply in limited cases, such as in the use of find.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_IMPOSSIBLE_NULL" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>JUnit test method asserts that an autoboxed value is not null</ShortDescription> <Details><![CDATA[ <p>This method asserts that a primitive value that was autoboxed into a boxed primitive was not null. This will never happen, as primitives are never null, and thus the autoboxed value isn't either.</p> ]]></Details> </BugPattern> <BugPattern type="EXS_EXCEPTION_SOFTENING_HAS_CHECKED" abbrev="EXS" category="STYLE"> <ShortDescription>Constrained method converts checked exception to unchecked instead of another allowable checked exception</ShortDescription> <Details><![CDATA[ <p>This method's exception signature is constrained by an interface of superclass not to throw a checked exception that was caught. Therefore this exception was converted to an unchecked exception and thrown. It would probably be better to throw the closest checked exception allowed, and to annotate the new exception with the original exception using the initial cause field.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_STRING_BYTES_ENCODING" abbrev="MDM" category="CORRECTNESS"> <ShortDescription>Method encodes String bytes without specifying the character encoding</ShortDescription> <Details><![CDATA[ <p>The behavior of the <code>String(byte[] bytes)</code> and <code>String.getBytes()</code> is undefined if the string cannot be encoded in the platform's default charset. Instead, use the <code>String(byte[] bytes, String encoding)</code> or <code>String.getBytes(String encoding)</code> constructor which accepts the string's encoding as an argument. Be sure to specify the encoding used for the user's locale.</p> <p>As per the Java specifications, "UTF-8", "US-ASCII", "UTF-16" and "ISO-8859-1" will all be valid <a href = "http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html#standard">encoding charsets</a>. If you aren't sure, try "UTF-8".</p> <p><b>New in Java 1.7</b>, you can specify an encoding from <code>StandardCharsets</code>, like <code>StandardCharsets.UTF_8</code>. These are generally preferrable because you don't have to deal with <code>UnsupportedEncodingException</code>.</p> ]]></Details> </BugPattern> <BugPattern type="NPMC_NON_PRODUCTIVE_METHOD_CALL" abbrev="NPMC" category="CORRECTNESS"> <ShortDescription>Method ignores return value of a non mutating method</ShortDescription> <Details><![CDATA[ <p>This method ignores the return value of a common method that is assumed to be non-mutating. If this method does in fact not modify the object it is called on, there is no reason to call this method, and it can be removed.</p> ]]></Details> </BugPattern> <BugPattern type="SUA_SUSPICIOUS_UNINITIALIZED_ARRAY" abbrev="SUA" category="CORRECTNESS"> <ShortDescription>Method returns an array that appears not to be initialized</ShortDescription> <Details><![CDATA[ <p>This method returns an array that was allocated but apparently not initialized. It is possible that the caller of this method will do the work of initializing this array, but that is not a common pattern, and it is assumed that this array has just been forgotten to be initialized.</p> ]]></Details> </BugPattern> <BugPattern type="URV_INHERITED_METHOD_WITH_RELATED_TYPES" abbrev="URV" category="STYLE"> <ShortDescription>Inherited method returns more specific type of object than declared</ShortDescription> <Details><![CDATA[ <p>This inherited method is defined to return a java.lang.Object. However, the return types returned from this method can be defined by a more specific class or interface. If possible consider changing the return type in the inheritance hierarchy of this method, otherwise the caller of this method will be brittle in handling of the return type.</p> ]]></Details> </BugPattern> <BugPattern type="S508C_NO_SETLABELFOR" abbrev="S508C" category="CORRECTNESS"> <ShortDescription>JLabel doesn't specify what it's labeling</ShortDescription> <Details><![CDATA[ <p>This class uses JLabels that do not specify what fields are being labeled. This hampers screen readers from given appropriate feed back to users. Use the JLabel.setLabelFor method to accomplish this.</p> ]]></Details> </BugPattern> <BugPattern type="WI_MANUALLY_ALLOCATING_AN_AUTOWIRED_BEAN" abbrev="WI" category="CORRECTNESS"> <ShortDescription>Method allocates an object with new when the class is defined as an autowireable bean</ShortDescription> <Details><![CDATA[ <p>this method allocates an object with new, but the class of the object that is being created is marked with a Spring annotation denoting that this class is to be used through an @Autowire annotation. Allocating it with new, will likely mean that fields on the class will not be autowired, but instead be null. You should just autowire an instance of this class into the class in question, or if need be, use spring's getBean(name) method to fetch one.</p> ]]></Details> </BugPattern> <BugPattern type="IOI_USE_OF_FILE_STREAM_CONSTRUCTORS" abbrev="IOI" category="PERFORMANCE"> <ShortDescription>Method uses a FileInputStream or FileOutputStream constructor</ShortDescription> <Details><![CDATA[ <p>This method creates and uses a java.io.FileInputStream or java.io.FileOutputStream object. Unfortunately both of these classes implement a finalize method, which means that objects created will likely hang around until a full garbage collection occurs, which will leave excessive garbage on the heap for longer, and potentially much longer than expected. Java 7 introduced two ways to create streams for reading and writing files that do not have this concern. You should consider switching from these above classes to <code> InputStream is = java.nio.file.Files.newInputStream(myfile.toPath()); OutputStream os = java.nio.file.Files.newOutputStream(myfile.toPath()); </code> </p> ]]></Details> </BugPattern> <BugPattern type="HES_EXECUTOR_NEVER_SHUTDOWN" abbrev="HES" category="CORRECTNESS"> <ShortDescription>ExecutorService field doesn't ever get shutdown</ShortDescription> <Details><![CDATA[ <p>Most <code>ExecutorService</code> objects must be explicitly shutdown, otherwise, their internal threads can prolong the running of the JVM, even when everything else has stopped.</p> <p>FindBugs has detected that there are no calls to either the <code>shutdown()</code> or <code>shutdownNow()</code> method, and thus, the <code>ExecutorService</code> is not guaranteed to ever terminate. This is especially problematic for <code>Executors.newFixedThreadPool()</code> and most of the other convenience methods in the <code>Executors</code> class.</p> <p>Even though there are some exceptions to this, particularly when a custom <code>ThreadFactory</code> is provided, or for <code>ThreadPoolExecutor</code>s with <code>allowsCoreThreadTimeOut()</code> set to true, it is good practice to explicitly shutdown the <code>ExecutorService</code> when its utility is done.</p> ]]></Details> </BugPattern> <BugPattern type="COM_COPIED_OVERRIDDEN_METHOD" abbrev="COM" category="STYLE"> <ShortDescription>Method is implemented with an exact copy of its superclass's method</ShortDescription> <Details><![CDATA[ <p>This method is implemented using an exact copy of its superclass method's implementation, which usually means that this method can just be removed.</p> ]]></Details> </BugPattern> <BugPattern type="ICA_INVALID_CONSTANT_ARGUMENT" abbrev="ICA" category="CORRECTNESS"> <ShortDescription>Method passes an invalid value as a method argument</ShortDescription> <Details><![CDATA[ <p>This method passes an invalid constant value to a method parameter that expects only a select number of possible values. This is likely going to cause this method to fail to operate correctly.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_USE_CHARAT" abbrev="SPP" category="PERFORMANCE"> <ShortDescription>Method fetches character array just to do the equivalent of the charAt method</ShortDescription> <Details><![CDATA[ <p>This method calls the toCharArray method on a String to fetch an array of characters, only to retrieve one of those characters by index. It is more performant to just use the charAt method.</p> ]]></Details> </BugPattern> <BugPattern type="IPU_IMPROPER_PROPERTIES_USE" abbrev="IPU" category="CORRECTNESS"> <ShortDescription>Method puts non-String values into a Properties object</ShortDescription> <Details><![CDATA[ <p>This method places non-String objects into a Properties object. As the Properties object is intended to be a String to String map, putting non String objects is wrong, and takes advantage of a design flaw in the Properties class by deriving from Hashtable instead of using aggregation. If you want a collection that holds other types of objects, use a Hashtable, or better still newer collections like HashMap or TreeMap.</p> <p> Don't use <code>properties.put("foo", bar);</code> </p> <p> Do use <code>properties.setProperty("foo", "bar");</code> </p> ]]></Details> </BugPattern> <BugPattern type="CAAL_CONFUSING_ARRAY_AS_LIST" abbrev="CAAL" category="CORRECTNESS"> <ShortDescription>Method calls Array.asList on an array of primitive values</ShortDescription> <Details><![CDATA[ <p>This method passes an array of primitive values to the Array.asList call. As primitive values in arrays aren't automatically promoted to boxed primitives in arrays, the asList call cannot convert this array to a list of boxed primitives. It therefore just creates an array with one item in it, the array itself. This is rarely what is desired.</p> ]]></Details> </BugPattern> <BugPattern type="DM_DEFAULT_ENCODING" abbrev="Dm" category="I18N"> <ShortDescription>Reliance on default encoding</ShortDescription> <Details><![CDATA[ <p> Found a call to a method which will perform a byte to String (or String to byte) conversion, and will assume that the default platform encoding is suitable. This will cause the application behaviour to vary between platforms. Use an alternative API and specify a charset name or Charset object explicitly. </p> ]]></Details> </BugPattern> <BugPattern type="UWF_NULL_FIELD" abbrev="UwF" category="CORRECTNESS"> <ShortDescription>Field only ever set to null</ShortDescription> <Details><![CDATA[ <p> All writes to this field are of the constant value null, and thus all reads of the field will return null. Check for errors, or remove it if it is useless.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_NULL_CHECK_ON_OPTIONAL" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method checks an Optional reference for null or non nullness</ShortDescription> <Details><![CDATA[ This method uses an Optional variable, and checks the reference value for whether it is null or not null. Since the point of the Optional class is to avoid 'the null reference problem', having code that needs to check the reference itself is self defeating, and therefore makes the use of the Optional variable useless. You should never use a variable of type Optional that has a value of null, and so there should be no need to check for it. ]]></Details> </BugPattern> <BugPattern type="SPP_USE_BIGDECIMAL_STRING_CTOR" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method passes double value to BigDecimal Constructor</ShortDescription> <Details><![CDATA[ <p>This method calls the BigDecimal constructor that takes a double, and passes a literal double constant value. Since the use of BigDecimal is to get better precision than double, by passing a double, you only get the precision of double number space. To take advantage of the BigDecimal space, pass the number as a string. </p> ]]></Details> </BugPattern> <BugPattern type="CSI_CHAR_SET_ISSUES_UNKNOWN_ENCODING" abbrev="CSI" category="CORRECTNESS"> <ShortDescription>This method uses an unknown character encoding literal</ShortDescription> <Details><![CDATA[ <p>This method specifies a <code>Charset</code> encoding with a String literal that is not recognized by the current JDK. It's possible that this application will only be deployed on a JVM that does recognize this encoding, but it seems dubious that this is the case.</p> <p> The standard JDK encodings (for Java 8) are "UTF-8", "US-ASCII", "ISO-8859-1", "UTF-16BE", "UTF-16LE", "UTF-16". These are all case-sensitive. </p> ]]></Details> </BugPattern> <BugPattern type="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" abbrev="UrF" category="STYLE"> <ShortDescription>Unread public/protected field</ShortDescription> <Details><![CDATA[ <p> This field is never read. The field is public or protected, so perhaps it is intended to be used with classes not seen as part of the analysis. If not, consider removing it from the class.</p> ]]></Details> </BugPattern> <BugPattern type="S508C_NULL_LAYOUT" abbrev="S508C" category="CORRECTNESS"> <ShortDescription>GUI uses absolute layout</ShortDescription> <Details><![CDATA[ <p>This class passes null to setLayout, which specifies that components are to be laid out using absolute coordinates. This makes making changes for font sizes, etc, difficult as items will not reposition.</p> ]]></Details> </BugPattern> <BugPattern type="NRTL_NON_RECYCLEABLE_TAG_LIB" abbrev="NRTL" category="CORRECTNESS"> <ShortDescription>Tag library is not recycleable</ShortDescription> <Details><![CDATA[ <p>This tag library class implements an attribute whose associated backing store field is modified at another point in the tag library. In order for a tag library to be recycleable, only the container is allowed to change this attribute, through the use of the setXXX method of the taglib. By modifying the value programmatically, the container will not initialize the attribute correctly on reuse.</p> ]]></Details> </BugPattern> <BugPattern type="PIS_POSSIBLE_INCOMPLETE_SERIALIZATION" abbrev="PIS" category="CORRECTNESS"> <ShortDescription>Class doesn't serialize superclass fields</ShortDescription> <Details><![CDATA[ <p>This method implements Serializable but is derived from a class that does not. The superclass has fields that are not serialized because this class does not take the responsibility of writing these fields out either using Serializable's writeObject method, or Externalizable's writeExternal method. Therefore when this class is read from a stream, the superclass fields will only be initialized to the values specified in its default constructor. If possible, change the superclass to implement Serializable, or implement Serializable or Externalizable methods in the child class.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_INEXACT_DOUBLE" abbrev="UTAO" category="STYLE"> <ShortDescription>TestNG test method asserts that two doubles are exactly equal</ShortDescription> <Details><![CDATA[ <p>This method calls assert with two doubles or Doubles. Due to the imprecision of doubles, you should be using the assert method that takes a range parameter that gives a range of error.</p> ]]></Details> </BugPattern> <BugPattern type="NAB_NEEDLESS_BOXING_STRING_CTOR" abbrev="NAB" category="PERFORMANCE"> <ShortDescription>Method passes parsed string to primitive wrapper constructor</ShortDescription> <Details><![CDATA[ <p>This method passes a primitive value retrieved from a <code>BoxedPrimitive.parseBoxedPrimitive("1")</code> call to the same class's constructor. It is simpler to just pass the string to the BoxedPrimitives constructor or, better yet, use the static valueOf.</p> <p>Instead of something like:<br/> <pre><code> Boolean bo = new Boolean(Boolean.parseBoolean("true")); Float f = new Float(Float.parseFloat("1.234")); </code></pre> Simply do: <br/> <pre><code> Boolean bo = new Boolean("true"); Float f = new Float("1.234"); </code></pre> or, to be more memory efficient: <br/> <pre><code> Boolean bo = Boolean.valueOf("true"); Float f = Float.valueOf("1.234"); </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="RANGE_ARRAY_OFFSET" abbrev="RANGE" category="CORRECTNESS"> <ShortDescription>Array offset is out of bounds</ShortDescription> <Details><![CDATA[ <p> Method is called with array parameter and offset parameter, but the offset is out of bounds. This will result in IndexOutOfBoundsException at runtime. </p> ]]></Details> </BugPattern> <BugPattern type="IOI_DOUBLE_BUFFER_COPY" abbrev="IOI" category="PERFORMANCE"> <ShortDescription>Method passes a Buffered Stream/Reader/Writer to a already buffering copy method</ShortDescription> <Details><![CDATA[ <p>This method copies data from input to output using streams or reader/writers using a well known copy method, from java.nio, commons-io, springframework, guava or poi. These methods are efficient in that they copy these files using buffers. However, this method is also buffering the streams, causing a double buffering to occur. So data first goes to one buffer, then is copied to another buffer, before making it to the destination (or vice-versa). This just causes the copy operation to be inefficient both from a time perspective, as well as a memory allocation one. When using these copy methods, do not pass buffered streams/readers/writers.</p> ]]></Details> </BugPattern> <BugPattern type="UAC_UNNECESSARY_API_CONVERSION_DATE_TO_INSTANT" abbrev="UAC" category="CORRECTNESS"> <ShortDescription>Method constructs a Date object, merely to convert it to an Instant object</ShortDescription> <Details><![CDATA[ <p>This method creates a java.time.Instant object by first creating a java.util.Date object, and then calling toInstant() on it. It is simpler to just construct the Instant object directly, say by using {@code Instant.now()} to get the current time, of by using {@code Instant.parse(CharSequence)} to convert a String. </p> ]]></Details> </BugPattern> <BugPattern type="JPAI_IGNORED_MERGE_RESULT" abbrev="JPAI" category="CORRECTNESS"> <ShortDescription>Method ignores the return value of EntityManager.merge</ShortDescription> <Details><![CDATA[ <p>This method calls EntityManager.merge, and throws away the resultant value. This result is the managed entity version of the potentially unmanaged object that was passed to merge. You should use the returned managed entity for any further use.</p> ]]></Details> </BugPattern> <BugPattern type="UWF_UNWRITTEN_FIELD" abbrev="UwF" category="CORRECTNESS"> <ShortDescription>Unwritten field</ShortDescription> <Details><![CDATA[ <p> This field is never written. All reads of it will return the default value. Check for errors (should it have been initialized?), or remove it if it is useless.</p> ]]></Details> </BugPattern> <BugPattern type="DMI_HARDCODED_ABSOLUTE_FILENAME" abbrev="DMI" category="STYLE"> <ShortDescription>Code contains a hard coded reference to an absolute pathname</ShortDescription> <Details><![CDATA[ <p>This code constructs a File object using a hard coded to an absolute pathname (e.g., <code>new File("/home/dannyc/workspace/j2ee/src/share/com/sun/enterprise/deployment");</code> </p> ]]></Details> </BugPattern> <BugPattern type="NCS_NEEDLESS_CUSTOM_SERIALIZATION" abbrev="NCS" category="CORRECTNESS"> <ShortDescription>Method needlessly implements what is default streaming behavior</ShortDescription> <Details><![CDATA[ <p>This method implements the Serializable interface by performing the same operations that would be done if this method did not exist. Since this is the case, this method is not needed.</p> ]]></Details> </BugPattern> <BugPattern type="EXS_EXCEPTION_SOFTENING_NO_CHECKED" abbrev="EXS" category="STYLE"> <ShortDescription>Constrained method converts checked exception to unchecked</ShortDescription> <Details><![CDATA[ <p>This method's exception signature is constrained by an interface or superclass not to throw any checked exceptions. Therefore a caught checked exception was converted to an unchecked exception and thrown. However, it appears that the class in question is owned by the same author as the constraining interface or superclass. Consider changing the signature of this method to include the checked exception.</p> ]]></Details> </BugPattern> <BugPattern type="IPU_IMPROPER_PROPERTIES_USE_SETPROPERTY" abbrev="IPU" category="CORRECTNESS"> <ShortDescription>Method uses Properties.put instead of Properties.setProperty</ShortDescription> <Details><![CDATA[ <p>This method uses the inherited method from Hashtable put(String key, Object value) in a Properties object. Since the Properties object was intended to be only a String to String map, use of the derived put method is discouraged. Use the Properties.setProperty method instead.</p> <p> Don't use <code>properties.put("foo", "bar");</code> </p> <p> Do use <code>properties.setProperty("foo", "bar");</code> </p> ]]></Details> </BugPattern> <BugPattern type="MDM_WAIT_WITHOUT_TIMEOUT" abbrev="MDM" category="MT_CORRECTNESS"> <ShortDescription>Method sleeps without timeout</ShortDescription> <Details><![CDATA[ <p>Calling one of the following methods without timeout could block forever. Consider using a timeout to detect deadlocks or performance problems. Methods: <ul> <li>Thread.join()</li> <li>Object.wait()</li> <li>Condition.await()</li> <li>Lock.lock()</li> <li>Lock.lockInterruptibly()</li> <li>ReentrantLock.lock()</li> <li>ReentrantLock.lockInterruptibly()</li> </ul> </p> ]]></Details> </BugPattern> <BugPattern type="SPP_USELESS_CASING" abbrev="SPP" category="PERFORMANCE"> <ShortDescription>Method compares string without case after enforcing a case</ShortDescription> <Details><![CDATA[ <p>This method compares two strings with compareToIgnoreCase or equalsIgnoreCase, after having called toUpperCase or toLowerCase on the string in question. As you are comparing without concern to case, the toUpperCase or toLowerCase calls are pointless and can be removed.</p> ]]></Details> </BugPattern> <BugPattern type="CNT_ROUGH_CONSTANT_VALUE" abbrev="CNT" category="BAD_PRACTICE"> <ShortDescription>Rough value of known constant found</ShortDescription> <Details><![CDATA[ <p>It's recommended to use the predefined library constant for code clarity and better precision.</p> ]]></Details> </BugPattern> <BugPattern type="OS_OPEN_STREAM" abbrev="OS" category="BAD_PRACTICE"> <ShortDescription>Method may fail to close stream</ShortDescription> <Details><![CDATA[ <p> The method creates an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method. This may result in a file descriptor leak. It is generally a good idea to use a <code>finally</code> block to ensure that streams are closed.</p> ]]></Details> </BugPattern> <BugPattern type="WOC_WRITE_ONLY_COLLECTION_LOCAL" abbrev="WOC" category="CORRECTNESS"> <ShortDescription>Method creates and initializes a collection but never reads or gains information from it</ShortDescription> <Details><![CDATA[ <p>This method creates and initializes a collection but then never access this collection to gain information, or fetch items from the collection. It is likely that this collection is left over from a past effort, and can be removed.</p> ]]></Details> </BugPattern> <BugPattern type="SSCU_SUSPICIOUS_SHADED_CLASS_USE" abbrev="SSCU" category="CORRECTNESS"> <ShortDescription>Method calls a method from a class that has been shaded by a 3rdparty jar</ShortDescription> <Details><![CDATA[ <p>This method calls a method found in a 3rdparty library, which appears to be shaded from another 3rdparty library. This occurs when a jar includes other code using tools like the maven shade plugin. It is likely you wanted to use the "first-class" class from the original jar, rather than the class with the shaded package structure, but your IDE pulled in the wrong import.</p> <p>An example might be, you attempted to use a method from the class: <pre><code> com.google.common.collect.Sets </code></pre> But instead, you import: <pre><code> org.apache.jena.ext.com.google.common.collect.Sets </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="DM_CONVERT_CASE" abbrev="Dm" category="I18N"> <ShortDescription>Consider using Locale parameterized version of invoked method</ShortDescription> <Details><![CDATA[ <p> A String is being converted to upper or lowercase, using the platform's default encoding. This may result in improper conversions when used with international characters. Use the </p> <ul> <li>String.toUpperCase( Locale l )</li> <li>String.toLowerCase( Locale l )</li> </ul> <p>versions instead.</p> ]]></Details> </BugPattern> <BugPattern type="PMB_POSSIBLE_MEMORY_BLOAT" abbrev="PMB" category="CORRECTNESS"> <ShortDescription>Potential memory bloat in static field</ShortDescription> <Details><![CDATA[ <p>This class defines static fields that are <code>Collection</code>s, <code>StringBuffer</code>s, or <code>StringBuilder</code>s that do not appear to have any way to clear or reduce their size. That is, a collection is defined and has method calls like <br/> {<code>add()</code>, <code>append()</code>, <code>offer()</code>, <code>put()</code>, ...} <br/> with no method calls to removal methods like<br/> {<code>clear()</code>, <code>delete()</code>, <code>pop()</code>, <code>remove()</code>, ...}<br/> This means that the collection in question can only ever increase in size, which is a potential cause of memory bloat.</p> <p> If this collection is a list, set or otherwise of static things (e.g. a List>String> for month names), consider adding all of the elements in a static initializer, which can only be called once:<br/> <pre><code> private static List<String> monthNames = new ArrayList<String>(); static { monthNames.add("January"); monthNames.add("February"); monthNames.add("March"); ... } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="MDM_SIGNAL_NOT_SIGNALALL" abbrev="MDM" category="MT_CORRECTNESS"> <ShortDescription>Method calls Condition.signal() rather than Condition.signalAll()</ShortDescription> <Details><![CDATA[ <p><code>Condition.signalAll()</code> is preferred over <code>Condition.signal()</code>. Calling <code>signal()</code> only wakes up one thread, meaning that the thread woken up might not be the one waiting for the condition that the caller just satisfied.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_NULL" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>TestNG test method passes null Assert.assertEquals</ShortDescription> <Details><![CDATA[ <p>This method compares an object's equality to null. It is better to use the Assert.assertNull method so that the TestNG failure method is more descriptive of the intended test.</p> ]]></Details> </BugPattern> <BugPattern type="HCP_HTTP_REQUEST_RESOURCES_NOT_FREED_FIELD" abbrev="HCP" category="CORRECTNESS"> <ShortDescription>Unreleased HttpRequest network resources (field)</ShortDescription> <Details><![CDATA[ <p>FindBugs has detected an <code>org.apache.http.HttpRequest</code> (e.g. <code>HttpGet</code>, <code>HttpPost</code>, etc) that didn't release its associated resources. Code like the following: <br/> <pre>code> private HttpGet httpGet; public String requestInfo(URI u) { this.httpGet = new HttpGet(u); try(CloseableHttpResponse response = client.execute(httpGet);) { return getResponseAsString(response); } catch (IOException e) { e.printStackTrace(); } return null; } </code></pre> will freeze after a few requests, usually with no indication as to why. </p> <p> The reason this code freezes is because <code>org.apache.http.HttpRequest</code>s need to explicitly release their connection with a call to either <code>reset()</code> or <code>releaseConnection()</code>. The above example can be easily fixed:<br/> <pre><code> private HttpGet httpGet; ... public String requestInfo(URI u) { this.httpGet = new HttpGet(u); try(CloseableHttpResponse response = client.execute(httpGet);) { return getResponseAsString(response); } catch (IOException e) { e.printStackTrace(); } <b>finally { this.httpGet.reset(); }</b> return null; }<br/> </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="SLS_SUSPICIOUS_LOOP_SEARCH" abbrev="SLS" category="CORRECTNESS"> <ShortDescription>This method continues a loop after finding an equality condition</ShortDescription> <Details><![CDATA[ <p>This method continues with a loop, and does not break out of it, after finding and setting a variable in an if condition based on equality. Since continuing on in the loop would seem to be unlikely to find the item again, breaking at this point would seem to be the proper action.</p> <p>Example: <pre><code> int age = 0; for (Person p : people) { if (p.getName().equals("Dave")) { age = p.getAge(); } } </code></pre> It is likely you wanted a break after getting the age for "Dave".</p> ]]></Details> </BugPattern> <BugPattern type="OI_OPTIONAL_ISSUES_CHECKING_REFERENCE" abbrev="OI" category="CORRECTNESS"> <ShortDescription>Method checks an Optional reference for null</ShortDescription> <Details><![CDATA[ <p>This method compares an Optional reference variable against null. As the whole point of the Optional class is to avoid the null pointer exception, this use pattern is highly suspect. The code should always make sure the Optional reference is valid, and should count on the apis of this class to check for the held reference instead. ]]></Details> </BugPattern> <BugPattern type="SIC_INNER_SHOULD_BE_STATIC" abbrev="SIC" category="PERFORMANCE"> <ShortDescription>Should be a static inner class</ShortDescription> <Details><![CDATA[ <p> This class is an inner class, but does not use its embedded reference to the object which created it. This reference makes the instances of the class larger, and may keep the reference to the creator object alive longer than necessary. If possible, the class should be made static. </p> ]]></Details> </BugPattern> <BugPattern type="OC_OVERZEALOUS_CASTING" abbrev="OC" category="CORRECTNESS"> <ShortDescription>Method manually casts the right hand side of an assignment more specifically than needed</ShortDescription> <Details><![CDATA[ <p>This method casts the right hand side of an expression to a class that is more specific than the variable on the left hand side of the assignment. The cast only has to be as specific as what the variable that is on the left. Using a more specific type on the right hand side just increases cohesion.</p> ]]></Details> </BugPattern> <BugPattern type="BX_UNBOXING_IMMEDIATELY_REBOXED" abbrev="Bx" category="PERFORMANCE"> <ShortDescription>Boxed value is unboxed and then immediately reboxed</ShortDescription> <Details><![CDATA[ <p>A boxed value is unboxed and then immediately reboxed. </p> ]]></Details> </BugPattern> <BugPattern type="NMCS_NEEDLESS_MEMBER_COLLECTION_SYNCHRONIZATION" abbrev="NMCS" category="PERFORMANCE"> <ShortDescription>Class defines unneeded synchronization on member collection</ShortDescription> <Details><![CDATA[ <p>This class defines a private collection member as synchronized. It appears however that this collection is only modified in a static initializer, or constructor. As these two areas are guaranteed to be thread safe, defining this collection as synchronized is unnecessary and a potential performance bottleneck.</p> ]]></Details> </BugPattern> <BugPattern type="JPAI_HC_EQUALS_ON_MANAGED_ENTITY" abbrev="JPAI" category="CORRECTNESS"> <ShortDescription>JPA Entity with Generated @Id defined with hashCode/equals</ShortDescription> <Details><![CDATA[ <p>This class is defined to be a JPA Entity, and has an @Id field that is generated by the JPA provider. Since you do not control when that Id is created directly, it is risky to implement hashCode/equals for this class, and especially for use with Collections, as the data behind the algorithms will not be immutable, and thus cause problems when those fields change, and the object is in the collection. It is usually safer to not define hashCode and equals for entity objects, but treat them as objects for IdentityHashSet/Maps instead.</p> ]]></Details> </BugPattern> <BugPattern type="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD" abbrev="ST" category="STYLE"> <ShortDescription>Write to static field from instance method</ShortDescription> <Details><![CDATA[ <p> This instance method writes to a static field. This is tricky to get correct if multiple instances are being manipulated, and generally bad practice. </p> ]]></Details> </BugPattern> <BugPattern type="ODN_ORPHANED_DOM_NODE" abbrev="ODN" category="CORRECTNESS"> <ShortDescription>Method creates DOM node but doesn't attach it to a document</ShortDescription> <Details><![CDATA[ <p>This method creates a DOM node but does not attach it to a DOM document.</p> ]]></Details> </BugPattern> <BugPattern type="UUF_UNUSED_FIELD" abbrev="UuF" category="PERFORMANCE"> <ShortDescription>Unused field</ShortDescription> <Details><![CDATA[ <p> This field is never used. Consider removing it from the class.</p> ]]></Details> </BugPattern> <BugPattern type="CU_CLONE_USABILITY_THROWS" abbrev="CU" category="STYLE"> <ShortDescription>Clone method declares it throws CloneNotSupportedException</ShortDescription> <Details><![CDATA[ <p>This class implements the Cloneable interface but defines its clone method to still return a CloneNotSupportedException. Since you are implementing clone() it would make sense that the method in question will <em>not</em> throw that exception, so annotating your method with it just makes clients' use of your class more painful as they have to handle an exception that will never happen. Just remove the throws clause from your method.</p> ]]></Details> </BugPattern> <BugPattern type="PCAIL_POSSIBLE_CONSTANT_ALLOCATION_IN_LOOP" abbrev="PCAIL" category="PERFORMANCE"> <ShortDescription>Method allocates an object that is used in a constant way in a loop</ShortDescription> <Details><![CDATA[ <p>This method allocates an object using the default constructor in a loop, and then only uses it in a quasi-static way. It is never assigned to anything that lives outside the loop, and could potentially be allocated once outside the loop. Often this can be achieved by calling a clear() like method in the loop, to reset the state of the object in the loop.</p> ]]></Details> </BugPattern> <BugPattern type="URV_CHANGE_RETURN_TYPE" abbrev="URV" category="STYLE"> <ShortDescription>Method returns more specific type of object than declared</ShortDescription> <Details><![CDATA[ <p>This method is defined to return a java.lang.Object. However, the return types returned from this method can be defined by a more specific class or interface. Since this method is not derived from a superclass or interface, it would be more clear to change the return type of this method.</p> ]]></Details> </BugPattern> <BugPattern type="UP_UNUSED_PARAMETER" abbrev="UP" category="STYLE"> <ShortDescription>Static or private method has unused parameters</ShortDescription> <Details><![CDATA[ <p>This method defines parameters that are never used. As this method is either static or private, and can't be derived from, it is safe to remove these parameters and simplify your method. You should consider, while unlikely, that this method may be used reflectively, and thus you will want to change that call as well. In this case, it is likely that once you remove the parameter, there will be a chain of method calls that have spent time creating this parameter and passing it down the line. All of this may be able to be removed.</p> ]]></Details> </BugPattern> <BugPattern type="LO_NON_PRIVATE_STATIC_LOGGER" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Class defines non private logger using a static class context</ShortDescription> <Details><![CDATA[ <p>This class defines a static logger as non private. It does so by passing the name of a class such as <code><pre>public static final Logger LOG = LoggerFactory.getLogger(Foo.class);</pre></code> Since this class is public it may be used in other classes, but doing so, will provide the incorrect class reference as the class is hard coded. </p> <p> It is recommend to define static loggers as private, and just redefine a new logger in any class that you need to have logging done. <p> <p>If you wish to have a base class define the logger, and have derived classes use that logger, you can potentially use instance based logging, such as <code><pre>protected final Logger LOG = LoggerFactory.getLogger(getClass());</pre></code> However this has the downside of being an instance based logger, and creating a logger object in each instance of the class where it is used. </p> ]]></Details> </BugPattern> <BugPattern type="WI_DUPLICATE_WIRED_TYPES" abbrev="WI" category="CORRECTNESS"> <ShortDescription>Class auto wires the same object into two separate fields in a class hierarchy</ShortDescription> <Details><![CDATA[ <p>this class has two fields in either itself or a parent class which autowire (without specialization), the same object for both fields. This is likely caused by a developer just not being aware that the field already is available for your use, and just causes wasted space, and confusing code access to the same object through two different pathways.</p> ]]></Details> </BugPattern> <BugPattern type="AIOB_ARRAY_INDEX_OUT_OF_BOUNDS" abbrev="AIOB" category="CORRECTNESS"> <ShortDescription>Method attempts to access an array element outside the array's size</ShortDescription> <Details><![CDATA[ <p>This method accesses an array element using a literal index that is known to be outside the size of the specified array. This will cause an ArrayIndexOutOfBoundsException at runtime.</p> ]]></Details> </BugPattern> <BugPattern type="BC_IMPOSSIBLE_CAST" abbrev="BC" category="CORRECTNESS" cweid="570"> <ShortDescription>Impossible cast</ShortDescription> <Details><![CDATA[ <p> This cast will always throw a ClassCastException. FindBugs tracks type information from instanceof checks, and also uses more precise information about the types of values returned from methods and loaded from fields. Thus, it may have more precise information that just the declared type of a variable, and can use this to determine that a cast will always throw an exception at runtime. </p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>TestNG test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortDescription> <Details><![CDATA[ <p>This method evaluates a boolean expression and passes that to Assert.assertFalse / Assert.assertTrue. It is better to pass the two values that are being equated to the Assert.assertNotEquals method so that the TestNG failure method is more meaningful of the intended test.</p> ]]></Details> </BugPattern> <BugPattern type="SF_SWITCH_NO_DEFAULT" abbrev="SF" category="STYLE"> <ShortDescription>Switch statement found where default case is missing</ShortDescription> <Details><![CDATA[ <p> This method contains a switch statement where default case is missing. Usually you need to provide a default case.</p> <p>Because the analysis only looks at the generated bytecode, this warning can be incorrect triggered if the default case is at the end of the switch statement and the switch statement doesn't contain break statements for other cases. ]]></Details> </BugPattern> <BugPattern type="NM_CLASS_NAMING_CONVENTION" abbrev="Nm" category="BAD_PRACTICE"> <ShortDescription>Class names should start with an upper case letter</ShortDescription> <Details><![CDATA[ <p> Class names should be nouns, in mixed case with the first letter of each internal word capitalized. Try to keep your class names simple and descriptive. Use whole words-avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML). </p> ]]></Details> </BugPattern> <BugPattern type="BED_HIERARCHICAL_EXCEPTION_DECLARATION" abbrev="BED" category="CORRECTNESS"> <ShortDescription>Method declares throwing two or more exceptions related by inheritance</ShortDescription> <Details><![CDATA[ <p>This method declares that it throws an exception that is the child of another exception that is also declared to be thrown. Given that the parent exception is declared, there is no need for the child exception to also be declared; it just adds confusion.</p> ]]></Details> </BugPattern> <BugPattern type="JXI_GET_ENDPOINT_CONSUMES_CONTENT" abbrev="JXI" category="CORRECTNESS"> <ShortDescription>JAX-RS Method implements a GET request but consumes input</ShortDescription> <Details><![CDATA[ <p>This JAX-RS endpoint is annotated to be used as @GET requests, but also documents that it consumes JSON or XML data. Since a GET request pulls parameters from the URL, and not the body of request, this pattern is problematic. If you wish to consume JSON or XML data, this request should be annotated with @POST.</p> ]]></Details> </BugPattern> <BugPattern type="SBSC_USE_STRINGBUFFER_CONCATENATION" abbrev="SBSC" category="PERFORMANCE"> <ShortDescription>Method concatenates strings using + in a loop</ShortDescription> <Details><![CDATA[ <p> The method seems to be building a String using concatenation in a loop. In each iteration, the String is converted to a StringBuffer/StringBuilder, appended to, and converted back to a String. This can lead to a cost quadratic in the number of iterations, as the growing string is recopied in each iteration. </p> <p>Better performance can be obtained by using a StringBuffer (or StringBuilder in Java 1.5) explicitly.</p> <p> For example:</p> <pre> // This is bad String s = ""; for (int i = 0; i < field.length; ++i) { s = s + field[i]; } // This is better StringBuffer buf = new StringBuffer(); for (int i = 0; i < field.length; ++i) { buf.append(field[i]); } String s = buf.toString(); </pre> ]]></Details> </BugPattern> <BugPattern type="CTU_CONFLICTING_TIME_UNITS" abbrev="CTU" category="CORRECTNESS"> <ShortDescription>This method performs arithmetic operations on time values with different units</ShortDescription> <Details><![CDATA[ <p>This method takes two values that appear to be representing time, and performs arithmetic operations on these two values directly, even though it appears that the two values are representing different time units, such as adding a millisecond value to a nanosecond value. You should convert the two values to the same time unit before performing this calculation in order for it to be meaningful.</p> ]]></Details> </BugPattern> <BugPattern type="CU_CLONE_USABILITY_MISMATCHED_RETURN" abbrev="CU" category="STYLE"> <ShortDescription>Clone method declares it returns a type different than the owning class</ShortDescription> <Details><![CDATA[ <p>This class implements the Cloneable interface but defines its clone method to return a type that is different than the class itself, or any interfaces that the class implements.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_EQUALS" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>TestNG test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortDescription> <Details><![CDATA[ <p>This method evaluates a boolean expression and passes that to Assert.assertFalse / Assert.assertTrue. It is better to pass the two values that are being equated to the Assert.assertEquals method so that the TestNG failure method is more meaningful of the intended test.</p> ]]></Details> </BugPattern> <BugPattern type="DLS_DEAD_LOCAL_STORE_OF_NULL" abbrev="DLS" category="STYLE"> <ShortDescription>Dead store of null to local variable</ShortDescription> <Details><![CDATA[ <p>The code stores null into a local variable, and the stored value is not read. This store may have been introduced to assist the garbage collector, but as of Java SE 6.0, this is no longer needed or useful. </p> ]]></Details> </BugPattern> <BugPattern type="UAC_UNNECESSARY_API_CONVERSION_FILE_TO_PATH" abbrev="UAC" category="CORRECTNESS"> <ShortDescription>Method constructs a File object, merely to convert it to a Path object</ShortDescription> <Details><![CDATA[ <p>This method creates a java.nio.file.Path object by first creating a java.io.File object, and then calling toPath() on it. It is simpler to just construct the Path object directly, say by using {@code Path.get(String...)}. </p> ]]></Details> </BugPattern> <BugPattern type="TR_TAIL_RECURSION" abbrev="TR" category="PERFORMANCE"> <ShortDescription>Method employs tail recursion</ShortDescription> <Details><![CDATA[ <p>This method recursively calls itself as the last statement of the method (Tail Recursion). This method can be easily refactored into a simple loop, which will make it more performant, and reduce the stack size requirements.</p> ]]></Details> </BugPattern> <BugPattern type="JXI_PARM_PARAM_NOT_FOUND_IN_PATH" abbrev="JXI" category="CORRECTNESS"> <ShortDescription>JAX-RS Method specifies non-resolveable @PathParam</ShortDescription> <Details><![CDATA[ <p>This JAX-RS endpoint has a @PathParam specified that is not found in the @Path annotation and thus can not determine from where to populate that parameter.</p> ]]></Details> </BugPattern> <BugPattern type="UC_USELESS_CONDITION" abbrev="UC" category="STYLE"> <ShortDescription>Condition has no effect</ShortDescription> <Details><![CDATA[ <p>This condition always produces the same result as the value of the involved variable was narrowed before. Probably something else was meant or condition can be removed.</p> ]]></Details> </BugPattern> <BugPattern type="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" abbrev="UwF" category="STYLE"> <ShortDescription>Field not initialized in constructor but dereferenced without null check</ShortDescription> <Details><![CDATA[ <p> This field is never initialized within any constructor, and is therefore could be null after the object is constructed. Elsewhere, it is loaded and dereferenced without a null check. This could be a either an error or a questionable design, since it means a null pointer exception will be generated if that field is dereferenced before being initialized. </p> ]]></Details> </BugPattern> <BugPattern type="NP_NULL_PARAM_DEREF_NONVIRTUAL" abbrev="NP" category="CORRECTNESS"> <ShortDescription>Non-virtual method call passes null for non-null parameter</ShortDescription> <Details><![CDATA[ <p> A possibly-null value is passed to a non-null method parameter. Either the parameter is annotated as a parameter that should always be non-null, or analysis has shown that it will always be dereferenced. </p> ]]></Details> </BugPattern> <BugPattern type="OI_OPTIONAL_ISSUES_PRIMITIVE_VARIANT_PREFERRED" abbrev="OI" category="CORRECTNESS"> <ShortDescription>Method uses a java.util.Optional when use of OptionalInt, OptionalLong, OptionalDouble would be more clear</ShortDescription> <Details><![CDATA[ <p>This method creates an Optional object to hold an int, double or long. In these cases it is more natural to use the Optional variants OptionalInt, OptionalDouble and OptionalLong. </p> ]]></Details> </BugPattern> <BugPattern type="BX_BOXING_IMMEDIATELY_UNBOXED" abbrev="Bx" category="PERFORMANCE"> <ShortDescription>Primitive value is boxed and then immediately unboxed</ShortDescription> <Details><![CDATA[ <p>A primitive is boxed, and then immediately unboxed. This probably is due to a manual boxing in a place where an unboxed value is required, thus forcing the compiler to immediately undo the work of the boxing. </p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_BOOLEAN_ASSERT" abbrev="UTAO" category="STYLE"> <ShortDescription>JUnit test method asserts that a value is equal to true or false</ShortDescription> <Details><![CDATA[ <p>This method asserts that a value is equal to true or false. It is simpler to just use assertTrue, or assertFalse, instead.</p> ]]></Details> </BugPattern> <BugPattern type="LO_SUSPECT_LOG_PARAMETER" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Constructor declares a Logger parameter</ShortDescription> <Details><![CDATA[ <p>This constructor declares a parameter that is a Logger. As loggers are meant to be created statically per class, it doesn't make sense that you would pass a Logger from one class to another. Declare the Logger static in each class instead.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_CONVERSION_OF_STRING_LITERAL" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method converts a String literal</ShortDescription> <Details><![CDATA[ <p>This method calls a converting method like <code>toLowerCase()</code> or <code>trim</code> on a <code>String</code> literal. You should make the transformation yourself and use the transformed literal.</p> <p> For example, instead of :<br/> <pre><code> return "ThisIsAConstantString".toLowerCase().trim(); </code></pre> just do <br/> <pre><code> return "thisisaconstantstring"; </code></pre> for shorter and easier to read code. An exception might be made when locale-specific transformations need to be done (in the case of <code>toUpperCase()</code> and <code>toLowerCase()</code>. </p> ]]></Details> </BugPattern> <BugPattern type="MS_SHOULD_BE_FINAL" abbrev="MS" category="MALICIOUS_CODE"> <ShortDescription>Field isn't final but should be</ShortDescription> <Details><![CDATA[ <p> This static field public but not final, and could be changed by malicious code or by accident from another package. The field could be made final to avoid this vulnerability.</p> ]]></Details> </BugPattern> <BugPattern type="RFI_SET_ACCESSIBLE" abbrev="RFI" category="CORRECTNESS"> <ShortDescription>Method uses AccessibleObject.setAccessible to modify accessibility of classes</ShortDescription> <Details><![CDATA[ <p>This method uses the reflective setAccessible method to alter the behavior of methods and fields in classes in ways that were not expected to be accessed by the author. Doing so circumvents the protections that the author provided through the class definition, and may expose your application unexpected side effects and problems. This functionality is deprecated in Java 9, and in Java 10 it is expected that this functionality won't work at all. ]]></Details> </BugPattern> <BugPattern type="SPP_USE_ISNAN" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method incorrectly compares a floating point number to NaN</ShortDescription> <Details><![CDATA[ <p>This method compares a double or float to the constant <code>Double.NaN</code> or <code>Float.NaN</code>. You should use <code>Double.isNaN(d)</code> or <code>Float.isNaN(f)</code> if the variable is a primitive. If using a boxed primitive <code>d.isNaN()</code> or <code>f.isNaN()</code> should be used.</p> ]]></Details> </BugPattern> <BugPattern type="UVA_USE_VAR_ARGS" abbrev="UVA" category="STYLE"> <ShortDescription>Method defines parameter list with array as last argument, rather than vararg</ShortDescription> <Details><![CDATA[ <p>This method defines a parameter list that ends with an array. As this class is compiled with Java 1.5 or better, this parameter could be defined as a vararg parameter instead, which can be more convenient for client developers to use. This is not a bug, per se, just an improvement.</p> ]]></Details> </BugPattern> <BugPattern type="USFW_UNSYNCHRONIZED_SINGLETON_FIELD_WRITES" abbrev="USFW" category="CORRECTNESS"> <ShortDescription>Method of Singleton class writes to a field in an unsynchronized manner</ShortDescription> <Details><![CDATA[ <p>This method writes to a field of this class. Since this class is seen as a Singleton this can produce race conditions, or cause non-visible changes to other threads, because the field isn't accessed synchronously. ]]></Details> </BugPattern> <BugPattern type="BED_BOGUS_EXCEPTION_DECLARATION" abbrev="BED" category="CORRECTNESS"> <ShortDescription>Non derivable method declares throwing an exception that isn't thrown</ShortDescription> <Details><![CDATA[ <p>This method declares that it throws a checked exception that it does not throw. As this method is either a constructor, static method or private method, there is no reason for this method to declare the exception in its throws clause, and just causes calling methods to unnecessarily handle an exception that will never be thrown. The exception in question should be removed from the throws clause.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_EMPTY_CASING" abbrev="SPP" category="STYLE"> <ShortDescription>Method passes an empty string to equalsIgnoreCase or compareToIgnoreCase</ShortDescription> <Details><![CDATA[ <p>This method passes the empty string "" to equalsIgnoreCase or compareToIgnoreCase. As the empty string is not case-sensitive, using equals is simpler. It would be even simpler to do a length() == 0 test.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>JUnit test method passes boolean expression to Assert.assertFalse / Assert.assertTrue</ShortDescription> <Details><![CDATA[ <p>This method evaluates a boolean expression and passes that to Assert.assertFalse / Assert.assertTrue. It is better to pass the two values that are being equated to the Assert.assertNotEquals method so that the JUnit failure method is more descriptive of the intended test.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_NULL_BEFORE_INSTANCEOF" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method checks a reference for null before calling instanceof</ShortDescription> <Details><![CDATA[ <p>This method checks a reference for null just before seeing if the reference is an instanceof some class. Since instanceof will return false for null references, the null check is not needed.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_SUSPECT_STRING_TEST" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method possibly mixes up normal strings and empty strings in branching logic</ShortDescription> <Details><![CDATA[ <p>This method tests a string, and groups null values with real strings, leaving empty strings as another case. That is, FindBugs has detected a structure like: <br/> <pre><code> String a = null, b = "", c = "someString"; String testStr = ...; //one of a, b or c if ({{FLAWED_TEST_LOGIC}}) { // Strings a and c fall into this branch... which is not typical. } else { // String b falls into this branch. } </code></pre> This might be perfectly valid, but normally, null strings and empty strings are logically handled the same way, and so this test may be flawed.</p> <p>Pattern found is one of the following: <ul> <li><code>if ((s == null) || (s.length() > 0))</code> --- did you mean <code>((s == null) || (s.length() == 0))</code>?</li> <li><code>if ((s == null) || (s.length() != 0))</code> -- did you mean <code>((s == null) || (s.length() == 0))</code>? </li> <li><code>if ((s != null) && (s.length() == 0))</code> -- did you mean <code>((s != null) && (s.length() > 0))</code> or perhaps <code>((s == null) || (s.length() == 0))</code>? </li> </ul> </p> ]]></Details> </BugPattern> <BugPattern type="GC_UNRELATED_TYPES" abbrev="GC" category="CORRECTNESS"> <ShortDescription>No relationship between generic parameter and method argument</ShortDescription> <Details><![CDATA[ <p> This call to a generic collection method contains an argument with an incompatible class from that of the collection's parameter (i.e., the type of the argument is neither a supertype nor a subtype of the corresponding generic type argument). Therefore, it is unlikely that the collection contains any objects that are equal to the method argument used here. Most likely, the wrong value is being passed to the method.</p> <p>In general, instances of two unrelated classes are not equal. For example, if the <code>Foo</code> and <code>Bar</code> classes are not related by subtyping, then an instance of <code>Foo</code> should not be equal to an instance of <code>Bar</code>. Among other issues, doing so will likely result in an equals method that is not symmetrical. For example, if you define the <code>Foo</code> class so that a <code>Foo</code> can be equal to a <code>String</code>, your equals method isn't symmetrical since a <code>String</code> can only be equal to a <code>String</code>. </p> <p>In rare cases, people do define nonsymmetrical equals methods and still manage to make their code work. Although none of the APIs document or guarantee it, it is typically the case that if you check if a <code>Collection<String></code> contains a <code>Foo</code>, the equals method of argument (e.g., the equals method of the <code>Foo</code> class) used to perform the equality checks. </p> ]]></Details> </BugPattern> <BugPattern type="SPP_INTERN_ON_CONSTANT" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method calls intern on a string constant</ShortDescription> <Details><![CDATA[ <p>This method calls intern on a constant string. As constant strings are already interned, this call is superfluous.</p> ]]></Details> </BugPattern> <BugPattern type="URV_UNRELATED_RETURN_VALUES" abbrev="URV" category="STYLE"> <ShortDescription>Method returns different types of unrelated Objects</ShortDescription> <Details><![CDATA[ <p>This method returns two or more unrelated types of objects (Related only through java.lang.Object). This will be very confusing to the code that must call it.</p> ]]></Details> </BugPattern> <BugPattern type="AWCBR_ARRAY_WRAPPED_CALL_BY_REFERENCE" abbrev="AWCBR" category="STYLE"> <ShortDescription>Method uses 1 element array to simulate call by reference</ShortDescription> <Details><![CDATA[ <p>This method uses a one-element array to wrap an object that is to be passed to a method as an argument to simulate call by pointer ala C++. It is better to define a proper return class type that holds all the relevant information retrieved from the called method.</p> ]]></Details> </BugPattern> <BugPattern type="NP_LOAD_OF_KNOWN_NULL_VALUE" abbrev="NP" category="STYLE"> <ShortDescription>Load of known null value</ShortDescription> <Details><![CDATA[ <p> The variable referenced at this point is known to be null due to an earlier check against null. Although this is valid, it might be a mistake (perhaps you intended to refer to a different variable, or perhaps the earlier check to see if the variable is null should have been a check to see if it was non-null). </p> ]]></Details> </BugPattern> <BugPattern type="DP_DO_INSIDE_DO_PRIVILEGED" abbrev="DP" category="MALICIOUS_CODE"> <ShortDescription>Method invoked that should be only be invoked inside a doPrivileged block</ShortDescription> <Details><![CDATA[ <p> This code invokes a method that requires a security permission check. If this code will be granted security permissions, but might be invoked by code that does not have security permissions, then the invocation needs to occur inside a doPrivileged block.</p> ]]></Details> </BugPattern> <BugPattern type="DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE" abbrev="DMI" category="CORRECTNESS"> <ShortDescription>BigDecimal constructed from double that isn't represented precisely</ShortDescription> <Details><![CDATA[ <p> This code creates a BigDecimal from a double value that doesn't translate well to a decimal number. For example, one might assume that writing new BigDecimal(0.1) in Java creates a BigDecimal which is exactly equal to 0.1 (an unscaled value of 1, with a scale of 1), but it is actually equal to 0.1000000000000000055511151231257827021181583404541015625. You probably want to use the BigDecimal.valueOf(double d) method, which uses the String representation of the double to create the BigDecimal (e.g., BigDecimal.valueOf(0.1) gives 0.1). </p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_USE_ASSERT_NOT_NULL" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>TestNG test method passes null Assert.assertNotEquals</ShortDescription> <Details><![CDATA[ <p>This method compares an object's inequality to null. It is better to use the Assert.assertNotNull method so that the TestNG failure method is more descriptive of the intended test.</p> ]]></Details> </BugPattern> <BugPattern type="BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION" abbrev="Bx" category="PERFORMANCE" cweid="192"> <ShortDescription>Primitive value is boxed then unboxed to perform primitive coercion</ShortDescription> <Details><![CDATA[ <p>A primitive boxed value constructed and then immediately converted into a different primitive type (e.g., <code>new Double(d).intValue()</code>). Just perform direct primitive coercion (e.g., <code>(int) d</code>).</p> ]]></Details> </BugPattern> <BugPattern type="RpC_REPEATED_CONDITIONAL_TEST" abbrev="RpC" category="CORRECTNESS"> <ShortDescription>Repeated conditional tests</ShortDescription> <Details><![CDATA[ <p>The code contains a conditional test is performed twice, one right after the other (e.g., <code>x == 0 || x == 0</code>). Perhaps the second occurrence is intended to be something else (e.g., <code>x == 0 || y == 0</code>). </p> ]]></Details> </BugPattern> <BugPattern type="STT_TOSTRING_MAP_KEYING" abbrev="STT" category="STYLE"> <ShortDescription>This method uses a concatenated String as a map key</ShortDescription> <Details><![CDATA[ <p>This method builds a key for a map, using a StringBuilder, either implicitly or explicitly. This means the type of the key is something more t han a String constant, it is a properly formatted String. However, there is no type based verification that all uses of this key will follow this formatting. It is much better to use a proper, simple, bean class that holds two (or more) fields so that it is clear what is expected for key use. </p> <p> Example<br/> instead of <pre><code> V v = myMap.get(tableName + "-" + columnName); </code></pre> use <pre><code> V v = myMap.get(new ColumnSpec(tableName, columnName)); </code></pre> where ColumnSpec is a simple bean-like class of your creation. The advantages, are <ul> <li>The ColumnSpec fully describes what is expected, you need a tableName and columnName</li> <li>There is no guessing by the programmer what the format is, was it tableName + "_" + columnName?</li> </ul> </p> ]]></Details> </BugPattern> <BugPattern type="HES_LOCAL_EXECUTOR_SERVICE" abbrev="HES" category="CORRECTNESS"> <ShortDescription>Suspicious Local Executor Service</ShortDescription> <Details><![CDATA[ <p><code>ExecutorService</code>s are typically instantiated as fields so that many tasks can be executed on a controlled number of <code>Thread</code>s across many method calls. Therefore, it is unusual for <code>ExecutorService</code>s to be a local variable, where tasks will be added only one time, in the enclosing method. </p> <p>Furthermore, when a local <code>ExecutorService</code> reaches the end of scope and goes up for garbage collection, the internal <code>Thread</code>s are not necessarily terminated and can prevent the JVM from ever shutting down.</p> <p>Consider making this local variable a field and create a method that will explicitly shutdown the <code>ExecutorService</code></p> ]]></Details> </BugPattern> <BugPattern type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET" abbrev="CSI" category="CORRECTNESS"> <ShortDescription>This method needlessly uses a String literal as a Charset encoding</ShortDescription> <Details><![CDATA[ <p>This method uses a string literal to specify a <code>Charset</code> encoding. However, the method invoked has an alternative signature that takes a <code>Charset</code> object. You should use this signature, as this class is compiled with JDK 7 (or better), and the <code>Charset</code> in question is available as a constant from the <code>java.nio.charset.StandardCharsets</code> class.</p> <p>So instead of specifying "UTF-8", use <code>StandardCharsets.UTF_8</code>, for instance. An added benefit of this is that you will not need to catch <code>UnsupportedEncodingException</code>.</p> ]]></Details> </BugPattern> <BugPattern type="JXI_INVALID_CONTEXT_PARAMETER_TYPE" abbrev="JXI" category="CORRECTNESS"> <ShortDescription>JAX-RS Method specifies an invalid @Context parameter type</ShortDescription> <Details><![CDATA[ <p>This JAX-RS endpoint annotates a parameter with a @Context annotation. This annotation can supply values for the following types: <ul> <li>javax.ws.rs.core.UriInfo</li> <li>javax.ws.rs.core.HttpHeaders</li> <li>javax.ws.rs.core.Request</li> <li>javax.ws.rs.core.SecurityContext</li> <li>javax.ws.rs.ext.Providers</li> <li>javax.servlet.ServletConfig</li> <li>javax.servlet.ServletContext</li> <li>javax.servlet.HttpServletRequest</li> <li>javax.servlet.HttpServletResponse</li> </ul> It is possible that your container can supply additional types, but these types are not standard and may not be supported on other application servers.</p> ]]></Details> </BugPattern> <BugPattern type="RV_01_TO_INT" abbrev="RV" category="CORRECTNESS"> <ShortDescription>Random value from 0 to 1 is coerced to the integer 0</ShortDescription> <Details><![CDATA[ <p>A random value from 0 to 1 is being coerced to the integer value 0. You probably want to multiple the random value by something else before coercing it to an integer, or use the <code>Random.nextInt(n)</code> method. </p> ]]></Details> </BugPattern> <BugPattern type="UCC_UNRELATED_COLLECTION_CONTENTS" abbrev="UCC" category="STYLE"> <ShortDescription>Method adds unrelated types to collection or array</ShortDescription> <Details><![CDATA[ <p>This method adds unrelated objects to a collection or array, requiring careful and brittle data access to that collection. Create a separate class with properties needed, and add an instance of this class to the collection or array, if possible.</p> ]]></Details> </BugPattern> <BugPattern type="CU_CLONE_USABILITY_OBJECT_RETURN" abbrev="CU" category="STYLE"> <ShortDescription>Clone method declares it returns an Object</ShortDescription> <Details><![CDATA[ <p>This class implements the Cloneable interface but defines its clone method to return an Object. Since most likely users of this method will need to cast it to the real type, this will be more painful than necessary. Just declare the return value to be the type of this class.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_NON_ARRAY_PARM" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method passes a non array object to a parameter that expects an array</ShortDescription> <Details><![CDATA[ <p>This method expects an array to be passed as one of its parameters, but unfortunately defines the parameter as Object. This invocation of this method does not pass an array and will throw an exception when run.</p> ]]></Details> </BugPattern> <BugPattern type="HE_EQUALS_USE_HASHCODE" abbrev="HE" category="BAD_PRACTICE"> <ShortDescription>Class defines equals() and uses Object.hashCode()</ShortDescription> <Details><![CDATA[ <p> This class overrides <code>equals(Object)</code>, but does not override <code>hashCode()</code>, and inherits the implementation of <code>hashCode()</code> from <code>java.lang.Object</code> (which returns the identity hash code, an arbitrary value assigned to the object by the VM). Therefore, the class is very likely to violate the invariant that equal objects must have equal hashcodes.</p> <p>If you don't think instances of this class will ever be inserted into a HashMap/HashTable, the recommended <code>hashCode</code> implementation to use is:</p> <pre>public int hashCode() { assert false : "hashCode not designed"; return 42; // any arbitrary constant will do }</pre> ]]></Details> </BugPattern> <BugPattern type="JPAI_NON_SPECIFIED_TRANSACTION_EXCEPTION_HANDLING" abbrev="JPAI" category="CORRECTNESS"> <ShortDescription>Method does not specify how to handle transaction when exception is thrown</ShortDescription> <Details><![CDATA[ <p>This method declares that it throws one or more non-runtime exceptions. It also is annotated with a @Transactional annotation but fails to describe whether to rollback the transaction or not based on this thrown exception. Use 'rollbackFor' or 'noRollbackFor' attributes of the Transactional annotation to document this.</p> ]]></Details> </BugPattern> <BugPattern type="LSYC_LOCAL_SYNCHRONIZED_COLLECTION" abbrev="LSYC" category="CORRECTNESS"> <ShortDescription>Method creates local variable-based synchronized collection</ShortDescription> <Details><![CDATA[ <p>This method creates a synchronized collection and stores the reference to it in a local variable. As local variables are by definition thread-safe, it seems questionable that this collection needs to be synchronized.</p> <p> <table> <tr><th>If you are using</th><th>consider using</th></tr> <tr><td>java.util.Vector</td><td>java.util.ArrayList</td></tr> <tr><td>java.util.Hashtable</td><td>java.util.HashMap</td></tr> <tr><td>java.lang.StringBuffer</td><td>java.lang.StringBuilder</td></tr> </table> </p> ]]></Details> </BugPattern> <BugPattern type="OI_OPTIONAL_ISSUES_USES_DELAYED_EXECUTION" abbrev="OI" category="CORRECTNESS"> <ShortDescription>Method uses delayed execution of a block of code that is trivial</ShortDescription> <Details><![CDATA[ <p>This method uses the Optional.orElseGet() method passing in a simple variable or constant value. As this value takes not time to execute or causes no side effects, the use of Optional.orElseGet is unnecessary and potentially confusing. You can use Optional.orElse() instead. ]]></Details> </BugPattern> <BugPattern type="RANGE_ARRAY_INDEX" abbrev="RANGE" category="CORRECTNESS"> <ShortDescription>Array index is out of bounds</ShortDescription> <Details><![CDATA[ <p> Array operation is performed, but array index is out of bounds, which will result in ArrayIndexOutOfBoundsException at runtime.</p> ]]></Details> </BugPattern> <BugPattern type="DSOC_DUBIOUS_SET_OF_COLLECTIONS" abbrev="DSOC" category="PERFORMANCE"> <ShortDescription>Method uses a set of collections</ShortDescription> <Details><![CDATA[ <p>This method creates a set that contains other collections, or a Map whose keySet is another collection. As collections tend to calculate hashCode, equals and compareTo by iterating the contents of the collection, this can perform poorly.</p> <p>In addition, when a set is used, you typically are using it to do 'contains', or 'find' type functionality, which seems dubious when done on a collection</p> <p>Finally, as a collection is often modified, problems will occur if the collection is contained in a set, because the hashCode, equals or compareTo values will change while the collection is in the set.</p> <p>If you wish to maintain a collection of collections, it is probably better to use a List as the outer collection.</p> ]]></Details> </BugPattern> <BugPattern type="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" abbrev="UwF" category="STYLE"> <ShortDescription>Unwritten public or protected field</ShortDescription> <Details><![CDATA[ <p> No writes were seen to this public/protected field. All reads of it will return the default value. Check for errors (should it have been initialized?), or remove it if it is useless.</p> ]]></Details> </BugPattern> <BugPattern type="LO_INCORRECT_NUMBER_OF_ANCHOR_PARAMETERS" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Method passes an incorrect number of parameters to an SLF4J or Log4j2 logging statement</ShortDescription> <Details><![CDATA[ <p>This method passes the wrong number of parameters to an SLF4J or Log4j2 logging method (error, warn, info, debug) based on the number of anchors {} in the format string. An additional exception argument is allowed if found.</p> ]]></Details> </BugPattern> <BugPattern type="FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER" abbrev="FE" category="CORRECTNESS"> <ShortDescription>Doomed test for equality to NaN</ShortDescription> <Details><![CDATA[ <p> This code checks to see if a floating point value is equal to the special Not A Number value (e.g., <code>if (x == Double.NaN)</code>). However, because of the special semantics of <code>NaN</code>, no value is equal to <code>Nan</code>, including <code>NaN</code>. Thus, <code>x == Double.NaN</code> always evaluates to false. To check to see if a value contained in <code>x</code> is the special Not A Number value, use <code>Double.isNaN(x)</code> (or <code>Float.isNaN(x)</code> if <code>x</code> is floating point precision). </p> ]]></Details> </BugPattern> <BugPattern type="SCII_SPOILED_CHILD_INTERFACE_IMPLEMENTOR" abbrev="SCII" category="STYLE"> <ShortDescription>Class implements interface by relying on unknowing superclass methods</ShortDescription> <Details><![CDATA[ <p>This class declares that it implements an interface, but does so by relying on methods supplied by superclasses, even though those superclasses know nothing about the interface in question. If you wish to have the child not implement all the methods of the interface, it would probably be better to declare the superclass as implementing the interface, and if that class does not provide all the methods, then declare that superclass abstract.</p> ]]></Details> </BugPattern> <BugPattern type="AOM_ABSTRACT_OVERRIDDEN_METHOD" abbrev="AOM" category="CORRECTNESS"> <ShortDescription>Abstract method overrides a concrete implementation</ShortDescription> <Details><![CDATA[ <p>This abstract method is derived from a concrete method implementation. It is highly suspect that the superclass method's implementation would be cast away.</p> ]]></Details> </BugPattern> <BugPattern type="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" abbrev="VA" category="CORRECTNESS"> <ShortDescription>Primitive array passed to function expecting a variable number of object arguments</ShortDescription> <Details><![CDATA[ <p> This code passes a primitive array to a function that takes a variable number of object arguments. This creates an array of length one to hold the primitive array and passes it to the function. </p> ]]></Details> </BugPattern> <BugPattern type="PL_PARALLEL_LISTS" abbrev="PL" category="STYLE"> <ShortDescription>Class defines two or more one for one associated lists or arrays</ShortDescription> <Details><![CDATA[ <p>This class appears to maintain two or more lists or arrays whose contents are related in a parallel way. That is, you have something like:<br/> <pre><code> List<String> words = new ArrayList<String>(); List<Integer> wordCounts = new ArrayList<String>(); </code></pre> where the elements of the list at index 0 are related, the elements at index 1 are related and so on. </p> <p> Consider creating a separate class to hold all the related pieces of information, and adding instances of this class to just one list or array, or if just two values, use a Map to associate one value with the other like:<br/> <pre><code> private class WordAndCount{public String word; public int count} List<WordAndCount> wordsAndCounts = new ArrayList<WordAndCount>(); //or, for just two elements Map<String,Integer> wordCounts = new HashMap<String,Integer>(); </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="OCP_OVERLY_CONCRETE_PARAMETER" abbrev="OCP" category="STYLE"> <ShortDescription>Method needlessly defines parameter with concrete classes</ShortDescription> <Details><![CDATA[ <p>This method uses concrete classes for parameters when only methods defined in an implemented interface or superclass are used. Consider increasing the abstraction of the interface to make low impact changes easier to accomplish in the future.</p> <p>Take the following example:<br/> <pre><code> private void appendToList(ArrayList<String> list) { if (list.size() < 100) { list.add("Foo"); } } </code></pre> The parameter list is currently defined as an <code>ArrayList</code>, which is a concrete implementation of the <code>List</code> interface. Specifying <code>ArrayList</code> is unnecessary here, because we aren't using any <code>ArrayList</code>-specific methods (like <code>ensureCapacity()</code> or <code>trimToSize()</code>). Instead of using the concrete definition, it is better to do something like:<br/> <pre><code> private void appendToList(List<String> list) { ... </code></pre> If the design ever changes, e.g. a <code>LinkedList</code> is used instead, this code won't have to change. </p> <p>IDEs tend to have tools to help generalize parameters. For example, in Eclipse, the refactoring tool <a href="http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-menu-refactor.htm">Generalize Declared Type</a> helps find an appropriate level of concreteness.</p> ]]></Details> </BugPattern> <BugPattern type="AIOB_ARRAY_STORE_TO_NULL_REFERENCE" abbrev="AIOB" category="CORRECTNESS"> <ShortDescription>Method attempts to store an array element to an array that does not appear to be allocated</ShortDescription> <Details><![CDATA[ <p>This method attempts to store an array element into an array that appears not to have been allocated.</p> ]]></Details> </BugPattern> <BugPattern type="CFS_CONFUSING_FUNCTION_SEMANTICS" abbrev="CFS" category="STYLE"> <ShortDescription>Method returns modified parameter</ShortDescription> <Details><![CDATA[ <p>This method appears to modify a parameter, and then return this parameter as the method's return value. This will be confusing to callers of this method, as it won't be apparent that the 'original' passed in parameter will be changed as well. If the purpose of this method is to change the parameter, it would be more clear to change the method to a have a void return value. If a return type is required due to interface or superclass contract, perhaps a clone of the parameter should be made.</p> ]]></Details> </BugPattern> <BugPattern type="SACM_STATIC_ARRAY_CREATED_IN_METHOD" abbrev="SACM" category="PERFORMANCE"> <ShortDescription>Method creates array using constants</ShortDescription> <Details><![CDATA[ <p>This method creates an array initialized by constants. Each time this method is called this array will be recreated. It would be more performant to define the array as a static field of the class instead.</p> ]]></Details> </BugPattern> <BugPattern type="CSI_CHAR_SET_ISSUES_USE_STANDARD_CHARSET_NAME" abbrev="CSI" category="CORRECTNESS"> <ShortDescription>This method should use a StandardCharsets.XXX.name() to specify an encoding</ShortDescription> <Details><![CDATA[ <p>This method uses a hand-typed <code>String</code> literal to specify a <code>Charset</code> encoding. As this class is compiled with JDK 7 (or better), and the charset in question is available as a constant from the <code>java.nio.charset.StandardCharsets</code> class, it is better to use the .name() method of the appropriate <code>StandardCharsets</code> constant.</p> <p>The method in question doesn't directly support a <code>Charset</code> as a parameter, only a <code>String</code>. Still, instead of specifying something like "UTF-8" (and potentially mistyping it), use <code>StandardCharsets.UTF_8.name()</code>. </p> ]]></Details> </BugPattern> <BugPattern type="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE" abbrev="Se" category="BAD_PRACTICE"> <ShortDescription>Comparator doesn't implement Serializable</ShortDescription> <Details><![CDATA[ <p> This class implements the <code>Comparator</code> interface. You should consider whether or not it should also implement the <code>Serializable</code> interface. If a comparator is used to construct an ordered collection such as a <code>TreeMap</code>, then the <code>TreeMap</code> will be serializable only if the comparator is also serializable. As most comparators have little or no state, making them serializable is generally easy and good defensive programming. </p> ]]></Details> </BugPattern> <BugPattern type="SCRV_SUSPICIOUS_COMPARATOR_RETURN_VALUES" abbrev="SCRV" category="CORRECTNESS"> <ShortDescription>Comparator method doesn't seem to return all ordering values</ShortDescription> <Details><![CDATA[ <p>This compareTo or compare method returns constant values to represent less than, equals, and greater than. However, it does not return each type, or it unconditionally returns a non zero value. Given that comparators are transitive, this seems incorrect.</p> ]]></Details> </BugPattern> <BugPattern type="CHTH_COMMONS_HASHCODE_BUILDER_TOHASHCODE" abbrev="CHTH" category="CORRECTNESS"> <ShortDescription>Method returns the result of invoking hashCode() on HashCodeBuilder</ShortDescription> <Details><![CDATA[ <p>This method returns the result of hashCode on the HashCodeBuilder type instead of calling the method toHashCode().</p> ]]></Details> </BugPattern> <BugPattern type="NP_CLONE_COULD_RETURN_NULL" abbrev="NP" category="BAD_PRACTICE"> <ShortDescription>Clone method may return null</ShortDescription> <Details><![CDATA[ <p> This clone method seems to return null in some circumstances, but clone is never allowed to return a null value. If you are convinced this path is unreachable, throw an AssertionError instead. </p> ]]></Details> </BugPattern> <BugPattern type="SA_LOCAL_DOUBLE_ASSIGNMENT" abbrev="SA" category="STYLE"> <ShortDescription>Double assignment of local variable </ShortDescription> <Details><![CDATA[ <p> This method contains a double assignment of a local variable; e.g. </p> <pre> public void foo() { int x,y; x = x = 17; } </pre> <p>Assigning the same value to a variable twice is useless, and may indicate a logic error or typo.</p> ]]></Details> </BugPattern> <BugPattern type="JVR_JDBC_VENDOR_RELIANCE" abbrev="JVR" category="CORRECTNESS"> <ShortDescription>Method uses JDBC vendor specific classes and methods</ShortDescription> <Details><![CDATA[ <p>This method uses JDBC vendor specific classes and method to perform database work. This makes the code specific to this vendor, and unable to run on other databases.</p> ]]></Details> </BugPattern> <BugPattern type="DRE_DECLARED_RUNTIME_EXCEPTION" abbrev="DRE" category="STYLE"> <ShortDescription>Method declares RuntimeException in throws clause</ShortDescription> <Details><![CDATA[ <p>This method declares a RuntimeException derived class in its throws clause. This may indicate a misunderstanding as to how unchecked exceptions are handled. If it is felt that a RuntimeException is so prevalent that it should be declared, it is probably a better idea to prevent the occurrence in code.</p> ]]></Details> </BugPattern> <BugPattern type="NIR_NEEDLESS_INSTANCE_RETRIEVAL" abbrev="NIR" category="PERFORMANCE"> <ShortDescription>Method retrieves instance to load static member</ShortDescription> <Details><![CDATA[ <p>This method calls a method to load a reference to an object, and then only uses it to load a static member of that instance's class. It is simpler and more performant to just load the static field from the class itself.</p> ]]></Details> </BugPattern> <BugPattern type="MRC_METHOD_RETURNS_CONSTANT" abbrev="MRC" category="STYLE"> <ShortDescription>Private or static method only returns one constant value</ShortDescription> <Details><![CDATA[ <p>This private or static method only returns one constant value. As this method is private or static, its behavior can't be overridden, and thus the return of a constant value seems dubious. Either the method should be changed to return no value, or perhaps another return value was expected to be returned in another code path in this method.</p> ]]></Details> </BugPattern> <BugPattern type="CCI_CONCURRENT_COLLECTION_ISSUES_USE_PUT_IS_RACY" abbrev="CCI" category="CORRECTNESS"> <ShortDescription>Method gets and sets a value of a ConcurrentHashMap in a racy manner</ShortDescription> <Details><![CDATA[ <p>This method retrieves the value of a key from a ConcurrentHashMap, where the value is itself a collection. It checks this value for null, and if it is so, creates a new collection and places it in the map. This may cause thread race conditions where two threads overwrite each other's values. You should be using <code> ConcurrentHashMap.putIfAbsent(K, V) </code> instead. ]]></Details> </BugPattern> <BugPattern type="NAB_NEEDLESS_AUTOBOXING_CTOR" abbrev="NAB" category="PERFORMANCE"> <ShortDescription>Method passes primitive wrapper to same primitive wrapper constructor</ShortDescription> <Details><![CDATA[ <p>This method passes a wrapped primitive object to the same class's constructor. Since wrapper classes are immutable, you can just use the original object, rather than constructing a new one. This code works because of an abuse of autoboxing.</p> ]]></Details> </BugPattern> <BugPattern type="HES_EXECUTOR_OVERWRITTEN_WITHOUT_SHUTDOWN" abbrev="HES" category="CORRECTNESS"> <ShortDescription>An ExecutorService isn't shutdown before the reference to it is lost</ShortDescription> <Details><![CDATA[ <p>Most <code>ExecutorService</code> objects must be explicitly shutdown, otherwise, their internal threads can prevent the JVM from ever shutting down, even when everything else has stopped.</p> <p>FindBugs has detected that something like the following is happening:<br/> <pre><code> ExecutorService executor = ... //e.g. Executors.newCachedThreadPool(); ... public void reset() { this.executor = Executors.newCachedThreadPool(); this.executor.execute(new SampleExecutable()); }<br/> </code></pre> For normal objects, losing the last reference to them like this would trigger the object to be cleaned up in garbage collection. For <code>ExecutorService</code>s, this isn't enough to terminate the internal threads in the thread pool, and the <code>ExecutorService</code> isn't guaranteed to shutdown, causing the JVM to never stop. <br/> To fix this, simply add a call to <code>shutdown()</code> like this:<br/> <pre><code> ExecutorService executor = ... //e.g. Executors.newCachedThreadPool(); ... public void reset() { this.executor.shutDown(); //Fix this.executor = Executors.newCachedThreadPool(); this.executor.execute(new SampleExecutable()); } </code></pre> </p> <p>Even though there are some exceptions to this, particularly when a custom <code>ThreadFactory</code> is provided, or for <code>ThreadPoolExecutor</code>s with <code>allowsCoreThreadTimeOut()</code> set to true, it is good practice to explicitly shutdown the <code>ExecutorService</code> at the end of execution, or when it is being replaced.</p> <p><b>Note:</b> <code>ExecutorService</code>s are generally created once in a program's life cycle. If you find yourself replacing the <code>ExecutorService</code>, perhaps you may consider restructuring your code to use calls like <code>awaitTermination()</code> or <code>Future</code>s/<code>Callable</code>s to avoid recreating the <code>ExecutorService</code>.</p> ]]></Details> </BugPattern> <BugPattern type="JPAI_NON_PROXIED_TRANSACTION_CALL" abbrev="JPAI" category="CORRECTNESS"> <ShortDescription>Method annotated with @Transactional is called from a non Spring proxy</ShortDescription> <Details><![CDATA[ <p>This method call is to a method that has a @Transactional annotation on it. However, since this call is from the same class, it is not going through any Spring proxy, and thus the transactional quality of this method is completely lost. @Transactional method must always be called through a Spring bean that is autowired.</p> ]]></Details> </BugPattern> <BugPattern type="DDC_DOUBLE_DATE_COMPARISON" abbrev="DDC" category="PERFORMANCE"> <ShortDescription>Method uses two date comparisons when one would do</ShortDescription> <Details><![CDATA[ <p>This method compares dates with two comparisons, rather than using the reverse comparison. So this pattern</p> <pre><code> if ((date1.equals( date2 )) || (date1.after( date2 ))) </code></pre> could become:<br/> <pre><code> if (date1.compareTo( date2 ) >= 0) </code></pre><br/> and<br/> <pre><code> if ((date1.equals( date2 )) || (date1.before( date2 ))) </code></pre> could become <br/> <pre><code> if (date1.compareTo( date2 ) <= 0) </code></pre><br/> and<br/> <pre><code> if ((date1.before( date2 )) || (date1.after( date2 ))) </code></pre> could become<br/> <pre><code> if (!date1.equals( date2 )) </code></pre> ]]></Details> </BugPattern> <BugPattern type="DM_USELESS_THREAD" abbrev="Dm" category="MT_CORRECTNESS"> <ShortDescription>A thread was created using the default empty run method</ShortDescription> <Details><![CDATA[ <p>This method creates a thread without specifying a run method either by deriving from the Thread class, or by passing a Runnable object. This thread, then, does nothing but waste time. </p> ]]></Details> </BugPattern> <BugPattern type="NAB_NEEDLESS_AUTOBOXING_VALUEOF" abbrev="NAB" category="PERFORMANCE"> <ShortDescription>Method passes primitive wrapper to Wrapper class valueOf method</ShortDescription> <Details><![CDATA[ <p>This method passes a wrapped primitive object to the same class's .valueOf method. Since wrapper classes are immutable, you can just use the original object, rather than calling valueOf to create a new one. This code works because of an abuse of autoboxing.</p> ]]></Details> </BugPattern> <BugPattern type="LO_INVALID_FORMATTING_ANCHOR" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Method attempts to log using numbered formatting anchors</ShortDescription> <Details><![CDATA[ <p>This method attempts to use an SLF4J or Log4j2 logger to log a parameterized expression using formatting anchors. However, SLF4J and Log4j2 use simple non numbered anchors such as {}, rather than anchors with digits in them as the code uses. Thus no parameter replacement will occur.</p> <p>This pattern is invalid: <code>LOGGER.error("{0} is broken", theThing);</code> Use instead <code>LOGGER.error("{} is broken", theThing);</code> </p> ]]></Details> </BugPattern> <BugPattern type="DM_FP_NUMBER_CTOR" abbrev="Bx" category="PERFORMANCE"> <ShortDescription>Method invokes inefficient floating-point Number constructor; use static valueOf instead</ShortDescription> <Details><![CDATA[ <p> Using <code>new Double(double)</code> is guaranteed to always result in a new object whereas <code>Double.valueOf(double)</code> allows caching of values to be done by the compiler, class library, or JVM. Using of cached values avoids object allocation and the code will be faster. </p> <p> Unless the class must be compatible with JVMs predating Java 1.5, use either autoboxing or the <code>valueOf()</code> method when creating instances of <code>Double</code> and <code>Float</code>. </p> ]]></Details> </BugPattern> <BugPattern type="UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER" abbrev="UMTP" category="CORRECTNESS"> <ShortDescription>Method declares unbound method template parameter(s)</ShortDescription> <Details><![CDATA[ <p>This method declares a method level template parameter that is not bound by any parameter of this method. Therefore the template parameter adds no validation or type safety and can be removed, as it's just confusing to the reader.</p> ]]></Details> </BugPattern> <BugPattern type="UCPM_USE_CHARACTER_PARAMETERIZED_METHOD" abbrev="UCPM" category="PERFORMANCE"> <ShortDescription>Method passes constant String of length 1 to character overridden method</ShortDescription> <Details><![CDATA[ <p>This method passes a constant literal <code>String</code> of length 1 as a parameter to a method, that exposes a similar method that takes a <code>char</code>. It is simpler and more expedient to handle one character, rather than a <code>String</code>.</p> <p> Instead of making calls like: <br/> <pre><code> String myString = ... if (myString.indexOf("e") != -1) { int i = myString.lastIndexOf("e"); System.out.println(myString + ":" + i); //the Java compiler will use a StringBuilder internally here [builder.append(":")] ... return myString.replace("m","z"); } </code></pre> Replace the single letter <code>String</code>s with their <code>char</code> equivalents like so:<br/> <pre><code> String myString = ... if (myString.indexOf('e') != -1) { int i = myString.lastIndexOf('e'); System.out.println(myString + ':' + i); //the Java compiler will use a StringBuilder internally here [builder.append(':')] ... return myString.replace('m','z'); } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="OS_OPEN_STREAM_EXCEPTION_PATH" abbrev="OS" category="BAD_PRACTICE"> <ShortDescription>Method may fail to close stream on exception</ShortDescription> <Details><![CDATA[ <p> The method creates an IO stream object, does not assign it to any fields, pass it to other methods, or return it, and does not appear to close it on all possible exception paths out of the method. This may result in a file descriptor leak. It is generally a good idea to use a <code>finally</code> block to ensure that streams are closed.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_BOOLEAN_ASSERT" abbrev="UTAO" category="STYLE"> <ShortDescription>TestNG test method asserts that a value is true or false</ShortDescription> <Details><![CDATA[ <p>This method asserts that a value is equal to true or false. It is simpler to just use assertTrue, or assertFalse, instead.</p> ]]></Details> </BugPattern> <BugPattern type="LSC_LITERAL_STRING_COMPARISON" abbrev="LSC" category="STYLE"> <ShortDescription>Method makes literal string comparisons passing the literal as an argument</ShortDescription> <Details><![CDATA[ <p>This line is in the form of <br/> <pre><code>String str = ... str.equals("someOtherString"); //or str.compareTo("someOtherString");</code></pre> </p> <p>A <code>NullPointerException</code> may occur if the String variable <code>str</code> is <code>null</code>. If instead the code was restructured to<br/> <pre><code>String str = ... "someOtherString".equals(str); //or "someOtherString".compareTo(str);</code></pre><br/> that is, call <code>equals()</code> or <code>compareTo()</code> on the string literal, passing the variable as an argument, this exception could never happen as both <code>equals()</code> and <code>compareTo()</code> check for <code>null</code>.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_TOSTRING_ON_STRING" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method calls toString() on a String</ShortDescription> <Details><![CDATA[ <p>This method calls toString on a String. Just use the object itself if you want a String.</p> ]]></Details> </BugPattern> <BugPattern type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" abbrev="USBR" category="STYLE"> <ShortDescription>Method stores return result in local before immediately returning it</ShortDescription> <Details><![CDATA[ <p>This method stores the return result in a local variable, and then immediately returns the local variable. It would be simpler just to return the value that is assigned to the local variable, directly.</p> <p> Instead of the following: <br/> <pre><code> public float average(int[] arr) { float sum = 0; for (int i = 0; i < arr.length; i++) { sum += arr[i]; } float ave = sum / arr.length; return ave; } </code></pre> Simply change the method to return the result of the division: <br/> <pre><code> public float average(int[] arr) { float sum = 0; for (int i = 0; i < arr.length; i++) { sum += arr[i]; } <b>return sum / arr.length;</b> //Change } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="DMC_DUBIOUS_MAP_COLLECTION" abbrev="DMC" category="CORRECTNESS"> <ShortDescription>Class holds a map-type field, but uses it as only a List</ShortDescription> <Details><![CDATA[ <p>This method instantiates a map-type field in a static initializer or constructor, but then only uses it through iteration. This means that this data structure should really just be a List<SomeObject>, where the class held by the list contains the two fields held by the key and value of the Map. It was likely done this way to avoid having to create a class, but this just obfuscates the purpose of the field. </p> ]]></Details> </BugPattern> <BugPattern type="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" abbrev="RV" category="STYLE"> <ShortDescription>Return value of method without side effect is ignored</ShortDescription> <Details><![CDATA[ <p>This code calls a method and ignores the return value. However our analysis shows that the method (including its implementations in subclasses if any) does not produce any effect other than return value. Thus this call can be removed. </p> <p>We are trying to reduce the false positives as much as possible, but in some cases this warning might be wrong. Common false-positive cases include:</p> <p>- The method is designed to be overridden and produce a side effect in other projects which are out of the scope of the analysis.</p> <p>- The method is called to trigger the class loading which may have a side effect.</p> <p>- The method is called just to get some exception.</p> <p>If you feel that our assumption is incorrect, you can use a @CheckReturnValue annotation to instruct FindBugs that ignoring the return value of this method is acceptable. </p> ]]></Details> </BugPattern> <BugPattern type="CVAA_CONTRAVARIANT_ELEMENT_ASSIGNMENT" abbrev="CVAA" category="CORRECTNESS"> <ShortDescription>Method performs a contravariant array element assignment</ShortDescription> <Details><![CDATA[ <p>This method contains a contravariant array element assignment. Since arrays are mutable data structures, their use must be restricted to covariant or invariant usage.</p> <pre><code> class A {} class B extends A {} B[] b = new B[2]; A[] a = b; a[0] = new A(); // results in ArrayStoreException (Runtime) </code></pre> ]]></Details> </BugPattern> <BugPattern type="S508C_SET_COMP_COLOR" abbrev="S508C" category="CORRECTNESS"> <ShortDescription>Method explicitly sets the color of a Component</ShortDescription> <Details><![CDATA[ <p>This method sets a Components explicitly foreground or background color which may cause difficulty with people with vision problems from using this application. Colors should be allowed to be set from the operating system.</p> ]]></Details> </BugPattern> <BugPattern type="CSBTS_COMMONS_STRING_BUILDER_TOSTRING" abbrev="CSBTS" category="CORRECTNESS"> <ShortDescription>Method returns the result of invoking toString() without intermediate invocation of append() in ToStringBuilder</ShortDescription> <Details><![CDATA[ <p>This method returns the result of toString() on a ToStringBuilder without an intermediate invocation of append().</p> ]]></Details> </BugPattern> <BugPattern type="CCNE_COMPARE_CLASS_EQUALS_NAME" abbrev="CCNE" category="CORRECTNESS"> <ShortDescription>Method compares class name instead of comparing class</ShortDescription> <Details><![CDATA[ <p>In a JVM, two classes are the same class (and consequently the same type) if they are loaded by the same class loader, and they have the same fully qualified name [JVMSpec 1999]. Comparing class name ignores the class loader.</p> ]]></Details> </BugPattern> <BugPattern type="SNG_SUSPICIOUS_NULL_FIELD_GUARD" abbrev="SNG" category="CORRECTNESS"> <ShortDescription>Method tests a field for not null as guard and reassigns it</ShortDescription> <Details><![CDATA[ <p>This method tests a field to make sure it's not null before executing a conditional block of code. However, in the conditional block it reassigns the field. It is likely that the guard should have been a check to see if the field is null, not that the field was not null.</p> <p>example: <pre><code> if (name != null) { name = person.getName(); } </code></pre> It is possible this is correct, but it seems likely the guard was meant to be <code>if (name == null)</code> </p> ]]></Details> </BugPattern> <BugPattern type="DM_STRING_TOSTRING" abbrev="Dm" category="PERFORMANCE"> <ShortDescription>Method invokes toString() method on a String</ShortDescription> <Details><![CDATA[ <p> Calling <code>String.toString()</code> is just a redundant operation. Just use the String.</p> ]]></Details> </BugPattern> <BugPattern type="IMC_IMMATURE_CLASS_LOWER_CLASS" abbrev="IMC" category="STYLE"> <ShortDescription>Class does not start with an upper case letter</ShortDescription> <Details><![CDATA[ <p>This class has been given a name that does not start with an upper case letter. Classes should follow a pattern of uppercasing the first letter of each word, AsAnExample</p> ]]></Details> </BugPattern> <BugPattern type="UC_USELESS_OBJECT" abbrev="UC" category="STYLE"> <ShortDescription>Useless object created</ShortDescription> <Details><![CDATA[ <p>Our analysis shows that this object is useless. It's created and modified, but its value never go outside of the method or produce any side-effect. Either there is a mistake and object was intended to be used or it can be removed.</p> <p>This analysis rarely produces false-positives. Common false-positive cases include:</p> <p>- This object used to implicitly throw some obscure exception.</p> <p>- This object used as a stub to generalize the code.</p> <p>- This object used to hold strong references to weak/soft-referenced objects.</p> ]]></Details> </BugPattern> <BugPattern type="SG_SLUGGISH_GUI" abbrev="SG" category="PERFORMANCE"> <ShortDescription>Method performs time consuming operation in GUI thread</ShortDescription> <Details><![CDATA[ <p>This method implements an AWT or Swing listener and performs time consuming operations. Doing these operations in the GUI thread will cause the interface to appear sluggish and non-responsive to the user. Consider using a separate thread to do the time consuming work so that the user has a better experience.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_PROMISCUOUS_SERVERSOCKET" abbrev="MDM" category="CORRECTNESS"> <ShortDescription>Method creates promiscuous ServerSocket object</ShortDescription> <Details><![CDATA[ <p>Do not use the <code>ServerSocket</code> constructor or <code>ServerSocketFactory.createServerSocket()</code> factory methods that accept connections on any network interface. By default, an application that listens on a socket will listen for connection attempts on any network interface, which can be a security risk. Only the long form of the <code>ServerSocket</code> constructor or <code>ServerSocketFactory.createServerSocket()</code> factory methods take a specific local address to define which network interface the socket should bind.</p> ]]></Details> </BugPattern> <BugPattern type="EQ_COMPARETO_USE_OBJECT_EQUALS" abbrev="Eq" category="BAD_PRACTICE"> <ShortDescription>Class defines compareTo(...) and uses Object.equals()</ShortDescription> <Details><![CDATA[ <p> This class defines a <code>compareTo(...)</code> method but inherits its <code>equals()</code> method from <code>java.lang.Object</code>. Generally, the value of compareTo should return zero if and only if equals returns true. If this is violated, weird and unpredictable failures will occur in classes such as PriorityQueue. In Java 5 the PriorityQueue.remove method uses the compareTo method, while in Java 6 it uses the equals method.</p> <p>From the JavaDoc for the compareTo method in the Comparable interface: <blockquote> It is strongly recommended, but not strictly required that <code>(x.compareTo(y)==0) == (x.equals(y))</code>. Generally speaking, any class that implements the Comparable interface and violates this condition should clearly indicate this fact. The recommended language is "Note: this class has a natural ordering that is inconsistent with equals." </blockquote></p> ]]></Details> </BugPattern> <BugPattern type="SPP_USELESS_TERNARY" abbrev="SPP" category="PERFORMANCE"> <ShortDescription>Method uses a ternary operator to cast a boolean to true or false</ShortDescription> <Details><![CDATA[ <p>This method tests the value of a boolean and using a ternary operator to return either true or false. The ternary operator is completely unnecessary, just use the original boolean value.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_NEGATIVE_BITSET_ITEM" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method passes a negative number as a bit to a BitSet which isn't supported</ShortDescription> <Details><![CDATA[ <p>This method passes a constant negative value as a bit position to a java.util.BitSet. The BitSet class doesn't support negative values, and thus this method call will not work as expected.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_USE_GET0" abbrev="SPP" category="PERFORMANCE"> <ShortDescription>Method uses iterator().next() on a List to get the first item</ShortDescription> <Details><![CDATA[ <p>This method calls myList.iterator().next() on a List to get the first item. It is more performant to just use myList.get(0).</p> ]]></Details> </BugPattern> <BugPattern type="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" abbrev="FCCD" category="CORRECTNESS"> <ShortDescription>Class has a circular dependency with other classes</ShortDescription> <Details><![CDATA[ <p> This class has a circular dependency with other classes. This makes building these classes difficult, as each is dependent on the other to build correctly. Consider using interfaces to break the hard dependency. The dependency chain can be seen in the GUI version of FindBugs. </p> ]]></Details> </BugPattern> <BugPattern type="CNC_COLLECTION_NAMING_CONFUSION" abbrev="CNC" category="STYLE"> <ShortDescription>Collection variable is named with a different type of collection in the name</ShortDescription> <Details><![CDATA[ <p>This class defines a field or local collection variable with a name that contains a different type of collection in its name. An example would be a Set<User> called userList. This is confusing to the reader, and likely caused by a previous refactor of type, without changing the name. This detector is obviously only checking for English names.</p> ]]></Details> </BugPattern> <BugPattern type="MUP_CONTAINSKEY_BEFORE_GET" abbrev="MUP" category="STYLE"> <ShortDescription>Method check a map with containsKey(), before using get()</ShortDescription> <Details><![CDATA[ <p>This method checks for the presense of a key in a map using containsKey(), before attempting to fetch the value of the key using get(). This equates to doing two map lookups in a row. It is much simpler to just fetch the value with get, and checking for non null instead.</p> <p>As an example, instead of using <code> <pre> Map<String, String> myMap = getSomeMap(); if (myMap.containsKey("foo")) { String value = myMap.get("foo"); .... } </pre> </code> convert this to <code> <pre> Map<String, String> myMap = getSomeMap(); String value = myMap.get("foo"); if (value != null) { .... } </pre> </code> </p> <p>The only caveat to this is that if you use a null value in a map to represent a third state for the key, then in this case using containsKey is 'correct'. This means if an entry found in the map with a null value is taken differently then no entry at all. However this is a very subtle programming paradigm, and likely to cause problems. If you wish to mark an entry as not being present, it is better to use a named 'sentinel' value to denote this, so instead of: <code> <pre> Map<String, String> myMap = getSomeMap(); if (myMap.containsKey("foo")) { String value = myMap.get("foo"); .... } </pre> </code> convert this to <code> <pre> Map<String, String> myMap = getSomeMap(); String value = myMap.get("foo"); if (NOT_FOUND.equals(value)) { .... } where NOT_FOUND is some constant that denotes this special status. Of course you will need to find a special sentinel value for each type you are using that isn't possible to have normally. </p> </pre> </code> ]]></Details> </BugPattern> <BugPattern type="SE_INNER_CLASS" abbrev="Se" category="BAD_PRACTICE"> <ShortDescription>Serializable inner class</ShortDescription> <Details><![CDATA[ <p> This Serializable class is an inner class. Any attempt to serialize it will also serialize the associated outer instance. The outer instance is serializable, so this won't fail, but it might serialize a lot more data than intended. If possible, making the inner class a static inner class (also known as a nested class) should solve the problem. ]]></Details> </BugPattern> <BugPattern type="SPP_STATIC_FORMAT_STRING" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method calls String.format on a static (non parameterized) format string</ShortDescription> <Details><![CDATA[ <p>This method calls String.format passing a static string as the format string that has no replacement markers (starting with %). Thus no replacement will happen, and the format method is superfluous. If parameters were intended, add the appropriate format markers as needed; otherwise, just remove the call to String.format and use the static string as is.</p> ]]></Details> </BugPattern> <BugPattern type="NAB_NEEDLESS_BOXING_PARSE" abbrev="NAB" category="PERFORMANCE"> <ShortDescription>Method converts String to primitive using excessive boxing</ShortDescription> <Details><![CDATA[ <p>This method passes a String to a wrapped primitive object's valueOf method, which in turn calls the boxedValue() method to convert to a primitive. When it is desired to convert from a String to a primitive value, it is simpler to use the BoxedPrimitive.parseBoxedPrimitive(String) method. </p> <p>Instead of something like:<br/> <pre><code> public int someMethod(String data) { long l = Long.valueOf(data).longValue(); float f = Float.valueOf(data).floatValue(); return Integer.valueOf(data); // There is an implicit .intValue() call } </code></pre> Simply do: <br/> <pre><code> public int someMethod(String data) { long l = Long.parseLong(data); float f = Float.parseFloat(data); return Integer.parseInt(data); } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="LO_INVALID_STRING_FORMAT_NOTATION" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Method attempts to log using String.format notation</ShortDescription> <Details><![CDATA[ <p>This method attempts to use an SLF4J or Log4j2 logger to log a parameterized expression using String.format notation. However, SLF4J and Log4j2 uses simple non numbered anchors such as {}, rather than anchors with percent signs in them as the code uses. Thus no parameter replacement will occur.</p> <p>This pattern is invalid: <code>LOGGER.error("%s is broken", theThing);</code> Use instead <code>LOGGER.error("{} is broken", theThing);</code> </p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_ACTUAL_CONSTANT" abbrev="UTAO" category="STYLE"> <ShortDescription>JUnit test method passes constant to second (actual) assertion parameter</ShortDescription> <Details><![CDATA[ <p>This method calls assert passing a constant value as the second of the two values. The assert method assumes that the expected value is the first parameter, and so it appears that the order of values has been swapped here.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_INEXACT_DOUBLE" abbrev="UTAO" category="STYLE"> <ShortDescription>JUnit test method asserts that two doubles are exactly equal</ShortDescription> <Details><![CDATA[ <p>This method calls assert with two doubles or Doubles. Due to the imprecision of doubles, you should be using the assert method that takes a range parameter that gives a range of error.</p> ]]></Details> </BugPattern> <BugPattern type="BAS_BLOATED_ASSIGNMENT_SCOPE" abbrev="BAS" category="PERFORMANCE"> <ShortDescription>Method assigns a variable in a larger scope than is needed</ShortDescription> <Details><![CDATA[ <p><em>THIS DETECTOR IS HIGHLY EXPERIMENTAL AND IS LIKELY TO CREATE A LOT OF FUD</em></p> <p>This method assigns a value to a variable in an outer scope compared to where the variable is actually used. Assuming this evaluation does not have side effects, the assignment can be moved into the inner scope (if block) so that its execution time isn't taken up if the if guard is false. Care should be taken, however, that the right hand side of the assignment does not contain side effects that are required to happen, and that changes are not made further down that will affect the execution of the assignment when done later on.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_STUTTERED_ASSIGNMENT" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method assigns a value to a local twice in a row</ShortDescription> <Details><![CDATA[ <p>This method assigns a value twice in a row in a stuttered way such as <code>a = a = 5;</code> This is most probably a cut and paste error where the duplicate assignment can be removed.</p> ]]></Details> </BugPattern> <BugPattern type="JXI_UNDEFINED_PARAMETER_SOURCE_IN_ENDPOINT" abbrev="JXI" category="CORRECTNESS"> <ShortDescription>JAX-RS Method defines a parameter that has no @*Param or @Context annotation, or @Consumes method annotation</ShortDescription> <Details><![CDATA[ <p>This JAX-RS endpoint declares parameters without specifying where the value of this parameter comes from. You can specify this by using one of several 'Param' annotations (@PathParam, @CookieParam, @FormParam @HeaderParam @MatrixParam @QueryParam), by adding a @Context parameter annotation, or you can declare that the method @Consumes an XML or JSON stream.</p> ]]></Details> </BugPattern> <BugPattern type="LO_TOSTRING_PARAMETER" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Method explicitly calls toString() on a logger parameter</ShortDescription> <Details><![CDATA[ <p>This method uses parameterized logging to avoid the cost of string concatenation in the case that the log level does not meet the needed level. However, one or more of the parameters passed to the logging method uses .toString() to present a String representation for the parameter. This is unneeded as the logger will do this for you, and because it is explicitly done, will always be called even if the log statement is not actually written. Also, by dropping the '.toString()' you may avoid unnecessary NPEs. Just pass the variable as a parameter instead. ]]></Details> </BugPattern> <BugPattern type="UNNC_UNNECESSARY_NEW_NULL_CHECK" abbrev="UNNC" category="CORRECTNESS"> <ShortDescription>Method checks the result of a new allocation</ShortDescription> <Details><![CDATA[ <p>This method allocations an object with new, and then checks that the object is null or non null. As the new operator is guaranteed to either succeed or throw an exception, this null check is unnecessary and can be removed.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_ASSERT_USED" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>JUnit test method uses Java asserts rather than a JUnit assertion</ShortDescription> <Details><![CDATA[ <p>This method uses a Java assert to assure that a certain state is in effect. As this is a JUnit test it makes more sense to either check this condition with a JUnit assert, or allow a following exception to occur.</p> ]]></Details> </BugPattern> <BugPattern type="UPM_UNCALLED_PRIVATE_METHOD" abbrev="UPM" category="PERFORMANCE"> <ShortDescription>Private method is never called</ShortDescription> <Details><![CDATA[ <p> This private method is never called. Although it is possible that the method will be invoked through reflection, it is more likely that the method is never used, and should be removed. </p> ]]></Details> </BugPattern> <BugPattern type="WEM_OBSCURING_EXCEPTION" abbrev="WEM" category="STYLE"> <ShortDescription>Method throws a java.lang.Exception that wraps a more useful exception</ShortDescription> <Details><![CDATA[ <p>This method catches an exception and generates a new exception of type java.lang.Exception, passing the original exception as the new Exception's cause. If the original Exception was actually a java.lang.Error, this is dubious as you should not be handling errors. If the original exception is a more specific exception, there is no reason to wrap it in a java.lang.Exception; this just obfuscates the type of error that is occurring. </p> ]]></Details> </BugPattern> <BugPattern type="CRF_CONFLATING_RESOURCES_AND_FILES" abbrev="CRF" category="CORRECTNESS"> <ShortDescription>This method accesses URL resources using the File API</ShortDescription> <Details><![CDATA[ <p>This method fetches a resource from a URL, and uses the File API to manipulate it. If this resource is a classpath resource, it will work if the resource is a file in a directory. If, however, the file is inside a JAR file this will fail. To avoid this confusing inconsistency, use the URL.openStream API instead to access the data of the classpath resource. </p> ]]></Details> </BugPattern> <BugPattern type="PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" abbrev="PRMC" category="PERFORMANCE"> <ShortDescription>Method appears to call the same method on the same object redundantly</ShortDescription> <Details><![CDATA[ <p>This method makes two consecutive calls to the same method using the same constant parameters, on the same instance without any intervening changes to the objects. If this method does not make changes to the object, which it appears it doesn't, then making two calls is just a waste. These method calls could be combined by assigning the result into a temporary variable, and using the variable the second time.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_USE_MATH_CONSTANT" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method uses non standard math constant</ShortDescription> <Details><![CDATA[ <p>This method defines its own version of <em>PI</em> or <em>e</em> and the value is not as precise as the one defined in the constants Math.PI or Math.E. Use these constants instead.</p> ]]></Details> </BugPattern> <BugPattern type="NP_ALWAYS_NULL" abbrev="NP" category="CORRECTNESS"> <ShortDescription>Null pointer dereference</ShortDescription> <Details><![CDATA[ <p> A null pointer is dereferenced here. This will lead to a <code>NullPointerException</code> when the code is executed.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_SETDEFAULTLOCALE" abbrev="MDM" category="MT_CORRECTNESS"> <ShortDescription>Method calls Locale.setDefault()</ShortDescription> <Details><![CDATA[ <p>Do not use the <code>Locale.setDefault()</code> method to change the default locale. It changes the JVM's default locale for all threads and makes your applications unsafe to threads. It does not affect the host locale. Since changing the JVM's default locale may affect many different areas of functionality, this method should only be used if the caller is prepared to reinitialize locale-sensitive code running within the same Java Virtual Machine, such as the user interface.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_NO_ASSERT" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>JUnit test method appears to have no assertions</ShortDescription> <Details><![CDATA[ <p>This JUnit test method has no assertions. While a unit test could still be valid if it relies on whether or not an exception is thrown, it is usually a sign of a weak test if there are no assertions. It is also possible that assertions occur in a called method that is not seen by this detector, but this makes the logic of this test more difficult to reason about.</p> ]]></Details> </BugPattern> <BugPattern type="SWL_SLEEP_WITH_LOCK_HELD" abbrev="SWL" category="MT_CORRECTNESS"> <ShortDescription>Method calls Thread.sleep() with a lock held</ShortDescription> <Details><![CDATA[ <p> This method calls Thread.sleep() with a lock held. This may result in very poor performance and scalability, or a deadlock, since other threads may be waiting to acquire the lock. It is a much better idea to call wait() on the lock, which releases the lock and allows other threads to run. </p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_NULL" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>JUnit test method passes null Assert.assertNotEquals</ShortDescription> <Details><![CDATA[ <p>This method compares an object's inequality to null. It is better to use the Assert.assertNotNull method so that the JUnit failure method is more meaningful of the intended test.</p> ]]></Details> </BugPattern> <BugPattern type="EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS" abbrev="Eq" category="BAD_PRACTICE"> <ShortDescription>Equals checks for incompatible operand</ShortDescription> <Details><![CDATA[ <p> This equals method is checking to see if the argument is some incompatible type (i.e., a class that is neither a supertype nor subtype of the class that defines the equals method). For example, the Foo class might have an equals method that looks like: </p> <pre> public boolean equals(Object o) { if (o instanceof Foo) return name.equals(((Foo)o).name); else if (o instanceof String) return name.equals(o); else return false; </pre> <p>This is considered bad practice, as it makes it very hard to implement an equals method that is symmetric and transitive. Without those properties, very unexpected behavoirs are possible. </p> ]]></Details> </BugPattern> <BugPattern type="DM_BOOLEAN_CTOR" abbrev="Dm" category="PERFORMANCE"> <ShortDescription>Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead</ShortDescription> <Details><![CDATA[ <p> Creating new instances of <code>java.lang.Boolean</code> wastes memory, since <code>Boolean</code> objects are immutable and there are only two useful values of this type. Use the <code>Boolean.valueOf()</code> method (or Java 1.5 autoboxing) to create <code>Boolean</code> objects instead.</p> ]]></Details> </BugPattern> <BugPattern type="ODR_OPEN_DATABASE_RESOURCE" abbrev="ODR" category="BAD_PRACTICE"> <ShortDescription>Method may fail to close database resource</ShortDescription> <Details><![CDATA[ <p> The method creates a database resource (such as a database connection or row set), does not assign it to any fields, pass it to other methods, or return it, and does not appear to close the object on all paths out of the method. Failure to close database resources on all paths out of a method may result in poor performance, and could cause the application to have problems communicating with the database. </p> ]]></Details> </BugPattern> <BugPattern type="SPP_INVALID_CALENDAR_COMPARE" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method passes a non calendar object to Calendar.before or Calendar.after</ShortDescription> <Details><![CDATA[ <p>This method passes a non calendar object to the java.util.Calendar.after or java.util.Calendar.before methods. Even though these methods take an Object as a parameter type, only Calendar type objects are supported, otherwise false is returned.</p> ]]></Details> </BugPattern> <BugPattern type="IMC_IMMATURE_CLASS_IDE_GENERATED_PARAMETER_NAMES" abbrev="IMC" category="STYLE"> <ShortDescription>Method uses IDE generated parameter names</ShortDescription> <Details><![CDATA[ <p>This method appears to have been generated from an interface or superclass using an IDE. As such the IDE generated generic names (arg0, arg1, arg2) for parameters for this method, and the author of this method did not change them to be meaningful. For better understandability it is recommended that you name these parameters with regard to their function.</p> ]]></Details> </BugPattern> <BugPattern type="NP_ALWAYS_NULL_EXCEPTION" abbrev="NP" category="CORRECTNESS"> <ShortDescription>Null pointer dereference in method on exception path</ShortDescription> <Details><![CDATA[ <p> A pointer which is null on an exception path is dereferenced here. This will lead to a <code>NullPointerException</code> when the code is executed. Note that because FindBugs currently does not prune infeasible exception paths, this may be a false warning.</p> <p> Also note that FindBugs considers the default case of a switch statement to be an exception path, since the default case is often infeasible.</p> ]]></Details> </BugPattern> <BugPattern type="SE_TRANSIENT_FIELD_NOT_RESTORED" abbrev="Se" category="BAD_PRACTICE"> <ShortDescription>Transient field that isn't set by deserialization. </ShortDescription> <Details><![CDATA[ <p> This class contains a field that is updated at multiple places in the class, thus it seems to be part of the state of the class. However, since the field is marked as transient and not set in readObject or readResolve, it will contain the default value in any deserialized instance of the class. </p> ]]></Details> </BugPattern> <BugPattern type="DLC_DUBIOUS_LIST_COLLECTION" abbrev="DLC" category="PERFORMANCE"> <ShortDescription>Class defines List based fields but uses them like Sets</ShortDescription> <Details><![CDATA[ <p>This class defines a field based on java.util.List, but uses it to some extent like a Set. Since lookup type operations are performed using a linear search for Lists, the performance for large Lists will be poor. If the list is known to only contain a small number of items, (3, 4, etc) then it doesn't matter. Otherwise, consider changing this field's implementation to a set-based one. If order of iteration is important to maintain insert order, perhaps consider a LinkedHashSet.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_INVALID_BOOLEAN_NULL_CHECK" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method uses invalid C++ style null check on Boolean</ShortDescription> <Details><![CDATA[ <p>This method attempts to check for null by just referring to the variable name as would be done in C++. This ordinarily would be considered a compile error, except the variable in question is a Boolean, which does an auto unbox to boolean. <pre><code> if (b && b.booleanValue()) </code></pre> should be<br/> <pre><code> if ((b != null) && b.booleanValue()) </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="OI_OPTIONAL_ISSUES_USES_ORELSEGET_WITH_NULL" abbrev="OI" category="CORRECTNESS"> <ShortDescription>Method uses Optional.orElseGet(null)</ShortDescription> <Details><![CDATA[ <p>This method uses Optional.orElseGet(null). This method is supposed to to receive a lambda expression for what to execute when the Optional is not there. If you want to just return null, use Optional.orElse(null) instead. </p> ]]></Details> </BugPattern> <BugPattern type="NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" abbrev="NP" category="STYLE"> <ShortDescription>Read of unwritten public or protected field</ShortDescription> <Details><![CDATA[ <p> The program is dereferencing a public or protected field that does not seem to ever have a non-null value written to it. Unless the field is initialized via some mechanism not seen by the analysis, dereferencing this value will generate a null pointer exception. </p> ]]></Details> </BugPattern> <BugPattern type="S508C_NO_SETSIZE" abbrev="S508C" category="CORRECTNESS"> <ShortDescription>Window sets size manually, and doesn't use pack</ShortDescription> <Details><![CDATA[ <p>This class creates a window, and sizes the window using setSize. It is better, for handling font size changes, to use the pack method.</p> ]]></Details> </BugPattern> <BugPattern type="URF_UNREAD_FIELD" abbrev="UrF" category="PERFORMANCE"> <ShortDescription>Unread field</ShortDescription> <Details><![CDATA[ <p> This field is never read. Consider removing it from the class.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_THREAD_YIELD" abbrev="MDM" category="MT_CORRECTNESS"> <ShortDescription>Method attempts to manually schedule threads</ShortDescription> <Details><![CDATA[ <p>Manual thread scheduling with <code>Thread.sleep()</code> or <code>Thread.yield()</code> has no guaranteed semantics and is often used to mask race conditions. These methods exist for supporting early processors when java was first released, and are not advised for modern processors. The operating system will take care of yielding threads for you.</p> ]]></Details> </BugPattern> <BugPattern type="NP_BOOLEAN_RETURN_NULL" abbrev="NP" category="BAD_PRACTICE"> <ShortDescription>Method with Boolean return type returns explicit null</ShortDescription> <Details><![CDATA[ <p> A method that returns either Boolean.TRUE, Boolean.FALSE or null is an accident waiting to happen. This method can be invoked as though it returned a value of type boolean, and the compiler will insert automatic unboxing of the Boolean value. If a null value is returned, this will result in a NullPointerException. </p> ]]></Details> </BugPattern> <BugPattern type="ACEM_ABSTRACT_CLASS_EMPTY_METHODS" abbrev="ACEM" category="STYLE"> <ShortDescription>Empty method could be declared abstract</ShortDescription> <Details><![CDATA[ <p>This method is empty or merely throws an exception. Since the class it is defined in is abstract, it may be more correct to define this method as abstract instead, so that proper subclass behavior is enforced.</p> ]]></Details> </BugPattern> <BugPattern type="PDP_POORLY_DEFINED_PARAMETER" abbrev="PDP" category="CORRECTNESS"> <ShortDescription>Method defines parameters more abstractly than needed to function properly</ShortDescription> <Details><![CDATA[ <p>This method defines parameters at a more abstract level than is actually needed to function correctly, as the code casts these parameters to more concrete types. Since this method is not derivable, you should just define the parameters with the type that is needed.</p> ]]></Details> </BugPattern> <BugPattern type="S508C_NON_ACCESSIBLE_JCOMPONENT" abbrev="S508C" category="CORRECTNESS"> <ShortDescription>Class extends JComponent but does not implement Accessible interface</ShortDescription> <Details><![CDATA[ <p>This class extends the JComponent GUI control but does not implement the Accessibility interface. This makes this control unable to be processed by screen readers, etc, for people with reading/vision difficulties.</p> ]]></Details> </BugPattern> <BugPattern type="SEO_SUBOPTIMAL_EXPRESSION_ORDER" abbrev="SEO" category="PERFORMANCE"> <ShortDescription>Method orders expressions in a conditional in a sub optimal way</ShortDescription> <Details><![CDATA[ <p>This method builds a conditional expression, for example, in an if or while statement where the expressions contain both simple local variable comparisons, as well as comparisons on method calls. The expression orders these so that the method calls come before the simple local variable comparisons. This causes method calls to be executed in conditions when they do not need to be, and thus potentially causes a lot of code to be executed for nothing. By ordering the expressions so that the simple conditions containing local variable conditions are first, you eliminate this waste. This assumes that the method calls do not have side effects. If the method do have side effects, it is probably a better idea to pull these calls out of the condition and execute them first, assigning a value to a local variable. In this way you give a hint that the call may have side effects.</p> <p>Example: <pre><code> if ((calculateHaltingProbability() > 0) && shouldCalcHalting) { } </code></pre> would be better as <pre><code> if (shouldCalcHalting && (calculateHaltingProbability() > 0) { } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="LO_EXCEPTION_WITH_LOGGER_PARMS" abbrev="LO" category="CORRECTNESS"> <ShortDescription>Method creates exception with logger parameter markers in message</ShortDescription> <Details><![CDATA[ <p>This method passes a standard exception as a logger parameter, and expects this exception to be substituted in an SLF4J or Log4j style parameter marker '{}'. This marker will not be translated as SLF4J or Log4j2 doesn't process the Exception class for markers. </p> ]]></Details> </BugPattern> <BugPattern type="SCA_SUSPICIOUS_CLONE_ALGORITHM" abbrev="SCA" category="CORRECTNESS"> <ShortDescription>Clone method stores a new value to member field of source object</ShortDescription> <Details><![CDATA[ <p>The clone method stores a value to a member field of the source object. Normally, all changes are made to the cloned object, and given that cloning is almost always considered a read-only operation, this seems incorrect.</p> ]]></Details> </BugPattern> <BugPattern type="TBP_TRISTATE_BOOLEAN_PATTERN" abbrev="TBP" category="STYLE"> <ShortDescription>Method returns null for Boolean type</ShortDescription> <Details><![CDATA[ <p>This method declares that it returns a Boolean value. However, the code can return a null value. As this is now three values that can be returned; Boolean.TRUE, Boolean.FALSE, null; you have changed what a Boolean means. It would be clearer to just create a new Enum that has the three values you want, and define that the method returns that type.</p> ]]></Details> </BugPattern> <BugPattern type="JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT" abbrev="JLM" category="MT_CORRECTNESS"> <ShortDescription>Using monitor style wait methods on util.concurrent abstraction</ShortDescription> <Details><![CDATA[ <p> This method calls <code>wait()</code>, <code>notify()</code> or <code>notifyAll()()</code> on an object that also provides an <code>await()</code>, <code>signal()</code>, <code>signalAll()</code> method (such as util.concurrent Condition objects). This probably isn't what you want, and even if you do want it, you should consider changing your design, as other developers will find it exceptionally confusing. </p> ]]></Details> </BugPattern> <BugPattern type="RANGE_ARRAY_LENGTH" abbrev="RANGE" category="CORRECTNESS"> <ShortDescription>Array length is out of bounds</ShortDescription> <Details><![CDATA[ <p> Method is called with array parameter and length parameter, but the length is out of bounds. This will result in IndexOutOfBoundsException at runtime. </p> ]]></Details> </BugPattern> <BugPattern type="UTWR_USE_TRY_WITH_RESOURCES" abbrev="UTWR" category="STYLE"> <ShortDescription>Method manually handles closing an auto-closeable resource</ShortDescription> <Details><![CDATA[ [ <p>This method allocates and uses an auto closeable resources. However it manually closes the resource in a finally block. While this is correct management, it doesn't rely on the Idiomatic way available to JDK 7 and above, and allows for possible subtle problems, and complicates the reading of code by developers expecting the use of try-with-resources. </p> <p>Switch to using try with resources, as: <pre> try (InputStream is = getAStream()) { useTheStream(is); } </pre> ]]></Details> </BugPattern> <BugPattern type="SGSU_SUSPICIOUS_GETTER_SETTER_USE" abbrev="SGSU" category="CORRECTNESS"> <ShortDescription>Method uses same bean's getter value for setter</ShortDescription> <Details><![CDATA[ <p>This method retrieves the property of a Java bean, only to use it in the setter for the same property of the same bean. This is usually a copy/paste typo.</p> ]]></Details> </BugPattern> <BugPattern type="HCP_HTTP_REQUEST_RESOURCES_NOT_FREED_LOCAL" abbrev="HCP" category="CORRECTNESS"> <ShortDescription>Unreleased HttpRequest network resources (local)</ShortDescription> <Details><![CDATA[ <p>FindBugs has detected an <code>org.apache.http.HttpRequest</code> (e.g. <code>HttpGet</code>, <code>HttpPost</code>, etc) that didn't release its associated resources. Code like the following: <br/> <pre><code> public String requestInfo(URI u) { HttpGet httpGet = new HttpGet(u); try(CloseableHttpResponse response = client.execute(httpGet);) { return getResponseAsString(response); } catch (IOException e) { e.printStackTrace(); } return null; } </code></pre> will freeze after a few requests, usually with no indication as to why. </p> <p> The reason this code freezes is because <code>org.apache.http.HttpRequest</code>s need to explicitly release their connection with a call to either <code>reset()</code> or <code>releaseConnection()</code>, <b>even if the request is a local</b>. The garbage collector will not release these resources, leading to the frustrating freezing scenario described above. <br/>The above example can be easily fixed:<br/> <pre><code> public String requestInfo(URI u) { HttpGet httpGet = new HttpGet(u); try(CloseableHttpResponse response = client.execute(httpGet);) { return getResponseAsString(response); } catch (IOException e) { e.printStackTrace(); } <b>finally { httpGet.reset(); }</b> return null; } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="SPP_NO_CHAR_SB_CTOR" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method appears to pass character to StringBuffer or StringBuilder integer constructor</ShortDescription> <Details><![CDATA[ <p>This method constructs a StringBuffer or a StringBuilder using the constructor that takes an integer, but appears to pass a character instead. It is probable that the author assumed that character would be appended to the StringBuffer/Builder, but instead the integer value of the character is used as an initial size for the buffer.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_USE_GETPROPERTY" abbrev="SPP" category="STYLE"> <ShortDescription>Method calls getProperties just to get one property, use getProperty instead</ShortDescription> <Details><![CDATA[ <table> <tr><td>This method uses</td></tr> <tr><td>String prop = System.getProperties().getProperty("foo");</td></tr> <tr><td>instead of simply using</td></tr> <tr><td>String prop = System.getProperty("foo");</td></tr> </table> ]]></Details> </BugPattern> <BugPattern type="SA_LOCAL_SELF_COMPARISON" abbrev="SA" category="CORRECTNESS"> <ShortDescription>Self comparison of value with itself</ShortDescription> <Details><![CDATA[ <p> This method compares a local variable with itself, and may indicate a typo or a logic error. Make sure that you are comparing the right things. </p> ]]></Details> </BugPattern> <BugPattern type="IOI_COPY_WITH_READER" abbrev="IOI" category="PERFORMANCE"> <ShortDescription>Method performs bulk stream copy with a java.io.Reader derived input</ShortDescription> <Details><![CDATA[ <p>This method copies data from a java.io.Reader derived class to an output class, using a bulk copy method supplied by java.nio, commons-io, springframework, guava or poi. Since you are copying the entire stream, you don't care about its contents, and thus using a Reader is wasteful as a reader has to do the hard work of converting byte data to characters, when there is no need to do this. Use stream based inputs for better performance.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_BIGDECIMAL_EQUALS" abbrev="MDM" category="CORRECTNESS"> <ShortDescription>Method calls BigDecimal.equals()</ShortDescription> <Details><![CDATA[ <p>This method calls <code>equals()</code> to compare two <code>java.math.BigDecimal</code> numbers. This is normally a mistake, as two <code>BigDecimal</code> objects are only equal if they are equal in both value and scale, so that <i>2.0</i> is not equal to <i>2.00</i>. To compare <code>BigDecimal</code> objects for mathematical equality, use <code>compareTo()</code> instead.</p> ]]></Details> </BugPattern> <BugPattern type="NOS_NON_OWNED_SYNCHRONIZATION" abbrev="NOS" category="STYLE"> <ShortDescription>Class uses non owned variables to synchronize on</ShortDescription> <Details><![CDATA[ <p>This method uses a synchronize block where the object that is being synchronized on, is not owned by this current instance. This means that other instances may use this same object for synchronization for their own purposes, causing synchronization confusion. It is always cleaner and safer to only synchronize on private fields of this class. Note that 'this' is not owned by the current instance, but is owned by whomever assigns it to a field of its class. Synchronizing on 'this' is also not a good idea.</p> ]]></Details> </BugPattern> <BugPattern type="BL_BURYING_LOGIC" abbrev="BL" category="STYLE"> <ShortDescription>Method buries logic to the right (indented) more than it needs to be</ShortDescription> <Details><![CDATA[ <p>Looks for relatively large if blocks of code, where you unconditionally return from them, and then follow that with an unconditional return of a small block. This places the bulk of the logic to the right indentation-wise, making it more difficult to read than needed. It would be better to invert the logic of the if block, and immediately return, allowing the bulk of the logic to be move to the left for easier reading.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_SERIALVER_SHOULD_BE_PRIVATE" abbrev="SPP" category="STYLE"> <ShortDescription>Class defines a serialVersionUID as non private</ShortDescription> <Details><![CDATA[ <p>This class defines a static field 'serialVersionUID' to define the serialization version for this class. This field is marked as non private. As the serialVersionUID only controls the current class, and doesn't affect any derived classes, defining it as non private is confusing. It is suggested you change this variable to be private.</p> ]]></Details> </BugPattern> <BugPattern type="BC_BAD_CAST_TO_CONCRETE_COLLECTION" abbrev="BC" category="STYLE"> <ShortDescription>Questionable cast to concrete collection</ShortDescription> <Details><![CDATA[ <p> This code casts an abstract collection (such as a Collection, List, or Set) to a specific concrete implementation (such as an ArrayList or HashSet). This might not be correct, and it may make your code fragile, since it makes it harder to switch to other concrete implementations at a future point. Unless you have a particular reason to do so, just use the abstract collection class. </p> ]]></Details> </BugPattern> <BugPattern type="STS_SPURIOUS_THREAD_STATES" abbrev="STS" category="MT_CORRECTNESS"> <ShortDescription>Method calls wait, notify or notifyAll on a Thread instance</ShortDescription> <Details><![CDATA[ <p>This method invokes the methods wait, notify or notifyAll on a Thread instance. Doing so will confuse the internal thread state behavior causing spurious thread wakeups/sleeps because the internal mechanism also uses the thread instance for its notifications.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_EQUALS_ON_ENUM" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method calls equals on an enum instance</ShortDescription> <Details><![CDATA[ <p>This method calls the equals(Object) method on an enum instance. Since enums values are singletons, you can use == to safely compare two enum values. In fact, the implementation for Enum.equals does just that.</p> ]]></Details> </BugPattern> <BugPattern type="UTAO_TESTNG_ASSERTION_ODDITIES_IMPOSSIBLE_NULL" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>TestNG test method asserts that an autoboxed value is not null</ShortDescription> <Details><![CDATA[ <p>This method asserts that a primitive value that was autoboxed into a boxed primitive was not null. This will never happen, as primitives are never null, and thus the autoboxed value isn't either.</p> ]]></Details> </BugPattern> <BugPattern type="SCI_SYNCHRONIZED_COLLECTION_ITERATORS" abbrev="SCI" category="CORRECTNESS"> <ShortDescription>Method creates iterators on synchronized collections</ShortDescription> <Details><![CDATA[ <p>This method uses a synchronized collection, built from Collections.synchronizedXXXX, but accesses it through an iterator. Since an iterator is, by definition, multithreaded unsafe, this is a conflict in concept. When using iterators, you should do the synchronization manually.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_WRONG_COMMONS_TO_STRING_OBJECT" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method does not pass an object to commons-lang's ToStringBuilder</ShortDescription> <Details><![CDATA[ This method uses commons-lang, or commons-lang3's ToStringBuilder to attempt to output a representation of an object. However, no object was passed, just the style specifier, and so the output will be of the ToStringStyle object itself. Don't forget to include the object you wish to output as the first parameter, such as <pre> ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); </pre> ]]></Details> </BugPattern> <BugPattern type="UW_UNCOND_WAIT" abbrev="UW" category="MT_CORRECTNESS"> <ShortDescription>Unconditional wait</ShortDescription> <Details><![CDATA[ <p> This method contains a call to <code>java.lang.Object.wait()</code> which is not guarded by conditional control flow. The code should verify that condition it intends to wait for is not already satisfied before calling wait; any previous notifications will be ignored. </p> ]]></Details> </BugPattern> <BugPattern type="SPP_TEMPORARY_TRIM" abbrev="SPP" category="STYLE"> <ShortDescription>Method trims a String temporarily</ShortDescription> <Details><![CDATA[ <p>This method calls trim() on a String without assigning the new string to another variable. It then calls length() or equals() on this trimmed string. If trimming the string was important for determining its length or its equality, it should be trimmed when you actually go to use it. It would make more sense to first trim the String, store the trimmed value in a variable, and then continue to test and use that trimmed string.</p> ]]></Details> </BugPattern> <BugPattern type="DLS_DEAD_LOCAL_STORE" abbrev="DLS" category="STYLE"> <ShortDescription>Dead store to local variable</ShortDescription> <Details><![CDATA[ <p> This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used. </p> <p> Note that Sun's javac compiler often generates dead stores for final local variables. Because FindBugs is a bytecode-based tool, there is no easy way to eliminate these false positives. </p> ]]></Details> </BugPattern> <BugPattern type="NAB_NEEDLESS_BOXING_VALUEOF" abbrev="NAB" category="PERFORMANCE"> <ShortDescription>Method converts String to boxed primitive using excessive boxing</ShortDescription> <Details><![CDATA[ <p>This method passes a String to a wrapped primitive object's parse method, which in turn calls the valueOf() method to convert to a boxed primitive. When it is desired to convert from a String to a boxed primitive object, it is simpler to use the BoxedPrimitive.valueOf(String) method.</p> <p>Instead of something like:<br/> <pre><code> Boolean bo = Boolean.valueOf(Boolean.parseBoolean("true")); Float f = Float.valueOf(Float.parseFloat("1.234")); </code></pre> Simply do: <br/> <pre><code> Boolean bo = Boolean.valueOf("true"); Float f = Float.valueOf("1.234"); </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="WMI_WRONG_MAP_ITERATOR" abbrev="WMI" category="PERFORMANCE"> <ShortDescription>Inefficient use of keySet iterator instead of entrySet iterator</ShortDescription> <Details><![CDATA[ <p> This method accesses the value of a Map entry, using a key that was retrieved from a keySet iterator. It is more efficient to use an iterator on the entrySet of the map, to avoid the Map.get(key) lookup.</p> ]]></Details> </BugPattern> <BugPattern type="FCBL_FIELD_COULD_BE_LOCAL" abbrev="FCBL" category="CORRECTNESS"> <ShortDescription>Class defines fields that are used only as locals</ShortDescription> <Details><![CDATA[ <p>This class defines fields that are used in a locals only fashion, specifically private fields or protected fields in final classes that are accessed first in each method with a store vs. a load. This field could be replaced by one or more local variables.</p> ]]></Details> </BugPattern> <BugPattern type="IL_INFINITE_RECURSIVE_LOOP" abbrev="IL" category="CORRECTNESS" cweid="674"> <ShortDescription>An apparent infinite recursive loop</ShortDescription> <Details><![CDATA[ <p>This method unconditionally invokes itself. This would seem to indicate an infinite recursive loop that will result in a stack overflow.</p> ]]></Details> </BugPattern> <BugPattern type="SCSS_SUSPICIOUS_CLUSTERED_SESSION_SUPPORT" abbrev="SCSS" category="CORRECTNESS"> <ShortDescription>Method modifies an http session attribute without calling setAttribute</ShortDescription> <Details><![CDATA[ <p>This method fetches a complex object from an HttpSession object, modifies this object, but does not call setAttribute, to inform the application server that this attribute has been changed. This will cause this attribute not to be updated in other servers in a clustered environment, as only changes marked by a call to setAttribute are replicated.</p> ]]></Details> </BugPattern> <BugPattern type="DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD" abbrev="DLS" category="STYLE"> <ShortDescription>Dead store to local variable that shadows field</ShortDescription> <Details><![CDATA[ <p> This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used. There is a field with the same name as the local variable. Did you mean to assign to that variable instead? </p> ]]></Details> </BugPattern> <BugPattern type="MDM_THREAD_FAIRNESS" abbrev="MDM" category="MT_CORRECTNESS"> <ShortDescription>Method ignores Lock's fairness settings by calling tryLock()</ShortDescription> <Details><![CDATA[ <p>Calling <code>Lock.tryLock()</code> or <code>ReentrantLock.tryLock()</code> without a timeout does not honor the lock's fairness setting. If you want to honor the fairness setting for this lock, then use <code>tryLock(0, TimeUnit.SECONDS)</code> which is almost equivalent (it also detects interruption).</p> ]]></Details> </BugPattern> <BugPattern type="BC_UNCONFIRMED_CAST" abbrev="BC" category="STYLE"> <ShortDescription>Unchecked/unconfirmed cast</ShortDescription> <Details><![CDATA[ <p> This cast is unchecked, and not all instances of the type casted from can be cast to the type it is being cast to. Check that your program logic ensures that this cast will not fail. </p> ]]></Details> </BugPattern> <BugPattern type="OPM_OVERLY_PERMISSIVE_METHOD" abbrev="OPM" category="STYLE"> <ShortDescription>This method is declared more permissively than is used in the code base</ShortDescription> <Details><![CDATA[ <p>This method is declared more permissively than the code is using. Having this method be more permissive than is needed limits your ability to make observations about this method, like parameter usage, refactorability, and derivability. It is possible that this detector will report erroneously if: <ul> <li>The method is called from code not being scanned, such as unit tests</li> <li>The method is an API method, expected to be used by unknown client code</li> <li>The method is called through reflection </ul> </p> ]]></Details> </BugPattern> <BugPattern type="UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NULL" abbrev="UTAO" category="CORRECTNESS"> <ShortDescription>JUnit test method passes null Assert.assertEquals</ShortDescription> <Details><![CDATA[ <p>This method compares an object's equality to null. It is better to use the Assert.assertNull method so that the JUnit failure method is more meaningful of the intended test.</p> ]]></Details> </BugPattern> <BugPattern type="CBC_CONTAINS_BASED_CONDITIONAL" abbrev="CBC" category="STYLE"> <ShortDescription>This method uses an excessively complex conditional that can be replaced with Set.contains</ShortDescription> <Details><![CDATA[ <p>This method uses an overly complex if expression made up of multiple conditions joined by OR, where the same local variable is compared to a static value. When the number of conditions grows, it is much cleaner to build a static set of the possible values, and use the contains method on that set. This will shorten the code, and make it more self documenting.</p> ]]></Details> </BugPattern> <BugPattern type="DM_NUMBER_CTOR" abbrev="Bx" category="PERFORMANCE"> <ShortDescription>Method invokes inefficient Number constructor; use static valueOf instead</ShortDescription> <Details><![CDATA[ <p> Using <code>new Integer(int)</code> is guaranteed to always result in a new object whereas <code>Integer.valueOf(int)</code> allows caching of values to be done by the compiler, class library, or JVM. Using of cached values avoids object allocation and the code will be faster. </p> <p> Values between -128 and 127 are guaranteed to have corresponding cached instances and using <code>valueOf</code> is approximately 3.5 times faster than using constructor. For values outside the constant range the performance of both styles is the same. </p> <p> Unless the class must be compatible with JVMs predating Java 1.5, use either autoboxing or the <code>valueOf()</code> method when creating instances of <code>Long</code>, <code>Integer</code>, <code>Short</code>, <code>Character</code>, and <code>Byte</code>. </p> ]]></Details> </BugPattern> <BugPattern type="NCMU_NON_COLLECTION_METHOD_USE" abbrev="NCMU" category="STYLE"> <ShortDescription>Method uses old non collections interface methods</ShortDescription> <Details><![CDATA[ <p>This method makes calls to collection classes where the method is not defined by the Collections interface, and an equivalent method exists in the interface. By using the new methods, you can define this object by the Collections interface and allow better decoupling.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_NULL_CHECK_ON_MAP_SUBSET_ACCESSOR" abbrev="SPP" category="CORRECTNESS"> <ShortDescription>Method checks whether the keySet(), entrySet() or values() collection of a Map is null</ShortDescription> <Details><![CDATA[ This method checks to see if the return value from a keySet(), entrySet() or values() method call on a Map is null. For any valid functioning Map these collections will always be non-null, and so the call is superfluous. Maybe you intended to check whether those sets where empty() instead. ]]></Details> </BugPattern> <BugPattern type="ISB_INEFFICIENT_STRING_BUFFERING" abbrev="ISB" category="PERFORMANCE"> <ShortDescription>Method passes simple concatenating string in StringBuffer or StringBuilder append</ShortDescription> <Details><![CDATA[ <p>This method uses <code>StringBuffer</code> or <code>StringBuilder</code>'s append method to concatenate strings. However, it passes the result of doing a simple String concatenation to one of these append calls, thus removing any performance gains of using the <code>StringBuffer</code> or <code>StringBuilder</code> class.</p> <p> Java will implicitly use StringBuilders, which can make this hard to detect or fix. For example, <br/> <pre><code> StringBuilder sb = new StringBuilder(); for (Map.Entry<Integer, String> e : map.entrySet()) { sb.append(e.getKey() + e.getValue()); //bug detected here } </code></pre><br/> gets automatically turned into something like: <br/> <pre><code> StringBuilder sb = new StringBuilder(); for (Map.Entry<Integer, String> e : map.entrySet()) { StringBuilder tempBuilder = new StringBuilder(); tempBuilder.append(e.getKey()); tempBuilder.append(e.getValue()); <b>sb.append(tempBuilder.toString());</b> //this isn't too efficient } </code></pre><br/> which involves a temporary <code>StringBuilder</code>, which is completely unnecessary. To prevent this from happening, simply do:<br/> <pre><code> StringBuilder sb = new StringBuilder(); for (Map.Entry<Integer, String> e : map.entrySet()) { sb.append(e.getKey()); sb.append(e.getValue()); } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="PME_POOR_MANS_ENUM" abbrev="PME" category="STYLE"> <ShortDescription>Simple field is used like an enum</ShortDescription> <Details><![CDATA[ <p>This field, although defined as a simple variable (int, String, etc) only has a set of constant values assigned to it. Thus it appears to be used like an enum value, and should probably be defined as such. </p> ]]></Details> </BugPattern> <BugPattern type="NP_NULL_ON_SOME_PATH" abbrev="NP" category="CORRECTNESS"> <ShortDescription>Possible null pointer dereference</ShortDescription> <Details><![CDATA[ <p> There is a branch of statement that, <em>if executed,</em> guarantees that a null value will be dereferenced, which would generate a <code>NullPointerException</code> when the code is executed. Of course, the problem might be that the branch or statement is infeasible and that the null pointer exception can't ever be executed; deciding that is beyond the ability of FindBugs. </p> ]]></Details> </BugPattern> <BugPattern type="JPAI_UNNECESSARY_TRANSACTION_EXCEPTION_HANDLING" abbrev="JPAI" category="CORRECTNESS"> <ShortDescription>Method declares handling a transactional exception that won't be thrown</ShortDescription> <Details><![CDATA[ <p>This method declares that it either rolls back or does not rollback a transaction based on an expected exception being thrown. However, neither this exception, nor any derived exceptions can be thrown from this method, and so the annotation is useless.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_RANDOM_SEED" abbrev="MDM" category="CORRECTNESS"> <ShortDescription>Method creates insecure Random object</ShortDescription> <Details><![CDATA[ <p><code>Random()</code> constructor without a seed is insecure because it defaults to an easily guessable seed: <code>System.currentTimeMillis()</code>. Initialize a seed like <code>new Random(SecureRandom.getInstance("SHA1PRNG").nextLong())</code> or replace <code>Random()</code> with <code>SecureRandom.getInstance("SHA1PRNG")</code> instead. "SHA1PRNG" is the random algorithm supported on all platforms. </p> <p> As of Java 6, you may use <code>new Random(new SecureRandom().nextLong())</code> or <code>new SecureRandom()</code> instead. </p> ]]></Details> </BugPattern> <BugPattern type="NSE_NON_SYMMETRIC_EQUALS" abbrev="NSE" category="CORRECTNESS"> <ShortDescription>Equals method compares this object against other types in a non symmetric way</ShortDescription> <Details><![CDATA[ <p>This class implements an equals method that compares this object against another type of object. This is almost always a bad thing to do, but if it is to be done, you must make sure that the basic symmetry rule of equivalence is maintained, that being if a equals b, then b equals a. It does not appear that the class that is being compared to this class knows about this class, and doesn't compare itself to this.</p> <p> Here's an example of a BAD equals method, do NOT do this: <pre><code> class Person { public boolean equals(Object o) { if (o instanceof Person) { return name.equals(((Person) o).name); } else if (o instanceof String) { return name.equals(o); } return false; } } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="UEC_USE_ENUM_COLLECTIONS" abbrev="UEC" category="PERFORMANCE"> <ShortDescription>Class uses an ordinary set or map with an enum class as the key</ShortDescription> <Details><![CDATA[ <p>This class uses an ordinary set or map collection and uses an enum class as the key type. It is more performant to use the JDK 1.5 EnumSet or EnumMap classes.</p> ]]></Details> </BugPattern> <BugPattern type="IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN" abbrev="IP" category="CORRECTNESS" cweid="563"> <ShortDescription>A parameter is dead upon entry to a method but overwritten</ShortDescription> <Details><![CDATA[ <p> The initial value of this parameter is ignored, and the parameter is overwritten here. This often indicates a mistaken belief that the write to the parameter will be conveyed back to the caller. </p> ]]></Details> </BugPattern> <BugPattern type="STB_STACKED_TRY_BLOCKS" abbrev="STB" category="STYLE"> <ShortDescription>Method stacks similar try/catch blocks</ShortDescription> <Details><![CDATA[ <p>This method declares two try catch blocks one after another, where each catch block catches the same type of exception. They also throw uniformly the same type of exception. These two catch blocks can be combined into one to simplify the method.</p> ]]></Details> </BugPattern> <BugPattern type="LEST_LOST_EXCEPTION_STACK_TRACE" abbrev="LEST" category="CORRECTNESS"> <ShortDescription>Method throws alternative exception from catch block without history</ShortDescription> <Details><![CDATA[ <p>This method catches an exception, and throws a different exception, without incorporating the original exception. Doing so hides the original source of the exception making debugging and fixing these problems difficult. It is better to use the constructor of this new exception that takes an original exception so that this detail can be passed along to the user. If this exception has no constructor that takes an initial cause parameter, use the initCause method to initialize it instead.</p> <p> <pre><code> catch (IOException e) { throw new MySpecialException("Failed to open configuration", e); } </code></pre> </p> ]]></Details> </BugPattern> <BugPattern type="MDM_INETADDRESS_GETLOCALHOST" abbrev="MDM" category="CORRECTNESS"> <ShortDescription>Method calls InetAddress.getLocalHost()</ShortDescription> <Details><![CDATA[ <p>Do not call <code>InetAddress.getLocalHost()</code> on multihomed servers. On a multihomed server, <code>InetAddress.getLocalHost()</code> simply returns the IP address associated with the server's internal hostname. This could be any of the network interfaces, which could expose the machine to security risks. Server applications that need to listen on sockets should add configurable properties to define which network interfaces the server should bind.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_USE_STRINGBUILDER_LENGTH" abbrev="SPP" category="PERFORMANCE"> <ShortDescription>Method converts StringBuffer or Builder to String just to get its length</ShortDescription> <Details><![CDATA[ <p>This method calls the toString method on a StringBuffer or StringBuilder only to call length() on the resulting string. It is faster, and less memory intensive to just call the length method directly on the StringBuffer or StringBuilder itself.</p> ]]></Details> </BugPattern> <BugPattern type="MDM_THREAD_PRIORITIES" abbrev="MDM" category="MT_CORRECTNESS"> <ShortDescription>Method uses suspicious thread priorities</ShortDescription> <Details><![CDATA[ <p>Getting or setting thread priorities is not portable and could cause or mask race conditions.</p> ]]></Details> </BugPattern> <BugPattern type="S508C_NON_TRANSLATABLE_STRING" abbrev="S508C" category="CORRECTNESS"> <ShortDescription>Method passes constant string to title/label of component</ShortDescription> <Details><![CDATA[ <p>This method creates a component and passes a string literal to the title or label of the component. As this string will be shown to users, it should be internationalizable through the use of a resource bundle.</p> ]]></Details> </BugPattern> <BugPattern type="WA_NOT_IN_LOOP" abbrev="Wa" category="MT_CORRECTNESS"> <ShortDescription>Wait not in loop </ShortDescription> <Details><![CDATA[ <p> This method contains a call to <code>java.lang.Object.wait()</code> which is not in a loop. If the monitor is used for multiple conditions, the condition the caller intended to wait for might not be the one that actually occurred.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_USE_ISEMPTY" abbrev="SPP" category="STYLE"> <ShortDescription>Method checks the size of a collection against zero rather than using isEmpty()</ShortDescription> <Details><![CDATA[ <p>This method calls the size() method on a collection and compares the result to zero to see if the collection is empty. For better code clarity, it is better to just use col.isEmpty() or !col.isEmpty().</p> ]]></Details> </BugPattern> <BugPattern type="ITC_INHERITANCE_TYPE_CHECKING" abbrev="ITC" category="STYLE"> <ShortDescription>Method uses instanceof on multiple types to arbitrate logic</ShortDescription> <Details><![CDATA[ <p>This method uses the instanceof operator in a series of if/else statements to differentiate blocks of code based on type. If these types are related by inheritance, it is cleaner to just define a method in the base class, and use overridden methods in these classes.</p> ]]></Details> </BugPattern> <BugPattern type="SPP_USE_CONTAINSKEY" abbrev="SPP" category="STYLE"> <ShortDescription>Method calls keySet() just to call contains, use containsKey instead</ShortDescription> <Details><![CDATA[ <p>This method calls mySet.keySet().contains("foo") when mySet.containsKey("foo") is simpler.</p> ]]></Details> </BugPattern> <BugPattern type="DM_BOXED_PRIMITIVE_FOR_PARSING" abbrev="Bx" category="PERFORMANCE"> <ShortDescription>Boxing/unboxing to parse a primitive</ShortDescription> <Details><![CDATA[ <p>A boxed primitive is created from a String, just to extract the unboxed primitive value. It is more efficient to just call the static parseXXX method.</p> ]]></Details> </BugPattern> <BugPattern type="WEM_WEAK_EXCEPTION_MESSAGING" abbrev="WEM" category="STYLE"> <ShortDescription>Method throws exception with static message string</ShortDescription> <Details><![CDATA[ <p>This method creates and throws an exception using a static string as the exceptions message. Without any specific context of this particular exception invocation, such as the value of parameters, key member variables, or local variables, it may be difficult to infer how this exception occurred. Consider adding context to the exception message.</p> ]]></Details> </BugPattern> <BugPattern type="IMC_IMMATURE_CLASS_NO_TOSTRING" abbrev="IMC" category="STYLE"> <ShortDescription>Class does not implement a toString method</ShortDescription> <Details><![CDATA[ <p>This class, which has instance fields, has no toString() method which will make debugging with this class more difficult than it could be. Consider adding a toString() method. Using libraries like commons-lang3 ToStringBuilder makes this process easy. </p> ]]></Details> </BugPattern> <BugPattern type="MDM_LOCK_ISLOCKED" abbrev="MDM" category="MT_CORRECTNESS"> <ShortDescription>Method tests if a lock is locked</ShortDescription> <Details><![CDATA[ <p>Calling <code>ReentrantLock.isLocked()</code> or <code>ReentrantLock.isHeldByCurrentThread()</code> might indicate race conditions or incorrect locking. These methods are designed for use in debug code or monitoring of the system state, not for synchronization control.</p> ]]></Details> </BugPattern> <BugPattern type="SWCO_SUSPICIOUS_WAIT_ON_CONCURRENT_OBJECT" abbrev="SWCO" category="CORRECTNESS"> <ShortDescription>Method calls wait when await was probably intended</ShortDescription> <Details><![CDATA[ <p>This method calls wait() on a on mutex defined in the java.util.concurrent package. These classes, define await, instead of wait, and it is most likely that await was intended.</p> ]]></Details> </BugPattern> <BugPattern type="UC_USELESS_VOID_METHOD" abbrev="UC" category="STYLE"> <ShortDescription>Useless non-empty void method</ShortDescription> <Details><![CDATA[ <p>Our analysis shows that this non-empty void method does not actually perform any useful work. Please check it: probably there's a mistake in its code or its body can be fully removed. </p> <p>We are trying to reduce the false positives as much as possible, but in some cases this warning might be wrong. Common false-positive cases include:</p> <p>- The method is intended to trigger loading of some class which may have a side effect.</p> <p>- The method is intended to implicitly throw some obscure exception.</p> ]]></Details> </BugPattern> <BugPattern type="BRPI_BACKPORT_REUSE_PUBLIC_IDENTIFIERS" abbrev="BRPI" category="PERFORMANCE"> <ShortDescription>Method uses backported libraries that are now built in</ShortDescription> <Details><![CDATA[ <p>This class uses either Backport Utils concurrent classes from Emory, or Time classes from ThreeTen Backport. Updated/Efficient version of these classes are available in the version of the JDK that this code is compiled against; JDK 1.5 for the concurrent classes, and JDK 1.8 for the time classes, and these classes should only be used if you are targeting a JDK lower than this.</p> ]]></Details> </BugPattern> <BugPattern type="SE_NO_SERIALVERSIONID" abbrev="SnVI" category="BAD_PRACTICE"> <ShortDescription>Class is Serializable, but doesn't define serialVersionUID</ShortDescription> <Details><![CDATA[ <p> This class implements the <code>Serializable</code> interface, but does not define a <code>serialVersionUID</code> field. A change as simple as adding a reference to a .class object will add synthetic fields to the class, which will unfortunately change the implicit serialVersionUID (e.g., adding a reference to <code>String.class</code> will generate a static field <code>class$java$lang$String</code>). Also, different source code to bytecode compilers may use different naming conventions for synthetic variables generated for references to class objects or inner classes. To ensure interoperability of Serializable across versions, consider adding an explicit serialVersionUID.</p> ]]></Details> </BugPattern> <BugPattern type="NFF_NON_FUNCTIONAL_FIELD" abbrev="NFF" category="CORRECTNESS"> <ShortDescription>Serializable class defines a final transient field</ShortDescription> <Details><![CDATA[ <p>This serializable class defines a field as both transient and final. As transient fields are not serialized across the stream, it is required that some piece of code reinitialize that field when it is deserialized. But since constructors aren't called when deserializing, the field is not initialized. And since the field is final, no other method can initialize it as well.</p> ]]></Details> </BugPattern> <BugPattern type="S508C_APPENDED_STRING" abbrev="S508C" category="CORRECTNESS"> <ShortDescription>Method passes appended string to title/label of component</ShortDescription> <Details><![CDATA[ <p>This method creates a component and passes a string that was built up from a number of strings through appending multiple strings together. As foreign languages may order phrases differently, this will make translations difficult.</p> ]]></Details> </BugPattern> <BugCode abbrev="STB"> <Description>Stacked Try Blocks</Description> </BugCode> <BugCode abbrev="CLI"> <Description>Constant List Index</Description> </BugCode> <BugCode abbrev="EXS"> <Description>Exception Softening</Description> </BugCode> <BugCode abbrev="CTU"> <Description>Conflicting Time Units</Description> </BugCode> <BugCode abbrev="CSBTS"> <Description>Commons ToStringBuilder To String</Description> </BugCode> <BugCode abbrev="CCNE"> <Description>Compare class name equals</Description> </BugCode> <BugCode abbrev="IPU"> <Description>Improper Properties use</Description> </BugCode> <BugCode abbrev="EI2"> <Description>Storing reference to mutable object</Description> </BugCode> <BugCode abbrev="STT"> <Description>Stringified Types</Description> </BugCode> <BugCode abbrev="UPM"> <Description>Private method is never called</Description> </BugCode> <BugCode abbrev="S508C"> <Description>Section 508 Compliance Violations</Description> </BugCode> <BugCode abbrev="STS"> <Description>Spurious Thread States</Description> </BugCode> <BugCode abbrev="CAAL"> <Description>Confusing Array asList</Description> </BugCode> <BugCode abbrev="NRTL"> <Description>Non Recycleable Taglib</Description> </BugCode> <BugCode abbrev="ODN"> <Description>Orphaned DOM Node</Description> </BugCode> <BugCode abbrev="SLS"> <Description>Suspicious Loop Search</Description> </BugCode> <BugCode abbrev="ODR"> <Description>Database resource not closed on all paths</Description> </BugCode> <BugCode abbrev="SACM"> <Description>Static Array Created in Method</Description> </BugCode> <BugCode abbrev="SUA"> <Description>Suspicious Uninitialized Array</Description> </BugCode> <BugCode abbrev="PCOA"> <Description>Partially Constructed Object Access</Description> </BugCode> <BugCode abbrev="NSE"> <Description>Non Symmetric Equals</Description> </BugCode> <BugCode abbrev="IL"> <Description>Infinite Loop</Description> </BugCode> <BugCode abbrev="IP"> <Description>Ignored parameter</Description> </BugCode> <BugCode abbrev="AI"> <Description>Annotation Issues</Description> </BugCode> <BugCode abbrev="UrF"> <Description>Unread field</Description> </BugCode> <BugCode abbrev="UNNC"> <Description>Unnecessary New Null Check</Description> </BugCode> <BugCode abbrev="UTAO"> <Description>Unit Test Assertion Oddities</Description> </BugCode> <BugCode abbrev="UCPM"> <Description>Use Character Parameterized Method</Description> </BugCode> <BugCode abbrev="SEC"> <Description>Side Effect Constructor</Description> </BugCode> <BugCode abbrev="WMI"> <Description>Inefficient Map Iterator</Description> </BugCode> <BugCode abbrev="UMTP"> <Description>Unbound Method Template Parameter</Description> </BugCode> <BugCode abbrev="LGO"> <Description>Lingering Graphics Object</Description> </BugCode> <BugCode abbrev="UAC"> <Description>Unnecessary Api Conversion</Description> </BugCode> <BugCode abbrev="CNC"> <Description>Collection Naming Confusion</Description> </BugCode> <BugCode abbrev="NCMU"> <Description>Non Collection Method Use</Description> </BugCode> <BugCode abbrev="CEBE"> <Description>Commons EqualsBuilder To Equals</Description> </BugCode> <BugCode abbrev="RCN" cweid="476"> <Description>Redundant comparison to null</Description> </BugCode> <BugCode abbrev="SEO"> <Description>Suboptimal Expression Order</Description> </BugCode> <BugCode abbrev="PRMC"> <Description>Possibly Redundant Method Calls</Description> </BugCode> <BugCode abbrev="WEM"> <Description>Weak Exception Messaging</Description> </BugCode> <BugCode abbrev="MRC"> <Description>Method Returns Constant</Description> </BugCode> <BugCode abbrev="NCS"> <Description>Needless Custom Serialization</Description> </BugCode> <BugCode abbrev="RR"> <Description>Method ignores results of InputStream.read()</Description> </BugCode> <BugCode abbrev="BC"> <Description>Bad casts of object references</Description> </BugCode> <BugCode abbrev="ABC"> <Description>Array Based Collection</Description> </BugCode> <BugCode abbrev="RV" cweid="440"> <Description>Bad use of return value from method</Description> </BugCode> <BugCode abbrev="CNT"> <Description>Rough value of known constant</Description> </BugCode> <BugCode abbrev="USBR"> <Description>Unnecessary Store Before Return</Description> </BugCode> <BugCode abbrev="SnVI"> <Description>Serializable class with no Version ID</Description> </BugCode> <BugCode abbrev="BL"> <Description>Burying Logic</Description> </BugCode> <BugCode abbrev="JLM"> <Description>Synchronization on java.util.concurrent objects</Description> </BugCode> <BugCode abbrev="NMCS"> <Description>Needless Member Collection Synchronization</Description> </BugCode> <BugCode abbrev="SNG"> <Description>Suspicious Null Guard</Description> </BugCode> <BugCode abbrev="SA"> <Description>Useless self-operation</Description> </BugCode> <BugCode abbrev="CFS"> <Description>Confusing Function Semantics</Description> </BugCode> <BugCode abbrev="SF"> <Description>Switch case falls through</Description> </BugCode> <BugCode abbrev="ACEM"> <Description>Abstract Class Empty Methods</Description> </BugCode> <BugCode abbrev="SG"> <Description>Sluggish GUI</Description> </BugCode> <BugCode abbrev="BRPI"> <Description>Backport concurrent reuse of public identifiers</Description> </BugCode> <BugCode abbrev="SCII"> <Description>Spoiled Child Interface Implementor</Description> </BugCode> <BugCode abbrev="URV"> <Description>Unrelated Return Values</Description> </BugCode> <BugCode abbrev="ISB"> <Description>Inefficient String Buffering</Description> </BugCode> <BugCode abbrev="BED"> <Description>Bogus Exception Declaration</Description> </BugCode> <BugCode abbrev="COM"> <Description>Copied Overridden Method</Description> </BugCode> <BugCode abbrev="AWCBR"> <Description>Array Wrapped Call By Reference</Description> </BugCode> <BugCode abbrev="ST"> <Description>Misuse of static fields</Description> </BugCode> <BugCode abbrev="ICA"> <Description>Invalid Constant Argument</Description> </BugCode> <BugCode abbrev="SWL"> <Description>Sleep with lock held</Description> </BugCode> <BugCode abbrev="WOC"> <Description>Write Only Collection</Description> </BugCode> <BugCode abbrev="REC"> <Description>RuntimeException capture</Description> </BugCode> <BugCode abbrev="CU"> <Description>Clone Usability</Description> </BugCode> <BugCode abbrev="Se"> <Description>Incorrect definition of Serializable class</Description> </BugCode> <BugCode abbrev="UCC"> <Description>Unrelated Collection Contents</Description> </BugCode> <BugCode abbrev="IKNC"> <Description>Inconsistent Key Name Casing</Description> </BugCode> <BugCode abbrev="DRE"> <Description>Declared Runtime Exception</Description> </BugCode> <BugCode abbrev="Bx"> <Description>Questionable Boxing of primitive value</Description> </BugCode> <BugCode abbrev="ITC"> <Description>Inheritance Type Checking</Description> </BugCode> <BugCode abbrev="PIS"> <Description>Possible Incomplete Serialization</Description> </BugCode> <BugCode abbrev="TR"> <Description>Tail Recursion</Description> </BugCode> <BugCode abbrev="DSOC"> <Description>Dubious Set of Collections</Description> </BugCode> <BugCode abbrev="LO"> <Description>Logger Oddities</Description> </BugCode> <BugCode abbrev="CHTH"> <Description>Commons HashCodeBuilder To hashCode</Description> </BugCode> <BugCode abbrev="UuF"> <Description>Unused field</Description> </BugCode> <BugCode abbrev="JVR"> <Description>JDBC Vendor Reliance</Description> </BugCode> <BugCode abbrev="DP"> <Description>Use doPrivileged</Description> </BugCode> <BugCode abbrev="OPM"> <Description>Overly Permissive Method</Description> </BugCode> <BugCode abbrev="UC"> <Description>Useless code</Description> </BugCode> <BugCode abbrev="NFF"> <Description>Non Functional Field</Description> </BugCode> <BugCode abbrev="SGSU"> <Description>Suspicious Getter Setter Use</Description> </BugCode> <BugCode abbrev="SPP"> <Description>Sillyness Pot Pourri</Description> </BugCode> <BugCode abbrev="RFI"> <Description>Reflection Issues</Description> </BugCode> <BugCode abbrev="SCSS"> <Description>Suspicious Clustered Session Support</Description> </BugCode> <BugCode abbrev="MDM"> <Description>More Dumb Methods</Description> </BugCode> <BugCode abbrev="UP"> <Description>Unused Parameter</Description> </BugCode> <BugCode abbrev="UTWR"> <Description>Use Try With Resources</Description> </BugCode> <BugCode abbrev="LSC"> <Description>Literal String Comparison</Description> </BugCode> <BugCode abbrev="UR"> <Description>Uninitialized read of field in constructor</Description> </BugCode> <BugCode abbrev="IMC"> <Description>Immature Class</Description> </BugCode> <BugCode abbrev="PSC"> <Description>Presize Collection</Description> </BugCode> <BugCode abbrev="UW"> <Description>Unconditional wait</Description> </BugCode> <BugCode abbrev="TBP"> <Description>Tristate Boolean Pattern</Description> </BugCode> <BugCode abbrev="RpC"> <Description>Repeated conditional test</Description> </BugCode> <BugCode abbrev="MS" cweid="218"> <Description>Mutable static field</Description> </BugCode> <BugCode abbrev="Dm"> <Description>Dubious method used</Description> </BugCode> <BugCode abbrev="MUP"> <Description>Map Usage Issues</Description> </BugCode> <BugCode abbrev="VA"> <Description>Var arg problems</Description> </BugCode> <BugCode abbrev="SIC"> <Description>Inner class could be made static</Description> </BugCode> <BugCode abbrev="CAO"> <Description>Confusing Autoboxed Overloading</Description> </BugCode> <BugCode abbrev="SCRV"> <Description>Suspicious Comparator Return Values</Description> </BugCode> <BugCode abbrev="UEC"> <Description>Use Enum Collections</Description> </BugCode> <BugCode abbrev="NOS"> <Description>Non Owned Synchronization</Description> </BugCode> <BugCode abbrev="HCP"> <Description>HttpClient Problems</Description> </BugCode> <BugCode abbrev="CRF"> <Description>Conflating Resources And Files</Description> </BugCode> <BugCode abbrev="LEST"> <Description>Lost Exception Stack Trace</Description> </BugCode> <BugCode abbrev="DLC"> <Description>Dubious List Collection</Description> </BugCode> <BugCode abbrev="JXI"> <Description>JAX-RS Issues</Description> </BugCode> <BugCode abbrev="RANGE"> <Description>Range checks</Description> </BugCode> <BugCode abbrev="FE"> <Description>Test for floating point equality</Description> </BugCode> <BugCode abbrev="UVA"> <Description>Use Var Args</Description> </BugCode> <BugCode abbrev="NP" cweid="476"> <Description>Null pointer dereference</Description> </BugCode> <BugCode abbrev="DDC"> <Description>Double Date comparison</Description> </BugCode> <BugCode abbrev="UwF"> <Description>Unwritten field</Description> </BugCode> <BugCode abbrev="CBC"> <Description>Contains Based Conditional</Description> </BugCode> <BugCode abbrev="USFW"> <Description>Unsynchronized Singleton Field Writes</Description> </BugCode> <BugCode abbrev="DLS" cweid="563"> <Description>Dead local store</Description> </BugCode> <BugCode abbrev="Eq"> <Description>Problems with implementation of equals()</Description> </BugCode> <BugCode abbrev="CVAA"> <Description>Contravariant Array Assignment</Description> </BugCode> <BugCode abbrev="JPAI"> <Description>JPA Issues</Description> </BugCode> <BugCode abbrev="WI"> <Description>Wiring issues</Description> </BugCode> <BugCode abbrev="OC"> <Description>Overzealous Casting</Description> </BugCode> <BugCode abbrev="PCAIL"> <Description>Possible Constant Allocation In Loop</Description> </BugCode> <BugCode abbrev="CSI"> <Description>Charset Issues</Description> </BugCode> <BugCode abbrev="OBL"> <Description>Unsatisfied obligation to clean up stream or resource</Description> </BugCode> <BugCode abbrev="PZLA"> <Description>Prefer zero length arrays to null to indicate no results</Description> </BugCode> <BugCode abbrev="OI"> <Description>Optional Issues</Description> </BugCode> <BugCode abbrev="DMC"> <Description>Dubious Map Collection</Description> </BugCode> <BugCode abbrev="SMII"> <Description>Static Method Instance Invocation</Description> </BugCode> <BugCode abbrev="GC"> <Description>Suspicious calls to generic collection methods</Description> </BugCode> <BugCode abbrev="PDP"> <Description>Poorly Defined Parameter</Description> </BugCode> <BugCode abbrev="AOM"> <Description>Abstract Overridden Method</Description> </BugCode> <BugCode abbrev="Nm"> <Description>Confusing method name</Description> </BugCode> <BugCode abbrev="DMI" cweid="440"> <Description>Dubious method invocation</Description> </BugCode> <BugCode abbrev="No"> <Description>Using notify() rather than notifyAll()</Description> </BugCode> <BugCode abbrev="IOI"> <Description>IO Issues</Description> </BugCode> <BugCode abbrev="OS"> <Description>Stream not closed on all paths</Description> </BugCode> <BugCode abbrev="PMB"> <Description>Possible Memory Bloat</Description> </BugCode> <BugCode abbrev="AIOB"> <Description>Array Index Out of Bounds</Description> </BugCode> <BugCode abbrev="FCBL"> <Description>Field Could Be Local</Description> </BugCode> <BugCode abbrev="CCI"> <Description>Concurrent Collection Issues</Description> </BugCode> <BugCode abbrev="PME"> <Description>Poor Mans Enum</Description> </BugCode> <BugCode abbrev="Wa"> <Description>Wait not in loop</Description> </BugCode> <BugCode abbrev="MOM"> <Description>Misleading Overload Model</Description> </BugCode> <BugCode abbrev="NAB"> <Description>Needless Autoboxing</Description> </BugCode> <BugCode abbrev="SCA"> <Description>Suspicious Clone Algorithm</Description> </BugCode> <BugCode abbrev="LSYC"> <Description>Local Synchronized Collection</Description> </BugCode> <BugCode abbrev="BAS"> <Description>Bloated Assignment Scope</Description> </BugCode> <BugCode abbrev="SSCU"> <Description>Suspicious Shaded Class Use</Description> </BugCode> <BugCode abbrev="NIR"> <Description>Needless Instance Retrieval</Description> </BugCode> <BugCode abbrev="HES"> <Description>Hanging ExecutorService</Description> </BugCode> <BugCode abbrev="SWCO"> <Description>Suspicious Wait on Concurrent Object</Description> </BugCode> <BugCode abbrev="SCI"> <Description>Synchronized Collection Iterators</Description> </BugCode> <BugCode abbrev="SBSC"> <Description>String concatenation in loop using + operator</Description> </BugCode> <BugCode abbrev="NPMC"> <Description>Non Productive Method Call</Description> </BugCode> <BugCode abbrev="PL"> <Description>Parallel Lists</Description> </BugCode> <BugCode abbrev="HE"> <Description>Equal objects must have equal hashcodes</Description> </BugCode> <BugCode abbrev="OCP"> <Description>Overly Concrete Parameters</Description> </BugCode> <BugCode abbrev="FCCD"> <Description>Find Class Circular Dependencies</Description> </BugCode> <Errors errors="0" missingClasses="0"></Errors> <FindBugsSummary timestamp="Sat, 16 Dec 2017 10:30:50 -0500" total_classes="355" referenced_classes="1009" total_bugs="1953" total_size="6739" num_packages="2" java_version="1.8.0_131" vm_version="25.131-b11" cpu_seconds="40.84" clock_seconds="48.17" peak_mbytes="164.95" alloc_mbytes="773.38" gc_seconds="3.18" priority_3="524" priority_2="1212" priority_1="217"> <FileStats path="ex/ABC_Sample.java" bugCount="6" size="30" bugHash="05bb8d76a67a719a810f8f25d91c5e75"/> <FileStats path="ex/ACEM_Sample.java" bugCount="2" size="11" bugHash="5fdf1dc9363a20292e819bf8c71ebe68"/> <FileStats path="ex/AFBR_Sample.java" bugCount="2" size="36" bugHash="db4cec78313165023163b6c878754cf1"/> <FileStats path="ex/AIOB_Sample.java" bugCount="16" size="54" bugHash="6c1cb358aa1ea819470f8ff64d34f027"/> <FileStats path="ex/AI_Sample.java" bugCount="5" size="31" bugHash="9e23fdf3da5d47ad39f081aa21dafc5e"/> <FileStats path="ex/AOM_Sample.java" bugCount="1" size="15" bugHash="5cde3cc5e64accea7629c24539e5af54"/> <FileStats path="ex/AWCBR_Sample.java" bugCount="7" size="27" bugHash="cf4224de88d42b55064ecaf8b336e022"/> <FileStats path="ex/BAS_Sample.java" bugCount="28" size="153" bugHash="63a65c683725567ab2b5c53625d724b7"/> <FileStats path="ex/BED_Sample.java" bugCount="34" size="79" bugHash="3e7257672248185dc191c396cdb73aff"/> <FileStats path="ex/BL_Sample.java" bugCount="25" size="89" bugHash="4a1bc628a87b9557ca7177f69909ccdf"/> <FileStats path="ex/BRPI_Sample.java" bugCount="7" size="11" bugHash="0c4d0fe6c5c11d55ca13206f5be42e00"/> <FileStats path="ex/BSB_Sample.java" bugCount="8" size="50" bugHash="b71914f54463dd29e26d82e4f2878298"/> <FileStats path="ex/CAAL_Sample.java" bugCount="39" size="30" bugHash="cdaa660c9ea32ea85d8f774f211712ca"/> <FileStats path="ex/CAO_Sample.java" bugCount="12" size="34" bugHash="e9fc9a33ee123ebc7c01f01cade8e9f3"/> <FileStats path="ex/CBC_Sample.java" bugCount="7" size="47" bugHash="edcfd6362c19eb9b840783cf29806b59"/> <FileStats path="ex/CBX_Sample.java" bugCount="1" size="9" bugHash="0fedf053007dbf58fab6d29ef423c880"/> <FileStats path="ex/CCI_Sample.java" bugCount="2" size="12" bugHash="4c74e190242064c48bb5c561796a7b78"/> <FileStats path="ex/CCNE_Sample.java" bugCount="1" size="13" bugHash="8cc958658ca8d556b04e5326606fd80b"/> <FileStats path="ex/CEBE_EqualsToEqualsSample.java" bugCount="3" size="19" bugHash="b9695ee80ede738c417efa4ac2e8d59a"/> <FileStats path="ex/CE_Sample.java" bugCount="7" size="30" bugHash="2e8c887179604c30373078df9236bba8"/> <FileStats path="ex/CFS_Sample.java" bugCount="6" size="27" bugHash="6e37a4427450c481bbf25e1f9dc1ba64"/> <FileStats path="ex/CHBH_HashcodeToHashcodeSample.java" bugCount="2" size="19" bugHash="375e14731e5d2cf7bb1a40f0f6899191"/> <FileStats path="ex/CLI_Sample.java" bugCount="9" size="27" bugHash="e2a5a02f243653fa13aa27fc8ee69a21"/> <FileStats path="ex/CNC_Sample.java" bugCount="13" size="18" bugHash="a9b8d0bbb7b3eb3ca0126151c492eece"/> <FileStats path="ex/COM_Sample.java" bugCount="13" size="95" bugHash="153a21136c7188e07eefda8f80b80e1e"/> <FileStats path="ex/CRF_Sample.java" bugCount="3" size="15" bugHash="9e027c3857060b219a6eb6e2d3628e7f"/> <FileStats path="ex/CSBTS_StringToStringSample.java" bugCount="6" size="46" bugHash="2e372b30f756c9895639aec4cf58a1e7"/> <FileStats path="ex/CSI_Sample.java" bugCount="22" size="39" bugHash="6998fb77fa14f2476761295fe7d374f9"/> <FileStats path="ex/CTU_Sample.java" bugCount="2" size="15" bugHash="ec5726969d3c1360270ad17bd0f5f0ce"/> <FileStats path="ex/CU_Sample.java" bugCount="11" size="45" bugHash="bfef7ad0566d8a6d30121fa1ff92aa63"/> <FileStats path="ex/CVAA_Sample.java" bugCount="11" size="32" bugHash="de0493062199ab3b508ebd837dd2ceac"/> <FileStats path="ex/DDC_Sample.java" bugCount="3" size="18" bugHash="f2932051196797bf1e25d3a8f7297025"/> <FileStats path="ex/DLC_Sample.java" bugCount="2" size="27" bugHash="3a4c04f2911423f4d2003c4c99b1b9ce"/> <FileStats path="ex/DMC_Sample.java" bugCount="2" size="24" bugHash="bf78caab2b4c58694c49293d02c0c9c9"/> <FileStats path="ex/DRE_Sample.java" bugCount="6" size="29" bugHash="d42afcb29ef5a5920ee2844892094672"/> <FileStats path="ex/DSOC_Sample.java" bugCount="10" size="18" bugHash="541586dca13601f484dc2ba4c2e5960a"/> <FileStats path="ex/DTEP_Sample.java" bugCount="0" size="9"/> <FileStats path="ex/DWI_Sample.java" bugCount="8" size="53" bugHash="a3aa94642361df0f16a32f256fd8d918"/> <FileStats path="ex/EXS_Sample.java" bugCount="38" size="56" bugHash="8091bf8d86d9d154582e133c52a3f8a0"/> <FileStats path="ex/FCBL_Sample.java" bugCount="17" size="122" bugHash="1873ef584ea9af686cb8e01fad514965"/> <FileStats path="ex/FCCD_Sample.java" bugCount="25" size="111" bugHash="cfd0a45d71ba0796176fdba0eb0aa9fc"/> <FileStats path="ex/FPL_Sample.java" bugCount="3" size="12" bugHash="c0ee686553de633bada6077bef460c8e"/> <FileStats path="ex/FP_Sample.java" bugCount="3" size="18" bugHash="7e6e1c2ca54a80f1ecd04322ffabedc6"/> <FileStats path="ex/HCP_Sample.java" bugCount="10" size="89" bugHash="e1a315aad88cb636d87beedb82c8bf48"/> <FileStats path="ex/HES_Sample.java" bugCount="40" size="285" bugHash="7c9246b4d093b59fdb452eb0866cb3da"/> <FileStats path="ex/ICA_Sample.java" bugCount="21" size="37" bugHash="c3bc98a97fddf2a6c32f3502eb5bfe6b"/> <FileStats path="ex/IICU_Sample.java" bugCount="2" size="6" bugHash="f994e9c95517bf9e063931debc50b362"/> <FileStats path="ex/IKNC_Sample.java" bugCount="4" size="14" bugHash="dcd432dbc6872ffff7201d54e5a7427d"/> <FileStats path="ex/IMC_Sample.java" bugCount="22" size="49" bugHash="3a51aabe7f42b6ddff1bf4a6030ad359"/> <FileStats path="ex/IOI_Sample.java" bugCount="8" size="28" bugHash="74d9310471e7c5477913f6a7d42890c1"/> <FileStats path="ex/IPU_Sample.java" bugCount="4" size="15" bugHash="b9c0d53435c2fa85a5817aa5f0cd3964"/> <FileStats path="ex/ISB_Sample.java" bugCount="17" size="87" bugHash="823a6eeb9cf94423844c9d9e8682fb43"/> <FileStats path="ex/ITC_Sample.java" bugCount="3" size="29" bugHash="dfb6f955205d6d7a12749c8febbc68e4"/> <FileStats path="ex/ITU_Sample.java" bugCount="5" size="15" bugHash="a88c72684a7ac227e8ca12ca1b2ba42a"/> <FileStats path="ex/JPAI_Sample.java" bugCount="16" size="66" bugHash="651116e9ca88247ef628067140f89dda"/> <FileStats path="ex/JVR_Sample.java" bugCount="7" size="36" bugHash="478837bd24f41981efc6a48244b4fffc"/> <FileStats path="ex/JXI_Sample.java" bugCount="4" size="26" bugHash="5f83ac2a31c001a7e6355be07a97b6bf"/> <FileStats path="ex/LEST_Sample.java" bugCount="22" size="93" bugHash="e61c494849c7ddfee96b55077be15918"/> <FileStats path="ex/LGO_Sample.java" bugCount="6" size="22" bugHash="6249fcbfdd33aaeeff594a73c6011382"/> <FileStats path="ex/LII_Sample.java" bugCount="8" size="52" bugHash="c303ff74d2414b220761d3cb8864886f"/> <FileStats path="ex/LO_Sample.java" bugCount="87" size="294" bugHash="b9e91e46e32c21b82f29ca206a326ed7"/> <FileStats path="ex/LSC_Sample.java" bugCount="9" size="95" bugHash="4537c3a1a7dbdb609d0535d71ac9e7f7"/> <FileStats path="ex/LSYC_Sample.java" bugCount="6" size="45" bugHash="4b2844a65c9de39e02ec481297a8aa83"/> <FileStats path="ex/MAC_Sample.java" bugCount="8" size="15" bugHash="346efb4b2780ed5867c81491639329ad"/> <FileStats path="ex/MDM_Sample.java" bugCount="40" size="68" bugHash="ddf7815a6f0713d575338ea0cec50430"/> <FileStats path="ex/MOM_Sample.java" bugCount="3" size="7" bugHash="3b6a4ff94ca35106ddb01920539e1276"/> <FileStats path="ex/MRC_Sample.java" bugCount="27" size="78" bugHash="29708254b663955920c7b7582726b834"/> <FileStats path="ex/MTA_Sample.java" bugCount="0" size="16"/> <FileStats path="ex/MUC_Sample.java" bugCount="1" size="23" bugHash="229f1ed249ee705415de144952585e99"/> <FileStats path="ex/MUP_Sample.java" bugCount="5" size="30" bugHash="e24c8b94361f4f650e409d739420316c"/> <FileStats path="ex/NAB_Sample.java" bugCount="222" size="123" bugHash="03c7d4f56a43c9af440d797c5cb6e35e"/> <FileStats path="ex/NCMU_Sample.java" bugCount="11" size="16" bugHash="77ad4431bf8664f0d9ec08a0307c19e1"/> <FileStats path="ex/NCS_Sample.java" bugCount="3" size="9" bugHash="3cedeb9b8f0554d030b0ae751e5c23ab"/> <FileStats path="ex/NFF_Sample.java" bugCount="5" size="6" bugHash="f56df7fcf953fa6de41a59d0357bc44a"/> <FileStats path="ex/NIR_Sample.java" bugCount="5" size="24" bugHash="b50cda7cbe1f802b507823ce758dddb8"/> <FileStats path="ex/NMCS_Sample.java" bugCount="4" size="33" bugHash="e23974cdb916e6a340be6dd36a053e0c"/> <FileStats path="ex/NOS_Sample.java" bugCount="5" size="18" bugHash="83bec8cb7573207960cb3c065642b311"/> <FileStats path="ex/NPMC_Sample.java" bugCount="23" size="36" bugHash="5da905b9849ba2324724df09c5dbf075"/> <FileStats path="ex/NRTL_Sample.java" bugCount="7" size="20" bugHash="496cdcc18bfa7481a3e2675b96e9bbf2"/> <FileStats path="ex/NSE_Sample.java" bugCount="18" size="43" bugHash="430fcd4e7facc7ee743dab052b641106"/> <FileStats path="ex/OCP_Sample.java" bugCount="19" size="120" bugHash="a197f30cfdd4cfcaf75480609d424226"/> <FileStats path="ex/OC_Sample.java" bugCount="8" size="10" bugHash="ed0416e409e1d64b7c59353e609f8be3"/> <FileStats path="ex/ODN_Sample.java" bugCount="6" size="28" bugHash="a5f9139c97dc60079b251933a75b7d1e"/> <FileStats path="ex/OI_Sample.java" bugCount="10" size="30" bugHash="f0ebd0fe051ea976b355c0c8bfe9c5bc"/> <FileStats path="ex/OPM_Sample.java" bugCount="11" size="65" bugHash="90a62c3f1b489f422434d682d7b2b613"/> <FileStats path="ex/PCAIL_Sample.java" bugCount="27" size="115" bugHash="39b03d68a5034e31c9e490cf3da2251f"/> <FileStats path="ex/PCOA_Sample.java" bugCount="4" size="33" bugHash="77aa196b9cabb574c4a2887eacf67aed"/> <FileStats path="ex/PDP_Sample.java" bugCount="30" size="73" bugHash="152cf15ce8c4d185b3f3cbe8ac3888f8"/> <FileStats path="ex/PIS_Sample.java" bugCount="6" size="48" bugHash="41eb33894ad8079cc5662837474ae551"/> <FileStats path="ex/PL_Sample.java" bugCount="7" size="32" bugHash="c6213a0e4fae2a5dcc85993127f5c1f1"/> <FileStats path="ex/PMB_Sample.java" bugCount="12" size="94" bugHash="f345db2f801bae6f9653c06044cc666c"/> <FileStats path="ex/PME_Sample.java" bugCount="11" size="27" bugHash="c2191dcd3b634e5e55f5c53da34aee95"/> <FileStats path="ex/PRMC_Sample.java" bugCount="44" size="170" bugHash="5cb142025f21d04136037b6cd1c2a61b"/> <FileStats path="ex/PSC_Sample.java" bugCount="33" size="108" bugHash="bad0c9811ff5c865760f4e553119f445"/> <FileStats path="ex/PUS_Sample.java" bugCount="12" size="27" bugHash="d459da159f2085d66f403f863e4ba1d6"/> <FileStats path="ex/RFI_Sample.java" bugCount="3" size="21" bugHash="097189ae37ac691a5a276b00a37e7ff1"/> <FileStats path="ex/ROOM_Sample.java" bugCount="5" size="28" bugHash="e3112f526048b9600ff8e70795c5c45c"/> <FileStats path="ex/S508C_Sample.java" bugCount="22" size="35" bugHash="da85142abe3f0c7e0d3be4b399fb4b43"/> <FileStats path="ex/SACM_Sample.java" bugCount="1" size="8" bugHash="db5d17936c264753274c36d2d9733844"/> <FileStats path="ex/SCA_Sample.java" bugCount="5" size="11" bugHash="5d6cd6319e552fea3dd9293895f9bd3b"/> <FileStats path="ex/SCII_Sample.java" bugCount="5" size="62" bugHash="b712aaef77cad12c322f73a7072e17aa"/> <FileStats path="ex/SCI_Sample.java" bugCount="18" size="64" bugHash="78c5c46d6d29f209ae5b4eb3bd665976"/> <FileStats path="ex/SCRV_Sample.java" bugCount="12" size="67" bugHash="be732e428a75ec6d20b3d0d9d20976de"/> <FileStats path="ex/SCR_Sample.java" bugCount="5" size="37" bugHash="b152d158ed90c74d3a8d5a915d6e2a6b"/> <FileStats path="ex/SCSS_Sample.java" bugCount="2" size="16" bugHash="4d74e520d9a21d4b0a5bc7e5423120b0"/> <FileStats path="ex/SEC_Sample.java" bugCount="2" size="14" bugHash="66e667b3cc2d711ec09501248cfbccc6"/> <FileStats path="ex/SEO_Sample.java" bugCount="10" size="34" bugHash="814d432010bb15da913f68917879bc85"/> <FileStats path="ex/SGSU_Sample.java" bugCount="7" size="19" bugHash="1be80fe5d865f6abbabd039835b76c2d"/> <FileStats path="ex/SG_Sample.java" bugCount="8" size="36" bugHash="030de0af7ac81913e1201e4f2ff221c7"/> <FileStats path="ex/SIL_Sample.java" bugCount="1" size="11" bugHash="40b101633e232d428841d35f257d61f7"/> <FileStats path="ex/SJVU_Sample.java" bugCount="5" size="26" bugHash="5e6af872f8a7f23a9f1604b38001e5d0"/> <FileStats path="ex/SLS_Sample.java" bugCount="17" size="95" bugHash="40b18847412773d5e99e7f51a1107757"/> <FileStats path="ex/SMII_Sample.java" bugCount="28" size="52" bugHash="563ad43fa2448593870fad5c25aa68eb"/> <FileStats path="ex/SNG_Sample.java" bugCount="19" size="48" bugHash="c45babaeac107251fd221c78b4a23171"/> <FileStats path="ex/SPP_Sample.java" bugCount="100" size="279" bugHash="9ed3f6381f4cafa577436059bebd9f3c"/> <FileStats path="ex/SSCU_Sample.java" bugCount="3" size="6" bugHash="d1d9f81b2ad471d74d559cba2b63de78"/> <FileStats path="ex/STB_Sample.java" bugCount="53" size="73" bugHash="19b8af168b9a0727b55a919821382846"/> <FileStats path="ex/STS_Sample.java" bugCount="11" size="40" bugHash="4f345c5bdea8ec16f94e882392b2454b"/> <FileStats path="ex/STT_Sample.java" bugCount="10" size="43" bugHash="230e6d57f02a0d9b47fb45111fc88f8e"/> <FileStats path="ex/SUA_Sample.java" bugCount="9" size="63" bugHash="1a21e55f7593b006ec9d1c2096e8fcac"/> <FileStats path="ex/SWCO_Sample.java" bugCount="8" size="14" bugHash="9d77fe4badb4e1540b975e882a4882fa"/> <FileStats path="ex/TBP_Sample.java" bugCount="4" size="7" bugHash="970dbc90339371dd8a53048fc5dcd10f"/> <FileStats path="ex/TR_Sample.java" bugCount="2" size="7" bugHash="5d1c4a889f9b7b412aa7551d5104716d"/> <FileStats path="ex/UAA_Sample.java" bugCount="7" size="67" bugHash="5c5365aeef4839c621e069557545b89e"/> <FileStats path="ex/UAC_Sample.java" bugCount="2" size="7" bugHash="1ba395e22b55a9da3c2e5128ea15d373"/> <FileStats path="ex/UCC_Sample.java" bugCount="29" size="67" bugHash="e45f4161a9174b58ca480975047c89c1"/> <FileStats path="ex/UCPM_Sample.java" bugCount="10" size="39" bugHash="470da290fc4a9f3ebad430722b10b4d6"/> <FileStats path="ex/UEC_Sample.java" bugCount="13" size="77" bugHash="65737720803d1105f284336658941287"/> <FileStats path="ex/UMTP_Sample.java" bugCount="7" size="24" bugHash="9dce6958020c41698470d4dd37f9548b"/> <FileStats path="ex/UNNC_Sample.java" bugCount="13" size="50" bugHash="2c030e7660ad87dfd907e4632c8e6288"/> <FileStats path="ex/UP_Sample.java" bugCount="7" size="23" bugHash="1fe2ac68a4e95c9d3454931de6fb9d09"/> <FileStats path="ex/URV_Sample.java" bugCount="5" size="20" bugHash="031fdb0dd35d129538cb8f784d5c81f4"/> <FileStats path="ex/USBR_Sample.java" bugCount="7" size="29" bugHash="f1e136d0a2cabe9fe59e38a6b1a6fe3b"/> <FileStats path="ex/USFW_Sample.java" bugCount="15" size="28" bugHash="5c1695459080289cabc344d84dd17479"/> <FileStats path="ex/USS_Sample.java" bugCount="1" size="54" bugHash="53ed0549091b108ab83183a220a81ba3"/> <FileStats path="ex/UTAO_Sample.java" bugCount="54" size="187" bugHash="b9642075843f00a1c0479023e8289881"/> <FileStats path="ex/UTA_Sample.java" bugCount="0" size="20"/> <FileStats path="ex/UTWR_Sample.java" bugCount="4" size="22" bugHash="0c0c67279e85dd71e5ae815497d21171"/> <FileStats path="ex/UVA_Sample.java" bugCount="6" size="28" bugHash="5067606c7b2bb14335f124af16d3f5c8"/> <FileStats path="ex/WEM_Sample.java" bugCount="7" size="28" bugHash="4b664a742fe7d28ab50a2df5c042fc0a"/> <FileStats path="ex/WI_Sample.java" bugCount="5" size="20" bugHash="ec40492699fcbdd8978797e8b3ea92d1"/> <FileStats path="ex/WOC_Sample.java" bugCount="18" size="135" bugHash="0d3a03de0a2d5ec342a0b64064be322d"/> <FileStats path="ex/opm/RuleMatcher.java" bugCount="0" size="15"/> <PackageStats package="ex" total_bugs="1953" total_types="354" total_size="6724" priority_3="524" priority_2="1212" priority_1="217"> <ClassStats class="ex.A" sourceFile="SCR_Sample.java" interface="false" size="3" bugs="0"/> <ClassStats class="ex.ABC_Sample" sourceFile="ABC_Sample.java" interface="false" size="13" bugs="5" priority_3="2" priority_2="3"/> <ClassStats class="ex.ABC_Sample$UseComparator" sourceFile="ABC_Sample.java" interface="false" size="9" bugs="0"/> <ClassStats class="ex.ABC_Sample$UseComparator$1" sourceFile="ABC_Sample.java" interface="false" size="8" bugs="1" priority_3="1"/> <ClassStats class="ex.ACEM_Sample" sourceFile="ACEM_Sample.java" interface="false" size="9" bugs="2" priority_2="2"/> <ClassStats class="ex.AFBR_Sample" sourceFile="AFBR_Sample.java" interface="false" size="36" bugs="2" priority_2="2"/> <ClassStats class="ex.AIOB_Sample" sourceFile="AIOB_Sample.java" interface="false" size="54" bugs="16" priority_3="4" priority_2="7" priority_1="5"/> <ClassStats class="ex.AI_Sample" sourceFile="AI_Sample.java" interface="false" size="22" bugs="4" priority_3="3" priority_2="1"/> <ClassStats class="ex.AI_Sample$1" sourceFile="AI_Sample.java" interface="false" size="7" bugs="1" priority_3="1"/> <ClassStats class="ex.AI_Sample$Stringer" sourceFile="AI_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.AOM_Sample" sourceFile="AOM_Sample.java" interface="false" size="5" bugs="1" priority_2="1"/> <ClassStats class="ex.AOM_Super" sourceFile="AOM_Sample.java" interface="false" size="10" bugs="0"/> <ClassStats class="ex.AWCBR_Sample" sourceFile="AWCBR_Sample.java" interface="false" size="27" bugs="7" priority_3="2" priority_2="5"/> <ClassStats class="ex.Annot" sourceFile="FCCD_Sample.java" interface="false" size="3" bugs="1" priority_2="1"/> <ClassStats class="ex.AnnotationWithClass" sourceFile="FCCD_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.B" sourceFile="SCR_Sample.java" interface="false" size="3" bugs="0"/> <ClassStats class="ex.BAS_Sample" sourceFile="BAS_Sample.java" interface="false" size="142" bugs="27" priority_3="11" priority_2="8" priority_1="8"/> <ClassStats class="ex.BAS_Sample$1" sourceFile="BAS_Sample.java" interface="false" size="7" bugs="1" priority_3="1"/> <ClassStats class="ex.BAS_Sample$Holder" sourceFile="BAS_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.BED_Sample" sourceFile="BED_Sample.java" interface="false" size="61" bugs="32" priority_3="7" priority_2="22" priority_1="3"/> <ClassStats class="ex.BED_Sample$1" sourceFile="BED_Sample.java" interface="false" size="7" bugs="1" priority_3="1"/> <ClassStats class="ex.BED_Sample$FPAnonBase" sourceFile="BED_Sample.java" interface="false" size="7" bugs="1" priority_2="1"/> <ClassStats class="ex.BED_Sample$FPAnonBase$1" sourceFile="BED_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.BL_Sample" sourceFile="BL_Sample.java" interface="false" size="89" bugs="25" priority_3="12" priority_2="8" priority_1="5"/> <ClassStats class="ex.BRPI_Sample" sourceFile="BRPI_Sample.java" interface="false" size="11" bugs="7" priority_2="7"/> <ClassStats class="ex.BSB_Sample" sourceFile="BSB_Sample.java" interface="false" size="50" bugs="8" priority_3="1" priority_2="3" priority_1="4"/> <ClassStats class="ex.CAAL_Sample" sourceFile="CAAL_Sample.java" interface="false" size="30" bugs="39" priority_3="14" priority_2="18" priority_1="7"/> <ClassStats class="ex.CAO_Sample" sourceFile="CAO_Sample.java" interface="false" size="34" bugs="12" priority_3="4" priority_2="8"/> <ClassStats class="ex.CBC_Sample" sourceFile="CBC_Sample.java" interface="false" size="34" bugs="12" priority_3="4" priority_2="5" priority_1="3"/> <ClassStats class="ex.CBC_Sample$Giant" sourceFile="CBC_Sample.java" interface="false" size="13" bugs="0"/> <ClassStats class="ex.CBX_Sample" sourceFile="CBX_Sample.java" interface="false" size="9" bugs="1" priority_1="1"/> <ClassStats class="ex.CCI_Sample" sourceFile="CCI_Sample.java" interface="false" size="12" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.CCNE_Sample" sourceFile="CCNE_Sample.java" interface="false" size="13" bugs="1" priority_2="1"/> <ClassStats class="ex.CEBE_EqualsToEqualsSample" sourceFile="CEBE_EqualsToEqualsSample.java" interface="false" size="19" bugs="3" priority_3="1" priority_1="2"/> <ClassStats class="ex.CE_Sample" sourceFile="CE_Sample.java" interface="false" size="15" bugs="1" priority_3="1"/> <ClassStats class="ex.CFS_Sample" sourceFile="CFS_Sample.java" interface="false" size="16" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.CFS_Sample$View" sourceFile="CFS_Sample.java" interface="false" size="11" bugs="4" priority_3="2" priority_2="2"/> <ClassStats class="ex.CHBH_HashcodeToHashcodeSample" sourceFile="CHBH_HashcodeToHashcodeSample.java" interface="false" size="19" bugs="2" priority_3="1" priority_1="1"/> <ClassStats class="ex.CLI_Sample" sourceFile="CLI_Sample.java" interface="false" size="19" bugs="7" priority_3="3" priority_2="4"/> <ClassStats class="ex.CLI_Sample$FPHander" sourceFile="CLI_Sample.java" interface="false" size="8" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.CNC_Sample" sourceFile="CNC_Sample.java" interface="false" size="18" bugs="13" priority_3="1" priority_2="12"/> <ClassStats class="ex.COM_Sample" sourceFile="COM_Sample.java" interface="false" size="17" bugs="1" priority_3="1"/> <ClassStats class="ex.COM_Sample$Derived" sourceFile="COM_Sample.java" interface="false" size="17" bugs="3" priority_2="3"/> <ClassStats class="ex.CRF_Sample" sourceFile="CRF_Sample.java" interface="false" size="15" bugs="3" priority_2="3"/> <ClassStats class="ex.CSBTS_StringToStringSample" sourceFile="CSBTS_StringToStringSample.java" interface="false" size="15" bugs="6" priority_2="4" priority_1="2"/> <ClassStats class="ex.CSBTS_StringToStringSample$GenderPerson" sourceFile="CSBTS_StringToStringSample.java" interface="false" size="10" bugs="0"/> <ClassStats class="ex.CSBTS_StringToStringSample$Person" sourceFile="CSBTS_StringToStringSample.java" interface="false" size="10" bugs="0"/> <ClassStats class="ex.CSBTS_StringToStringSample$SEX" sourceFile="CSBTS_StringToStringSample.java" interface="false" size="11" bugs="0"/> <ClassStats class="ex.CSI_Sample" sourceFile="CSI_Sample.java" interface="false" size="39" bugs="22" priority_3="2" priority_2="19" priority_1="1"/> <ClassStats class="ex.CTU_Sample" sourceFile="CTU_Sample.java" interface="false" size="15" bugs="2" priority_2="2"/> <ClassStats class="ex.CU_Sample" sourceFile="CU_Sample.java" interface="false" size="5" bugs="2" priority_2="2"/> <ClassStats class="ex.CU_Sample$CU_FP" sourceFile="CU_Sample.java" interface="false" size="10" bugs="2" priority_2="2"/> <ClassStats class="ex.CU_Sample$FPActuallyThrow" sourceFile="CU_Sample.java" interface="false" size="8" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.CU_Sample$FPCloneInterface" sourceFile="CU_Sample.java" interface="false" size="12" bugs="2" priority_2="2"/> <ClassStats class="ex.CU_Sample$Unrelated" sourceFile="CU_Sample.java" interface="false" size="10" bugs="3" priority_2="2" priority_1="1"/> <ClassStats class="ex.CVAA_Sample" sourceFile="CVAA_Sample.java" interface="false" size="24" bugs="11" priority_3="2" priority_2="6" priority_1="3"/> <ClassStats class="ex.CVAA_Sample$Base" sourceFile="CVAA_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.CVAA_Sample$Derived" sourceFile="CVAA_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.CachedThreadPoolMehProblem" sourceFile="HES_Sample.java" interface="false" size="10" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.Child" sourceFile="FCCD_Sample.java" interface="false" size="8" bugs="3" priority_3="2" priority_2="1"/> <ClassStats class="ex.Child241" sourceFile="COM_Sample.java" interface="false" size="8" bugs="0"/> <ClassStats class="ex.ChildAnnot" sourceFile="FCCD_Sample.java" interface="false" size="3" bugs="0"/> <ClassStats class="ex.ChildGH232" sourceFile="COM_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.ChildWithUsedClassObj" sourceFile="FCCD_Sample.java" interface="false" size="3" bugs="1" priority_2="1"/> <ClassStats class="ex.ClassUsingInnerInterface" sourceFile="FCCD_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.ClassWithInnerInterface" sourceFile="FCCD_Sample.java" interface="false" size="7" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.ClassWithInnerInterface$1" sourceFile="FCCD_Sample.java" interface="false" size="7" bugs="1" priority_3="1"/> <ClassStats class="ex.ClassWithInnerInterface$InnerInterface" sourceFile="FCCD_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.CustomRuntimeException" sourceFile="DRE_Sample.java" interface="false" size="3" bugs="0"/> <ClassStats class="ex.DDC_Sample" sourceFile="DDC_Sample.java" interface="false" size="18" bugs="3" priority_2="3"/> <ClassStats class="ex.DLC_Sample" sourceFile="DLC_Sample.java" interface="false" size="27" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.DMC_Sample" sourceFile="DMC_Sample.java" interface="false" size="24" bugs="2" priority_2="2"/> <ClassStats class="ex.DRE_Sample" sourceFile="DRE_Sample.java" interface="false" size="17" bugs="5" priority_3="3" priority_2="2"/> <ClassStats class="ex.DSOC_Sample" sourceFile="DSOC_Sample.java" interface="false" size="18" bugs="10" priority_2="10"/> <ClassStats class="ex.DTEP_Sample" sourceFile="DTEP_Sample.java" interface="false" size="9" bugs="0"/> <ClassStats class="ex.DWI_Sample" sourceFile="DWI_Sample.java" interface="false" size="53" bugs="8" priority_3="2" priority_2="1" priority_1="5"/> <ClassStats class="ex.EXS_Sample" sourceFile="EXS_Sample.java" interface="false" size="47" bugs="37" priority_3="6" priority_2="26" priority_1="5"/> <ClassStats class="ex.Envy" sourceFile="CE_Sample.java" interface="false" size="15" bugs="6" priority_3="6"/> <ClassStats class="ex.ExecutorAsBean" sourceFile="HES_Sample.java" interface="false" size="6" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.FCBL_Sample" sourceFile="FCBL_Sample.java" interface="false" size="95" bugs="17" priority_3="5" priority_2="12"/> <ClassStats class="ex.FCBL_Sample$FieldNameCollisionFP" sourceFile="FCBL_Sample.java" interface="false" size="10" bugs="0"/> <ClassStats class="ex.FCBL_Sample$Foo" sourceFile="FCBL_Sample.java" interface="false" size="8" bugs="0"/> <ClassStats class="ex.FCBL_Sample$Foo$1" sourceFile="FCBL_Sample.java" interface="false" size="8" bugs="0"/> <ClassStats class="ex.FCBL_Sample$FooAnnotation" sourceFile="FCBL_Sample.java" interface="true" size="1" bugs="0"/> <ClassStats class="ex.FCCD_Sample" sourceFile="FCCD_Sample.java" interface="false" size="8" bugs="1" priority_3="1"/> <ClassStats class="ex.FP" sourceFile="SCII_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.FPEnumValueOf" sourceFile="OPM_Sample.java" interface="false" size="14" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.FPIMCEntity" sourceFile="IMC_Sample.java" interface="false" size="5" bugs="4" priority_2="4"/> <ClassStats class="ex.FPIMCTestClass" sourceFile="IMC_Sample.java" interface="false" size="8" bugs="2" priority_3="2"/> <ClassStats class="ex.FPInterfaceOverridesObject" sourceFile="SCII_Sample.java" interface="false" size="13" bugs="0"/> <ClassStats class="ex.FPInterfaceWithSerialVer" sourceFile="SPP_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.FPL_Sample" sourceFile="FPL_Sample.java" interface="false" size="12" bugs="3" priority_2="3"/> <ClassStats class="ex.FP_Sample" sourceFile="FP_Sample.java" interface="false" size="18" bugs="3" priority_3="2" priority_2="1"/> <ClassStats class="ex.FixedThreadPoolProblem" sourceFile="HES_Sample.java" interface="false" size="10" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.Foo" sourceFile="ACEM_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.GH241" sourceFile="COM_Sample.java" interface="false" size="8" bugs="0"/> <ClassStats class="ex.GenerifiedBean" sourceFile="WI_Sample.java" interface="true" size="1" bugs="0"/> <ClassStats class="ex.GitHubIssue101" sourceFile="FCCD_Sample.java" interface="false" size="9" bugs="1" priority_2="1"/> <ClassStats class="ex.GitHubIssue109" sourceFile="UTAO_Sample.java" interface="false" size="14" bugs="0"/> <ClassStats class="ex.GitHubIssue109$Action" sourceFile="UTAO_Sample.java" interface="false" size="11" bugs="0"/> <ClassStats class="ex.GitHubIssue109$Repo" sourceFile="UTAO_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.GitHubIssue109$StrutsAction" sourceFile="UTAO_Sample.java" interface="false" size="11" bugs="3" priority_3="2" priority_2="1"/> <ClassStats class="ex.GitHubIssue206" sourceFile="OPM_Sample.java" interface="false" size="9" bugs="6" priority_3="2" priority_2="4"/> <ClassStats class="ex.GitHubIssue207" sourceFile="UTAO_Sample.java" interface="false" size="8" bugs="0"/> <ClassStats class="ex.GitHubIssue94" sourceFile="UTAO_Sample.java" interface="false" size="12" bugs="0"/> <ClassStats class="ex.HCP_Sample" sourceFile="HCP_Sample.java" interface="false" size="89" bugs="10" priority_3="2" priority_2="8"/> <ClassStats class="ex.HES_Sample" sourceFile="HES_Sample.java" interface="false" size="8" bugs="0"/> <ClassStats class="ex.ICA_Sample" sourceFile="ICA_Sample.java" interface="false" size="37" bugs="21" priority_3="6" priority_2="12" priority_1="3"/> <ClassStats class="ex.IICU_Sample" sourceFile="IICU_Sample.java" interface="false" size="6" bugs="2" priority_2="1" priority_1="1"/> <ClassStats class="ex.IKNC_Sample" sourceFile="IKNC_Sample.java" interface="false" size="14" bugs="4" priority_2="4"/> <ClassStats class="ex.IMCFPHasAToString" sourceFile="IMC_Sample.java" interface="false" size="6" bugs="1" priority_3="1"/> <ClassStats class="ex.IMC_Sample" sourceFile="IMC_Sample.java" interface="false" size="11" bugs="6" priority_3="2" priority_2="4"/> <ClassStats class="ex.IMC_Sample$FPClassIMC" sourceFile="IMC_Sample.java" interface="false" size="5" bugs="3" priority_2="3"/> <ClassStats class="ex.IMC_Sample$FPFieldIMC" sourceFile="IMC_Sample.java" interface="false" size="5" bugs="2" priority_2="2"/> <ClassStats class="ex.IOI_Sample" sourceFile="IOI_Sample.java" interface="false" size="22" bugs="8" priority_3="2" priority_2="5" priority_1="1"/> <ClassStats class="ex.IOI_Sample$FPBofoStream" sourceFile="IOI_Sample.java" interface="false" size="6" bugs="1" priority_2="1"/> <ClassStats class="ex.IPU_Sample" sourceFile="IPU_Sample.java" interface="false" size="15" bugs="4" priority_3="1" priority_2="3"/> <ClassStats class="ex.ISB_Sample" sourceFile="ISB_Sample.java" interface="false" size="77" bugs="17" priority_3="1" priority_2="5" priority_1="11"/> <ClassStats class="ex.ISB_Sample$MonsterSpeak" sourceFile="ISB_Sample.java" interface="false" size="10" bugs="0"/> <ClassStats class="ex.ITC_Sample" sourceFile="ITC_Sample.java" interface="false" size="17" bugs="3" priority_3="2" priority_2="1"/> <ClassStats class="ex.ITC_Sample$A" sourceFile="ITC_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.ITC_Sample$B" sourceFile="ITC_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.ITC_Sample$C" sourceFile="ITC_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.ITU_Sample" sourceFile="ITU_Sample.java" interface="false" size="15" bugs="5" priority_3="1" priority_2="4"/> <ClassStats class="ex.Inf" sourceFile="COM_Sample.java" interface="true" size="3" bugs="0"/> <ClassStats class="ex.Intent" sourceFile="FCCD_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.JPAI_Sample" sourceFile="JPAI_Sample.java" interface="false" size="27" bugs="13" priority_3="6" priority_2="7"/> <ClassStats class="ex.JPAI_Sample$MyEntity" sourceFile="JPAI_Sample.java" interface="false" size="24" bugs="3" priority_3="3"/> <ClassStats class="ex.JPAI_Sample$SubEntity" sourceFile="JPAI_Sample.java" interface="false" size="15" bugs="0"/> <ClassStats class="ex.JVR_Sample" sourceFile="JVR_Sample.java" interface="false" size="9" bugs="1" priority_2="1"/> <ClassStats class="ex.JXI_Sample" sourceFile="JXI_Sample.java" interface="false" size="23" bugs="4" priority_2="4"/> <ClassStats class="ex.JXI_Sample$Stuff" sourceFile="JXI_Sample.java" interface="false" size="3" bugs="0"/> <ClassStats class="ex.LEST_Sample" sourceFile="LEST_Sample.java" interface="false" size="93" bugs="22" priority_3="5" priority_2="11" priority_1="6"/> <ClassStats class="ex.LGO_Sample" sourceFile="LGO_Sample.java" interface="false" size="22" bugs="6" priority_2="6"/> <ClassStats class="ex.LII_Sample" sourceFile="LII_Sample.java" interface="false" size="40" bugs="7" priority_2="1" priority_1="6"/> <ClassStats class="ex.LII_Sample$GH228" sourceFile="LII_Sample.java" interface="false" size="12" bugs="1" priority_2="1"/> <ClassStats class="ex.LO_Sample" sourceFile="LO_Sample.java" interface="false" size="3" bugs="0"/> <ClassStats class="ex.LO_Sample$FunnyToString" sourceFile="LO_Sample.java" interface="false" size="6" bugs="1" priority_2="1"/> <ClassStats class="ex.LO_Sample$Log4j" sourceFile="LO_Sample.java" interface="false" size="58" bugs="17" priority_3="2" priority_2="13" priority_1="2"/> <ClassStats class="ex.LO_Sample$Log4j$Inner" sourceFile="LO_Sample.java" interface="false" size="7" bugs="2" priority_3="1" priority_1="1"/> <ClassStats class="ex.LO_Sample$Log4j$Inner$1" sourceFile="LO_Sample.java" interface="false" size="9" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.LO_Sample$Log4j2" sourceFile="LO_Sample.java" interface="false" size="88" bugs="28" priority_3="2" priority_2="23" priority_1="3"/> <ClassStats class="ex.LO_Sample$Log4j2$Inner" sourceFile="LO_Sample.java" interface="false" size="7" bugs="2" priority_3="1" priority_1="1"/> <ClassStats class="ex.LO_Sample$Log4j2$Inner$1" sourceFile="LO_Sample.java" interface="false" size="9" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.LO_Sample$Slf4j" sourceFile="LO_Sample.java" interface="false" size="91" bugs="31" priority_3="4" priority_2="24" priority_1="3"/> <ClassStats class="ex.LO_Sample$Slf4j$Inner" sourceFile="LO_Sample.java" interface="false" size="7" bugs="2" priority_3="1" priority_1="1"/> <ClassStats class="ex.LO_Sample$Slf4j$Inner$1" sourceFile="LO_Sample.java" interface="false" size="9" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.LSC_Sample" sourceFile="LSC_Sample.java" interface="false" size="82" bugs="9" priority_1="9"/> <ClassStats class="ex.LSC_Sample$Planets" sourceFile="LSC_Sample.java" interface="false" size="13" bugs="0"/> <ClassStats class="ex.LSYC_Sample" sourceFile="LSYC_Sample.java" interface="false" size="45" bugs="6" priority_3="2" priority_2="1" priority_1="3"/> <ClassStats class="ex.LocalExecutorProblem" sourceFile="HES_Sample.java" interface="false" size="8" bugs="2" priority_3="2"/> <ClassStats class="ex.LocalExecutorProblem1" sourceFile="HES_Sample.java" interface="false" size="8" bugs="1" priority_3="1"/> <ClassStats class="ex.LocalExecutorProblem1$1" sourceFile="HES_Sample.java" interface="false" size="7" bugs="1" priority_3="1"/> <ClassStats class="ex.LocalExecutorProblem2" sourceFile="HES_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.LocalExecutorProblem2$1" sourceFile="HES_Sample.java" interface="false" size="7" bugs="1" priority_3="1"/> <ClassStats class="ex.LocalExecutorProblem3" sourceFile="HES_Sample.java" interface="false" size="8" bugs="0"/> <ClassStats class="ex.MAC_Sample" sourceFile="MAC_Sample.java" interface="false" size="15" bugs="8" priority_3="2" priority_2="4" priority_1="2"/> <ClassStats class="ex.MDM_Sample" sourceFile="MDM_Sample.java" interface="false" size="68" bugs="40" priority_3="21" priority_2="16" priority_1="3"/> <ClassStats class="ex.MOM_Sample" sourceFile="MOM_Sample.java" interface="false" size="7" bugs="3" priority_2="3"/> <ClassStats class="ex.MRC_Sample" sourceFile="MRC_Sample.java" interface="false" size="73" bugs="26" priority_3="17" priority_2="9"/> <ClassStats class="ex.MRC_Sample$QueryParam" sourceFile="MRC_Sample.java" interface="false" size="5" bugs="1" priority_2="1"/> <ClassStats class="ex.MTA_Sample" sourceFile="MTA_Sample.java" interface="false" size="16" bugs="0"/> <ClassStats class="ex.MUC_Sample" sourceFile="MUC_Sample.java" interface="false" size="23" bugs="1" priority_3="1"/> <ClassStats class="ex.MUP_Sample" sourceFile="MUP_Sample.java" interface="false" size="30" bugs="5" priority_3="2" priority_2="3"/> <ClassStats class="ex.Mammooth" sourceFile="FCCD_Sample.java" interface="false" size="6" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.Mammooth$Builder" sourceFile="FCCD_Sample.java" interface="false" size="11" bugs="0"/> <ClassStats class="ex.Me" sourceFile="FCCD_Sample.java" interface="false" size="5" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.MyBean" sourceFile="WI_Sample.java" interface="false" size="3" bugs="0"/> <ClassStats class="ex.MyComponent" sourceFile="S508C_Sample.java" interface="false" size="4" bugs="1" priority_2="1"/> <ClassStats class="ex.MyVisitor" sourceFile="IMC_Sample.java" interface="false" size="8" bugs="4" priority_3="2" priority_2="2"/> <ClassStats class="ex.Myself" sourceFile="FCCD_Sample.java" interface="false" size="5" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.NAB_Sample" sourceFile="NAB_Sample.java" interface="false" size="123" bugs="222" priority_3="32" priority_2="168" priority_1="22"/> <ClassStats class="ex.NCMU_Sample" sourceFile="NCMU_Sample.java" interface="false" size="16" bugs="11" priority_2="11"/> <ClassStats class="ex.NCS_Sample" sourceFile="NCS_Sample.java" interface="false" size="9" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.NFF_Sample" sourceFile="NFF_Sample.java" interface="false" size="6" bugs="5" priority_3="1" priority_2="4"/> <ClassStats class="ex.NIR_Sample" sourceFile="NIR_Sample.java" interface="false" size="24" bugs="5" priority_3="1" priority_2="4"/> <ClassStats class="ex.NMCS_Sample" sourceFile="NMCS_Sample.java" interface="false" size="33" bugs="4" priority_3="1" priority_2="2" priority_1="1"/> <ClassStats class="ex.NOS_Sample" sourceFile="NOS_Sample.java" interface="false" size="18" bugs="5" priority_3="2" priority_2="3"/> <ClassStats class="ex.NPMC_Sample" sourceFile="NPMC_Sample.java" interface="false" size="36" bugs="23" priority_3="6" priority_2="17"/> <ClassStats class="ex.NRTL_Sample" sourceFile="NRTL_Sample.java" interface="false" size="20" bugs="7" priority_3="2" priority_2="5"/> <ClassStats class="ex.NSE_Sample" sourceFile="NSE_Sample.java" interface="false" size="3" bugs="0"/> <ClassStats class="ex.NSE_Sample$Child" sourceFile="NSE_Sample.java" interface="false" size="9" bugs="2" priority_2="2"/> <ClassStats class="ex.NSE_Sample$One" sourceFile="NSE_Sample.java" interface="false" size="11" bugs="6" priority_3="1" priority_2="4" priority_1="1"/> <ClassStats class="ex.NSE_Sample$Parent" sourceFile="NSE_Sample.java" interface="false" size="11" bugs="7" priority_3="3" priority_2="2" priority_1="2"/> <ClassStats class="ex.NSE_Sample$Two" sourceFile="NSE_Sample.java" interface="false" size="9" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.New" sourceFile="UTAO_Sample.java" interface="false" size="16" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.NiftyParm" sourceFile="OCP_Sample.java" interface="true" size="1" bugs="0"/> <ClassStats class="ex.NonSync" sourceFile="COM_Sample.java" interface="false" size="5" bugs="1" priority_3="1"/> <ClassStats class="ex.OCP_Sample" sourceFile="OCP_Sample.java" interface="false" size="64" bugs="12" priority_3="2" priority_2="10"/> <ClassStats class="ex.OCP_Sample$A" sourceFile="OCP_Sample.java" interface="true" size="3" bugs="0"/> <ClassStats class="ex.OCP_Sample$B" sourceFile="OCP_Sample.java" interface="false" size="9" bugs="1" priority_2="1"/> <ClassStats class="ex.OCP_Sample$C" sourceFile="OCP_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.OCP_Sample$D" sourceFile="OCP_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.OCP_Sample$Legion" sourceFile="OCP_Sample.java" interface="false" size="11" bugs="0"/> <ClassStats class="ex.OC_Sample" sourceFile="OC_Sample.java" interface="false" size="10" bugs="8" priority_3="2" priority_2="6"/> <ClassStats class="ex.ODN_Sample" sourceFile="ODN_Sample.java" interface="false" size="28" bugs="6" priority_2="6"/> <ClassStats class="ex.OI_Sample" sourceFile="OI_Sample.java" interface="false" size="30" bugs="10" priority_3="4" priority_2="6"/> <ClassStats class="ex.OPMSuper" sourceFile="OPM_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.OPM_Sample" sourceFile="OPM_Sample.java" interface="false" size="29" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.OverEndulgentParent" sourceFile="SCII_Sample.java" interface="false" size="11" bugs="4" priority_3="4"/> <ClassStats class="ex.OverEndulgentParent$A" sourceFile="SCII_Sample.java" interface="true" size="4" bugs="0"/> <ClassStats class="ex.OverEndulgentParent$AA" sourceFile="SCII_Sample.java" interface="false" size="10" bugs="0"/> <ClassStats class="ex.OverEndulgentParent$B" sourceFile="SCII_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.OverEndulgentParent$BB" sourceFile="SCII_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.OverEndulgentParent$C" sourceFile="SCII_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.OverEndulgentParent$CC" sourceFile="SCII_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.PCAIL_Sample" sourceFile="PCAIL_Sample.java" interface="false" size="103" bugs="27" priority_3="5" priority_2="19" priority_1="3"/> <ClassStats class="ex.PCAIL_Sample$Bar" sourceFile="PCAIL_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.PCAIL_Sample$Foo" sourceFile="PCAIL_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.PCOA_Sample" sourceFile="PCOA_Sample.java" interface="false" size="26" bugs="4" priority_3="3" priority_2="1"/> <ClassStats class="ex.PCOA_Sample$FinalClass" sourceFile="PCOA_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.PDP_Sample" sourceFile="PDP_Sample.java" interface="false" size="71" bugs="30" priority_3="11" priority_2="17" priority_1="2"/> <ClassStats class="ex.PDP_Sample$LambdaConstrained" sourceFile="PDP_Sample.java" interface="true" size="2" bugs="0"/> <ClassStats class="ex.PIS_Sample" sourceFile="PIS_Sample.java" interface="false" size="28" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.PIS_Sample$A" sourceFile="PIS_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.PIS_Sample$B" sourceFile="PIS_Sample.java" interface="false" size="5" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.PIS_Sample$C" sourceFile="PIS_Sample.java" interface="false" size="5" bugs="1" priority_3="1"/> <ClassStats class="ex.PIS_Sample$D" sourceFile="PIS_Sample.java" interface="false" size="5" bugs="1" priority_3="1"/> <ClassStats class="ex.PL_Sample" sourceFile="PL_Sample.java" interface="false" size="32" bugs="7" priority_3="2" priority_2="5"/> <ClassStats class="ex.PMB_Sample" sourceFile="PMB_Sample.java" interface="false" size="71" bugs="10" priority_3="3" priority_2="7"/> <ClassStats class="ex.PMB_Sample$1" sourceFile="PMB_Sample.java" interface="false" size="8" bugs="1" priority_3="1"/> <ClassStats class="ex.PMB_Sample$2" sourceFile="PMB_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.PMB_Sample$3" sourceFile="PMB_Sample.java" interface="false" size="8" bugs="1" priority_3="1"/> <ClassStats class="ex.PME_Sample" sourceFile="PME_Sample.java" interface="false" size="27" bugs="11" priority_3="1" priority_2="10"/> <ClassStats class="ex.PRMCChild" sourceFile="PRMC_Sample.java" interface="false" size="9" bugs="0"/> <ClassStats class="ex.PRMCPar" sourceFile="PRMC_Sample.java" interface="false" size="8" bugs="2" priority_3="2"/> <ClassStats class="ex.PRMC_Sample" sourceFile="PRMC_Sample.java" interface="false" size="92" bugs="41" priority_3="9" priority_2="26" priority_1="6"/> <ClassStats class="ex.PRMC_Sample$Chain" sourceFile="PRMC_Sample.java" interface="false" size="19" bugs="1" priority_2="1"/> <ClassStats class="ex.PRMC_Sample$FPEnum" sourceFile="PRMC_Sample.java" interface="false" size="13" bugs="0"/> <ClassStats class="ex.PRMC_Sample$Factory" sourceFile="PRMC_Sample.java" interface="false" size="17" bugs="0"/> <ClassStats class="ex.PRMC_Sample$SFIssue71" sourceFile="PRMC_Sample.java" interface="false" size="12" bugs="1" priority_2="1"/> <ClassStats class="ex.PSC_Sample" sourceFile="PSC_Sample.java" interface="false" size="108" bugs="33" priority_3="4" priority_2="25" priority_1="4"/> <ClassStats class="ex.PUS_Sample" sourceFile="PUS_Sample.java" interface="false" size="14" bugs="4" priority_3="3" priority_2="1"/> <ClassStats class="ex.PUS_Sample$Inner" sourceFile="PUS_Sample.java" interface="false" size="7" bugs="5" priority_3="1" priority_2="4"/> <ClassStats class="ex.PUS_Sample$StaticInner" sourceFile="PUS_Sample.java" interface="false" size="6" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.Parent" sourceFile="WI_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.ParentGH232" sourceFile="COM_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.RFI_Sample" sourceFile="RFI_Sample.java" interface="false" size="21" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.ROOM_Sample" sourceFile="ROOM_Sample.java" interface="false" size="28" bugs="5" priority_3="1" priority_2="4"/> <ClassStats class="ex.RT" sourceFile="OPM_Sample.java" interface="true" size="1" bugs="0"/> <ClassStats class="ex.ReplacementExecutorBad2" sourceFile="HES_Sample.java" interface="false" size="19" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.ReplacementExecutorGood" sourceFile="HES_Sample.java" interface="false" size="16" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.ReplacementExecutorGood2" sourceFile="HES_Sample.java" interface="false" size="23" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.ReplacementExecutorProblem" sourceFile="HES_Sample.java" interface="false" size="22" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.S508C_Sample" sourceFile="S508C_Sample.java" interface="false" size="31" bugs="21" priority_2="17" priority_1="4"/> <ClassStats class="ex.SACM_Sample" sourceFile="SACM_Sample.java" interface="false" size="8" bugs="1" priority_2="1"/> <ClassStats class="ex.SCA_Sample" sourceFile="SCA_Sample.java" interface="false" size="11" bugs="5" priority_3="1" priority_2="4"/> <ClassStats class="ex.SCII_Sample" sourceFile="SCII_Sample.java" interface="false" size="10" bugs="1" priority_2="1"/> <ClassStats class="ex.SCI_Sample" sourceFile="SCI_Sample.java" interface="false" size="64" bugs="18" priority_3="2" priority_2="8" priority_1="8"/> <ClassStats class="ex.SCRV_Sample" sourceFile="SCRV_Sample.java" interface="false" size="9" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.SCRV_Sample$FPComparator" sourceFile="SCRV_Sample.java" interface="false" size="10" bugs="2" priority_2="2"/> <ClassStats class="ex.SCRV_Sample$FPDefaultComparator" sourceFile="SCRV_Sample.java" interface="false" size="8" bugs="1" priority_2="1"/> <ClassStats class="ex.SCRV_Sample$FPThrowsComparator" sourceFile="SCRV_Sample.java" interface="false" size="8" bugs="1" priority_2="1"/> <ClassStats class="ex.SCRV_Sample$SampleComparable" sourceFile="SCRV_Sample.java" interface="false" size="10" bugs="2" priority_2="2"/> <ClassStats class="ex.SCRV_Sample$SampleComparator" sourceFile="SCRV_Sample.java" interface="false" size="10" bugs="2" priority_2="2"/> <ClassStats class="ex.SCRV_Sample$UnconditionalNonZeroReturnComparable" sourceFile="SCRV_Sample.java" interface="false" size="12" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.SCR_Sample" sourceFile="SCR_Sample.java" interface="false" size="31" bugs="5" priority_3="5"/> <ClassStats class="ex.SCSS_Sample" sourceFile="SCSS_Sample.java" interface="false" size="16" bugs="2" priority_2="2"/> <ClassStats class="ex.SEC_Sample" sourceFile="SEC_Sample.java" interface="false" size="14" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.SEO_Sample" sourceFile="SEO_Sample.java" interface="false" size="25" bugs="6" priority_3="4" priority_2="2"/> <ClassStats class="ex.SEO_Sample$Holder" sourceFile="SEO_Sample.java" interface="false" size="9" bugs="4" priority_3="1" priority_2="3"/> <ClassStats class="ex.SGSU_Sample" sourceFile="SGSU_Sample.java" interface="false" size="19" bugs="7" priority_3="3" priority_2="4"/> <ClassStats class="ex.SG_Sample" sourceFile="SG_Sample.java" interface="false" size="36" bugs="8" priority_3="1" priority_2="4" priority_1="3"/> <ClassStats class="ex.SIL_Sample" sourceFile="SIL_Sample.java" interface="false" size="11" bugs="1" priority_2="1"/> <ClassStats class="ex.SJVU_Sample" sourceFile="SJVU_Sample.java" interface="false" size="11" bugs="4" priority_3="1" priority_2="2" priority_1="1"/> <ClassStats class="ex.SJVU_Sample$1" sourceFile="SJVU_Sample.java" interface="false" size="15" bugs="1" priority_3="1"/> <ClassStats class="ex.SLS_Sample" sourceFile="SLS_Sample.java" interface="false" size="83" bugs="17" priority_3="3" priority_2="11" priority_1="3"/> <ClassStats class="ex.SLS_Sample$State" sourceFile="SLS_Sample.java" interface="false" size="12" bugs="0"/> <ClassStats class="ex.SMII_Sample" sourceFile="SMII_Sample.java" interface="false" size="46" bugs="26" priority_3="8" priority_2="15" priority_1="3"/> <ClassStats class="ex.SMII_Sample$Inner" sourceFile="SMII_Sample.java" interface="false" size="6" bugs="2" priority_2="2"/> <ClassStats class="ex.SNG_Sample" sourceFile="SNG_Sample.java" interface="false" size="48" bugs="19" priority_3="9" priority_2="7" priority_1="3"/> <ClassStats class="ex.SPP_Sample" sourceFile="SPP_Sample.java" interface="false" size="256" bugs="99" priority_3="19" priority_2="56" priority_1="24"/> <ClassStats class="ex.SPP_Sample$1" sourceFile="SPP_Sample.java" interface="false" size="5" bugs="2" priority_3="2"/> <ClassStats class="ex.SPP_Sample$Flap" sourceFile="SPP_Sample.java" interface="false" size="11" bugs="0"/> <ClassStats class="ex.SSCU_Sample" sourceFile="SSCU_Sample.java" interface="false" size="6" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.STB_Sample" sourceFile="STB_Sample.java" interface="false" size="66" bugs="53" priority_3="8" priority_2="39" priority_1="6"/> <ClassStats class="ex.STB_Sample$STBException" sourceFile="STB_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.STS_Sample" sourceFile="STS_Sample.java" interface="false" size="13" bugs="1" priority_3="1"/> <ClassStats class="ex.STS_Sample$Calculator" sourceFile="STS_Sample.java" interface="false" size="13" bugs="6" priority_3="3" priority_2="3"/> <ClassStats class="ex.STS_Sample$Reader" sourceFile="STS_Sample.java" interface="false" size="14" bugs="4" priority_3="1" priority_2="3"/> <ClassStats class="ex.STT_Sample" sourceFile="STT_Sample.java" interface="false" size="32" bugs="10" priority_3="1" priority_2="9"/> <ClassStats class="ex.STT_Sample$Sample" sourceFile="STT_Sample.java" interface="false" size="11" bugs="0"/> <ClassStats class="ex.SUA_Sample" sourceFile="SUA_Sample.java" interface="false" size="56" bugs="9" priority_3="3" priority_2="6"/> <ClassStats class="ex.SUA_Sample$ThreadLocalFP" sourceFile="SUA_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.SWCO_Sample" sourceFile="SWCO_Sample.java" interface="false" size="14" bugs="8" priority_3="3" priority_2="4" priority_1="1"/> <ClassStats class="ex.SampleExecutable" sourceFile="HES_Sample.java" interface="false" size="10" bugs="1" priority_3="1"/> <ClassStats class="ex.ScheduledThreadPoolProblem" sourceFile="HES_Sample.java" interface="false" size="10" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.ScheduledThreadPoolProblemCustomThreadFactory" sourceFile="HES_Sample.java" interface="false" size="10" bugs="2" priority_3="2"/> <ClassStats class="ex.ScheduledThreadPoolProblemCustomThreadFactory$1" sourceFile="HES_Sample.java" interface="false" size="9" bugs="1" priority_3="1"/> <ClassStats class="ex.SingleThreadExecutorGood" sourceFile="HES_Sample.java" interface="false" size="13" bugs="1" priority_3="1"/> <ClassStats class="ex.SingleThreadExecutorGood1" sourceFile="HES_Sample.java" interface="false" size="13" bugs="1" priority_3="1"/> <ClassStats class="ex.SingleThreadExecutorGood2" sourceFile="HES_Sample.java" interface="false" size="16" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.SingleThreadExecutorProblem" sourceFile="HES_Sample.java" interface="false" size="10" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.SingleThreadExecutorThreadFactoryMehProblem" sourceFile="HES_Sample.java" interface="false" size="10" bugs="2" priority_3="2"/> <ClassStats class="ex.SingleThreadExecutorThreadFactoryMehProblem$1" sourceFile="HES_Sample.java" interface="false" size="9" bugs="1" priority_3="1"/> <ClassStats class="ex.SingleThreadExecutorTryProblem" sourceFile="HES_Sample.java" interface="false" size="16" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.SingletonBean" sourceFile="WI_Sample.java" interface="true" size="1" bugs="0"/> <ClassStats class="ex.StringProducer" sourceFile="SPP_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.SubChild" sourceFile="FCCD_Sample.java" interface="false" size="8" bugs="5" priority_3="3" priority_2="2"/> <ClassStats class="ex.Super" sourceFile="EXS_Sample.java" interface="false" size="9" bugs="1" priority_3="1"/> <ClassStats class="ex.SuperSecret" sourceFile="IMC_Sample.java" interface="true" size="1" bugs="0"/> <ClassStats class="ex.SuspectBuilderUse" sourceFile="FCCD_Sample.java" interface="false" size="8" bugs="1" priority_3="1"/> <ClassStats class="ex.SuspectBuilderUse$Builder" sourceFile="FCCD_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.Sync" sourceFile="COM_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.TBP_Sample" sourceFile="TBP_Sample.java" interface="false" size="7" bugs="4" priority_3="1" priority_2="2" priority_1="1"/> <ClassStats class="ex.TR_Sample" sourceFile="TR_Sample.java" interface="false" size="7" bugs="2" priority_3="1" priority_2="1"/> <ClassStats class="ex.TestNG" sourceFile="UTAO_Sample.java" interface="false" size="54" bugs="20" priority_3="5" priority_2="15"/> <ClassStats class="ex.TestRuntimeExceptionOnImplementingClass" sourceFile="DRE_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.ThrowsRuntimeException" sourceFile="DRE_Sample.java" interface="true" size="2" bugs="1" priority_3="1"/> <ClassStats class="ex.UAA_Sample" sourceFile="UAA_Sample.java" interface="false" size="67" bugs="7" priority_3="3" priority_2="4"/> <ClassStats class="ex.UAC_Sample" sourceFile="UAC_Sample.java" interface="false" size="7" bugs="2" priority_2="2"/> <ClassStats class="ex.UCC_Sample" sourceFile="UCC_Sample.java" interface="false" size="45" bugs="28" priority_3="1" priority_2="26" priority_1="1"/> <ClassStats class="ex.UCC_Sample$1" sourceFile="UCC_Sample.java" interface="false" size="5" bugs="1" priority_3="1"/> <ClassStats class="ex.UCC_Sample$Bean1" sourceFile="UCC_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.UCC_Sample$Bean2" sourceFile="UCC_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.UCC_Sample$Container" sourceFile="UCC_Sample.java" interface="false" size="4" bugs="0"/> <ClassStats class="ex.UCC_Sample$Holder" sourceFile="UCC_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.UCPM_Sample" sourceFile="UCPM_Sample.java" interface="false" size="39" bugs="12" priority_3="1" priority_2="11"/> <ClassStats class="ex.UEC_Sample" sourceFile="UEC_Sample.java" interface="false" size="39" bugs="13" priority_3="2" priority_2="11"/> <ClassStats class="ex.UEC_Sample$EnumStub" sourceFile="UEC_Sample.java" interface="true" size="1" bugs="0"/> <ClassStats class="ex.UEC_Sample$EnumWithInf" sourceFile="UEC_Sample.java" interface="false" size="12" bugs="0"/> <ClassStats class="ex.UEC_Sample$FalsePositive" sourceFile="UEC_Sample.java" interface="false" size="12" bugs="0"/> <ClassStats class="ex.UEC_Sample$Suite" sourceFile="UEC_Sample.java" interface="false" size="13" bugs="0"/> <ClassStats class="ex.UMTP_Sample" sourceFile="UMTP_Sample.java" interface="false" size="24" bugs="7" priority_3="4" priority_2="3"/> <ClassStats class="ex.UNNC_Sample" sourceFile="UNNC_Sample.java" interface="false" size="50" bugs="13" priority_3="3" priority_2="9" priority_1="1"/> <ClassStats class="ex.UP_Sample" sourceFile="UP_Sample.java" interface="false" size="23" bugs="7" priority_3="2" priority_2="5"/> <ClassStats class="ex.URV_Sample" sourceFile="URV_Sample.java" interface="false" size="15" bugs="4" priority_2="4"/> <ClassStats class="ex.URV_Super" sourceFile="URV_Sample.java" interface="false" size="5" bugs="1" priority_3="1"/> <ClassStats class="ex.USBR_Sample" sourceFile="USBR_Sample.java" interface="false" size="29" bugs="7" priority_3="3" priority_2="3" priority_1="1"/> <ClassStats class="ex.USFW1_Sample" sourceFile="USFW_Sample.java" interface="false" size="7" bugs="4" priority_3="1" priority_2="3"/> <ClassStats class="ex.USFW2_Sample" sourceFile="USFW_Sample.java" interface="false" size="7" bugs="4" priority_3="1" priority_2="3"/> <ClassStats class="ex.USFW3_Sample" sourceFile="USFW_Sample.java" interface="false" size="7" bugs="3" priority_3="1" priority_2="2"/> <ClassStats class="ex.USFW_Sample" sourceFile="USFW_Sample.java" interface="false" size="7" bugs="4" priority_3="1" priority_2="3"/> <ClassStats class="ex.USS_Sample" sourceFile="USS_Sample.java" interface="false" size="54" bugs="1" priority_1="1"/> <ClassStats class="ex.UTAO_Sample" sourceFile="UTAO_Sample.java" interface="false" size="59" bugs="29" priority_3="7" priority_2="22"/> <ClassStats class="ex.UTA_Sample" sourceFile="UTA_Sample.java" interface="false" size="20" bugs="0"/> <ClassStats class="ex.UTWR_Sample" sourceFile="UTWR_Sample.java" interface="false" size="22" bugs="4" priority_3="1" priority_2="3"/> <ClassStats class="ex.UVA_Sample" sourceFile="UVA_Sample.java" interface="false" size="28" bugs="6" priority_3="5" priority_2="1"/> <ClassStats class="ex.VendorBlob" sourceFile="JVR_Sample.java" interface="false" size="27" bugs="6" priority_3="6"/> <ClassStats class="ex.WEM_Sample" sourceFile="WEM_Sample.java" interface="false" size="28" bugs="7" priority_3="3" priority_2="3" priority_1="1"/> <ClassStats class="ex.WI_Sample" sourceFile="WI_Sample.java" interface="false" size="10" bugs="5" priority_3="1" priority_2="3" priority_1="1"/> <ClassStats class="ex.WOC_Sample" sourceFile="WOC_Sample.java" interface="false" size="107" bugs="17" priority_3="4" priority_2="12" priority_1="1"/> <ClassStats class="ex.WOC_Sample$1" sourceFile="WOC_Sample.java" interface="false" size="9" bugs="0"/> <ClassStats class="ex.WOC_Sample$Data" sourceFile="WOC_Sample.java" interface="false" size="5" bugs="1" priority_2="1"/> <ClassStats class="ex.WOC_Sample$FpContains" sourceFile="WOC_Sample.java" interface="false" size="14" bugs="0"/> <ClassStats class="ex.Writer" sourceFile="OPM_Sample.java" interface="false" size="8" bugs="0"/> <ClassStats class="ex.Z" sourceFile="OCP_Sample.java" interface="false" size="5" bugs="0"/> <ClassStats class="ex.c1" sourceFile="COM_Sample.java" interface="false" size="5" bugs="2" priority_3="2"/> <ClassStats class="ex.c2" sourceFile="COM_Sample.java" interface="false" size="5" bugs="2" priority_3="2"/> <ClassStats class="ex.fpGenericConstrainedInterface" sourceFile="OCP_Sample.java" interface="false" size="9" bugs="4" priority_3="2" priority_2="2"/> <ClassStats class="ex.fpOverride" sourceFile="OCP_Sample.java" interface="false" size="7" bugs="2" priority_3="2"/> <ClassStats class="ex.fpOverride$1" sourceFile="OCP_Sample.java" interface="false" size="7" bugs="0"/> <ClassStats class="ex.s1" sourceFile="COM_Sample.java" interface="false" size="6" bugs="2" priority_3="2"/> <ClassStats class="ex.s2" sourceFile="COM_Sample.java" interface="false" size="6" bugs="2" priority_3="2"/> </PackageStats> <PackageStats package="ex.opm" total_bugs="0" total_types="1" total_size="15"> <ClassStats class="ex.opm.RuleMatcher" sourceFile="RuleMatcher.java" interface="false" size="15" bugs="0"/> </PackageStats> <FindBugsProfile> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.ClassDataAnalysisEngine" totalMilliseconds="3477" invocations="3279" avgMicrosecondsPerInvocation="1060" maxMicrosecondsPerInvocation="72331" standardDeviationMircosecondsPerInvocation="2997"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine" totalMilliseconds="2692" invocations="3245" avgMicrosecondsPerInvocation="829" maxMicrosecondsPerInvocation="214125" standardDeviationMircosecondsPerInvocation="4786"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindNoSideEffectMethods" totalMilliseconds="1672" invocations="1009" avgMicrosecondsPerInvocation="1657" maxMicrosecondsPerInvocation="58673" standardDeviationMircosecondsPerInvocation="4251"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FieldItemSummary" totalMilliseconds="1562" invocations="1009" avgMicrosecondsPerInvocation="1548" maxMicrosecondsPerInvocation="35245" standardDeviationMircosecondsPerInvocation="3739"/> <ClassProfile name="com.mebigfatguy.fbcontrib.collect.CollectStatistics" totalMilliseconds="1396" invocations="1009" avgMicrosecondsPerInvocation="1383" maxMicrosecondsPerInvocation="59104" standardDeviationMircosecondsPerInvocation="3770"/> <ClassProfile name="edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder" totalMilliseconds="1079" invocations="1483" avgMicrosecondsPerInvocation="728" maxMicrosecondsPerInvocation="33582" standardDeviationMircosecondsPerInvocation="1672"/> <ClassProfile name="edu.umd.cs.findbugs.OpcodeStack$JumpInfoFactory" totalMilliseconds="1030" invocations="2947" avgMicrosecondsPerInvocation="349" maxMicrosecondsPerInvocation="12685" standardDeviationMircosecondsPerInvocation="657"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.IsNullValueDataflowFactory" totalMilliseconds="921" invocations="1508" avgMicrosecondsPerInvocation="611" maxMicrosecondsPerInvocation="44599" standardDeviationMircosecondsPerInvocation="1646"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.UnconditionalValueDerefDataflowFactory" totalMilliseconds="889" invocations="1498" avgMicrosecondsPerInvocation="593" maxMicrosecondsPerInvocation="43391" standardDeviationMircosecondsPerInvocation="2029"/> <ClassProfile name="edu.umd.cs.findbugs.util.TopologicalSort" totalMilliseconds="854" invocations="3149" avgMicrosecondsPerInvocation="271" maxMicrosecondsPerInvocation="333178" standardDeviationMircosecondsPerInvocation="6133"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.TypeDataflowFactory" totalMilliseconds="734" invocations="1546" avgMicrosecondsPerInvocation="474" maxMicrosecondsPerInvocation="30243" standardDeviationMircosecondsPerInvocation="1388"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.ValueNumberDataflowFactory" totalMilliseconds="657" invocations="1566" avgMicrosecondsPerInvocation="420" maxMicrosecondsPerInvocation="24439" standardDeviationMircosecondsPerInvocation="1077"/> <ClassProfile name="com.mebigfatguy.fbcontrib.collect.CollectNullableMethodStatus" totalMilliseconds="616" invocations="1009" avgMicrosecondsPerInvocation="610" maxMicrosecondsPerInvocation="34689" standardDeviationMircosecondsPerInvocation="2103"/> <ClassProfile name="edu.umd.cs.findbugs.detect.InfiniteLoop" totalMilliseconds="596" invocations="355" avgMicrosecondsPerInvocation="1678" maxMicrosecondsPerInvocation="489857" standardDeviationMircosecondsPerInvocation="25955"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.CFGFactory" totalMilliseconds="571" invocations="1508" avgMicrosecondsPerInvocation="379" maxMicrosecondsPerInvocation="26239" standardDeviationMircosecondsPerInvocation="981"/> <ClassProfile name="edu.umd.cs.findbugs.detect.NoteDirectlyRelevantTypeQualifiers" totalMilliseconds="562" invocations="1009" avgMicrosecondsPerInvocation="557" maxMicrosecondsPerInvocation="17546" standardDeviationMircosecondsPerInvocation="1334"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory" totalMilliseconds="557" invocations="44" avgMicrosecondsPerInvocation="12670" maxMicrosecondsPerInvocation="42668" standardDeviationMircosecondsPerInvocation="12923"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindRefComparison$SpecialTypeAnalysis" totalMilliseconds="516" invocations="1229" avgMicrosecondsPerInvocation="420" maxMicrosecondsPerInvocation="11544" standardDeviationMircosecondsPerInvocation="902"/> <ClassProfile name="edu.umd.cs.findbugs.DetectorToDetector2Adapter" totalMilliseconds="489" invocations="94617" avgMicrosecondsPerInvocation="5" maxMicrosecondsPerInvocation="8063" standardDeviationMircosecondsPerInvocation="71"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.JavaClassAnalysisEngine" totalMilliseconds="456" invocations="1676" avgMicrosecondsPerInvocation="272" maxMicrosecondsPerInvocation="63115" standardDeviationMircosecondsPerInvocation="1665"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FunctionsThatMightBeMistakenForProcedures" totalMilliseconds="385" invocations="1009" avgMicrosecondsPerInvocation="381" maxMicrosecondsPerInvocation="43517" standardDeviationMircosecondsPerInvocation="1657"/> <ClassProfile name="edu.umd.cs.findbugs.detect.BuildObligationPolicyDatabase" totalMilliseconds="350" invocations="1009" avgMicrosecondsPerInvocation="347" maxMicrosecondsPerInvocation="16151" standardDeviationMircosecondsPerInvocation="1013"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.MethodGenFactory" totalMilliseconds="318" invocations="1531" avgMicrosecondsPerInvocation="208" maxMicrosecondsPerInvocation="106104" standardDeviationMircosecondsPerInvocation="2763"/> <ClassProfile name="edu.umd.cs.findbugs.detect.CalledMethods" totalMilliseconds="301" invocations="1009" avgMicrosecondsPerInvocation="298" maxMicrosecondsPerInvocation="23732" standardDeviationMircosecondsPerInvocation="1002"/> <ClassProfile name="edu.umd.cs.findbugs.detect.OverridingEqualsNotSymmetrical" totalMilliseconds="291" invocations="1009" avgMicrosecondsPerInvocation="288" maxMicrosecondsPerInvocation="17833" standardDeviationMircosecondsPerInvocation="859"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.BloatedAssignmentScope" totalMilliseconds="287" invocations="355" avgMicrosecondsPerInvocation="811" maxMicrosecondsPerInvocation="11795" standardDeviationMircosecondsPerInvocation="1644"/> <ClassProfile name="com.mebigfatguy.fbcontrib.collect.CollectMethodsReturningImmutableCollections" totalMilliseconds="281" invocations="1009" avgMicrosecondsPerInvocation="278" maxMicrosecondsPerInvocation="44283" standardDeviationMircosecondsPerInvocation="1546"/> <ClassProfile name="edu.umd.cs.findbugs.detect.ExplicitSerialization" totalMilliseconds="276" invocations="1009" avgMicrosecondsPerInvocation="274" maxMicrosecondsPerInvocation="36261" standardDeviationMircosecondsPerInvocation="1886"/> <ClassProfile name="edu.umd.cs.findbugs.detect.EqualsOperandShouldHaveClassCompatibleWithThis" totalMilliseconds="261" invocations="1009" avgMicrosecondsPerInvocation="259" maxMicrosecondsPerInvocation="59905" standardDeviationMircosecondsPerInvocation="1925"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindDeadLocalStores" totalMilliseconds="256" invocations="355" avgMicrosecondsPerInvocation="721" maxMicrosecondsPerInvocation="33615" standardDeviationMircosecondsPerInvocation="2242"/> <ClassProfile name="edu.umd.cs.findbugs.detect.BuildStringPassthruGraph" totalMilliseconds="255" invocations="1009" avgMicrosecondsPerInvocation="253" maxMicrosecondsPerInvocation="22887" standardDeviationMircosecondsPerInvocation="1060"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.ConstantDataflowFactory" totalMilliseconds="240" invocations="1508" avgMicrosecondsPerInvocation="159" maxMicrosecondsPerInvocation="8205" standardDeviationMircosecondsPerInvocation="485"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindInconsistentSync2" totalMilliseconds="201" invocations="355" avgMicrosecondsPerInvocation="568" maxMicrosecondsPerInvocation="26645" standardDeviationMircosecondsPerInvocation="1711"/> <ClassProfile name="edu.umd.cs.findbugs.detect.DumbMethods" totalMilliseconds="198" invocations="355" avgMicrosecondsPerInvocation="558" maxMicrosecondsPerInvocation="9944" standardDeviationMircosecondsPerInvocation="1115"/> <ClassProfile name="edu.umd.cs.findbugs.detect.UnreadFields" totalMilliseconds="185" invocations="355" avgMicrosecondsPerInvocation="522" maxMicrosecondsPerInvocation="7173" standardDeviationMircosecondsPerInvocation="886"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.InvalidConstantArgument" totalMilliseconds="184" invocations="355" avgMicrosecondsPerInvocation="520" maxMicrosecondsPerInvocation="61987" standardDeviationMircosecondsPerInvocation="3368"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindNullDeref$CheckCallSitesAndReturnInstructions" totalMilliseconds="181" invocations="1483" avgMicrosecondsPerInvocation="122" maxMicrosecondsPerInvocation="8505" standardDeviationMircosecondsPerInvocation="413"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindOpenStream" totalMilliseconds="179" invocations="355" avgMicrosecondsPerInvocation="504" maxMicrosecondsPerInvocation="20998" standardDeviationMircosecondsPerInvocation="1915"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.SillynessPotPourri" totalMilliseconds="177" invocations="355" avgMicrosecondsPerInvocation="499" maxMicrosecondsPerInvocation="23531" standardDeviationMircosecondsPerInvocation="1540"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.SuspiciousJDKVersionUse" totalMilliseconds="176" invocations="355" avgMicrosecondsPerInvocation="496" maxMicrosecondsPerInvocation="24081" standardDeviationMircosecondsPerInvocation="2041"/> <ClassProfile name="edu.umd.cs.findbugs.ba.npe.TypeQualifierNullnessAnnotationDatabase" totalMilliseconds="175" invocations="23347" avgMicrosecondsPerInvocation="7" maxMicrosecondsPerInvocation="8472" standardDeviationMircosecondsPerInvocation="92"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindNullDeref" totalMilliseconds="175" invocations="355" avgMicrosecondsPerInvocation="493" maxMicrosecondsPerInvocation="9547" standardDeviationMircosecondsPerInvocation="928"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindUselessObjects" totalMilliseconds="173" invocations="355" avgMicrosecondsPerInvocation="489" maxMicrosecondsPerInvocation="14819" standardDeviationMircosecondsPerInvocation="1319"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.DeletingWhileIterating" totalMilliseconds="170" invocations="355" avgMicrosecondsPerInvocation="480" maxMicrosecondsPerInvocation="8352" standardDeviationMircosecondsPerInvocation="974"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.LocalSynchronizedCollection" totalMilliseconds="169" invocations="355" avgMicrosecondsPerInvocation="477" maxMicrosecondsPerInvocation="19546" standardDeviationMircosecondsPerInvocation="1364"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.JDBCVendorReliance" totalMilliseconds="167" invocations="355" avgMicrosecondsPerInvocation="472" maxMicrosecondsPerInvocation="51993" standardDeviationMircosecondsPerInvocation="2868"/> <ClassProfile name="edu.umd.cs.findbugs.detect.LoadOfKnownNullValue" totalMilliseconds="164" invocations="355" avgMicrosecondsPerInvocation="462" maxMicrosecondsPerInvocation="7833" standardDeviationMircosecondsPerInvocation="977"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.UseAddAll" totalMilliseconds="160" invocations="355" avgMicrosecondsPerInvocation="451" maxMicrosecondsPerInvocation="35284" standardDeviationMircosecondsPerInvocation="2001"/> <ClassProfile name="edu.umd.cs.findbugs.detect.ReflectiveClasses" totalMilliseconds="158" invocations="1009" avgMicrosecondsPerInvocation="157" maxMicrosecondsPerInvocation="4361" standardDeviationMircosecondsPerInvocation="373"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.LiveLocalStoreDataflowFactory" totalMilliseconds="158" invocations="1471" avgMicrosecondsPerInvocation="107" maxMicrosecondsPerInvocation="40009" standardDeviationMircosecondsPerInvocation="1079"/> <ClassProfile name="edu.umd.cs.findbugs.detect.MethodReturnCheck" totalMilliseconds="157" invocations="355" avgMicrosecondsPerInvocation="444" maxMicrosecondsPerInvocation="8902" standardDeviationMircosecondsPerInvocation="855"/> <ClassProfile name="edu.umd.cs.findbugs.detect.DefaultEncodingDetector" totalMilliseconds="155" invocations="355" avgMicrosecondsPerInvocation="437" maxMicrosecondsPerInvocation="15666" standardDeviationMircosecondsPerInvocation="1390"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.HangingExecutors" totalMilliseconds="154" invocations="355" avgMicrosecondsPerInvocation="433" maxMicrosecondsPerInvocation="8364" standardDeviationMircosecondsPerInvocation="871"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.LoggerOddities" totalMilliseconds="149" invocations="355" avgMicrosecondsPerInvocation="422" maxMicrosecondsPerInvocation="15166" standardDeviationMircosecondsPerInvocation="1175"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindPuzzlers" totalMilliseconds="149" invocations="355" avgMicrosecondsPerInvocation="422" maxMicrosecondsPerInvocation="17878" standardDeviationMircosecondsPerInvocation="1231"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.WriteOnlyCollection" totalMilliseconds="140" invocations="355" avgMicrosecondsPerInvocation="396" maxMicrosecondsPerInvocation="8352" standardDeviationMircosecondsPerInvocation="843"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.InefficientStringBuffering" totalMilliseconds="136" invocations="355" avgMicrosecondsPerInvocation="385" maxMicrosecondsPerInvocation="31196" standardDeviationMircosecondsPerInvocation="1749"/> <ClassProfile name="edu.umd.cs.findbugs.detect.RuntimeExceptionCapture" totalMilliseconds="136" invocations="355" avgMicrosecondsPerInvocation="383" maxMicrosecondsPerInvocation="10328" standardDeviationMircosecondsPerInvocation="836"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.OrphanedDOMNode" totalMilliseconds="134" invocations="355" avgMicrosecondsPerInvocation="377" maxMicrosecondsPerInvocation="27018" standardDeviationMircosecondsPerInvocation="1536"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.UseSplit" totalMilliseconds="133" invocations="355" avgMicrosecondsPerInvocation="377" maxMicrosecondsPerInvocation="33919" standardDeviationMircosecondsPerInvocation="1889"/> <ClassProfile name="edu.umd.cs.findbugs.detect.SwitchFallthrough" totalMilliseconds="133" invocations="355" avgMicrosecondsPerInvocation="377" maxMicrosecondsPerInvocation="6294" standardDeviationMircosecondsPerInvocation="765"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.Section508Compliance" totalMilliseconds="133" invocations="355" avgMicrosecondsPerInvocation="375" maxMicrosecondsPerInvocation="9035" standardDeviationMircosecondsPerInvocation="883"/> <ClassProfile name="edu.umd.cs.findbugs.detect.InfiniteRecursiveLoop" totalMilliseconds="130" invocations="355" avgMicrosecondsPerInvocation="368" maxMicrosecondsPerInvocation="43517" standardDeviationMircosecondsPerInvocation="2328"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.IOIssues" totalMilliseconds="130" invocations="355" avgMicrosecondsPerInvocation="367" maxMicrosecondsPerInvocation="8277" standardDeviationMircosecondsPerInvocation="815"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.PossiblyRedundantMethodCalls" totalMilliseconds="130" invocations="355" avgMicrosecondsPerInvocation="367" maxMicrosecondsPerInvocation="9647" standardDeviationMircosecondsPerInvocation="843"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.HttpClientProblems" totalMilliseconds="128" invocations="355" avgMicrosecondsPerInvocation="361" maxMicrosecondsPerInvocation="6446" standardDeviationMircosecondsPerInvocation="739"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.CharsetIssues" totalMilliseconds="127" invocations="355" avgMicrosecondsPerInvocation="360" maxMicrosecondsPerInvocation="37673" standardDeviationMircosecondsPerInvocation="2058"/> <ClassProfile name="edu.umd.cs.findbugs.detect.StreamResourceTracker" totalMilliseconds="126" invocations="239" avgMicrosecondsPerInvocation="529" maxMicrosecondsPerInvocation="8572" standardDeviationMircosecondsPerInvocation="995"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.OverlyPermissiveMethod" totalMilliseconds="125" invocations="355" avgMicrosecondsPerInvocation="353" maxMicrosecondsPerInvocation="11270" standardDeviationMircosecondsPerInvocation="907"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindFieldSelfAssignment" totalMilliseconds="124" invocations="355" avgMicrosecondsPerInvocation="351" maxMicrosecondsPerInvocation="33782" standardDeviationMircosecondsPerInvocation="1862"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.NeedlessAutoboxing" totalMilliseconds="124" invocations="355" avgMicrosecondsPerInvocation="350" maxMicrosecondsPerInvocation="19670" standardDeviationMircosecondsPerInvocation="1307"/> <ClassProfile name="edu.umd.cs.findbugs.classfile.engine.bcel.ValueRangeAnalysisFactory" totalMilliseconds="124" invocations="1531" avgMicrosecondsPerInvocation="81" maxMicrosecondsPerInvocation="7209" standardDeviationMircosecondsPerInvocation="442"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.SuboptimalExpressionOrder" totalMilliseconds="122" invocations="355" avgMicrosecondsPerInvocation="346" maxMicrosecondsPerInvocation="31211" standardDeviationMircosecondsPerInvocation="1700"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.BackportReusePublicIdentifiers" totalMilliseconds="121" invocations="355" avgMicrosecondsPerInvocation="342" maxMicrosecondsPerInvocation="38514" standardDeviationMircosecondsPerInvocation="2073"/> <ClassProfile name="edu.umd.cs.findbugs.detect.FindHEmismatch" totalMilliseconds="119" invocations="355" avgMicrosecondsPerInvocation="335" maxMicrosecondsPerInvocation="6477" standardDeviationMircosecondsPerInvocation="627"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.DubiousSetOfCollections" totalMilliseconds="115" invocations="355" avgMicrosecondsPerInvocation="325" maxMicrosecondsPerInvocation="28290" standardDeviationMircosecondsPerInvocation="1556"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.DubiousMapCollection" totalMilliseconds="115" invocations="355" avgMicrosecondsPerInvocation="324" maxMicrosecondsPerInvocation="6218" standardDeviationMircosecondsPerInvocation="636"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.UnrelatedCollectionContents" totalMilliseconds="114" invocations="355" avgMicrosecondsPerInvocation="323" maxMicrosecondsPerInvocation="8384" standardDeviationMircosecondsPerInvocation="738"/> <ClassProfile name="com.mebigfatguy.fbcontrib.detect.UseEnumCollections" totalMilliseconds="114" invocations="355" avgMicrosecondsPerInvocation="322" maxMicrosecondsPerInvocation="8594" standardDeviationMircosecondsPerInvocation="792"/> </FindBugsProfile> </FindBugsSummary> <ClassFeatures></ClassFeatures> <History></History> </BugCollection>