cmlenz 2003/06/29 08:00:33
Modified: . checkstyle.xml
Log:
Forbid direct usage of System.out and System.err
(Just speak up if you have concerns)
Revision Changes Path
1.19 +9 -3 jakarta-cactus/checkstyle.xml
Index: checkstyle.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/checkstyle.xml,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- checkstyle.xml 26 Jun 2003 15:06:36 -0000 1.18
+++ checkstyle.xml 29 Jun 2003 15:00:33 -0000 1.19
@@ -86,12 +86,18 @@
<property name="publicMemberPattern" value="^[a-z][a-zA-Z0-9]*$"/>
</module>
<module name="FinalClass"/>
-
<module name="GenericIllegalRegexp">
<!-- Avoid finalizers
- (this will not find violations that contain linebreaks) -->
+ (this will not find violations that contain linebreaks) -->
<property name="format"
- value="((public)|(protected))\s+void\s+finalize\(\s*\)"/>
+ value="((public)|(protected))\s+void\s+finalize\(\s*\)"/>
+ <property name="message" value="Avoid finalizers"/>
+ </module>
+ <module name="GenericIllegalRegexp">
+ <!-- No direct printing to System.out or System.err -->
+ <property name="format" value="System\.(out|err)\."/>
+ <property name="message"
+ value="Don't write directly to System.out our System.err"/>
</module>
<!-- Javadoc related checks -->
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]