Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
8213df81
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8213df81
编写于
4月 06, 2016
作者:
S
Sam Brannen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up warnings in spring-web
上级
ebeba438
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
9 addition
and
11 deletion
+9
-11
spring-web/src/main/java/org/springframework/http/HttpHeaders.java
...b/src/main/java/org/springframework/http/HttpHeaders.java
+3
-4
spring-web/src/main/java/org/springframework/web/client/AsyncRestTemplate.java
...ava/org/springframework/web/client/AsyncRestTemplate.java
+0
-1
spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java
...http/converter/json/Jackson2ObjectMapperBuilderTests.java
+2
-1
spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBeanTests.java
.../converter/json/Jackson2ObjectMapperFactoryBeanTests.java
+2
-1
spring-web/src/test/java/org/springframework/web/client/AsyncRestTemplateIntegrationTests.java
...amework/web/client/AsyncRestTemplateIntegrationTests.java
+1
-2
spring-web/src/test/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolverTests.java
...d/annotation/RequestParamMethodArgumentResolverTests.java
+0
-1
spring-web/src/test/java/org/springframework/web/util/UriTemplateTests.java
...t/java/org/springframework/web/util/UriTemplateTests.java
+1
-1
未找到文件。
spring-web/src/main/java/org/springframework/http/HttpHeaders.java
浏览文件 @
8213df81
/*
* Copyright 2002-201
5
the original author or authors.
* Copyright 2002-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -38,11 +38,10 @@ import java.util.TimeZone;
import
org.springframework.util.Assert
;
import
org.springframework.util.LinkedCaseInsensitiveMap
;
import
org.springframework.util.MultiValueMap
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
/**
* Represents HTTP request and response headers, mapping string header names to list of string values.
* Represents HTTP request and response headers, mapping string header names to
a
list of string values.
*
* <p>In addition to the normal methods defined by {@link Map}, this class offers the following
* convenience methods:
...
...
@@ -52,7 +51,7 @@ import org.springframework.util.StringUtils;
* <li>{@link #set(String, String)} sets the header value to a single string value</li>
* </ul>
*
* <p>Inspired by {@
link
com.sun.net.httpserver.Headers}.
* <p>Inspired by {@
code
com.sun.net.httpserver.Headers}.
*
* @author Arjen Poutsma
* @author Sebastien Deleuze
...
...
spring-web/src/main/java/org/springframework/web/client/AsyncRestTemplate.java
浏览文件 @
8213df81
...
...
@@ -44,7 +44,6 @@ import org.springframework.http.converter.HttpMessageConverter;
import
org.springframework.util.Assert
;
import
org.springframework.util.concurrent.ListenableFuture
;
import
org.springframework.util.concurrent.ListenableFutureAdapter
;
import
org.springframework.web.util.DefaultUriTemplateHandler
;
import
org.springframework.web.util.UriTemplateHandler
;
/**
...
...
spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java
浏览文件 @
8213df81
/*
* Copyright 2002-201
5
the original author or authors.
* Copyright 2002-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -80,6 +80,7 @@ import static org.junit.Assert.*;
*
* @author Sebastien Deleuze
*/
@SuppressWarnings
(
"deprecation"
)
public
class
Jackson2ObjectMapperBuilderTests
{
private
static
final
String
DATE_FORMAT
=
"yyyy-MM-dd"
;
...
...
spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBeanTests.java
浏览文件 @
8213df81
/*
* Copyright 2002-201
5
the original author or authors.
* Copyright 2002-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -76,6 +76,7 @@ import static org.junit.Assert.*;
* @author Sebastien Deleuze
* @author Sam Brannen
*/
@SuppressWarnings
(
"deprecation"
)
public
class
Jackson2ObjectMapperFactoryBeanTests
{
private
static
final
String
DATE_FORMAT
=
"yyyy-MM-dd"
;
...
...
spring-web/src/test/java/org/springframework/web/client/AsyncRestTemplateIntegrationTests.java
浏览文件 @
8213df81
/*
* Copyright 2002-201
5
the original author or authors.
* Copyright 2002-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -618,7 +618,6 @@ public class AsyncRestTemplateIntegrationTests extends AbstractJettyServerTestCa
assertNull
(
interceptor
.
exception
);
}
@SuppressWarnings
(
"StatementWithEmptyBody"
)
private
void
waitTillDone
(
ListenableFuture
<?>
future
)
{
while
(!
future
.
isDone
())
{
}
...
...
spring-web/src/test/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolverTests.java
浏览文件 @
8213df81
...
...
@@ -474,7 +474,6 @@ public class RequestParamMethodArgumentResolverTests {
}
@SuppressWarnings
(
"unused"
)
public
void
handle
(
@RequestParam
(
name
=
"name"
,
defaultValue
=
"bar"
)
String
param1
,
@RequestParam
(
"name"
)
String
[]
param2
,
...
...
spring-web/src/test/java/org/springframework/web/util/UriTemplateTests.java
浏览文件 @
8213df81
...
...
@@ -50,7 +50,7 @@ public class UriTemplateTests {
// SPR-9712
@Test
@SuppressWarnings
(
"PrimitiveArrayArgumentToVariableArgMethod"
)
@Test
public
void
expandVarArgsWithArrayValue
()
throws
Exception
{
UriTemplate
template
=
new
UriTemplate
(
"/sum?numbers={numbers}"
);
URI
result
=
template
.
expand
(
new
int
[]
{
1
,
2
,
3
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录