Made Gary non-renamable
This commit is contained in:
parent
85d2506da7
commit
d91da7f306
1 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,7 @@ public class Gary extends DebugPotato {
|
||||||
|
|
||||||
public Gary() {
|
public Gary() {
|
||||||
super.setMessage("I'M A POTATO");
|
super.setMessage("I'M A POTATO");
|
||||||
|
super.setType("Gary");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -31,4 +32,12 @@ public class Gary extends DebugPotato {
|
||||||
public DebugPotato setMessage(String[] message) {
|
public DebugPotato setMessage(String[] message) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gary has it's name already, therefore this method has no effect.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DebugPotato setType(String type) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue