DATAMONGO-2460 - Polishing.

Reformat code. Use diamond syntax.

Original pull request: #830.
This commit is contained in:
Mark Paluch
2020-02-03 11:25:01 +01:00
parent 1b7273db42
commit 6e94f138d5

View File

@@ -55,7 +55,7 @@ public class BasicMongoPersistentPropertyUnitTests {
@Before
public void setup() {
entity = new BasicMongoPersistentEntity<Person>(ClassTypeInformation.from(Person.class));
entity = new BasicMongoPersistentEntity<>(ClassTypeInformation.from(Person.class));
}
@Test
@@ -236,7 +236,7 @@ public class BasicMongoPersistentPropertyUnitTests {
}
private static <T> MongoPersistentProperty getPropertyFor(Class<T> type, String fieldname) {
return getPropertyFor(new BasicMongoPersistentEntity<T>(ClassTypeInformation.from(type)), fieldname);
return getPropertyFor(new BasicMongoPersistentEntity<>(ClassTypeInformation.from(type)), fieldname);
}
private static MongoPersistentProperty getPropertyFor(MongoPersistentEntity<?> entity, String fieldname) {
@@ -345,8 +345,6 @@ public class BasicMongoPersistentPropertyUnitTests {
static class WithComplexId {
@Id
@org.springframework.data.mongodb.core.mapping.Field
ComplexId id;
@Id @org.springframework.data.mongodb.core.mapping.Field ComplexId id;
}
}