Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed May 24, 2024
1 parent 345daaa commit 26d1c38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void copyPropertiesIgnoresGenericsIfSourceOrTargetHasUnresolvableGenerics() thro
}

@Test // gh-32888
public void copyPropertiesWithGenericCglibCLass() {
public void copyPropertiesWithGenericCglibClass() {
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(User.class);
enhancer.setCallback((MethodInterceptor) (obj, method, args, proxy) -> proxy.invokeSuper(obj, args));
Expand Down Expand Up @@ -934,6 +934,7 @@ private PrivateBeanWithPrivateConstructor() {
private static class Order {

private String id;

private List<String> lineItems;

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

private static class GenericBaseModel<T> {

public GenericBaseModel() {
}

private T id;

private String name;

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

0 comments on commit 26d1c38

Please sign in to comment.