Replace space indentation with tabs
Issue: SPR-10127
This commit is contained in:
committed by
Chris Beams
parent
1762157ad1
commit
2cf45bad86
@@ -103,7 +103,7 @@ public abstract class AbstractPropertyAccessor extends TypeConverterSupport impl
|
||||
}
|
||||
|
||||
|
||||
// Redefined with public visibility.
|
||||
// Redefined with public visibility.
|
||||
@Override
|
||||
public Class getPropertyType(String propertyPath) {
|
||||
return null;
|
||||
|
||||
@@ -738,7 +738,7 @@ public class BeanWrapperImpl extends AbstractPropertyAccessor implements BeanWra
|
||||
}
|
||||
}
|
||||
else {
|
||||
value = readMethod.invoke(object, (Object[]) null);
|
||||
value = readMethod.invoke(object, (Object[]) null);
|
||||
}
|
||||
|
||||
if (tokens.keys != null) {
|
||||
|
||||
@@ -64,7 +64,7 @@ public class DirectFieldAccessor extends AbstractPropertyAccessor {
|
||||
if (fieldMap.containsKey(field.getName())) {
|
||||
// ignore superclass declarations of fields already found in a subclass
|
||||
}
|
||||
else {
|
||||
else {
|
||||
fieldMap.put(field.getName(), field);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ public interface PropertyAccessor {
|
||||
* @see #setPropertyValues(PropertyValues, boolean, boolean)
|
||||
*/
|
||||
void setPropertyValues(PropertyValues pvs, boolean ignoreUnknown)
|
||||
throws BeansException;
|
||||
throws BeansException;
|
||||
|
||||
/**
|
||||
* Perform a batch update with full control over behavior.
|
||||
@@ -213,6 +213,6 @@ public interface PropertyAccessor {
|
||||
* successfully updated.
|
||||
*/
|
||||
void setPropertyValues(PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid)
|
||||
throws BeansException;
|
||||
throws BeansException;
|
||||
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ public class FieldRetrievingFactoryBean
|
||||
if (this.targetClass == null && this.targetObject == null) {
|
||||
if (this.targetField != null) {
|
||||
throw new IllegalArgumentException(
|
||||
"Specify targetClass or targetObject in combination with targetField");
|
||||
"Specify targetClass or targetObject in combination with targetField");
|
||||
}
|
||||
|
||||
// If no other property specified, consider bean name as static field expression.
|
||||
|
||||
@@ -76,9 +76,9 @@ public class PreferencesPlaceholderConfigurer extends PropertyPlaceholderConfigu
|
||||
*/
|
||||
public void afterPropertiesSet() {
|
||||
this.systemPrefs = (this.systemTreePath != null) ?
|
||||
Preferences.systemRoot().node(this.systemTreePath) : Preferences.systemRoot();
|
||||
Preferences.systemRoot().node(this.systemTreePath) : Preferences.systemRoot();
|
||||
this.userPrefs = (this.userTreePath != null) ?
|
||||
Preferences.userRoot().node(this.userTreePath) : Preferences.userRoot();
|
||||
Preferences.userRoot().node(this.userTreePath) : Preferences.userRoot();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -162,15 +162,15 @@ public class PropertyPathFactoryBean implements FactoryBean<Object>, BeanNameAwa
|
||||
if (this.targetBeanWrapper == null && this.targetBeanName == null) {
|
||||
if (this.propertyPath != null) {
|
||||
throw new IllegalArgumentException(
|
||||
"Specify 'targetObject' or 'targetBeanName' in combination with 'propertyPath'");
|
||||
"Specify 'targetObject' or 'targetBeanName' in combination with 'propertyPath'");
|
||||
}
|
||||
|
||||
// No other properties specified: check bean name.
|
||||
int dotIndex = this.beanName.indexOf('.');
|
||||
if (dotIndex == -1) {
|
||||
throw new IllegalArgumentException(
|
||||
"Neither 'targetObject' nor 'targetBeanName' specified, and PropertyPathFactoryBean " +
|
||||
"bean name '" + this.beanName + "' does not follow 'beanName.property' syntax");
|
||||
"Neither 'targetObject' nor 'targetBeanName' specified, and PropertyPathFactoryBean " +
|
||||
"bean name '" + this.beanName + "' does not follow 'beanName.property' syntax");
|
||||
}
|
||||
this.targetBeanName = this.beanName.substring(0, dotIndex);
|
||||
this.propertyPath = this.beanName.substring(dotIndex + 1);
|
||||
|
||||
@@ -80,7 +80,7 @@ class BeanDefinitionResource extends AbstractResource {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return (obj == this ||
|
||||
(obj instanceof BeanDefinitionResource &&
|
||||
(obj instanceof BeanDefinitionResource &&
|
||||
((BeanDefinitionResource) obj).beanDefinition.equals(this.beanDefinition)));
|
||||
}
|
||||
|
||||
|
||||
@@ -339,7 +339,7 @@ class BeanDefinitionValueResolver {
|
||||
Object resolved = Array.newInstance(elementType, ml.size());
|
||||
for (int i = 0; i < ml.size(); i++) {
|
||||
Array.set(resolved, i,
|
||||
resolveValueIfNecessary(new KeyedArgName(argName, i), ml.get(i)));
|
||||
resolveValueIfNecessary(new KeyedArgName(argName, i), ml.get(i)));
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
@@ -351,7 +351,7 @@ class BeanDefinitionValueResolver {
|
||||
List<Object> resolved = new ArrayList<Object>(ml.size());
|
||||
for (int i = 0; i < ml.size(); i++) {
|
||||
resolved.add(
|
||||
resolveValueIfNecessary(new KeyedArgName(argName, i), ml.get(i)));
|
||||
resolveValueIfNecessary(new KeyedArgName(argName, i), ml.get(i)));
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
|
||||
@@ -744,7 +744,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
||||
TypeConverter converter = (typeConverter != null ? typeConverter : getTypeConverter());
|
||||
return (descriptor.getField() != null ?
|
||||
converter.convertIfNecessary(value, type, descriptor.getField()) :
|
||||
converter.convertIfNecessary(value, type, descriptor.getMethodParameter()));
|
||||
converter.convertIfNecessary(value, type, descriptor.getMethodParameter()));
|
||||
}
|
||||
|
||||
if (type.isArray()) {
|
||||
|
||||
@@ -85,8 +85,8 @@ public class CustomNumberEditor extends PropertyEditorSupport {
|
||||
* @see java.text.NumberFormat#parse
|
||||
* @see java.text.NumberFormat#format
|
||||
*/
|
||||
public CustomNumberEditor(Class<? extends Number> numberClass, NumberFormat numberFormat, boolean allowEmpty)
|
||||
throws IllegalArgumentException {
|
||||
public CustomNumberEditor(Class<? extends Number> numberClass,
|
||||
NumberFormat numberFormat, boolean allowEmpty) throws IllegalArgumentException {
|
||||
|
||||
if (numberClass == null || !Number.class.isAssignableFrom(numberClass)) {
|
||||
throw new IllegalArgumentException("Property class must be a subclass of Number");
|
||||
|
||||
@@ -159,7 +159,8 @@ public class MutableSortDefinition implements SortDefinition, Serializable {
|
||||
}
|
||||
SortDefinition otherSd = (SortDefinition) other;
|
||||
return (getProperty().equals(otherSd.getProperty()) &&
|
||||
isAscending() == otherSd.isAscending() && isIgnoreCase() == otherSd.isIgnoreCase());
|
||||
isAscending() == otherSd.isAscending() &&
|
||||
isIgnoreCase() == otherSd.isIgnoreCase());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user