From eba849fd458f13349fe74fca963d161069fc7156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=BCrgin?= <676c7473@gmail.com> Date: Sat, 2 Apr 2016 19:31:09 +0200 Subject: [PATCH] Suppress "uninitialized" warnings for injected fields --- .../samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java | 1 + .../samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java | 1 + .../samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java | 1 + .../samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java | 1 + 4 files changed, 4 insertions(+) diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java index 3972dd3..4cdccce 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java @@ -39,6 +39,7 @@ public class JpaOwnerRepositoryImpl implements OwnerRepository { @PersistenceContext + @SuppressWarnings("initialization") private EntityManager em; diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java index 227140d..5b61dec 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java @@ -38,6 +38,7 @@ public class JpaPetRepositoryImpl implements PetRepository { @PersistenceContext + @SuppressWarnings("initialization") private EntityManager em; @Override diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java index e4c222b..23623e4 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java @@ -38,6 +38,7 @@ public class JpaVetRepositoryImpl implements VetRepository { @PersistenceContext + @SuppressWarnings("initialization") private EntityManager em; diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java index 5d1d42a..162da4f 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java @@ -40,6 +40,7 @@ public class JpaVisitRepositoryImpl implements VisitRepository { @PersistenceContext + @SuppressWarnings("initialization") private EntityManager em;