Fix compiler warnings in LoggerConfigTest. Fix newly
introduced warnings. Closes
@@ -54,8 +54,8 @@ public class LoggerConfigTest {
};
final LoggerConfig loggerConfig = createForProperties(all);
final List<Property> list = loggerConfig.getPropertyList();
- assertEquals("map and list contents equal", new HashSet<Property>(list),
- new HashSet<Property>(loggerConfig.getPropertyList()));
+ assertEquals("map and list contents equal", new HashSet<>(list),
+ new HashSet<>(loggerConfig.getPropertyList()));
final Object[] actualList = new Object[1];
loggerConfig.setLogEventFactory(new LogEventFactory() {
@@ -79,8 +79,8 @@ public class LoggerConfigTest {
};
final LoggerConfig loggerConfig = createForProperties(all);
final List<Property> list = loggerConfig.getPropertyList();
- assertEquals("map and list contents equal", new HashSet<Property>(list),
- new HashSet<Property>(loggerConfig.getPropertyList()));
+ assertEquals("map and list contents equal", new HashSet<>(list),
+ new HashSet<>(loggerConfig.getPropertyList()));
final Object[] actualListHolder = new Object[1];
loggerConfig.setLogEventFactory(new LogEventFactory() {
