svn commit: r1868627 - /ofbiz/ofbiz-framework/trunk/config/checkstyle/checkstyle.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1868627 - /ofbiz/ofbiz-framework/trunk/config/checkstyle/checkstyle.xml

mthl
Author: mthl
Date: Sat Oct 19 14:24:34 2019
New Revision: 1868627

URL: http://svn.apache.org/viewvc?rev=1868627&view=rev
Log:
Implemented: Allow deprecated public fields
(OFBIZ-11256)

Modified:
    ofbiz/ofbiz-framework/trunk/config/checkstyle/checkstyle.xml

Modified: ofbiz/ofbiz-framework/trunk/config/checkstyle/checkstyle.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/config/checkstyle/checkstyle.xml?rev=1868627&r1=1868626&r2=1868627&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/config/checkstyle/checkstyle.xml (original)
+++ ofbiz/ofbiz-framework/trunk/config/checkstyle/checkstyle.xml Sat Oct 19 14:24:34 2019
@@ -125,5 +125,14 @@ under the License.
 
         <!-- Checks for annotations -->
         <module name="MissingOverride"/>
+
+        <!-- Filters -->
+        <module name="SuppressionCommentFilter">
+            <!-- This is useful when having deprecated public fields
+                 which have been superseded by public accessors. -->
+            <property name="offCommentFormat" value="ALLOW PUBLIC FIELDS"/>
+            <property name="onCommentFormat" value="FORBID PUBLIC FIELDS"/>
+            <property name="checkFormat" value="VisibilityModifier"/>
+        </module>
     </module>
 </module>