Commit 8ad6963c by Tuomas Riihimäki

function overrides existing getUsed. Rename helper function

1 parent d0e110d0
......@@ -51,7 +51,7 @@ public class PlaceSlot extends GenericEntity {
this.created = Calendar.getInstance().getTime();
}
public boolean isUsed() {
public boolean isSlotUsed() {
return used != null || place != null;
}
......
......@@ -136,7 +136,7 @@ public class AjaxMapView extends GenericCDIView {
Slotcounter pm = prodmap.get(p.getProduct());
pm.increment();
logger.info("got used {} for slot {} with place {}", p.getUsed(), p, p.getPlace());
if (!p.isUsed()) {
if (!p.isSlotUsed()) {
pm.incrementUnused();
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!