From d91da7f306241607816813771357e3ce061fafc0 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Fri, 25 Nov 2016 19:16:47 +0100 Subject: [PATCH] Made Gary non-renamable --- src/main/java/buttondevteam/lib/Gary.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/buttondevteam/lib/Gary.java b/src/main/java/buttondevteam/lib/Gary.java index beed5ca..1e109cd 100644 --- a/src/main/java/buttondevteam/lib/Gary.java +++ b/src/main/java/buttondevteam/lib/Gary.java @@ -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; + } }