Skip to content

Commit 67a5492

Browse files
committed
@lolodomo review of 6/12
review field access, removing config as we only use it in initialize ! Signed-off-by: Laurent ARNAL <[email protected]>
1 parent 61f03e8 commit 67a5492

File tree

1 file changed

+1
-4
lines changed
  • bundles/org.openhab.binding.sedif/src/main/java/org/openhab/binding/sedif/internal/handler

1 file changed

+1
-4
lines changed

bundles/org.openhab.binding.sedif/src/main/java/org/openhab/binding/sedif/internal/handler/ThingSedifHandler.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ public class ThingSedifHandler extends BaseThingHandler {
100100
private final ExpiringDayCache<ContractDetail> contractDetail;
101101
private final ExpiringDayCache<MeterReading> consumption;
102102

103-
protected final Gson gson;
104-
105-
protected @Nullable SedifConfiguration config;
103+
private final Gson gson;
106104

107105
public ThingSedifHandler(Thing thing, LocaleProvider localeProvider, TimeZoneProvider timeZoneProvider, Gson gson) {
108106
super(thing);
@@ -178,7 +176,6 @@ public ThingSedifHandler(Thing thing, LocaleProvider localeProvider, TimeZonePro
178176
@Override
179177
public synchronized void initialize() {
180178
SedifConfiguration lcConfig = getConfigAs(SedifConfiguration.class);
181-
config = lcConfig;
182179

183180
loadSedifState();
184181

0 commit comments

Comments
 (0)