Skip to content

Commit 8213df8

Browse files
committed
Clean up warnings in spring-web
1 parent ebeba43 commit 8213df8

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

spring-web/src/main/java/org/springframework/http/HttpHeaders.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 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,11 +38,10 @@
3838
import org.springframework.util.Assert;
3939
import org.springframework.util.LinkedCaseInsensitiveMap;
4040
import org.springframework.util.MultiValueMap;
41-
import org.springframework.util.ObjectUtils;
4241
import org.springframework.util.StringUtils;
4342

4443
/**
45-
* Represents HTTP request and response headers, mapping string header names to list of string values.
44+
* Represents HTTP request and response headers, mapping string header names to a list of string values.
4645
*
4746
* <p>In addition to the normal methods defined by {@link Map}, this class offers the following
4847
* convenience methods:
@@ -52,7 +51,7 @@
5251
* <li>{@link #set(String, String)} sets the header value to a single string value</li>
5352
* </ul>
5453
*
55-
* <p>Inspired by {@link com.sun.net.httpserver.Headers}.
54+
* <p>Inspired by {@code com.sun.net.httpserver.Headers}.
5655
*
5756
* @author Arjen Poutsma
5857
* @author Sebastien Deleuze

spring-web/src/main/java/org/springframework/web/client/AsyncRestTemplate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import org.springframework.util.Assert;
4545
import org.springframework.util.concurrent.ListenableFuture;
4646
import org.springframework.util.concurrent.ListenableFutureAdapter;
47-
import org.springframework.web.util.DefaultUriTemplateHandler;
4847
import org.springframework.web.util.UriTemplateHandler;
4948

5049
/**

spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 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.
@@ -80,6 +80,7 @@
8080
*
8181
* @author Sebastien Deleuze
8282
*/
83+
@SuppressWarnings("deprecation")
8384
public class Jackson2ObjectMapperBuilderTests {
8485

8586
private static final String DATE_FORMAT = "yyyy-MM-dd";

spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBeanTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 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.
@@ -76,6 +76,7 @@
7676
* @author Sebastien Deleuze
7777
* @author Sam Brannen
7878
*/
79+
@SuppressWarnings("deprecation")
7980
public class Jackson2ObjectMapperFactoryBeanTests {
8081

8182
private static final String DATE_FORMAT = "yyyy-MM-dd";

spring-web/src/test/java/org/springframework/web/client/AsyncRestTemplateIntegrationTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 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.
@@ -618,7 +618,6 @@ public void getAndInterceptError() throws Exception {
618618
assertNull(interceptor.exception);
619619
}
620620

621-
@SuppressWarnings("StatementWithEmptyBody")
622621
private void waitTillDone(ListenableFuture<?> future) {
623622
while (!future.isDone()) {
624623
}

spring-web/src/test/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolverTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ public void optionalMultipartFileWithoutMultipartRequest() throws Exception {
474474
}
475475

476476

477-
@SuppressWarnings("unused")
478477
public void handle(
479478
@RequestParam(name = "name", defaultValue = "bar") String param1,
480479
@RequestParam("name") String[] param2,

spring-web/src/test/java/org/springframework/web/util/UriTemplateTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void expandVarArgs() throws Exception {
5050

5151
// SPR-9712
5252

53-
@Test @SuppressWarnings("PrimitiveArrayArgumentToVariableArgMethod")
53+
@Test
5454
public void expandVarArgsWithArrayValue() throws Exception {
5555
UriTemplate template = new UriTemplate("/sum?numbers={numbers}");
5656
URI result = template.expand(new int[] {1, 2, 3});

0 commit comments

Comments
 (0)