From 024811d252f8d8218e6795d46203cff25971bc19 Mon Sep 17 00:00:00 2001
From: Mic <misvy@vmware.com>
Date: Thu, 14 Mar 2013 18:04:36 +0800
Subject: [PATCH] simplifying access to Integer

---
 .../petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java
index 717817b..75e55a4 100644
--- a/src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java
+++ b/src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java
@@ -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;
-- 
GitLab