Use consistent wording in precondition error messages

This commit is contained in:
Sam Brannen
2022-11-06 11:57:34 +01:00
parent 711a63adca
commit 2aa78889d2
27 changed files with 88 additions and 86 deletions

View File

@@ -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;

View File

@@ -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;
}