1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -491,7 +491,7 @@ private void preDetermineBeanType(String beanName, List<SmartInstantiationAwareB
491
491
* (may be {@code null} or empty)
492
492
* @since 5.2 (since 5.0 on the AnnotationConfigApplicationContext subclass)
493
493
*/
494
- public <T > void registerBean (Class <T > beanClass , Object ... constructorArgs ) {
494
+ public <T > void registerBean (Class <T > beanClass , @ Nullable Object ... constructorArgs ) {
495
495
registerBean (null , beanClass , constructorArgs );
496
496
}
497
497
@@ -506,7 +506,7 @@ public <T> void registerBean(Class<T> beanClass, Object... constructorArgs) {
506
506
* (may be {@code null} or empty)
507
507
* @since 5.2 (since 5.0 on the AnnotationConfigApplicationContext subclass)
508
508
*/
509
- public <T > void registerBean (@ Nullable String beanName , Class <T > beanClass , Object ... constructorArgs ) {
509
+ public <T > void registerBean (@ Nullable String beanName , Class <T > beanClass , @ Nullable Object ... constructorArgs ) {
510
510
registerBean (beanName , beanClass , (Supplier <T >) null ,
511
511
bd -> {
512
512
for (Object arg : constructorArgs ) {
0 commit comments