Use consistent wording in precondition error messages
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2022 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.
|
||||
@@ -82,7 +82,7 @@ public class RuntimeBeanReference implements BeanReference {
|
||||
* @since 5.2
|
||||
*/
|
||||
public RuntimeBeanReference(Class<?> beanType, boolean toParent) {
|
||||
Assert.notNull(beanType, "'beanType' must not be empty");
|
||||
Assert.notNull(beanType, "'beanType' must not be null");
|
||||
this.beanName = beanType.getName();
|
||||
this.beanType = beanType;
|
||||
this.toParent = toParent;
|
||||
|
||||
@@ -1054,7 +1054,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
|
||||
|
||||
@Override
|
||||
public void setApplicationStartup(ApplicationStartup applicationStartup) {
|
||||
Assert.notNull(applicationStartup, "applicationStartup should not be null");
|
||||
Assert.notNull(applicationStartup, "applicationStartup must not be null");
|
||||
this.applicationStartup = applicationStartup;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user