Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
b9ab8957
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,发现更多精彩内容 >>
提交
b9ab8957
编写于
7月 26, 2016
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Inferred generics for newSetFromMap arrangements
Issue: SPR-13188
上级
e03dea1d
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
24 addition
and
37 deletion
+24
-37
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java
...ork/aop/framework/autoproxy/AbstractAutoProxyCreator.java
+1
-1
spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
...ns/src/main/java/org/springframework/beans/BeanUtils.java
+1
-1
spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
...org/springframework/beans/CachedIntrospectionResults.java
+1
-1
spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java
...tory/annotation/AutowiredAnnotationBeanPostProcessor.java
+4
-8
spring-beans/src/main/java/org/springframework/beans/factory/annotation/RequiredAnnotationBeanPostProcessor.java
...ctory/annotation/RequiredAnnotationBeanPostProcessor.java
+1
-2
spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyOverrideConfigurer.java
...work/beans/factory/config/PropertyOverrideConfigurer.java
+2
-2
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java
...gframework/beans/factory/support/AbstractBeanFactory.java
+2
-4
spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java
...k/beans/factory/support/DefaultSingletonBeanRegistry.java
+2
-2
spring-context/src/main/java/org/springframework/context/event/EventListenerMethodProcessor.java
...framework/context/event/EventListenerMethodProcessor.java
+1
-2
spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java
...ling/annotation/ScheduledAnnotationBeanPostProcessor.java
+2
-4
spring-core/src/main/java/org/springframework/core/DecoratingClassLoader.java
.../java/org/springframework/core/DecoratingClassLoader.java
+2
-4
spring-jdbc/src/main/java/org/springframework/jdbc/core/StatementCreatorUtils.java
.../org/springframework/jdbc/core/StatementCreatorUtils.java
+1
-1
spring-jms/src/main/java/org/springframework/jms/annotation/JmsListenerAnnotationBeanPostProcessor.java
...ms/annotation/JmsListenerAnnotationBeanPostProcessor.java
+3
-3
spring-web/src/main/java/org/springframework/web/method/annotation/SessionAttributesHandler.java
...ework/web/method/annotation/SessionAttributesHandler.java
+1
-2
未找到文件。
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java
浏览文件 @
b9ab8957
...
...
@@ -129,7 +129,7 @@ public abstract class AbstractAutoProxyCreator extends ProxyProcessorSupport
private
BeanFactory
beanFactory
;
private
final
Set
<
String
>
targetSourcedBeans
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
16
));
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
16
));
private
final
Set
<
Object
>
earlyProxyReferences
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
16
));
...
...
spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
浏览文件 @
b9ab8957
...
...
@@ -58,7 +58,7 @@ public abstract class BeanUtils {
private
static
final
Log
logger
=
LogFactory
.
getLog
(
BeanUtils
.
class
);
private
static
final
Set
<
Class
<?>>
unknownEditorTypes
=
Collections
.
newSetFromMap
(
new
ConcurrentReferenceHashMap
<
Class
<?>,
Boolean
>(
64
));
Collections
.
newSetFromMap
(
new
ConcurrentReferenceHashMap
<>(
64
));
/**
...
...
spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
浏览文件 @
b9ab8957
...
...
@@ -107,7 +107,7 @@ public class CachedIntrospectionResults {
* accept classes from, even if the classes do not qualify as cache-safe.
*/
static
final
Set
<
ClassLoader
>
acceptedClassLoaders
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
ClassLoader
,
Boolean
>(
16
));
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
16
));
/**
* Map keyed by Class containing CachedIntrospectionResults, strongly held.
...
...
spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java
浏览文件 @
b9ab8957
...
...
@@ -119,8 +119,7 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean
protected
final
Log
logger
=
LogFactory
.
getLog
(
getClass
());
private
final
Set
<
Class
<?
extends
Annotation
>>
autowiredAnnotationTypes
=
new
LinkedHashSet
<>();
private
final
Set
<
Class
<?
extends
Annotation
>>
autowiredAnnotationTypes
=
new
LinkedHashSet
<>();
private
String
requiredParameterName
=
"required"
;
...
...
@@ -130,14 +129,11 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean
private
ConfigurableListableBeanFactory
beanFactory
;
private
final
Set
<
String
>
lookupMethodsChecked
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
256
));
private
final
Set
<
String
>
lookupMethodsChecked
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
256
));
private
final
Map
<
Class
<?>,
Constructor
<?>[]>
candidateConstructorsCache
=
new
ConcurrentHashMap
<>(
256
);
private
final
Map
<
Class
<?>,
Constructor
<?>[]>
candidateConstructorsCache
=
new
ConcurrentHashMap
<>(
256
);
private
final
Map
<
String
,
InjectionMetadata
>
injectionMetadataCache
=
new
ConcurrentHashMap
<>(
256
);
private
final
Map
<
String
,
InjectionMetadata
>
injectionMetadataCache
=
new
ConcurrentHashMap
<>(
256
);
/**
...
...
spring-beans/src/main/java/org/springframework/beans/factory/annotation/RequiredAnnotationBeanPostProcessor.java
浏览文件 @
b9ab8957
...
...
@@ -93,8 +93,7 @@ public class RequiredAnnotationBeanPostProcessor extends InstantiationAwareBeanP
/**
* Cache for validated bean names, skipping re-validation for the same bean
*/
private
final
Set
<
String
>
validatedBeanNames
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
64
));
private
final
Set
<
String
>
validatedBeanNames
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
64
));
/**
...
...
spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyOverrideConfigurer.java
浏览文件 @
b9ab8957
/*
* Copyright 2002-201
3
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.
...
...
@@ -74,7 +74,7 @@ public class PropertyOverrideConfigurer extends PropertyResourceConfigurer {
/**
* Contains names of beans that have overrides
*/
private
final
Set
<
String
>
beanNames
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
16
));
private
final
Set
<
String
>
beanNames
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
16
));
/**
...
...
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java
浏览文件 @
b9ab8957
...
...
@@ -160,12 +160,10 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
private
SecurityContextProvider
securityContextProvider
;
/** Map from bean name to merged RootBeanDefinition */
private
final
Map
<
String
,
RootBeanDefinition
>
mergedBeanDefinitions
=
new
ConcurrentHashMap
<>(
256
);
private
final
Map
<
String
,
RootBeanDefinition
>
mergedBeanDefinitions
=
new
ConcurrentHashMap
<>(
256
);
/** Names of beans that have already been created at least once */
private
final
Set
<
String
>
alreadyCreated
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
256
));
private
final
Set
<
String
>
alreadyCreated
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
256
));
/** Names of beans that are currently in creation */
private
final
ThreadLocal
<
Object
>
prototypesCurrentlyInCreation
=
...
...
spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java
浏览文件 @
b9ab8957
...
...
@@ -96,11 +96,11 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
/** Names of beans that are currently in creation */
private
final
Set
<
String
>
singletonsCurrentlyInCreation
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
16
));
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
16
));
/** Names of beans currently excluded from in creation checks */
private
final
Set
<
String
>
inCreationCheckExclusions
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
16
));
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
16
));
/** List of suppressed Exceptions, available for associating related causes */
private
Set
<
Exception
>
suppressedExceptions
;
...
...
spring-context/src/main/java/org/springframework/context/event/EventListenerMethodProcessor.java
浏览文件 @
b9ab8957
...
...
@@ -60,8 +60,7 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
private
final
EventExpressionEvaluator
evaluator
=
new
EventExpressionEvaluator
();
private
final
Set
<
Class
<?>>
nonAnnotatedClasses
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
Class
<?>,
Boolean
>(
64
));
private
final
Set
<
Class
<?>>
nonAnnotatedClasses
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
64
));
@Override
...
...
spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java
浏览文件 @
b9ab8957
...
...
@@ -109,11 +109,9 @@ public class ScheduledAnnotationBeanPostProcessor implements DestructionAwareBea
private
final
ScheduledTaskRegistrar
registrar
=
new
ScheduledTaskRegistrar
();
private
final
Set
<
Class
<?>>
nonAnnotatedClasses
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
Class
<?>,
Boolean
>(
64
));
private
final
Set
<
Class
<?>>
nonAnnotatedClasses
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
64
));
private
final
Map
<
Object
,
Set
<
ScheduledTask
>>
scheduledTasks
=
new
ConcurrentHashMap
<>(
16
);
private
final
Map
<
Object
,
Set
<
ScheduledTask
>>
scheduledTasks
=
new
ConcurrentHashMap
<>(
16
);
@Override
...
...
spring-core/src/main/java/org/springframework/core/DecoratingClassLoader.java
浏览文件 @
b9ab8957
...
...
@@ -38,11 +38,9 @@ public abstract class DecoratingClassLoader extends ClassLoader {
}
private
final
Set
<
String
>
excludedPackages
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
8
));
private
final
Set
<
String
>
excludedPackages
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
8
));
private
final
Set
<
String
>
excludedClasses
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
8
));
private
final
Set
<
String
>
excludedClasses
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
8
));
/**
...
...
spring-jdbc/src/main/java/org/springframework/jdbc/core/StatementCreatorUtils.java
浏览文件 @
b9ab8957
...
...
@@ -82,7 +82,7 @@ public abstract class StatementCreatorUtils {
static
final
boolean
shouldIgnoreGetParameterType
=
SpringProperties
.
getFlag
(
IGNORE_GETPARAMETERTYPE_PROPERTY_NAME
);
static
final
Set
<
String
>
driversWithNoSupportForGetParameterType
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
1
));
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
1
));
private
static
final
Log
logger
=
LogFactory
.
getLog
(
StatementCreatorUtils
.
class
);
...
...
spring-jms/src/main/java/org/springframework/jms/annotation/JmsListenerAnnotationBeanPostProcessor.java
浏览文件 @
b9ab8957
...
...
@@ -99,14 +99,14 @@ public class JmsListenerAnnotationBeanPostProcessor
private
StringValueResolver
embeddedValueResolver
;
private
final
MessageHandlerMethodFactoryAdapter
messageHandlerMethodFactory
=
new
MessageHandlerMethodFactoryAdapter
();
private
final
MessageHandlerMethodFactoryAdapter
messageHandlerMethodFactory
=
new
MessageHandlerMethodFactoryAdapter
();
private
final
JmsListenerEndpointRegistrar
registrar
=
new
JmsListenerEndpointRegistrar
();
private
final
AtomicInteger
counter
=
new
AtomicInteger
();
private
final
Set
<
Class
<?>>
nonAnnotatedClasses
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
Class
<?>,
Boolean
>(
64
));
private
final
Set
<
Class
<?>>
nonAnnotatedClasses
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
64
));
@Override
...
...
spring-web/src/main/java/org/springframework/web/method/annotation/SessionAttributesHandler.java
浏览文件 @
b9ab8957
...
...
@@ -51,8 +51,7 @@ public class SessionAttributesHandler {
private
final
Set
<
Class
<?>>
attributeTypes
=
new
HashSet
<>();
private
final
Set
<
String
>
knownAttributeNames
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
String
,
Boolean
>(
4
));
private
final
Set
<
String
>
knownAttributeNames
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<>(
4
));
private
final
SessionAttributeStore
sessionAttributeStore
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录