changes from review

This commit is contained in:
ghidravore 2020-06-02 12:58:36 -04:00
parent e3aebe3adb
commit ca58264d65
6 changed files with 41 additions and 277 deletions

View file

@ -310,12 +310,11 @@ class CheckoutManager {
Element root = new Element("CHECKOUT_LIST");
root.setAttribute("NEXT_ID", Long.toString(nextCheckoutId));
for (long id : checkouts.keySet()) {
ItemCheckoutStatus coStatus = checkouts.get(id);
for (ItemCheckoutStatus status : checkouts.values()) {
// TRANSIENT checkout data must not be persisted - the existence
// of such checkouts is retained in-memory only
if (coStatus.getCheckoutType() != CheckoutType.TRANSIENT) {
root.addContent(getCheckoutElement(coStatus));
if (status.getCheckoutType() != CheckoutType.TRANSIENT) {
root.addContent(getCheckoutElement(status));
}
}