Skip to content

Commit

Permalink
esablish compatibility to latest jul version
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineThreepwood committed Jan 9, 2024
1 parent 3626b81 commit d153fad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.openbase.bco.dal.lib.layer.unit.PowerConsumptionSensor;
import org.openbase.bco.dal.lib.layer.unit.UnitRemote;
import org.openbase.bco.dal.remote.layer.unit.CustomUnitPool;
import org.openbase.bco.dal.remote.layer.unit.PowerConsumptionSensorRemote;
import org.openbase.bco.registry.remote.Registries;
import org.openbase.bco.registry.unit.lib.UnitRegistry;
import org.openbase.jul.exception.CouldNotPerformException;
Expand All @@ -40,15 +41,15 @@

public class Heatmap extends Pane {

private CustomUnitPool unitPool;
private CustomUnitPool<? extends Message, ? extends UnitRemote<? extends Message>> unitPool;

private ScheduledFuture refreshSchedule;
private ScheduledFuture<?> refreshSchedule;

private static final org.slf4j.Logger logger = LoggerFactory.getLogger(HeatMap.class);

public Heatmap(BackgroundPane backgroundPane) {
try {
unitPool = new CustomUnitPool();
unitPool = new CustomUnitPool<>();

unitPool.init(unitConfig ->
unitConfig.getUnitType() == UnitType.POWER_CONSUMPTION_SENSOR);
Expand Down

0 comments on commit d153fad

Please sign in to comment.