Sonar fix

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
This commit is contained in:
SirWayne
2016-03-24 13:16:37 +01:00
parent 45f6fb80a3
commit 53fbe367e4

View File

@@ -49,8 +49,7 @@ public interface UIEventProvider {
* be null
*/
default Set<Class<?>> getFilteredBulkEventsType(final List<Event> allEvents) {
return allEvents.stream().map(Event::getClass).filter(eventClass -> getBulkEvents().contains(eventClass))
.collect(Collectors.toSet());
return allEvents.stream().map(Event::getClass).filter(getBulkEvents()::contains).collect(Collectors.toSet());
}
}