Back to all rules
What this rule checks
Declares an abstract class or interface
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
Ball ball = new Ball();

void setup() {
  size(400, 400);
}

void draw() {
  background(255);
  ball.show();
}

class Ball {
  void show() {
    ellipse(200, 200, 30, 30);
  }
}
FAIL — this code triggers the rule
Ball ball = new Ball();

void setup() {
  size(400, 400);
}

void draw() {
  background(255);
  ball.show();
}

interface Drawable {  // interfaces are out of scope
  void show();
}

class Ball implements Drawable {
  public void show() {
    ellipse(200, 200, 30, 30);
  }
}
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.HasAbstractClassOrInterfaceRule
Message template Abstract class or interface declared.