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:
@@ -311,7 +311,8 @@ public class VDRHandler extends BaseThingHandler {
|
||||
*/
|
||||
private void stopRefreshThread(boolean force) {
|
||||
ScheduledFuture<?> refreshThread = refreshThreadFuture;
|
||||
if (refreshThread != null)
|
||||
if (refreshThread != null) {
|
||||
refreshThread.cancel(force);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,10 +101,12 @@ public class SVDRPClientImpl implements SVDRPClient {
|
||||
} catch (IOException e) {
|
||||
// cleanup after timeout
|
||||
try {
|
||||
if (localOut != null)
|
||||
if (localOut != null) {
|
||||
localOut.close();
|
||||
if (localIn != null)
|
||||
}
|
||||
if (localIn != null) {
|
||||
localIn.close();
|
||||
}
|
||||
localSocket.close();
|
||||
} catch (IOException ex) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user