Polished few additional compile warnings

Resolves #1321
This commit is contained in:
Oleg Zhurakousky
2018-03-21 16:26:53 -04:00
parent ae74c21720
commit 6379c3354b
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,6 @@ import org.springframework.integration.config.EnableIntegration;
* @author Marius Bogoevici
* @author David Turanski
*/
@SuppressWarnings("deprecation")
@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented

View File

@@ -267,7 +267,7 @@ public class StreamListenerAnnotationBeanPostProcessor implements BeanPostProces
/**
* This operations ensures that required dependencies are not accidentally injected early given that this bean is BPP.
*/
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "rawtypes" })
private void injectAndPostProcessDependencies() {
Collection<StreamListenerParameterAdapter> streamListenerParameterAdapters = this.applicationContext.getBeansOfType(StreamListenerParameterAdapter.class).values();
Collection<StreamListenerResultAdapter> streamListenerResultAdapters = this.applicationContext.getBeansOfType(StreamListenerResultAdapter.class).values();
@@ -327,6 +327,7 @@ public class StreamListenerAnnotationBeanPostProcessor implements BeanPostProces
}
}
@SuppressWarnings("rawtypes")
private class DefaultStreamListenerSetupMethodOrchestrator implements StreamListenerSetupMethodOrchestrator {
private final ConfigurableApplicationContext applicationContext;
@@ -370,7 +371,7 @@ public class StreamListenerAnnotationBeanPostProcessor implements BeanPostProces
return true;
}
@SuppressWarnings({"rawtypes", "unchecked"})
@SuppressWarnings("unchecked")
private void invokeStreamListenerResultAdapter(Method method, Object bean, String outboundName, Object... arguments) {
try {
if (Void.TYPE.equals(method.getReturnType())) {