mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Fix SAT warnings (#5170)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user