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