diff graal/com.oracle.truffle.api/.checkstyle_checks.xml @ 20038:bbf53b35292e

added Checkstyle rule to forbid use of old synchronized classes such as StringBuffer, Vector, Hashtable and Stack
author Doug Simon <doug.simon@oracle.com>
date Thu, 26 Mar 2015 11:38:27 +0100
parents 143038c60b3b
children 96acaee06302
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/.checkstyle_checks.xml	Wed Mar 25 11:48:13 2015 -0700
+++ b/graal/com.oracle.truffle.api/.checkstyle_checks.xml	Thu Mar 26 11:38:27 2015 +0100
@@ -5,7 +5,7 @@
     This configuration file was written by the eclipse-cs plugin configuration editor
 -->
 <!--
-    Checkstyle-Configuration: Maxine Checks
+    Checkstyle-Configuration: Checks
     Description: none
 -->
 <module name="Checker">
@@ -122,8 +122,12 @@
       <property name="format" value=" ,"/>
       <property name="message" value="illegal space before a comma"/>
       <property name="ignoreComments" value="true"/>
+      <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for whitespace before a comma."/>
       <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Illegal whitespace before a comma."/>
-      <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for whitespace before a comma."/>
+    </module>
+    <module name="RegexpSinglelineJava">
+      <property name="format" value="new (Hashtable|Vector|Stack|StringBuffer)[^\w]"/>
+      <property name="message" value="Don't use old synchronized collection classes"/>
     </module>
   </module>
   <module name="RegexpHeader">