Remove redundant modifiers from interfaces (#14843)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2023-04-18 13:07:04 +02:00
committed by GitHub
parent 24adc5aa12
commit 83cbe746d0
174 changed files with 806 additions and 774 deletions

View File

@@ -23,11 +23,11 @@ import org.openhab.binding.ecovacs.internal.api.impl.EcovacsApiImpl;
*/
@NonNullByDefault
public interface EcovacsApi {
public static EcovacsApi create(HttpClient httpClient, EcovacsApiConfiguration configuration) {
static EcovacsApi create(HttpClient httpClient, EcovacsApiConfiguration configuration) {
return new EcovacsApiImpl(httpClient, configuration);
}
public void loginAndGetAccessToken() throws EcovacsApiException, InterruptedException;
void loginAndGetAccessToken() throws EcovacsApiException, InterruptedException;
public List<EcovacsDevice> getDevices() throws EcovacsApiException, InterruptedException;
List<EcovacsDevice> getDevices() throws EcovacsApiException, InterruptedException;
}

View File

@@ -27,7 +27,7 @@ import org.openhab.binding.ecovacs.internal.api.model.DeviceCapability;
*/
@NonNullByDefault
public interface EcovacsDevice {
public interface EventListener {
interface EventListener {
void onFirmwareVersionChanged(EcovacsDevice device, String fwVersion);
void onBatteryLevelUpdated(EcovacsDevice device, int newLevelPercent);