diff --git a/hibernate-core/src/test/java/org/hibernate/test/foreignkeys/disabled/InheritanceManyToManyForeignKeyTest.java b/hibernate-core/src/test/java/org/hibernate/test/foreignkeys/disabled/InheritanceManyToManyForeignKeyTest.java index 930ca7f050..04f0e0b94a 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/foreignkeys/disabled/InheritanceManyToManyForeignKeyTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/foreignkeys/disabled/InheritanceManyToManyForeignKeyTest.java @@ -100,7 +100,7 @@ public class InheritanceManyToManyForeignKeyTest extends BaseNonConfigCoreFuncti public static abstract class AbstractEventsEntityModel { @ManyToMany(fetch = FetchType.LAZY ) - private List events = new ArrayList<>( ); + private List events = new ArrayList( ); public List getEvents() { return events; diff --git a/hibernate-core/src/test/java/org/hibernate/test/ondemandload/cache/CacheLazyLoadNoTransTest.java b/hibernate-core/src/test/java/org/hibernate/test/ondemandload/cache/CacheLazyLoadNoTransTest.java index 5adfea9228..e3107f647f 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/ondemandload/cache/CacheLazyLoadNoTransTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/ondemandload/cache/CacheLazyLoadNoTransTest.java @@ -162,7 +162,7 @@ public class CacheLazyLoadNoTransTest extends BaseNonConfigCoreFunctionalTestCas @ManyToMany(mappedBy = "applications") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) - private List customers = new ArrayList<>(); + private List customers = new ArrayList(); } @Entity @@ -176,11 +176,11 @@ public class CacheLazyLoadNoTransTest extends BaseNonConfigCoreFunctionalTestCas @ManyToMany @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) - private List applications = new ArrayList<>(); + private List applications = new ArrayList(); @OneToMany(mappedBy = "customer", cascade = CascadeType.ALL) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) - private List boughtItems = new ArrayList<>(); + private List boughtItems = new ArrayList(); } @Entity diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/mapjoin/MapJoinTest2.java b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/mapjoin/MapJoinTest2.java index b405d21cd6..9667d91f46 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/mapjoin/MapJoinTest2.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/mapjoin/MapJoinTest2.java @@ -76,7 +76,7 @@ public class MapJoinTest2 extends BaseEntityManagerFunctionalTestCase { //foreignKey = @ForeignKey, joinColumns = @JoinColumn(name = "batch_id", nullable = false)) @MapKeyJoinColumn(name = "node_id") - private Map batchNodeMetadata = new HashMap<>(); + private Map batchNodeMetadata = new HashMap(); } @Entity