Modernize code for diamond, isEmpty & pattern matching
This commit is contained in:
@@ -41,6 +41,7 @@ import org.springframework.util.Assert;
|
||||
* @author Mark Fisher
|
||||
* @author Artem Bilan
|
||||
* @author Gary Russell
|
||||
* @author Ngoc Nhan
|
||||
*
|
||||
* @see ApplicationEventMulticaster
|
||||
* @see ExpressionMessageProducerSupport
|
||||
@@ -80,7 +81,7 @@ public class ApplicationEventListeningMessageProducer extends ExpressionMessageP
|
||||
eventSet.add(ResolvableType.forClass(eventType));
|
||||
}
|
||||
}
|
||||
this.eventTypes = (eventSet.size() > 0 ? eventSet : null);
|
||||
this.eventTypes = (!eventSet.isEmpty() ? eventSet : null);
|
||||
|
||||
if (this.applicationEventMulticaster != null) {
|
||||
this.applicationEventMulticaster.addApplicationListener(this);
|
||||
|
||||
Reference in New Issue
Block a user