diff options
author | Pacien TRAN-GIRARD | 2016-05-05 13:01:35 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-05-05 13:01:35 +0200 |
commit | b707ce0c12f277ab1586e7df670f8b2bb49ac9d7 (patch) | |
tree | 8790f6be2a5e44bae1d8644ad00c7cd641119214 /src/ch | |
parent | e233177e85aadfd156947113f068ceb97e9d365c (diff) | |
download | xblast-b707ce0c12f277ab1586e7df670f8b2bb49ac9d7.tar.gz |
Make static classes static the Java way
Diffstat (limited to 'src/ch')
-rw-r--r-- | src/ch/epfl/xblast/ArgumentChecker.java | 4 | ||||
-rw-r--r-- | src/ch/epfl/xblast/server/debug/GameStatePrinter.java | 1 |
2 files changed, 5 insertions, 0 deletions
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; | |||
13 | */ | 13 | */ |
14 | public final class ArgumentChecker { | 14 | public final class ArgumentChecker { |
15 | 15 | ||
16 | private ArgumentChecker() { | ||
17 | // Static class | ||
18 | } | ||
19 | |||
16 | /** | 20 | /** |
17 | * Returns the given value if it is non-negative. | 21 | * Returns the given value if it is non-negative. |
18 | * | 22 | * |
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; | |||
18 | public final class GameStatePrinter { | 18 | public final class GameStatePrinter { |
19 | 19 | ||
20 | private GameStatePrinter() { | 20 | private GameStatePrinter() { |
21 | // Static class | ||
21 | } | 22 | } |
22 | 23 | ||
23 | public static void printGameState(GameState s) { | 24 | public static void printGameState(GameState s) { |