Back to all rules
What this rule checks
An inner class method calls a drawing function
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
class Ball {
  void display() {
    ellipse(x, y, 50, 50);
  }
}
FAIL — this code triggers the rule
class Ball {
  int x, y;
  // no display/draw method — drawing happens outside
}
Overview
Category Topic Classes
Level Basic
Type Custom Zita
Priority 3 (1 = highest, 5 = lowest)
Status Active
PMD Configuration
Java class nl.utwente.processing.pmd.rules.ClassCallsDrawMethodRule
Message template An inner class method calls a drawing function.