From 4d3ad42b8677ca1c962ab6b3f8a3e011bac90a7f Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Mon, 1 Apr 2024 10:28:05 +0800 Subject: [PATCH] Polishing javadoc of AnnotatedBeanDefinitionReader It should link `doRegisterBean(Class beanClass, String name, Class[] qualifiers, Supplier supplier, BeanDefinitionCustomizer[] customizers)` instead of `registerBean(Class, String, Class...)` but it is private, to make things more simple I'd like to remove it instead of linking all variants of `registerBean()`. --- .../context/annotation/AnnotatedBeanDefinitionReader.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/context/annotation/AnnotatedBeanDefinitionReader.java b/spring-context/src/main/java/org/springframework/context/annotation/AnnotatedBeanDefinitionReader.java index 286059addd2e..3ac5edfa5952 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/AnnotatedBeanDefinitionReader.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/AnnotatedBeanDefinitionReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 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. @@ -100,7 +100,6 @@ public final BeanDefinitionRegistry getRegistry() { * Set the {@code Environment} to use when evaluating whether * {@link Conditional @Conditional}-annotated component classes should be registered. *

The default is a {@link StandardEnvironment}. - * @see #registerBean(Class, String, Class...) */ public void setEnvironment(Environment environment) { this.conditionEvaluator = new ConditionEvaluator(this.registry, environment, null);