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:
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
package org.openhab.binding.nzwateralerts.internal.handler;
|
||||
|
||||
import static org.openhab.binding.nzwateralerts.internal.NZWaterAlertsBindingConstants.*;
|
||||
import static org.openhab.binding.nzwateralerts.internal.NZWaterAlertsBindingConstants.CHANNEL_ALERTLEVEL;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
@@ -54,8 +54,9 @@ public class NZWaterAlertsHandler extends BaseThingHandler implements NZWaterAle
|
||||
final NZWaterAlertsBinder localBinder = binder;
|
||||
if (CHANNEL_ALERTLEVEL.equals(channelUID.getId())) {
|
||||
if (command instanceof RefreshType) {
|
||||
if (localBinder != null)
|
||||
if (localBinder != null) {
|
||||
localBinder.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user