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

@@ -30,17 +30,17 @@ public interface NhcActionEvent {
*
* @param state
*/
public void actionEvent(int state);
void actionEvent(int state);
/**
* Called to indicate the action has been initialized.
*
*/
public void actionInitialized();
void actionInitialized();
/**
* Called to indicate the action has been removed from the Niko Home Control controller.
*
*/
public void actionRemoved();
void actionRemoved();
}

View File

@@ -34,7 +34,7 @@ public interface NhcControllerEvent {
*
* @return the addr
*/
public default @Nullable InetAddress getAddr() {
default @Nullable InetAddress getAddr() {
return null;
}
@@ -43,7 +43,7 @@ public interface NhcControllerEvent {
*
* @return the port
*/
public default int getPort() {
default int getPort() {
return 0;
}
@@ -52,7 +52,7 @@ public interface NhcControllerEvent {
*
* @return the profile
*/
public default String getProfile() {
default String getProfile() {
return "";
}
@@ -61,7 +61,7 @@ public interface NhcControllerEvent {
*
* @return the token
*/
public default String getToken() {
default String getToken() {
return "";
}
@@ -70,37 +70,37 @@ public interface NhcControllerEvent {
*
* @return the zone ID
*/
public ZoneId getTimeZone();
ZoneId getTimeZone();
/**
* Called to indicate the connection with the Niko Home Control Controller is offline.
*
* @param message
*/
public void controllerOffline(String message);
void controllerOffline(String message);
/**
* Called to indicate the connection with the Niko Home Control Controller is online.
*
*/
public void controllerOnline();
void controllerOnline();
/**
* This method is called when an alarm event is received from the Niko Home Control controller.
*
* @param alarmText
*/
public void alarmEvent(String alarmText);
void alarmEvent(String alarmText);
/**
* This method is called when a notice event is received from the Niko Home Control controller.
*
* @param alarmText
*/
public void noticeEvent(String noticeText);
void noticeEvent(String noticeText);
/**
* This method is called when properties are updated from the Niko Home Control controller.
*/
public void updatePropertiesEvent();
void updatePropertiesEvent();
}

View File

@@ -32,17 +32,17 @@ public interface NhcEnergyMeterEvent {
*
* @param power current power consumption/production in W (positive for consumption), null for an empty reading
*/
public void energyMeterEvent(@Nullable Integer power);
void energyMeterEvent(@Nullable Integer power);
/**
* Called to indicate the energyMeter has been initialized.
*
*/
public void energyMeterInitialized();
void energyMeterInitialized();
/**
* Called to indicate the energyMeter has been removed from the Niko Home Control controller.
*
*/
public void energyMeterRemoved();
void energyMeterRemoved();
}

View File

@@ -35,17 +35,17 @@ public interface NhcThermostatEvent {
* @param overrule the overrule temperature in 0.1°C multiples
* @param demand 0 if no demand, > 0 if heating, < 0 if cooling
*/
public void thermostatEvent(int measured, int setpoint, int mode, int overrule, int demand);
void thermostatEvent(int measured, int setpoint, int mode, int overrule, int demand);
/**
* Called to indicate the thermostat has been initialized.
*
*/
public void thermostatInitialized();
void thermostatInitialized();
/**
* Called to indicate the thermostat has been removed from the Niko Home Control controller.
*
*/
public void thermostatRemoved();
void thermostatRemoved();
}