From 3d75934cfc59d9202bd266c8e83f8227f8606162 Mon Sep 17 00:00:00 2001 From: Stanislav Nowogrudski Date: Fri, 21 Apr 2017 23:11:24 +0200 Subject: [PATCH] small code enhancement --- .../de/dj_steam/bot/moving/strategy/ReportStrategy.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/dj_steam/bot/moving/strategy/ReportStrategy.java b/src/main/java/de/dj_steam/bot/moving/strategy/ReportStrategy.java index e4fc064..b7baab6 100644 --- a/src/main/java/de/dj_steam/bot/moving/strategy/ReportStrategy.java +++ b/src/main/java/de/dj_steam/bot/moving/strategy/ReportStrategy.java @@ -11,7 +11,11 @@ public class ReportStrategy implements ChangingStrategy { @Override public void change(ToyBot toyBot, ToyBotField toyBotField, String command) { if (command.equals(RobotEngine.REPORT)) { - System.out.println(toyBot); + printReport(toyBot); } } + + private void printReport(final ToyBot toyBot) { + System.out.println(toyBot); + } }