From 1503ba91b9c9285bdef3958b7fa25306b5dcd33c Mon Sep 17 00:00:00 2001 From: Hannes Braun Date: Sat, 23 Sep 2023 16:03:30 +0200 Subject: [PATCH] Remove redundant null initialization in Logfile --- src/main/java/rv/comm/rcssserver/Logfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/rv/comm/rcssserver/Logfile.java b/src/main/java/rv/comm/rcssserver/Logfile.java index bf53cd7..b06ae2a 100644 --- a/src/main/java/rv/comm/rcssserver/Logfile.java +++ b/src/main/java/rv/comm/rcssserver/Logfile.java @@ -244,7 +244,7 @@ public String processDrawCmds(String line) ByteBuffer buf = ByteBuffer.wrap(drawCmdBytes); while (buf.hasRemaining()) { - Command cmd = null; + Command cmd; try { cmd = Command.parse(buf); if (cmd != null) {