Spring cleaning: use diamond operator

This commit is contained in:
Sam Brannen
2024-02-23 11:52:17 +01:00
parent 233b59f144
commit 4339c8eac2
18 changed files with 25 additions and 25 deletions

View File

@@ -144,7 +144,7 @@ class BeanWrapperGenericsTests {
@Test
void testGenericMapElementWithKeyType() {
GenericBean<?> gb = new GenericBean<>();
gb.setLongMap(new HashMap<Long, Integer>());
gb.setLongMap(new HashMap<>());
BeanWrapper bw = new BeanWrapperImpl(gb);
bw.setPropertyValue("longMap[4]", "5");
assertThat(gb.getLongMap().get(Long.valueOf("4"))).isEqualTo("5");