From 756e9a713ab65b59bc76a5d2be916795246b2c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Wed, 8 Feb 2017 16:04:28 -0300 Subject: [PATCH] Update docs to reflect on changes --- .../main/resources/rulesets/java/unusedcode.xml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pmd-java/src/main/resources/rulesets/java/unusedcode.xml b/pmd-java/src/main/resources/rulesets/java/unusedcode.xml index 21918922c7..54f0736693 100644 --- a/pmd-java/src/main/resources/rulesets/java/unusedcode.xml +++ b/pmd-java/src/main/resources/rulesets/java/unusedcode.xml @@ -103,13 +103,21 @@ public class Foo { class="net.sourceforge.pmd.lang.java.rule.unusedcode.UnusedModifierRule" externalInfoUrl="${pmd.website.baseurl}/rules/java/unusedcode.html#UnusedModifier"> -Fields in interfaces are automatically public static final, and methods are public abstract. -Classes or interfaces nested in an interface are automatically public and static (all nested interfaces are automatically static). +Fields in interfaces and annotations are automatically `public static final`, and methods are `public abstract`. +Classes, interfaces or annotations nested in an interface or annotation are automatically `public static` +(all nested interfaces and annotations are automatically static). +Nested enums are automatically `static`. For historical reasons, modifiers which are implied by the context are accepted by the compiler, but are superfluous. 3