Skip to content

Commit 26d1c38

Browse files
committed
Polishing
1 parent 345daaa commit 26d1c38

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ void copyPropertiesIgnoresGenericsIfSourceOrTargetHasUnresolvableGenerics() thro
344344
}
345345

346346
@Test // gh-32888
347-
public void copyPropertiesWithGenericCglibCLass() {
347+
public void copyPropertiesWithGenericCglibClass() {
348348
Enhancer enhancer = new Enhancer();
349349
enhancer.setSuperclass(User.class);
350350
enhancer.setCallback((MethodInterceptor) (obj, method, args, proxy) -> proxy.invokeSuper(obj, args));
@@ -934,6 +934,7 @@ private PrivateBeanWithPrivateConstructor() {
934934
private static class Order {
935935

936936
private String id;
937+
937938
private List<String> lineItems;
938939

939940
Order() {
@@ -999,10 +1000,8 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
9991000

10001001
private static class GenericBaseModel<T> {
10011002

1002-
public GenericBaseModel() {
1003-
}
1004-
10051003
private T id;
1004+
10061005
private String name;
10071006

10081007
public T getId() {

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ public static Method findBridgedMethod(Method bridgeMethod) {
7979
* method has been generated at the same class hierarchy level (a known difference
8080
* between the Eclipse compiler and regular javac).
8181
* @param bridgeMethod the method to introspect against the given target class
82-
* @param targetClass the target class to find methods on
83-
* @return the original method (either the bridged method or the passed-in method
84-
* if no more specific one could be found)
82+
* @param targetClass the target class to find the most specific method on
83+
* @return the most specific method corresponding to the given bridge method
84+
* (can be the original method if no more specific one could be found)
8585
* @since 6.1.3
8686
* @see #findBridgedMethod
8787
* @see org.springframework.util.ClassUtils#getMostSpecificMethod

0 commit comments

Comments
 (0)