Skip to content

Commit d213522

Browse files
committed
Polishing
1 parent 9571064 commit d213522

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

spring-aop/src/main/java/org/springframework/aop/scope/ScopedProxyBeanRegistrationAotProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -55,8 +55,8 @@ class ScopedProxyBeanRegistrationAotProcessor implements BeanRegistrationAotProc
5555

5656
@Override
5757
public BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registeredBean) {
58-
Class<?> beanType = registeredBean.getBeanType().toClass();
59-
if (beanType.equals(ScopedProxyFactoryBean.class)) {
58+
Class<?> beanClass = registeredBean.getBeanClass();
59+
if (beanClass.equals(ScopedProxyFactoryBean.class)) {
6060
String targetBeanName = getTargetBeanName(registeredBean.getMergedBeanDefinition());
6161
BeanDefinition targetBeanDefinition =
6262
getTargetBeanDefinition(registeredBean.getBeanFactory(), targetBeanName);

spring-core/src/main/java/org/springframework/util/function/ThrowingSupplier.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -20,8 +20,7 @@
2020
import java.util.function.Supplier;
2121

2222
/**
23-
* A {@link Supplier} that allows invocation of code that throws a checked
24-
* exception.
23+
* A {@link Supplier} that allows invocation of code that throws a checked exception.
2524
*
2625
* @author Stephane Nicoll
2726
* @author Phillip Webb
@@ -76,17 +75,14 @@ default T get(BiFunction<String, Exception, RuntimeException> exceptionWrapper)
7675
*/
7776
default ThrowingSupplier<T> throwing(BiFunction<String, Exception, RuntimeException> exceptionWrapper) {
7877
return new ThrowingSupplier<>() {
79-
8078
@Override
8179
public T getWithException() throws Exception {
8280
return ThrowingSupplier.this.getWithException();
8381
}
84-
8582
@Override
8683
public T get() {
8784
return get(exceptionWrapper);
8885
}
89-
9086
};
9187
}
9288

spring-expression/src/main/java/org/springframework/expression/spel/ast/FunctionReference.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -144,7 +144,7 @@ public String toStringAST() {
144144
for (int i = 0; i < getChildCount(); i++) {
145145
sj.add(getChild(i).toStringAST());
146146
}
147-
return '#' + this.name + sj.toString();
147+
return '#' + this.name + sj;
148148
}
149149

150150
/**

0 commit comments

Comments
 (0)