From eb7ac569b8bf036d52ed417f60b6f8b087381972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 14 May 2016 13:33:09 +0200 Subject: [PATCH] Refactored dimension int local variable --- cicaprojekt/Display.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cicaprojekt/Display.java b/cicaprojekt/Display.java index d6c897c..454138a 100644 --- a/cicaprojekt/Display.java +++ b/cicaprojekt/Display.java @@ -15,8 +15,6 @@ public class Display extends JPanel{ private List visuals; private Clip clip; - private Dimension dimension; - public Display() { visuals = new ArrayList<>(); setVisible(false); @@ -66,7 +64,7 @@ public class Display extends JPanel{ } public void setMapSize(int width, int height) { - dimension = new Dimension(width * 64, height * 64); + Dimension dimension = new Dimension(width * 64, height * 64); setPreferredSize(dimension); setMinimumSize(dimension); }