Update of /cvsroot/fb-contrib/fb-contrib/etc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22247/etc
Modified Files:
findbugs.xml messages.xml
Log Message:
initial checkin: new ODN detector
Index: messages.xml
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/etc/messages.xml,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- messages.xml 21 Dec 2005 04:30:56 -0000 1.38
+++ messages.xml 23 Dec 2005 05:23:27 -0000 1.39
@@ -338,6 +338,16 @@
]]>
</Details>
</Detector>
+
+ <Detector class="com.mebigfatguy.fbcontrib.detect.OrphanedDOMNode">
+ <Details>
+ <![CDATA[
+ <p>Looks for methods that create DOM Nodes but do not add them to any DOM Document.</p>
+ <p>It is a fast Detector</p>
+ ]]>
+ </Details>
+ </Detector>
+
<!-- BugPattern -->
<BugPattern type="ISB_INEFFICIENT_STRING_BUFFERING">
@@ -653,6 +663,17 @@
</Details>
</BugPattern>
+ <BugPattern type="ODN_ORPHANED_DOM_NODE">
+ <ShortDescription>method creates DOM node but doesn't attach it to a document</ShortDescription>
+ <LongDescription>method {1} creates DOM node but doesn't attach it to a document</LongDescription>
+ <Details>
+ <![CDATA[
+ <p>This method creates a DOM node but does not attach it to a DOM document.
+ </p>
+ ]]>
+ </Details>
+ </BugPattern>
+
<!-- BugCode -->
<BugCode abbrev="ISB">Inefficient String Buffering</BugCode>
@@ -680,4 +701,5 @@
<BugCode abbrev="USBR">Unnecessary Store Before Return</BugCode>
<BugCode abbrev="COM">Copied Overridden Method</BugCode>
<BugCode abbrev="ABC">Array Based Collection</BugCode>
+ <BugCode abbrev="ODN">Orphaned DOM Node</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.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- findbugs.xml 17 Dec 2005 08:27:00 -0000 1.44
+++ findbugs.xml 23 Dec 2005 05:23:27 -0000 1.45
@@ -113,6 +113,10 @@
<Detector class="com.mebigfatguy.fbcontrib.detect.ArrayBasedCollections"
speed="fast"
reports="ABC_ARRAY_BASED_COLLECTIONS" />
+
+ <Detector class="com.mebigfatguy.fbcontrib.detect.OrphanedDOMNode"
+ speed="fast"
+ reports="ODN_ORPHANED_DOM_NODE" />
<!-- BugPattern -->
@@ -141,4 +145,5 @@
<BugPattern abbrev="USBR" type="USBR_UNNECESSARY_STORE_BEFORE_RETURN" category="STYLE" />
<BugPattern abbrev="COM" type="COM_COPIED_OVERRIDDEN_METHOD" category="STYLE" />
<BugPattern abbrev="ABC" type="ABC_ARRAY_BASED_COLLECTIONS" category="CORRECTNESS" experimental="true" />
+ <BugPattern abbrev="ODN" type="ODN_ORPHANED_DOM_NODE" category="CORRECTNESS" experimental="true" />
</FindbugsPlugin>
\ No newline at end of file
|