From: Kai Moritz Date: Fri, 5 Apr 2019 08:48:14 +0000 (+0200) Subject: Upgraded source/target version of Java from 1.6 to 1.8 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=ea93983d161f5d37d389298df4ff42d24263a621;p=hibernate-maven-plugin Upgraded source/target version of Java from 1.6 to 1.8 --- diff --git a/pom.xml b/pom.xml index f4789fad..a75909cd 100644 --- a/pom.xml +++ b/pom.xml @@ -219,8 +219,8 @@ org.apache.maven.plugins maven-compiler-plugin - 1.6 - 1.6 + 1.8 + 1.8 utf8 true diff --git a/src/main/java/de/juplo/plugins/hibernate/AbstractSchemaMojo.java b/src/main/java/de/juplo/plugins/hibernate/AbstractSchemaMojo.java index 72ec9d4d..b7acbf00 100644 --- a/src/main/java/de/juplo/plugins/hibernate/AbstractSchemaMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate/AbstractSchemaMojo.java @@ -1396,8 +1396,7 @@ public abstract class AbstractSchemaMojo extends AbstractMojo PersistenceXmlParser.locatePersistenceUnits(settings); // Find all persistent units in the located descriptors - Map units = - new HashMap(); + Map units = new HashMap<>(); for (ParsedPersistenceXmlDescriptor descriptor : descriptors) { String unit = descriptor.getName();