Skip to content

Commit 4a7c24d

Browse files
committed
Refine null-safety
See gh-32475
1 parent d955549 commit 4a7c24d

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

spring-aop/src/main/java/org/springframework/aop/target/LazyInitTargetSource.java

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public class LazyInitTargetSource extends AbstractBeanFactoryBasedTargetSource {
6565

6666

6767
@Override
68-
@Nullable
6968
public synchronized Object getTarget() throws BeansException {
7069
if (this.target == null) {
7170
this.target = getBeanFactory().getBean(getTargetBeanName());

spring-beans/src/main/java/org/springframework/beans/factory/config/AbstractFactoryBean.java

-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public void afterPropertiesSet() throws Exception {
151151
* @see #getEarlySingletonInterfaces()
152152
*/
153153
@Override
154-
@Nullable
155154
public final T getObject() throws Exception {
156155
if (isSingleton()) {
157156
return (this.initialized ? this.singletonInstance : getEarlySingletonInstance());

spring-expression/src/main/java/org/springframework/expression/ExpressionException.java

-4
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ public final int getPosition() {
123123
* @see #getSimpleMessage()
124124
* @see java.lang.Throwable#getMessage()
125125
*/
126-
@Override
127-
@Nullable
128126
public String getMessage() {
129127
return toDetailedString();
130128
}
@@ -133,7 +131,6 @@ public String getMessage() {
133131
* Return a detailed description of this exception, including the expression
134132
* String and position (if available) as well as the actual exception message.
135133
*/
136-
@Nullable
137134
public String toDetailedString() {
138135
if (this.expressionString != null) {
139136
StringBuilder output = new StringBuilder();
@@ -158,7 +155,6 @@ public String toDetailedString() {
158155
* that caused the failure.
159156
* @since 4.0
160157
*/
161-
@Nullable
162158
public String getSimpleMessage() {
163159
return super.getMessage();
164160
}

0 commit comments

Comments
 (0)