Skip to content

Commit 3f34a13

Browse files
committed
Polishing
1 parent fe83003 commit 3f34a13

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

spring-expression/src/main/java/org/springframework/expression/spel/SpelMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public enum SpelMessage {
212212
"No bean resolver registered in the context to resolve access to bean ''{0}''"),
213213

214214
EXCEPTION_DURING_BEAN_RESOLUTION(Kind.ERROR, 1058,
215-
"A problem occurred when trying to resolve bean ''{0}'':''{1}''"),
215+
"A problem occurred when trying to resolve bean ''{0}'': ''{1}''"),
216216

217217
INVALID_BEAN_REFERENCE(Kind.ERROR, 1059,
218218
"@ or & can only be followed by an identifier or a quoted name"),

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -25,8 +25,11 @@
2525
import org.springframework.expression.spel.SpelMessage;
2626

2727
/**
28-
* Represents a bean reference to a type, for example {@code @foo} or {@code @'foo.bar'}.
29-
* For a FactoryBean the syntax {@code &foo} can be used to access the factory itself.
28+
* Represents a reference to a bean, for example {@code @orderService} or
29+
* {@code @'order.service'}.
30+
*
31+
* <p>For a {@link org.springframework.beans.factory.FactoryBean FactoryBean}, the
32+
* syntax {@code &orderServiceFactory} can be used to access the factory itself.
3033
*
3134
* @author Andy Clement
3235
*/

0 commit comments

Comments
 (0)