Update of /cvsroot/fb-contrib/fb-contrib/etc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12608/etc
Modified Files:
findbugs.xml messages.xml
Log Message:
new SG - initial checkin
Index: messages.xml
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/etc/messages.xml,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- messages.xml 25 Jan 2006 03:26:18 -0000 1.51
+++ messages.xml 2 Feb 2006 06:18:02 -0000 1.52
@@ -418,6 +418,19 @@
</Details>
</Detector>
+ <Detector class="com.mebigfatguy.fbcontrib.detect.SluggishGui">
+ <Details>
+ <![CDATA[
+ <p>Looks for methods that implement awt or swing listeners and perform time
+ consuming operations. Doing these operations in the gui thread will cause the
+ interface to appear sluggish and non-responsive to the user. It is better to
+ use a separate thread to do the time consuming work so that the user
+ has a better experience.</p>
+ <p>It is a fast Detector</p>
+ ]]>
+ </Details>
+ </Detector>
+
<!-- BugPattern -->
<BugPattern type="ISB_INEFFICIENT_STRING_BUFFERING">
@@ -822,6 +835,25 @@
</Details>
</BugPattern>
+ <BugPattern type="SG_SLUGGISH_GUI">
+ <ShortDescription>method performs time consuming operation in gui thread</ShortDescription>
+ <LongDescription>method {1} performs time consuming operation in gui thread</LongDescription>
+ <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>
+
+ Looks for methods that implement awt or swing listeners and perform time
+ consuming operations. Doing these operations in the gui thread will cause the
+ interface to appear sluggish and non-responsive to the user. It is better to
+ use a separate thread to do the time consuming work so that the user
+ has a better experience.
<!-- BugCode -->
<BugCode abbrev="ISB">Inefficient String Buffering</BugCode>
@@ -856,4 +888,5 @@
<BugCode abbrev="CLI">Constant List Index</BugCode>
<BugCode abbrev="SCR">Sloppy Class Reflection</BugCode>
<BugCode abbrev="AWCBR">Array Wrapped Call By Reference</BugCode>
+ <BugCode abbrev="SG">Sluggish Gui</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.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- findbugs.xml 23 Jan 2006 07:53:06 -0000 1.57
+++ findbugs.xml 2 Feb 2006 06:18:02 -0000 1.58
@@ -142,6 +142,10 @@
speed="fast"
reports="AWCBR_ARRAY_WRAPPED_CALL_BY_REFERENCE" />
+ <Detector class="com.mebigfatguy.fbcontrib.detect.SluggishGui"
+ speed="fast"
+ reports="SG_SLUGGISH_GUI" />
+
<!-- BugPattern -->
<BugPattern abbrev="ISB" type="ISB_INEFFICIENT_STRING_BUFFERING" category="PERFORMANCE" />
@@ -176,4 +180,5 @@
<BugPattern abbrev="CLI" type="CLI_CONSTANT_LIST_INDEX" category="CORRECTNESS" experimental="true" />
<BugPattern abbrev="SCR" type="SCR_SLOPPY_CLASS_REFLECTION" category="STYLE" experimental="true" />
<BugPattern abbrev="AWCBR" type="AWCBR_ARRAY_WRAPPED_CALL_BY_REFERENCE" category="STYLE" experimental="true" />
+ <BugPattern abbrev="SG" type="SG_SLUGGISH_GUI" category="PERFORMANCE" experimental="true" />
</FindbugsPlugin>
\ No newline at end of file
|