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:
@@ -66,8 +66,9 @@ public class PigpioDigitalInputHandler implements ChannelHandler {
|
||||
} else if (pullupdownStr.equals(GPIOBindingConstants.PUD_UP)) {
|
||||
pullupdown = JPigpio.PI_PUD_UP;
|
||||
} else {
|
||||
if (!pullupdownStr.equals(GPIOBindingConstants.PUD_OFF))
|
||||
if (!pullupdownStr.equals(GPIOBindingConstants.PUD_OFF)) {
|
||||
throw new InvalidPullUpDownException();
|
||||
}
|
||||
}
|
||||
gpio = new GPIO(jPigpio, gpioId, JPigpio.PI_INPUT);
|
||||
jPigpio.gpioSetAlertFunc(gpio.getPin(), (gpio, level, tick) -> {
|
||||
|
||||
Reference in New Issue
Block a user