Skip to content

Commit d3c0e75

Browse files
committed
Polishing
1 parent 9be5404 commit d3c0e75

File tree

15 files changed

+50
-50
lines changed

15 files changed

+50
-50
lines changed

spring-beans/src/main/java/org/springframework/beans/AbstractPropertyAccessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2014 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.
@@ -105,7 +105,7 @@ public void setPropertyValues(PropertyValues pvs, boolean ignoreUnknown, boolean
105105

106106
// Redefined with public visibility.
107107
@Override
108-
public Class getPropertyType(String propertyPath) {
108+
public Class<?> getPropertyType(String propertyPath) {
109109
return null;
110110
}
111111

@@ -127,7 +127,7 @@ public Class getPropertyType(String propertyPath) {
127127
* @throws InvalidPropertyException if there is no such property or
128128
* if the property isn't writable
129129
* @throws PropertyAccessException if the property was valid but the
130-
* accessor method failed or a type mismatch occured
130+
* accessor method failed or a type mismatch occurred
131131
*/
132132
public abstract void setPropertyValue(String propertyName, Object value) throws BeansException;
133133

spring-beans/src/main/java/org/springframework/beans/PropertyAccessor.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 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.
@@ -86,7 +86,7 @@ public interface PropertyAccessor {
8686
* @throws PropertyAccessException if the property was valid but the
8787
* accessor method failed
8888
*/
89-
Class getPropertyType(String propertyName) throws BeansException;
89+
Class<?> getPropertyType(String propertyName) throws BeansException;
9090

9191
/**
9292
* Return a type descriptor for the specified property:
@@ -120,7 +120,7 @@ public interface PropertyAccessor {
120120
* @throws InvalidPropertyException if there is no such property or
121121
* if the property isn't writable
122122
* @throws PropertyAccessException if the property was valid but the
123-
* accessor method failed or a type mismatch occured
123+
* accessor method failed or a type mismatch occurred
124124
*/
125125
void setPropertyValue(String propertyName, Object value) throws BeansException;
126126

@@ -130,7 +130,7 @@ public interface PropertyAccessor {
130130
* @throws InvalidPropertyException if there is no such property or
131131
* if the property isn't writable
132132
* @throws PropertyAccessException if the property was valid but the
133-
* accessor method failed or a type mismatch occured
133+
* accessor method failed or a type mismatch occurred
134134
*/
135135
void setPropertyValue(PropertyValue pv) throws BeansException;
136136

@@ -144,7 +144,7 @@ public interface PropertyAccessor {
144144
* @throws InvalidPropertyException if there is no such property or
145145
* if the property isn't writable
146146
* @throws PropertyBatchUpdateException if one or more PropertyAccessExceptions
147-
* occured for specific properties during the batch update. This exception bundles
147+
* occurred for specific properties during the batch update. This exception bundles
148148
* all individual PropertyAccessExceptions. All other properties will have been
149149
* successfully updated.
150150
*/
@@ -164,7 +164,7 @@ public interface PropertyAccessor {
164164
* @throws InvalidPropertyException if there is no such property or
165165
* if the property isn't writable
166166
* @throws PropertyBatchUpdateException if one or more PropertyAccessExceptions
167-
* occured for specific properties during the batch update. This exception bundles
167+
* occurred for specific properties during the batch update. This exception bundles
168168
* all individual PropertyAccessExceptions. All other properties will have been
169169
* successfully updated.
170170
* @see #setPropertyValues(PropertyValues, boolean, boolean)
@@ -185,7 +185,7 @@ public interface PropertyAccessor {
185185
* @throws InvalidPropertyException if there is no such property or
186186
* if the property isn't writable
187187
* @throws PropertyBatchUpdateException if one or more PropertyAccessExceptions
188-
* occured for specific properties during the batch update. This exception bundles
188+
* occurred for specific properties during the batch update. This exception bundles
189189
* all individual PropertyAccessExceptions. All other properties will have been
190190
* successfully updated.
191191
* @see #setPropertyValues(PropertyValues, boolean, boolean)
@@ -208,7 +208,7 @@ void setPropertyValues(PropertyValues pvs, boolean ignoreUnknown)
208208
* @throws InvalidPropertyException if there is no such property or
209209
* if the property isn't writable
210210
* @throws PropertyBatchUpdateException if one or more PropertyAccessExceptions
211-
* occured for specific properties during the batch update. This exception bundles
211+
* occurred for specific properties during the batch update. This exception bundles
212212
* all individual PropertyAccessExceptions. All other properties will have been
213213
* successfully updated.
214214
*/

spring-beans/src/main/java/org/springframework/beans/PropertyBatchUpdateException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void printStackTrace(PrintWriter pw) {
130130
}
131131

132132
@Override
133-
public boolean contains(Class exType) {
133+
public boolean contains(Class<?> exType) {
134134
if (exType == null) {
135135
return false;
136136
}

spring-beans/src/main/java/org/springframework/beans/factory/BeanCreationException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public String getResourceDescription() {
123123

124124
/**
125125
* Add a related cause to this bean creation exception,
126-
* not being a direct cause of the failure but having occured
126+
* not being a direct cause of the failure but having occurred
127127
* earlier in the creation of the same bean instance.
128128
* @param ex the related cause to add
129129
*/
@@ -185,7 +185,7 @@ public void printStackTrace(PrintWriter pw) {
185185
}
186186

187187
@Override
188-
public boolean contains(Class exClass) {
188+
public boolean contains(Class<?> exClass) {
189189
if (super.contains(exClass)) {
190190
return true;
191191
}

spring-beans/src/main/java/org/springframework/beans/factory/config/AbstractFactoryBean.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 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.
@@ -153,7 +153,7 @@ public final T getObject() throws Exception {
153153
*/
154154
@SuppressWarnings("unchecked")
155155
private T getEarlySingletonInstance() throws Exception {
156-
Class[] ifcs = getEarlySingletonInterfaces();
156+
Class<?>[] ifcs = getEarlySingletonInterfaces();
157157
if (ifcs == null) {
158158
throw new FactoryBeanNotInitializedException(
159159
getClass().getName() + " does not support circular references");
@@ -201,7 +201,7 @@ public void destroy() throws Exception {
201201
* <p>Invoked on initialization of this FactoryBean in case of
202202
* a singleton; else, on each {@link #getObject()} call.
203203
* @return the object returned by this factory
204-
* @throws Exception if an exception occured during object creation
204+
* @throws Exception if an exception occurred during object creation
205205
* @see #getObject()
206206
*/
207207
protected abstract T createInstance() throws Exception;
@@ -218,9 +218,9 @@ public void destroy() throws Exception {
218218
* or {@code null} to indicate a FactoryBeanNotInitializedException
219219
* @see org.springframework.beans.factory.FactoryBeanNotInitializedException
220220
*/
221-
protected Class[] getEarlySingletonInterfaces() {
222-
Class type = getObjectType();
223-
return (type != null && type.isInterface() ? new Class[] {type} : null);
221+
protected Class<?>[] getEarlySingletonInterfaces() {
222+
Class<?> type = getObjectType();
223+
return (type != null && type.isInterface() ? new Class<?>[] {type} : null);
224224
}
225225

226226
/**

spring-beans/src/main/java/org/springframework/beans/factory/config/PropertiesFactoryBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2010 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.
@@ -91,7 +91,7 @@ public Class<Properties> getObjectType() {
9191
* <p>Invoked on initialization of this FactoryBean in case of a
9292
* shared singleton; else, on each {@link #getObject()} call.
9393
* @return the object returned by this factory
94-
* @throws IOException if an exception occured during properties loading
94+
* @throws IOException if an exception occurred during properties loading
9595
* @see #mergeProperties()
9696
*/
9797
protected Properties createProperties() throws IOException {

spring-context/src/main/java/org/springframework/context/annotation/AutoProxyRegistrar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, B
7878
logger.warn(String.format("%s was imported but no annotations were found " +
7979
"having both 'mode' and 'proxyTargetClass' attributes of type " +
8080
"AdviceMode and boolean respectively. This means that auto proxy " +
81-
"creator registration and configuration may not have occured as " +
81+
"creator registration and configuration may not have occurred as " +
8282
"intended, and components may not be proxied as expected. Check to " +
8383
"ensure that %s has been @Import'ed on the same class where these " +
8484
"annotations are declared; otherwise remove the import of %s " +

spring-context/src/main/java/org/springframework/jmx/support/ConnectorServerFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void setDaemon(boolean daemon) {
138138
* the {@code JMXConnectorServer} will be started in a separate thread.
139139
* If the {@code daemon} flag is set to {@code true}, that thread will be
140140
* started as a daemon thread.
141-
* @throws JMException if a problem occured when registering the connector server
141+
* @throws JMException if a problem occurred when registering the connector server
142142
* with the {@code MBeanServer}
143143
* @throws IOException if there is a problem starting the connector server
144144
*/

spring-core/src/main/java/org/springframework/core/NestedRuntimeException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public Throwable getMostSpecificCause() {
110110
* @param exType the exception type to look for
111111
* @return whether there is a nested exception of the specified type
112112
*/
113-
public boolean contains(Class exType) {
113+
public boolean contains(Class<?> exType) {
114114
if (exType == null) {
115115
return false;
116116
}

spring-core/src/main/java/org/springframework/core/env/ConfigurablePropertyResolver.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 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.
@@ -19,18 +19,18 @@
1919
import org.springframework.core.convert.support.ConfigurableConversionService;
2020

2121
/**
22-
* Configuration interface to be implemented by most if not all {@link PropertyResolver
23-
* PropertyResolver} types. Provides facilities for accessing and customizing the
24-
* {@link org.springframework.core.convert.ConversionService ConversionService} used when
25-
* converting property values from one type to another.
22+
* Configuration interface to be implemented by most if not all {@link PropertyResolver}
23+
* types. Provides facilities for accessing and customizing the
24+
* {@link org.springframework.core.convert.ConversionService ConversionService}
25+
* used when converting property values from one type to another.
2626
*
2727
* @author Chris Beams
2828
* @since 3.1
2929
*/
3030
public interface ConfigurablePropertyResolver extends PropertyResolver {
3131

3232
/**
33-
* @return the {@link ConfigurableConversionService} used when performing type
33+
* Return the {@link ConfigurableConversionService} used when performing type
3434
* conversions on properties.
3535
* <p>The configurable nature of the returned conversion service allows for
3636
* the convenient addition and removal of individual {@code Converter} instances:
@@ -46,10 +46,10 @@ public interface ConfigurablePropertyResolver extends PropertyResolver {
4646
/**
4747
* Set the {@link ConfigurableConversionService} to be used when performing type
4848
* conversions on properties.
49-
* <p><strong>Note:</strong> as an alternative to fully replacing the {@code
50-
* ConversionService}, consider adding or removing individual {@code Converter}
51-
* instances by drilling into {@link #getConversionService()} and calling methods
52-
* such as {@code #addConverter}.
49+
* <p><strong>Note:</strong> as an alternative to fully replacing the
50+
* {@code ConversionService}, consider adding or removing individual
51+
* {@code Converter} instances by drilling into {@link #getConversionService()}
52+
* and calling methods such as {@code #addConverter}.
5353
* @see PropertyResolver#getProperty(String, Class)
5454
* @see #getConversionService()
5555
* @see org.springframework.core.convert.converter.ConverterRegistry#addConverter

0 commit comments

Comments
 (0)