From 04fa54cd5132aab16104a5dbbccbbdb18243aab6 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 22 Nov 2015 18:55:31 +0100 Subject: Access static method via class reference --- src/ch/epfl/maze/graphics/Animation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/epfl/maze/graphics/Animation.java b/src/ch/epfl/maze/graphics/Animation.java index cd5fa38..ce80c78 100644 --- a/src/ch/epfl/maze/graphics/Animation.java +++ b/src/ch/epfl/maze/graphics/Animation.java @@ -229,7 +229,7 @@ public final class Animation { private BufferedImage loadImage(Animal animal) { // path = "img/superclass/class.png" String superClassName = animal.getClass().getSuperclass().getSimpleName(); - String[] superClassComponents = this.splitCamelCase(superClassName); + String[] superClassComponents = Animation.splitCamelCase(superClassName); String folder = superClassComponents[superClassComponents.length - 1]; String file = animal.getClass().getSimpleName(); String path = "img/" + folder + File.separator + file + ".png"; -- cgit v1.2.3