You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mt...@apache.org on 2019/10/19 14:24:34 UTC

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

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>