diff --git a/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java b/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java
index a3d0d725551..a0f8312aa77 100644
--- a/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java
+++ b/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2013 the original author or authors.
+ * Copyright 2002-2014 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.
@@ -139,7 +139,7 @@ public class AnnotationBeanNameGenerator implements BeanNameGenerator {
*
The default implementation simply builds a decapitalized version
* of the short class name: e.g. "mypackage.MyJdbcDao" -> "myJdbcDao".
*
Note that inner classes will thus have names of the form
- * "outerClassName.innerClassName", which because of the period in the
+ * "outerClassName.InnerClassName", which because of the period in the
* name may be an issue if you are autowiring by name.
* @param definition the bean definition to build a bean name for
* @return the default bean name (never {@code null})
diff --git a/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java b/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java
index ea26af6fb88..fcc6818f15e 100644
--- a/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java
+++ b/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java
@@ -240,9 +240,8 @@ class ConfigurationClassEnhancer {
/**
* Enhance a {@link Bean @Bean} method to check the supplied BeanFactory for the
* existence of this bean object.
- * @throws Throwable as a catch-all for any exception that may be thrown when
- * invoking the super implementation of the proxied method i.e., the actual
- * {@code @Bean} method.
+ * @throws Throwable as a catch-all for any exception that may be thrown when invoking the
+ * super implementation of the proxied method i.e., the actual {@code @Bean} method
*/
public Object intercept(Object enhancedConfigInstance, Method beanMethod, Object[] beanMethodArgs,
MethodProxy cglibMethodProxy) throws Throwable {
diff --git a/spring-context/src/main/java/org/springframework/context/event/AbstractApplicationEventMulticaster.java b/spring-context/src/main/java/org/springframework/context/event/AbstractApplicationEventMulticaster.java
index 6b847f49463..87d7c38f59f 100644
--- a/spring-context/src/main/java/org/springframework/context/event/AbstractApplicationEventMulticaster.java
+++ b/spring-context/src/main/java/org/springframework/context/event/AbstractApplicationEventMulticaster.java
@@ -227,7 +227,7 @@ public abstract class AbstractApplicationEventMulticaster
* for the given event type
*/
protected boolean supportsEvent(
- ApplicationListener listener, Class extends ApplicationEvent> eventType, Class sourceType) {
+ ApplicationListener listener, Class extends ApplicationEvent> eventType, Class> sourceType) {
SmartApplicationListener smartListener = (listener instanceof SmartApplicationListener ?
(SmartApplicationListener) listener : new GenericApplicationListenerAdapter(listener));
diff --git a/spring-context/src/main/java/org/springframework/jmx/access/MBeanClientInterceptor.java b/spring-context/src/main/java/org/springframework/jmx/access/MBeanClientInterceptor.java
index 36894535ed3..158d0f75bc7 100644
--- a/spring-context/src/main/java/org/springframework/jmx/access/MBeanClientInterceptor.java
+++ b/spring-context/src/main/java/org/springframework/jmx/access/MBeanClientInterceptor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2014 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.
@@ -107,7 +107,7 @@ public class MBeanClientInterceptor
private boolean useStrictCasing = true;
- private Class managementInterface;
+ private Class> managementInterface;
private ClassLoader beanClassLoader = ClassUtils.getDefaultClassLoader();
@@ -215,7 +215,7 @@ public class MBeanClientInterceptor
* setters and getters for MBean attributes and conventional Java methods
* for MBean operations.
*/
- public void setManagementInterface(Class managementInterface) {
+ public void setManagementInterface(Class> managementInterface) {
this.managementInterface = managementInterface;
}
@@ -223,7 +223,7 @@ public class MBeanClientInterceptor
* Return the management interface of the target MBean,
* or {@code null} if none specified.
*/
- protected final Class getManagementInterface() {
+ protected final Class> getManagementInterface() {
return this.managementInterface;
}
@@ -262,7 +262,7 @@ public class MBeanClientInterceptor
this.invocationHandler = null;
if (this.useStrictCasing) {
// Use the JDK's own MBeanServerInvocationHandler,
- // in particular for native MXBean support on Java 6.
+ // in particular for native MXBean support on Java 6+.
if (JmxUtils.isMXBeanSupportAvailable()) {
this.invocationHandler =
new MBeanServerInvocationHandler(this.serverToUse, this.objectName,
@@ -297,7 +297,7 @@ public class MBeanClientInterceptor
MBeanOperationInfo[] operationInfo = info.getOperations();
this.allowedOperations = new HashMap(operationInfo.length);
for (MBeanOperationInfo infoEle : operationInfo) {
- Class[] paramTypes = JmxUtils.parameterInfoToTypes(infoEle.getSignature(), this.beanClassLoader);
+ Class>[] paramTypes = JmxUtils.parameterInfoToTypes(infoEle.getSignature(), this.beanClassLoader);
this.allowedOperations.put(new MethodCacheKey(infoEle.getName(), paramTypes), infoEle);
}
}
@@ -531,7 +531,7 @@ public class MBeanClientInterceptor
* is necessary
*/
protected Object convertResultValueIfNecessary(Object result, MethodParameter parameter) {
- Class targetClass = parameter.getParameterType();
+ Class> targetClass = parameter.getParameterType();
try {
if (result == null) {
return null;
@@ -549,7 +549,7 @@ public class MBeanClientInterceptor
return convertDataArrayToTargetArray(array, targetClass);
}
else if (Collection.class.isAssignableFrom(targetClass)) {
- Class elementType = GenericCollectionTypeResolver.getCollectionParameterType(parameter);
+ Class> elementType = GenericCollectionTypeResolver.getCollectionParameterType(parameter);
if (elementType != null) {
return convertDataArrayToTargetCollection(array, targetClass, elementType);
}
@@ -565,7 +565,7 @@ public class MBeanClientInterceptor
return convertDataArrayToTargetArray(array, targetClass);
}
else if (Collection.class.isAssignableFrom(targetClass)) {
- Class elementType = GenericCollectionTypeResolver.getCollectionParameterType(parameter);
+ Class> elementType = GenericCollectionTypeResolver.getCollectionParameterType(parameter);
if (elementType != null) {
return convertDataArrayToTargetCollection(array, targetClass, elementType);
}
@@ -581,8 +581,8 @@ public class MBeanClientInterceptor
}
}
- private Object convertDataArrayToTargetArray(Object[] array, Class targetClass) throws NoSuchMethodException {
- Class targetType = targetClass.getComponentType();
+ private Object convertDataArrayToTargetArray(Object[] array, Class> targetClass) throws NoSuchMethodException {
+ Class> targetType = targetClass.getComponentType();
Method fromMethod = targetType.getMethod("from", array.getClass().getComponentType());
Object resultArray = Array.newInstance(targetType, array.length);
for (int i = 0; i < array.length; i++) {
@@ -592,11 +592,11 @@ public class MBeanClientInterceptor
}
@SuppressWarnings("unchecked")
- private Collection convertDataArrayToTargetCollection(Object[] array, Class collectionType, Class elementType)
+ private Collection> convertDataArrayToTargetCollection(Object[] array, Class> collectionType, Class> elementType)
throws NoSuchMethodException {
Method fromMethod = elementType.getMethod("from", array.getClass().getComponentType());
- Collection resultColl = CollectionFactory.createCollection(collectionType, Array.getLength(array));
+ Collection