Skip to content

Java library lld issue: fix twice available count issue #167

@syedmaqsoodblr

Description

@syedmaqsoodblr

Issue: creating two BookCopy instances, each one adds itself to the LibraryItem copy list in its constructor.

Solution:
copies.put(copyId, copy); instead of copies.put(copyId, new BookCopy(copyId, item));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions