fix java6 syntax

This commit is contained in:
Peter Hormanns 2019-07-29 15:38:43 +02:00
parent 77f0da467f
commit 8b7cbc8de5

View File

@ -49,7 +49,7 @@ public class JsonPillarServlet extends HttpServlet {
hiveQuery.setParameter("hive", hiveName);
final Object hiveResult = hiveQuery.getSingleResult();
final Hive hive = (Hive) hiveResult;
final List<String> dnsZones = new ArrayList<>();
final List<String> dnsZones = new ArrayList<String>();
final Query pacsQuery = em.createQuery("SELECT p FROM Pacs p WHERE p.hive.name = :hive AND p.basepac.name = 'PAC/WEB'");
pacsQuery.setParameter("hive", hiveName);
final List<?> pacsResult = pacsQuery.getResultList();