Skip to content
Snippets Groups Projects
Commit 024811d2 authored by Mic's avatar Mic
Browse files

simplifying access to Integer

parent c4dbb1f6
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ public class JdbcOwnerRepositoryImpl implements OwnerRepository {
ParameterizedBeanPropertyRowMapper.newInstance(Owner.class)
);
} catch (EmptyResultDataAccessException ex) {
throw new ObjectRetrievalFailureException(Owner.class, new Integer(id));
throw new ObjectRetrievalFailureException(Owner.class, id);
}
loadPetsAndVisits(owner);
return owner;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment