From 16a461db769288ebdb1a9d0282693ef9a538e38a Mon Sep 17 00:00:00 2001 From: Kenny Goodin Date: Sat, 25 Nov 2017 20:39:41 -0500 Subject: [PATCH] Nitpick, use final where possible rather than mutable volatile state --- .../src/mineplex/servermonitor/ServerMonitor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.ServerMonitor/src/mineplex/servermonitor/ServerMonitor.java b/Plugins/Mineplex.ServerMonitor/src/mineplex/servermonitor/ServerMonitor.java index 2594699fd..0e23b0c7a 100644 --- a/Plugins/Mineplex.ServerMonitor/src/mineplex/servermonitor/ServerMonitor.java +++ b/Plugins/Mineplex.ServerMonitor/src/mineplex/servermonitor/ServerMonitor.java @@ -53,8 +53,8 @@ public class ServerMonitor private static HashSet _delayedKill = new HashSet(); private static HashSet _laggyServers = new HashSet(); - private static volatile SimpleDateFormat _dateFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); - private static volatile Logger _logger = Logger.getLogger("ServerMonitor"); + private static final SimpleDateFormat _dateFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); + private static final Logger _logger = Logger.getLogger("ServerMonitor"); private static Timer _timer = new Timer(); private static int _totalPlayers = 0;