Skip to content

Commit efb114d

Browse files
committed
Polishing
1 parent bfbd25a commit efb114d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public interface ConfigurablePropertyAccessor extends PropertyAccessor, Property
6161
* <p>If {@code true}, a {@code null} path location will be populated
6262
* with a default object value and traversed instead of resulting in a
6363
* {@link NullValueInNestedPathException}.
64-
* <p>Default is {@code false} on a plain instance.
64+
* <p>Default is {@code false} on a plain PropertyAccessor instance.
6565
*/
6666
void setAutoGrowNestedPaths(boolean autoGrowNestedPaths);
6767

spring-beans/src/test/java/org/springframework/beans/BeanWrapperAutoGrowingTests.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 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.
@@ -31,15 +31,17 @@
3131
*/
3232
public class BeanWrapperAutoGrowingTests {
3333

34-
Bean bean = new Bean();
34+
private final Bean bean = new Bean();
35+
36+
private final BeanWrapperImpl wrapper = new BeanWrapperImpl(bean);
3537

36-
BeanWrapperImpl wrapper = new BeanWrapperImpl(bean);
3738

3839
@Before
3940
public void setUp() {
4041
wrapper.setAutoGrowNestedPaths(true);
4142
}
4243

44+
4345
@Test
4446
public void getPropertyValueNullValueInNestedPath() {
4547
assertNull(wrapper.getPropertyValue("nested.prop"));
@@ -51,7 +53,7 @@ public void setPropertyValueNullValueInNestedPath() {
5153
assertEquals("test", bean.getNested().getProp());
5254
}
5355

54-
@Test(expected=NullValueInNestedPathException.class)
56+
@Test(expected = NullValueInNestedPathException.class)
5557
public void getPropertyValueNullValueInNestedPathNoDefaultConstructor() {
5658
wrapper.getPropertyValue("nestedNoConstructor.prop");
5759
}
@@ -139,7 +141,7 @@ public void getPropertyValueAutoGrowMultiDimensionalList() {
139141
assertThat(bean.getMultiList().get(0).get(0), instanceOf(Bean.class));
140142
}
141143

142-
@Test(expected=InvalidPropertyException.class)
144+
@Test(expected = InvalidPropertyException.class)
143145
public void getPropertyValueAutoGrowListNotParameterized() {
144146
wrapper.getPropertyValue("listNotParameterized[0]");
145147
}

spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public Class<?> getObjectType() {
141141
* <p>Returns primitive types as-is.
142142
* <p>See {@link #getObjectType()} for a variation of this operation that
143143
* resolves primitive types to their corresponding Object types if necessary.
144-
* @return the type, or {@code null}
144+
* @return the type, or {@code null} if it cannot be determined
145145
* @see #getObjectType()
146146
*/
147147
public Class<?> getType() {

0 commit comments

Comments
 (0)