[Fb-contrib-commit] SF.net SVN: fb-contrib:[1176] trunk/fb-contrib/etc/messages.xml
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-04-24 06:51:01
|
Revision: 1176
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1176&view=rev
Author: dbrosius
Date: 2009-04-24 06:51:00 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
new DTEP detector
Modified Paths:
--------------
trunk/fb-contrib/etc/messages.xml
Modified: trunk/fb-contrib/etc/messages.xml
===================================================================
--- trunk/fb-contrib/etc/messages.xml 2009-04-24 06:50:38 UTC (rev 1175)
+++ trunk/fb-contrib/etc/messages.xml 2009-04-24 06:51:00 UTC (rev 1176)
@@ -946,6 +946,18 @@
]]>
</Details>
</Detector>
+
+ <Detector class="com.mebigfatguy.fbcontrib.detect.DeprecatedTypesafeEnumPattern">
+ <Details>
+ <![CDATA[
+ <p>looks for classes that appear to implement the old style type safe enum pattern
+ that was used before java added Enum support to the language. Since this class is
+ compiled with java 1.5 or later, it would be simpler to just use java enums</p>
+ <p>It is a fast detector</p>
+ ]]>
+ </Details>
+ </Detector>
+
<!-- BugPattern -->
@@ -2468,6 +2480,18 @@
</Details>
</BugPattern>
+ <BugPattern type="DTEP_DEPRECATED_TYPESAFE_ENUM_PATTERN">
+ <ShortDescription>class appears to implement the old style type safe enum pattern</ShortDescription>
+ <LongDescription>class {0} appears to implement the old style type safe enum pattern</LongDescription>
+ <Details>
+ <![CDATA[
+ <p>This class appears to implement the old style type safe enum pattern that was used in place of
+ real enums. Since this class is compiled with java 1.5 or better, it would be simpler and more
+ easy to understand if it was just switched over to an enum.</p>
+ ]]>
+ </Details>
+ </BugPattern>
+
<!-- BugCode -->
<BugCode abbrev="ISB">Inefficient String Buffering</BugCode>
@@ -2547,4 +2571,5 @@
<BugCode abbrev="DSOC">Dubious Set of Collections</BugCode>
<BugCode abbrev="BED">Bogus Exception Declaration</BugCode>
<BugCode abbrev="UNNC">Unnecessary New Null Check</BugCode>
+ <BugCode abbrev="DTEP">Deprecated Typesafe Enum Pattern</BugCode>
</MessageCollection>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|