[netatmo] eventBuffer in SecurityCapability should not be static (#13636)
Also fix few findings by code analysis Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
b85e9b43df
commit
79bf9724fc
|
@ -23,7 +23,7 @@ import org.openhab.binding.netatmo.internal.api.data.ModuleType;
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public class NAPushType {
|
public class NAPushType {
|
||||||
public final static NAPushType UNKNOWN = new NAPushType(ModuleType.UNKNOWN, EventType.UNKNOWN);
|
public static final NAPushType UNKNOWN = new NAPushType(ModuleType.UNKNOWN, EventType.UNKNOWN);
|
||||||
|
|
||||||
private final ModuleType moduleType;
|
private final ModuleType moduleType;
|
||||||
private final EventType event;
|
private final EventType event;
|
||||||
|
|
|
@ -47,7 +47,7 @@ import org.slf4j.LoggerFactory;
|
||||||
class SecurityCapability extends RestCapability<SecurityApi> {
|
class SecurityCapability extends RestCapability<SecurityApi> {
|
||||||
private final Logger logger = LoggerFactory.getLogger(SecurityCapability.class);
|
private final Logger logger = LoggerFactory.getLogger(SecurityCapability.class);
|
||||||
|
|
||||||
private static final Map<String, HomeEvent> eventBuffer = new HashMap<>();
|
private final Map<String, HomeEvent> eventBuffer = new HashMap<>();
|
||||||
private @Nullable ZonedDateTime freshestEventTime;
|
private @Nullable ZonedDateTime freshestEventTime;
|
||||||
|
|
||||||
SecurityCapability(CommonInterface handler) {
|
SecurityCapability(CommonInterface handler) {
|
||||||
|
|
Loading…
Reference in New Issue