From b707ce0c12f277ab1586e7df670f8b2bb49ac9d7 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 5 May 2016 13:01:35 +0200 Subject: Make static classes static the Java way --- src/ch/epfl/xblast/ArgumentChecker.java | 4 ++++ src/ch/epfl/xblast/server/debug/GameStatePrinter.java | 1 + 2 files changed, 5 insertions(+) diff --git a/src/ch/epfl/xblast/ArgumentChecker.java b/src/ch/epfl/xblast/ArgumentChecker.java index 8ba744e..7e77b61 100644 --- a/src/ch/epfl/xblast/ArgumentChecker.java +++ b/src/ch/epfl/xblast/ArgumentChecker.java @@ -13,6 +13,10 @@ import java.util.Objects; */ public final class ArgumentChecker { + private ArgumentChecker() { + // Static class + } + /** * Returns the given value if it is non-negative. * diff --git a/src/ch/epfl/xblast/server/debug/GameStatePrinter.java b/src/ch/epfl/xblast/server/debug/GameStatePrinter.java index 14b0b38..c3d9338 100644 --- a/src/ch/epfl/xblast/server/debug/GameStatePrinter.java +++ b/src/ch/epfl/xblast/server/debug/GameStatePrinter.java @@ -18,6 +18,7 @@ import java.util.Map; public final class GameStatePrinter { private GameStatePrinter() { + // Static class } public static void printGameState(GameState s) { -- cgit v1.2.3