Made Gary non-renamable

This commit is contained in:
Norbi Peti 2016-11-25 19:16:47 +01:00
parent 85d2506da7
commit d91da7f306

View file

@ -6,6 +6,7 @@ public class Gary extends DebugPotato {
public Gary() {
super.setMessage("I'M A POTATO");
super.setType("Gary");
}
/**
@ -31,4 +32,12 @@ public class Gary extends DebugPotato {
public DebugPotato setMessage(String[] message) {
return this;
}
/**
* Gary has it's name already, therefore this method has no effect.
*/
@Override
public DebugPotato setType(String type) {
return this;
}
}