Skip to content

Commit

Permalink
Suppress "uninitialized" warnings for injected fields
Browse files Browse the repository at this point in the history
  • Loading branch information
glts committed Apr 2, 2016
1 parent 2787184 commit eba849f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
public class JpaOwnerRepositoryImpl implements OwnerRepository {

@PersistenceContext
@SuppressWarnings("initialization")
private EntityManager em;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
public class JpaPetRepositoryImpl implements PetRepository {

@PersistenceContext
@SuppressWarnings("initialization")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
public class JpaVetRepositoryImpl implements VetRepository {

@PersistenceContext
@SuppressWarnings("initialization")
private EntityManager em;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
public class JpaVisitRepositoryImpl implements VisitRepository {

@PersistenceContext
@SuppressWarnings("initialization")
private EntityManager em;


Expand Down

0 comments on commit eba849f

Please sign in to comment.