Back to all rules
What this rule checks
Uses access modifiers
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
class Ball {
  int x;
}
FAIL — this code triggers the rule
class Ball {
  private int x;
  // access modifiers are out of scope
}
Overview
Category Out of Scope
Type Custom Zita
Priority 3 (1 = highest, 5 = lowest)
Status Active
PMD Configuration
Java class nl.utwente.processing.pmd.rules.HasAccessModifierRule
Message template An access modifier is used.