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=9e37fd1049f8a6794396cd7c8879dc413fbcb87c;p=hibernate4-maven-plugin Upgraded source/target version of Java from 1.6 to 1.8 --- diff --git a/pom.xml b/pom.xml index 8a61e22f..ddcdd11d 100644 --- a/pom.xml +++ b/pom.xml @@ -228,8 +228,8 @@ maven-compiler-plugin 3.3 - 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();