Update of /cvsroot/fb-contrib/fb-contrib/etc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24111/etc
Modified Files:
findbugs.xml messages.xml
Log Message:
initial checkin - new PMB detector
Index: messages.xml
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/etc/messages.xml,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- messages.xml 6 Mar 2006 04:16:37 -0000 1.57
+++ messages.xml 7 Mar 2006 06:17:24 -0000 1.58
@@ -470,6 +470,17 @@
</Details>
</Detector>
+ <Detector class="com.mebigfatguy.fbcontrib.detect.PossibleMemoryBloat">
+ <Details>
+ <![CDATA[
+ <p>looks for classes that maintain collections or StringBuffer/StringBuilders in
+ static member variables, and that do not appear to provide a way to clear or remove
+ items from this members. Such member variables are likely causes of memory bloat.</p>
+ <p>It is a fast detector</p>
+ ]]>
+ </Details>
+ </Detector>
+
<!-- BugPattern -->
<BugPattern type="ISB_INEFFICIENT_STRING_BUFFERING">
@@ -957,6 +968,18 @@
</Details>
</BugPattern>
+ <BugPattern type="PMB_POSSIBLE_MEMORY_BLOAT">
+ <ShortDescription>class defines static field that appears to a memory bloat</ShortDescription>
+ <LongDescription>class {0} defines static field that appears to a memory bloat</LongDescription>
+ <Details>
+ <![CDATA[
+ <p>This class defines static fields that are collections or StringBuffers that do not
+ appear to have any way to clear or reduce their size. This is a potential cause of
+ memory bloat.</p>
+ ]]>
+ </Details>
+ </BugPattern>
+
<!-- BugCode -->
<BugCode abbrev="ISB">Inefficient String Buffering</BugCode>
@@ -996,4 +1019,5 @@
<BugCode abbrev="DDC">Double Date comparison</BugCode>
<BugCode abbrev="SWCO">Suspicious Wait on Concurrent Object</BugCode>
<BugCode abbrev="JVR">JDBC Vendor Reliance</BugCode>
+ <BugCode abbrev="PMB">Possible Memory Bloat</BugCode>
</MessageCollection>
\ No newline at end of file
Index: findbugs.xml
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/etc/findbugs.xml,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- findbugs.xml 6 Mar 2006 04:16:36 -0000 1.67
+++ findbugs.xml 7 Mar 2006 06:17:24 -0000 1.68
@@ -163,6 +163,10 @@
speed="moderate"
reports="JVR_JDBC_VENDOR_RELIANCE" />
+ <Detector class="com.mebigfatguy.fbcontrib.detect.PossibleMemoryBloat"
+ speed="fast"
+ reports="PMB_POSSIBLE_MEMORY_BLOAT" />
+
<!-- BugPattern -->
@@ -203,4 +207,5 @@
<BugPattern abbrev="DDC" type="DDC_DOUBLE_DATE_COMPARISON" category="PERFORMANCE" experimental="true" />
<BugPattern abbrev="SWCO" type="SWCO_SUSPICIOUS_WAIT_ON_CONCURRENT_OBJECT" category="CORRECTNESS" experimental="true" />
<BugPattern abbrev="JVR" type="JVR_JDBC_VENDOR_RELIANCE" category="CORRECTNESS" experimental="true" />
+ <BugPattern abbrev="PMB" type="PMB_POSSIBLE_MEMORY_BLOAT" category="CORRECTNESS" experimental="true" />
</FindbugsPlugin>
\ No newline at end of file
|