Fix SAT warnings (#5170)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2025-12-04 22:41:25 +01:00
committed by GitHub
parent de78550851
commit 7ca628ecc8
4 changed files with 4 additions and 7 deletions
@@ -145,7 +145,7 @@ public abstract class AbstractScriptModuleHandler<T extends Module> extends Base
*
* @return the type identifier
*/
abstract public String getTypeId();
public abstract String getTypeId();
/**
* Gets the script engine identifier for this module
@@ -289,7 +289,7 @@ public class SemanticsServiceImpl implements SemanticsService, RegistryChangeLis
* @return true if the semantics are valid, false otherwise
*/
boolean checkSemantics(Item item) {
return getItemSemanticsProblems(item, true).size() == 0 ? true : false;
return getItemSemanticsProblems(item, true).isEmpty();
}
@Override
@@ -33,7 +33,7 @@
</description>
<category>ColorLight</category>
<tags>
<tag>Lighting</tag>
<tag>Light</tag>
</tags>
<autoUpdatePolicy>recommend</autoUpdatePolicy>
<config-description>
@@ -75,10 +75,7 @@ public final class ReadyMarker {
if (!identifier.equals(other.identifier)) {
return false;
}
if (!type.equals(other.type)) {
return false;
}
return true;
return type.equals(other.type);
}
@Override