<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<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();