INT-3425: Deprecate TCP Event Channel Adapter
JIRA: https://jira.spring.io/browse/INT-3425 Deprecate `TcpConnectionEventListeningMessageProducer` in favor of using a generic event inbound channel adapter. Polishing
This commit is contained in:
committed by
Artem Bilan
parent
583d432f22
commit
f1fc0edbf3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -67,7 +67,8 @@ public class ApplicationEventListeningMessageProducer extends ExpressionMessageP
|
||||
* @see ApplicationEventMulticaster#addApplicationListener
|
||||
* @see #supportsEventType
|
||||
*/
|
||||
public void setEventTypes(Class<? extends ApplicationEvent>... eventTypes) {
|
||||
@SafeVarargs
|
||||
public final void setEventTypes(Class<? extends ApplicationEvent>... eventTypes) {
|
||||
Set<Class<? extends ApplicationEvent>> eventSet = new HashSet<Class<? extends ApplicationEvent>>(
|
||||
Arrays.asList(eventTypes));
|
||||
eventSet.remove(null);
|
||||
|
||||
Reference in New Issue
Block a user