Browse Source

Polish contribution

See gh-34717
pull/34732/head
Sam Brannen 9 months ago
parent
commit
381bc4c405
  1. 3
      spring-beans/src/main/java/org/springframework/beans/factory/BeanFactoryUtils.java
  2. 2
      spring-core/src/main/java/org/springframework/core/annotation/AnnotationsScanner.java
  3. 2
      spring-core/src/main/java/org/springframework/util/ClassUtils.java

3
spring-beans/src/main/java/org/springframework/beans/factory/BeanFactoryUtils.java

@ -63,6 +63,7 @@ public abstract class BeanFactoryUtils { @@ -63,6 +63,7 @@ public abstract class BeanFactoryUtils {
*/
private static final Map<String, String> transformedBeanNameCache = new ConcurrentHashMap<>();
/**
* Used to dereference a {@link FactoryBean} instance and distinguish it from
* beans <i>created</i> by the FactoryBean. For example, if the bean named
@ -79,7 +80,7 @@ public abstract class BeanFactoryUtils { @@ -79,7 +80,7 @@ public abstract class BeanFactoryUtils {
* @see BeanFactory#FACTORY_BEAN_PREFIX
*/
public static boolean isFactoryDereference(@Nullable String name) {
return (name != null && !name.isEmpty() && name.charAt(0) == FACTORY_BEAN_PREFIX);
return (name != null && !name.isEmpty() && name.charAt(0) == BeanFactory.FACTORY_BEAN_PREFIX_CHAR);
}
/**

2
spring-core/src/main/java/org/springframework/core/annotation/AnnotationsScanner.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

2
spring-core/src/main/java/org/springframework/util/ClassUtils.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

Loading…
Cancel
Save