Skip to content

Commit cb4fa37

Browse files
committed
Merge pull request #1979 from rupertw
* pr/1979: Fix formatting
2 parents ff7ccf0 + 9d5aced commit cb4fa37

14 files changed

+24
-24
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public NoUniqueBeanDefinitionException(Class<?> type, int numberOfBeansFound, St
6060
public NoUniqueBeanDefinitionException(Class<?> type, Collection<String> beanNamesFound) {
6161
super(type, "expected single matching bean but found " + beanNamesFound.size() + ": " +
6262
StringUtils.collectionToCommaDelimitedString(beanNamesFound));
63-
this.numberOfBeansFound = beanNamesFound.size();
63+
this.numberOfBeansFound = beanNamesFound.size();
6464
this.beanNamesFound = beanNamesFound;
6565
}
6666

@@ -82,7 +82,7 @@ public NoUniqueBeanDefinitionException(Class<?> type, String... beanNamesFound)
8282
public NoUniqueBeanDefinitionException(ResolvableType type, Collection<String> beanNamesFound) {
8383
super(type, "expected single matching bean but found " + beanNamesFound.size() + ": " +
8484
StringUtils.collectionToCommaDelimitedString(beanNamesFound));
85-
this.numberOfBeansFound = beanNamesFound.size();
85+
this.numberOfBeansFound = beanNamesFound.size();
8686
this.beanNamesFound = beanNamesFound;
8787
}
8888

spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ protected void inject(Object bean, @Nullable String beanName, @Nullable Property
707707
ReflectionUtils.makeAccessible(method);
708708
method.invoke(bean, arguments);
709709
}
710-
catch (InvocationTargetException ex){
710+
catch (InvocationTargetException ex) {
711711
throw ex.getTargetException();
712712
}
713713
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 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.
@@ -59,7 +59,7 @@ public Object getObject(String key) {
5959
if (this.beanFactory.containsBean(key)) {
6060
return this.beanFactory.getBean(key);
6161
}
62-
else if (this.scope != null){
62+
else if (this.scope != null) {
6363
return this.scope.resolveContextualObject(key);
6464
}
6565
else {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 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.
@@ -121,7 +121,7 @@ protected String resolvePlaceholder(String placeholder, Properties props) {
121121
@Nullable
122122
protected String resolvePlaceholder(@Nullable String path, String key, Preferences preferences) {
123123
if (path != null) {
124-
// Do not create the node if it does not exist...
124+
// Do not create the node if it does not exist...
125125
try {
126126
if (preferences.nodeExists(path)) {
127127
return preferences.node(path).get(key, null);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected void processKey(ConfigurableListableBeanFactory factory, String key, S
132132
"': expected 'beanName" + this.beanNameSeparator + "property'");
133133
}
134134
String beanName = key.substring(0, separatorIndex);
135-
String beanProperty = key.substring(separatorIndex+1);
135+
String beanProperty = key.substring(separatorIndex + 1);
136136
this.beanNames.add(beanName);
137137
applyPropertyValue(factory, beanName, beanProperty, value);
138138
if (logger.isDebugEnabled()) {

spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ protected BeanWrapper createBeanInstance(String beanName, RootBeanDefinition mbd
11221122
return obtainFromSupplier(instanceSupplier, beanName);
11231123
}
11241124

1125-
if (mbd.getFactoryMethodName() != null) {
1125+
if (mbd.getFactoryMethodName() != null) {
11261126
return instantiateUsingFactoryMethod(beanName, mbd, args);
11271127
}
11281128

@@ -1149,7 +1149,7 @@ protected BeanWrapper createBeanInstance(String beanName, RootBeanDefinition mbd
11491149
// Candidate constructors for autowiring?
11501150
Constructor<?>[] ctors = determineConstructorsFromBeanPostProcessors(beanClass, beanName);
11511151
if (ctors != null || mbd.getResolvedAutowireMode() == AUTOWIRE_CONSTRUCTOR ||
1152-
mbd.hasConstructorArgumentValues() || !ObjectUtils.isEmpty(args)) {
1152+
mbd.hasConstructorArgumentValues() || !ObjectUtils.isEmpty(args)) {
11531153
return autowireConstructor(beanName, mbd, ctors, args);
11541154
}
11551155

spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ public Map<String, Object> getBeansWithAnnotation(Class<? extends Annotation> an
661661
@Override
662662
@Nullable
663663
public <A extends Annotation> A findAnnotationOnBean(String beanName, Class<A> annotationType)
664-
throws NoSuchBeanDefinitionException{
664+
throws NoSuchBeanDefinitionException {
665665

666666
A ann = null;
667667
Class<?> beanType = getType(beanName);

spring-beans/src/main/java/org/springframework/beans/factory/support/PropertiesBeanDefinitionReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ else if (property.endsWith(REF_SUFFIX)) {
510510
* Reads the value of the entry. Correctly interprets bean references for
511511
* values that are prefixed with an asterisk.
512512
*/
513-
private Object readValue(Map.Entry<? ,?> entry) {
513+
private Object readValue(Map.Entry<?, ?> entry) {
514514
Object val = entry.getValue();
515515
if (val instanceof String) {
516516
String strVal = (String) val;

spring-beans/src/main/java/org/springframework/beans/factory/support/SimpleInstantiationStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public Object instantiate(RootBeanDefinition bd, @Nullable String beanName, Bean
7575
(PrivilegedExceptionAction<Constructor<?>>) clazz::getDeclaredConstructor);
7676
}
7777
else {
78-
constructorToUse = clazz.getDeclaredConstructor();
78+
constructorToUse = clazz.getDeclaredConstructor();
7979
}
8080
bd.resolvedConstructorOrFactoryMethod = constructorToUse;
8181
}

spring-beans/src/main/java/org/springframework/beans/factory/support/StaticListableBeanFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public Map<String, Object> getBeansWithAnnotation(Class<? extends Annotation> an
432432
@Override
433433
@Nullable
434434
public <A extends Annotation> A findAnnotationOnBean(String beanName, Class<A> annotationType)
435-
throws NoSuchBeanDefinitionException{
435+
throws NoSuchBeanDefinitionException {
436436

437437
Class<?> beanType = getType(beanName);
438438
return (beanType != null ? AnnotationUtils.findAnnotation(beanType, annotationType) : null);

0 commit comments

Comments
 (0)