From 9e37fd1049f8a6794396cd7c8879dc413fbcb87c 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 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(); -- 2.20.1