Skip to content

Commit 381bc4c

Browse files
committed
Polish contribution
See gh-34717
1 parent 0f2308e commit 381bc4c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: spring-beans/src/main/java/org/springframework/beans/factory/BeanFactoryUtils.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public abstract class BeanFactoryUtils {
6363
*/
6464
private static final Map<String, String> transformedBeanNameCache = new ConcurrentHashMap<>();
6565

66+
6667
/**
6768
* Used to dereference a {@link FactoryBean} instance and distinguish it from
6869
* beans <i>created</i> by the FactoryBean. For example, if the bean named
@@ -79,7 +80,7 @@ public abstract class BeanFactoryUtils {
7980
* @see BeanFactory#FACTORY_BEAN_PREFIX
8081
*/
8182
public static boolean isFactoryDereference(@Nullable String name) {
82-
return (name != null && !name.isEmpty() && name.charAt(0) == FACTORY_BEAN_PREFIX);
83+
return (name != null && !name.isEmpty() && name.charAt(0) == BeanFactory.FACTORY_BEAN_PREFIX_CHAR);
8384
}
8485

8586
/**

Diff for: spring-core/src/main/java/org/springframework/core/annotation/AnnotationsScanner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.

Diff for: spring-core/src/main/java/org/springframework/util/ClassUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.

0 commit comments

Comments
 (0)