Skip to content

Commit

Permalink
Added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem Elbers committed Oct 3, 2024
1 parent c178771 commit 0a3040b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public VirtualCollection retrieveVirtualCollection(long id)
try {
em.getTransaction().begin();
VirtualCollection vc
= em.find(VirtualCollection.class, Long.valueOf(id));
= em.find(VirtualCollection.class, id);
em.getTransaction().commit();
if ((vc == null) || vc.isDeleted()) {
logger.debug("virtual collection (id={}) not found", id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public CreateAndEditVirtualCollectionPageV2(Long id, final Page previousPage) th
vc = vcr.retrieveVirtualCollection(id);
if (vc != null) {
this.checkAccess(vc);
logger.info("Retrieved collection: {}", vc.toString());

}
}

Expand Down Expand Up @@ -167,6 +167,7 @@ public void handleEvent(Event<VirtualCollection> event) {
});
add(crud);

//Register listener to cleanup on undeploy of webapp
vcr.registerDestroyListener(new VirtualCollectionRegistryDestroyListener() {
@Override
public void handleDestroy() {
Expand All @@ -176,7 +177,6 @@ public void handleDestroy() {
});

if(vc != null) {
logger.info("Editing collection: {}", vc.toString());
crud.editCollection(vc);
}
}
Expand Down

0 comments on commit 0a3040b

Please sign in to comment.