Clean up warnings in Gradle build

This commit is contained in:
Sam Brannen
2019-03-12 19:36:14 +01:00
parent 79f416ddb8
commit 7dc522f0d6
2 changed files with 6 additions and 4 deletions

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.messaging.handler.invocation.reactive;
import java.lang.reflect.Method;
@@ -70,6 +71,7 @@ public class MethodMessageHandlerTests {
}
@Test
@SuppressWarnings("unchecked")
public void bestMatch() throws NoSuchMethodException {
TestMethodMessageHandler handler = new TestMethodMessageHandler();
TestController controller = new TestController();
@@ -88,6 +90,7 @@ public class MethodMessageHandlerTests {
}
@Test
@SuppressWarnings("unchecked")
public void argumentResolution() {
ArgumentResolverConfigurer configurer = new ArgumentResolverConfigurer();
@@ -108,6 +111,7 @@ public class MethodMessageHandlerTests {
}
@Test
@SuppressWarnings("unchecked")
public void handleException() {
TestMethodMessageHandler handler = initMethodMessageHandler(TestController.class);
@@ -150,7 +154,6 @@ public class MethodMessageHandlerTests {
return delay("handleMessage");
}
@SuppressWarnings("rawtypes")
public Mono<String> handleMessageWithArgument(String payload) {
return delay("handleMessageWithArgument,payload=" + payload);
}