Avoid star imports and add missing braces (#10521)
Fixes the following SAT findings: * AvoidStarImportCheck (125) * NeedBracesCheck (39) Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -55,8 +55,9 @@ public class TeleinfoReceiveThread extends Thread {
|
||||
if (listener != null) {
|
||||
try {
|
||||
Frame nextFrame = teleinfoStream.readNextFrame();
|
||||
if (nextFrame != null)
|
||||
if (nextFrame != null) {
|
||||
listener.onFrameReceived(nextFrame);
|
||||
}
|
||||
} catch (InvalidFrameException e) {
|
||||
logger.warn("Got invalid frame. Detail: \"{}\"", e.getLocalizedMessage());
|
||||
listener.onInvalidFrameReceived(this, e);
|
||||
|
||||
Reference in New Issue
Block a user