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:
@@ -308,6 +308,7 @@ public class ResolThingHandler extends ResolBaseThingHandler {
|
||||
}
|
||||
|
||||
/* check if the given value is a special one like 888.8 or 999.9 for shortcut or open load on a sensor wire */
|
||||
@SuppressWarnings("PMD.SimplifyBooleanReturns")
|
||||
private boolean isSpecialValue(Double dd) {
|
||||
if ((Math.abs(dd - 888.8) < 0.1) || (Math.abs(dd - (-888.8)) < 0.1)) {
|
||||
/* value out of range */
|
||||
|
||||
Reference in New Issue
Block a user