Commits

Micha Kops committed 7c0ded2

Modified code to use Java 7 generics syntax.

Comments (0)

Files changed (2)

src/main/java/com/hascode/ejb/BookEJB.java

 		List<Book> books = em.createQuery("SELECT b FROM Book b", Book.class)
 				.getResultList();
 		if (books == null)
-			books = new ArrayList<Book>();
+			books = new ArrayList<>();
 		return books;
 	}
 }

src/main/java/com/hascode/ejb/JeeDbMigrator.java

 @Singleton
 @Startup
 public class JeeDbMigrator {
-	private final Logger log = Logger.getLogger(JeeDbMigrator.class.getName());
+	private final Logger log = Logger.getLogger(getClass().getName());
 
 	@Resource(name = "jdbc/__default")
 	private DataSource dataSource;