diff --git a/org.springframework.integration.xml/src/test/java/org/springframework/integration/xml/config/TestTemplatesFactory.java b/org.springframework.integration.xml/src/test/java/org/springframework/integration/xml/config/TestTemplatesFactory.java index cf517f945c..38f6572010 100644 --- a/org.springframework.integration.xml/src/test/java/org/springframework/integration/xml/config/TestTemplatesFactory.java +++ b/org.springframework.integration.xml/src/test/java/org/springframework/integration/xml/config/TestTemplatesFactory.java @@ -33,8 +33,7 @@ public class TestTemplatesFactory implements FactoryBean { return TransformerFactory.newInstance().newTemplates(new StreamSource(xslResource.getInputStream())); } - @SuppressWarnings("unchecked") - public Class getObjectType() { + public Class getObjectType() { return Templates.class; }