From ea93983d161f5d37d389298df4ff42d24263a621 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 5 Apr 2019 10:48:14 +0200 Subject: [PATCH] Upgraded source/target version of Java from 1.6 to 1.8 --- pom.xml | 4 ++-- .../java/de/juplo/plugins/hibernate/AbstractSchemaMojo.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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(); -- 2.20.1