Fix SAT warnings (#14202)
* Fix SAT warnings - checkstyle.ModifierOrderCheck - checkstyle.OneStatementPerLineCheck - checkstyle.NeedBracesCheck - PMD.UseStandardCharsets - PMD.UseCollectionIsEmpty - PMD.UnusedLocalVariable - PMD.SimplifyBooleanReturns where reasonable, suppress where readability is better without change - PMD.SimplifyBooleanExpressions * Include StandardCharsets Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -242,12 +242,12 @@ public class SamsungTvHandler extends BaseThingHandler implements RegistryListen
|
||||
boolean isOnline = false;
|
||||
|
||||
for (Device<?, ?, ?> device : upnpService.getRegistry().getDevices()) {
|
||||
if (createService((RemoteDevice) device) == true) {
|
||||
if (createService((RemoteDevice) device)) {
|
||||
isOnline = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (isOnline == true) {
|
||||
if (isOnline) {
|
||||
logger.debug("Device was online");
|
||||
putOnline();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user