<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
- <source>1.6</source>
- <target>1.6</target>
+ <source>1.8</source>
+ <target>1.8</target>
<encoding>utf8</encoding>
<showWarnings>true</showWarnings>
</configuration>
PersistenceXmlParser.locatePersistenceUnits(settings);
// Find all persistent units in the located descriptors
- Map<String, ParsedPersistenceXmlDescriptor> units =
- new HashMap<String, ParsedPersistenceXmlDescriptor>();
+ Map<String, ParsedPersistenceXmlDescriptor> units = new HashMap<>();
for (ParsedPersistenceXmlDescriptor descriptor : descriptors)
{
String unit = descriptor.getName();