Java 17 features (H-M) (#15520)
- add missing @override - Java style array syntax - remove redundant modifiers - always move String constants to left side in comparisons - simplify lambda expressions and return statements - use replace instead of replaceAll w/o regex - instanceof matching and multiline strings - remove null check before instanceof Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -14,7 +14,6 @@ package org.openhab.binding.mcp23017.internal;
|
||||
|
||||
import static org.openhab.binding.mcp23017.internal.Mcp23017BindingConstants.THING_TYPE_MCP23017;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
import org.openhab.binding.mcp23017.internal.handler.Mcp23017Handler;
|
||||
@@ -36,7 +35,7 @@ import org.slf4j.LoggerFactory;
|
||||
@Component(service = ThingHandlerFactory.class, configurationPid = "binding.mcp23017")
|
||||
public class Mcp23017HandlerFactory extends BaseThingHandlerFactory {
|
||||
|
||||
private static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_MCP23017);
|
||||
private static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_MCP23017);
|
||||
private final Logger logger = LoggerFactory.getLogger(Mcp23017HandlerFactory.class);
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user