You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/12/09 15:48:11 UTC

[commons-numbers] 03/03: PMD: Ignore field real and method real() match in Complex.

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git

commit 6a7ce94ac7b4a3e1c612c2e7e05b3f750c9441db
Author: aherbert <ah...@apache.org>
AuthorDate: Mon Dec 9 15:46:58 2019 +0000

    PMD: Ignore field real and method real() match in Complex.
---
 src/main/resources/pmd/pmd-ruleset.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/main/resources/pmd/pmd-ruleset.xml b/src/main/resources/pmd/pmd-ruleset.xml
index b48a3b4..2b800bb 100644
--- a/src/main/resources/pmd/pmd-ruleset.xml
+++ b/src/main/resources/pmd/pmd-ruleset.xml
@@ -124,4 +124,11 @@
     </properties>
   </rule>
 
+  <rule ref="category/java/errorprone.xml/AvoidFieldNameMatchingMethodName">
+    <properties>
+      <property name="violationSuppressXPath"
+        value="//ClassOrInterfaceDeclaration[@Image='Complex']"/>
+    </properties>
+  </rule>
+
 </ruleset>