Skip to content

Commit 7dc522f

Browse files
committed
Clean up warnings in Gradle build
1 parent 79f416d commit 7dc522f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

spring-beans/src/test/java/org/springframework/beans/factory/config/PropertyPlaceholderConfigurerTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,12 +38,12 @@
3838
*
3939
* @author Chris Beams
4040
*/
41+
@SuppressWarnings("deprecation")
4142
public class PropertyPlaceholderConfigurerTests {
4243

4344
private static final String P1 = "p1";
4445
private static final String P1_LOCAL_PROPS_VAL = "p1LocalPropsVal";
4546
private static final String P1_SYSTEM_PROPS_VAL = "p1SystemPropsVal";
46-
private static final String P1_SYSTEM_ENV_VAL = "p1SystemEnvVal";
4747

4848
private DefaultListableBeanFactory bf;
4949
private PropertyPlaceholderConfigurer ppc;
@@ -149,7 +149,6 @@ public void twoPlaceholderConfigurers_withConflictingSettings() {
149149
String P2 = "p2";
150150
String P2_LOCAL_PROPS_VAL = "p2LocalPropsVal";
151151
String P2_SYSTEM_PROPS_VAL = "p2SystemPropsVal";
152-
String P2_SYSTEM_ENV_VAL = "p2SystemEnvVal";
153152

154153
AbstractBeanDefinition p2BeanDef = rootBeanDefinition(TestBean.class)
155154
.addPropertyValue("name", "${" + P1 + "}")

spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/reactive/MethodMessageHandlerTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.messaging.handler.invocation.reactive;
1718

1819
import java.lang.reflect.Method;
@@ -70,6 +71,7 @@ public void registeredMappings() {
7071
}
7172

7273
@Test
74+
@SuppressWarnings("unchecked")
7375
public void bestMatch() throws NoSuchMethodException {
7476
TestMethodMessageHandler handler = new TestMethodMessageHandler();
7577
TestController controller = new TestController();
@@ -88,6 +90,7 @@ public void bestMatch() throws NoSuchMethodException {
8890
}
8991

9092
@Test
93+
@SuppressWarnings("unchecked")
9194
public void argumentResolution() {
9295

9396
ArgumentResolverConfigurer configurer = new ArgumentResolverConfigurer();
@@ -108,6 +111,7 @@ public void argumentResolution() {
108111
}
109112

110113
@Test
114+
@SuppressWarnings("unchecked")
111115
public void handleException() {
112116

113117
TestMethodMessageHandler handler = initMethodMessageHandler(TestController.class);
@@ -150,7 +154,6 @@ public Mono<String> handleMessage() {
150154
return delay("handleMessage");
151155
}
152156

153-
@SuppressWarnings("rawtypes")
154157
public Mono<String> handleMessageWithArgument(String payload) {
155158
return delay("handleMessageWithArgument,payload=" + payload);
156159
}

0 commit comments

Comments
 (0)