mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Remove unnecessary semicolons (#4009)
This helps with stopping the proliferation of unnecessary semicolons. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ public class XmlDocumentBundleTracker<@NonNull T> extends BundleTracker<Bundle>
|
|||||||
CREATED,
|
CREATED,
|
||||||
OPENED,
|
OPENED,
|
||||||
CLOSED
|
CLOSED
|
||||||
};
|
}
|
||||||
|
|
||||||
public static final String THREAD_POOL_NAME = "file-processing";
|
public static final String THREAD_POOL_NAME = "file-processing";
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ public class ConfigurationTest {
|
|||||||
ON,
|
ON,
|
||||||
OFF,
|
OFF,
|
||||||
UNKNOWN
|
UNKNOWN
|
||||||
};
|
}
|
||||||
|
|
||||||
public MyEnum enumField = MyEnum.UNKNOWN;
|
public MyEnum enumField = MyEnum.UNKNOWN;
|
||||||
public int intField;
|
public int intField;
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ public class DiscoveryResultBuilder {
|
|||||||
|
|
||||||
private DiscoveryResultBuilder(ThingUID thingUID) {
|
private DiscoveryResultBuilder(ThingUID thingUID) {
|
||||||
this.thingUID = thingUID;
|
this.thingUID = thingUID;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new builder for a given thing UID.
|
* Creates a new builder for a given thing UID.
|
||||||
|
|||||||
+1
-1
@@ -132,7 +132,7 @@ public class AbstractDiscoveryServiceTest implements DiscoveryListener {
|
|||||||
.build();
|
.build();
|
||||||
thingDiscovered(discoveryResult);
|
thingDiscovered(discoveryResult);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void thingDiscovered(DiscoveryService source, DiscoveryResult result) {
|
public void thingDiscovered(DiscoveryService source, DiscoveryResult result) {
|
||||||
|
|||||||
+4
-4
@@ -27,26 +27,26 @@ public class GlobalStrategies {
|
|||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "everyUpdate";
|
return "everyUpdate";
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public static final Strategy CHANGE = new StrategyImpl() {
|
public static final Strategy CHANGE = new StrategyImpl() {
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "everyChange";
|
return "everyChange";
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public static final Strategy RESTORE = new StrategyImpl() {
|
public static final Strategy RESTORE = new StrategyImpl() {
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "restoreOnStartup";
|
return "restoreOnStartup";
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
public static final Strategy FORECAST = new StrategyImpl() {
|
public static final Strategy FORECAST = new StrategyImpl() {
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "forecast";
|
return "forecast";
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -67,7 +67,7 @@ public enum ThingStatusDetail {
|
|||||||
public ThingStatusDetail HANDLER_CONFIGURATION_PENDING = ThingStatusDetail.HANDLER_CONFIGURATION_PENDING;
|
public ThingStatusDetail HANDLER_CONFIGURATION_PENDING = ThingStatusDetail.HANDLER_CONFIGURATION_PENDING;
|
||||||
public ThingStatusDetail HANDLER_INITIALIZING_ERROR = ThingStatusDetail.HANDLER_INITIALIZING_ERROR;
|
public ThingStatusDetail HANDLER_INITIALIZING_ERROR = ThingStatusDetail.HANDLER_INITIALIZING_ERROR;
|
||||||
public ThingStatusDetail BRIDGE_UNINITIALIZED = ThingStatusDetail.BRIDGE_UNINITIALIZED;
|
public ThingStatusDetail BRIDGE_UNINITIALIZED = ThingStatusDetail.BRIDGE_UNINITIALIZED;
|
||||||
};
|
}
|
||||||
|
|
||||||
public static final class OnlineStatus {
|
public static final class OnlineStatus {
|
||||||
private OnlineStatus() {
|
private OnlineStatus() {
|
||||||
@@ -75,7 +75,7 @@ public enum ThingStatusDetail {
|
|||||||
|
|
||||||
public ThingStatusDetail NONE = ThingStatusDetail.NONE;
|
public ThingStatusDetail NONE = ThingStatusDetail.NONE;
|
||||||
public ThingStatusDetail CONFIGURATION_PENDING = ThingStatusDetail.CONFIGURATION_PENDING;
|
public ThingStatusDetail CONFIGURATION_PENDING = ThingStatusDetail.CONFIGURATION_PENDING;
|
||||||
};
|
}
|
||||||
|
|
||||||
public static final class OfflineStatus {
|
public static final class OfflineStatus {
|
||||||
private OfflineStatus() {
|
private OfflineStatus() {
|
||||||
@@ -88,5 +88,5 @@ public enum ThingStatusDetail {
|
|||||||
public ThingStatusDetail FIRMWARE_UPDATING = ThingStatusDetail.FIRMWARE_UPDATING;
|
public ThingStatusDetail FIRMWARE_UPDATING = ThingStatusDetail.FIRMWARE_UPDATING;
|
||||||
public ThingStatusDetail DUTY_CYCLE = ThingStatusDetail.DUTY_CYCLE;
|
public ThingStatusDetail DUTY_CYCLE = ThingStatusDetail.DUTY_CYCLE;
|
||||||
public ThingStatusDetail GONE = ThingStatusDetail.GONE;
|
public ThingStatusDetail GONE = ThingStatusDetail.GONE;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ public class ChannelDescriptionChangedEvent extends AbstractEvent {
|
|||||||
COMMAND_OPTIONS,
|
COMMAND_OPTIONS,
|
||||||
PATTERN,
|
PATTERN,
|
||||||
STATE_OPTIONS
|
STATE_OPTIONS
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The channel description changed event type.
|
* The channel description changed event type.
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ final class ProgressCallbackImpl implements ProgressCallback {
|
|||||||
PENDING,
|
PENDING,
|
||||||
RUNNING,
|
RUNNING,
|
||||||
INITIALIZED
|
INITIALIZED
|
||||||
};
|
}
|
||||||
|
|
||||||
private InternalState state;
|
private InternalState state;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@ class BaseDynamicCommandDescriptionProviderTest {
|
|||||||
this.eventPublisher = eventPublisherMock;
|
this.eventPublisher = eventPublisherMock;
|
||||||
this.itemChannelLinkRegistry = itemChannelLinkRegistryMock;
|
this.itemChannelLinkRegistry = itemChannelLinkRegistryMock;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
private @NonNullByDefault({}) TestDynamicCommandDescriptionProvider subject;
|
private @NonNullByDefault({}) TestDynamicCommandDescriptionProvider subject;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@ class BaseDynamicStateDescriptionProviderTest {
|
|||||||
this.eventPublisher = eventPublisherMock;
|
this.eventPublisher = eventPublisherMock;
|
||||||
this.itemChannelLinkRegistry = itemChannelLinkRegistryMock;
|
this.itemChannelLinkRegistry = itemChannelLinkRegistryMock;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
private @NonNullByDefault({}) BaseDynamicStateDescriptionProvider subject;
|
private @NonNullByDefault({}) BaseDynamicStateDescriptionProvider subject;
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -82,17 +82,17 @@ public class AbstractResourceIconProviderTest {
|
|||||||
String state = substringAfterLast(resourceName, "-");
|
String state = substringAfterLast(resourceName, "-");
|
||||||
state = substringBeforeLast(state, ".");
|
state = substringBeforeLast(state, ".");
|
||||||
return "30".equals(state) || "y z".equals(state);
|
return "30".equals(state) || "y z".equals(state);
|
||||||
};
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<IconSet> getIconSets(@Nullable Locale locale) {
|
public Set<IconSet> getIconSets(@Nullable Locale locale) {
|
||||||
return Set.of();
|
return Set.of();
|
||||||
};
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer getPriority() {
|
public Integer getPriority() {
|
||||||
return 0;
|
return 0;
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@ public interface ItemUIRegistry extends ItemRegistry, ItemUIProvider {
|
|||||||
ITEM_NAME,
|
ITEM_NAME,
|
||||||
/** No suitable label source could be determined */
|
/** No suitable label source could be determined */
|
||||||
NONE
|
NONE
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the label for a widget.
|
* Retrieves the label for a widget.
|
||||||
|
|||||||
+1
-1
@@ -126,7 +126,7 @@ public class GenericThingProviderTest4 extends JavaOSGiTest {
|
|||||||
return new BaseThingHandler(thing) {
|
return new BaseThingHandler(thing) {
|
||||||
@Override
|
@Override
|
||||||
public void handleCommand(ChannelUID arg0, Command arg1) {
|
public void handleCommand(ChannelUID arg0, Command arg1) {
|
||||||
};
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
|
|||||||
+1
-1
@@ -498,7 +498,7 @@ public class BindingBaseClassesOSGiTest extends JavaOSGiTest {
|
|||||||
public @Nullable Thing getThing() {
|
public @Nullable Thing getThing() {
|
||||||
return thing;
|
return thing;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void assertThingCanBeUpdatedFromThingHandler() {
|
public void assertThingCanBeUpdatedFromThingHandler() {
|
||||||
|
|||||||
+7
-7
@@ -434,7 +434,7 @@ public class ThingManagerOSGiJavaTest extends JavaOSGiTest {
|
|||||||
@Override
|
@Override
|
||||||
public void childHandlerInitialized(ThingHandler childHandler, Thing childThing) {
|
public void childHandlerInitialized(ThingHandler childHandler, Thing childThing) {
|
||||||
assertDoesNotThrow(() -> childHandlerInitializedSemaphore.acquire());
|
assertDoesNotThrow(() -> childHandlerInitializedSemaphore.acquire());
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
registerThingHandlerFactory(THING_TYPE_UID, thing -> new BaseThingHandler(thing) {
|
registerThingHandlerFactory(THING_TYPE_UID, thing -> new BaseThingHandler(thing) {
|
||||||
@Override
|
@Override
|
||||||
@@ -453,7 +453,7 @@ public class ThingManagerOSGiJavaTest extends JavaOSGiTest {
|
|||||||
public void thingUpdated(Thing thing) {
|
public void thingUpdated(Thing thing) {
|
||||||
this.thing = thing;
|
this.thing = thing;
|
||||||
assertDoesNotThrow(() -> thingUpdatedSemapthore.acquire());
|
assertDoesNotThrow(() -> thingUpdatedSemapthore.acquire());
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Bridge bridge = BridgeBuilder.create(BRIDGE_TYPE_UID, BRIDGE_UID).build();
|
Bridge bridge = BridgeBuilder.create(BRIDGE_TYPE_UID, BRIDGE_UID).build();
|
||||||
@@ -502,7 +502,7 @@ public class ThingManagerOSGiJavaTest extends JavaOSGiTest {
|
|||||||
@Override
|
@Override
|
||||||
public void childHandlerInitialized(ThingHandler childHandler, Thing childThing) {
|
public void childHandlerInitialized(ThingHandler childHandler, Thing childThing) {
|
||||||
assertDoesNotThrow(() -> childHandlerInitializedSemaphore.acquire());
|
assertDoesNotThrow(() -> childHandlerInitializedSemaphore.acquire());
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
registerThingHandlerFactory(THING_TYPE_UID, thing -> new BaseThingHandler(thing) {
|
registerThingHandlerFactory(THING_TYPE_UID, thing -> new BaseThingHandler(thing) {
|
||||||
@@ -522,7 +522,7 @@ public class ThingManagerOSGiJavaTest extends JavaOSGiTest {
|
|||||||
public void thingUpdated(Thing thing) {
|
public void thingUpdated(Thing thing) {
|
||||||
this.thing = thing;
|
this.thing = thing;
|
||||||
assertDoesNotThrow(() -> thingUpdatedSemapthore.acquire());
|
assertDoesNotThrow(() -> thingUpdatedSemapthore.acquire());
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Bridge bridge = BridgeBuilder.create(BRIDGE_TYPE_UID, BRIDGE_UID).build();
|
Bridge bridge = BridgeBuilder.create(BRIDGE_TYPE_UID, BRIDGE_UID).build();
|
||||||
@@ -571,7 +571,7 @@ public class ThingManagerOSGiJavaTest extends JavaOSGiTest {
|
|||||||
@Override
|
@Override
|
||||||
public void childHandlerInitialized(ThingHandler childHandler, Thing childThing) {
|
public void childHandlerInitialized(ThingHandler childHandler, Thing childThing) {
|
||||||
assertDoesNotThrow(() -> childHandlerInitializedSemaphore.acquire());
|
assertDoesNotThrow(() -> childHandlerInitializedSemaphore.acquire());
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
registerThingHandlerFactory(THING_TYPE_UID, thing -> new BaseThingHandler(thing) {
|
registerThingHandlerFactory(THING_TYPE_UID, thing -> new BaseThingHandler(thing) {
|
||||||
@Override
|
@Override
|
||||||
@@ -587,7 +587,7 @@ public class ThingManagerOSGiJavaTest extends JavaOSGiTest {
|
|||||||
public void thingUpdated(Thing thing) {
|
public void thingUpdated(Thing thing) {
|
||||||
this.thing = thing;
|
this.thing = thing;
|
||||||
assertDoesNotThrow(() -> thingUpdatedSemapthore.acquire());
|
assertDoesNotThrow(() -> thingUpdatedSemapthore.acquire());
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Bridge bridge = BridgeBuilder.create(BRIDGE_TYPE_UID, BRIDGE_UID).build();
|
Bridge bridge = BridgeBuilder.create(BRIDGE_TYPE_UID, BRIDGE_UID).build();
|
||||||
@@ -1115,7 +1115,7 @@ public class ThingManagerOSGiJavaTest extends JavaOSGiTest {
|
|||||||
protected @Nullable ThingHandler createHandler(Thing thing) {
|
protected @Nullable ThingHandler createHandler(Thing thing) {
|
||||||
return thingHandlerProducer.apply(thing);
|
return thingHandlerProducer.apply(thing);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
private AtomicReference<ThingHandlerCallback> initializeThingHandlerCallback() throws Exception {
|
private AtomicReference<ThingHandlerCallback> initializeThingHandlerCallback() throws Exception {
|
||||||
AtomicReference<ThingHandlerCallback> thc = new AtomicReference<>();
|
AtomicReference<ThingHandlerCallback> thc = new AtomicReference<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user