Polish for Exception message punctuation cleanup.

Closes #2603.
This commit is contained in:
John Blum
2022-06-07 11:39:44 -07:00
parent 6a23723f07
commit 8721ab4170
226 changed files with 762 additions and 764 deletions

View File

@@ -44,8 +44,8 @@ public class BeanComponentDefinitionBuilder {
*/
public BeanComponentDefinitionBuilder(Element defaultSource, ParserContext context) {
Assert.notNull(defaultSource, "DefaultSource must not be null!");
Assert.notNull(context, "Context must not be null!");
Assert.notNull(defaultSource, "DefaultSource must not be null");
Assert.notNull(context, "Context must not be null");
this.defaultSource = defaultSource;
this.context = context;
@@ -59,7 +59,7 @@ public class BeanComponentDefinitionBuilder {
*/
public BeanComponentDefinition getComponent(BeanDefinitionBuilder builder) {
Assert.notNull(builder, "Builder must not be null!");
Assert.notNull(builder, "Builder must not be null");
AbstractBeanDefinition definition = builder.getRawBeanDefinition();
String name = BeanDefinitionReaderUtils.generateBeanName(definition, context.getRegistry(), context.isNested());
@@ -77,7 +77,7 @@ public class BeanComponentDefinitionBuilder {
*/
public BeanComponentDefinition getComponentIdButFallback(BeanDefinitionBuilder builder, String fallback) {
Assert.hasText(fallback, "Fallback component id must not be null or empty!");
Assert.hasText(fallback, "Fallback component id must not be null or empty");
String id = defaultSource.getAttribute("id");
return getComponent(builder, StringUtils.hasText(id) ? id : fallback);
@@ -105,8 +105,8 @@ public class BeanComponentDefinitionBuilder {
*/
public BeanComponentDefinition getComponent(BeanDefinitionBuilder builder, String name, Object rawSource) {
Assert.notNull(builder, "Builder must not be null!");
Assert.hasText(name, "Name of bean must not be null or empty!");
Assert.notNull(builder, "Builder must not be null");
Assert.hasText(name, "Name of bean must not be null or empty");
AbstractBeanDefinition definition = builder.getRawBeanDefinition();
definition.setSource(context.extractSource(rawSource));

View File

@@ -40,7 +40,7 @@ public interface ConfigurationUtils {
*/
public static ResourceLoader getRequiredResourceLoader(XmlReaderContext context) {
Assert.notNull(context, "XmlReaderContext must not be null!");
Assert.notNull(context, "XmlReaderContext must not be null");
ResourceLoader resourceLoader = context.getResourceLoader();
@@ -71,7 +71,7 @@ public interface ConfigurationUtils {
*/
public static ClassLoader getRequiredClassLoader(ResourceLoader resourceLoader) {
Assert.notNull(resourceLoader, "ResourceLoader must not be null!");
Assert.notNull(resourceLoader, "ResourceLoader must not be null");
ClassLoader classLoader = resourceLoader.getClassLoader();
@@ -91,7 +91,7 @@ public interface ConfigurationUtils {
*/
public static String getRequiredBeanClassName(BeanDefinition beanDefinition) {
Assert.notNull(beanDefinition, "BeanDefinition must not be null!");
Assert.notNull(beanDefinition, "BeanDefinition must not be null");
String result = beanDefinition.getBeanClassName();

View File

@@ -50,10 +50,10 @@ public abstract class ParsingUtils {
public static void setPropertyValue(BeanDefinitionBuilder builder, Element element, String attrName,
String propertyName) {
Assert.notNull(builder, "BeanDefinitionBuilder must not be null!");
Assert.notNull(element, "Element must not be null!");
Assert.hasText(attrName, "Attribute name must not be null!");
Assert.hasText(propertyName, "Property name must not be null!");
Assert.notNull(builder, "BeanDefinitionBuilder must not be null");
Assert.notNull(element, "Element must not be null");
Assert.hasText(attrName, "Attribute name must not be null");
Assert.hasText(propertyName, "Property name must not be null");
String attr = element.getAttribute(attrName);
@@ -85,10 +85,10 @@ public abstract class ParsingUtils {
public static void setPropertyReference(BeanDefinitionBuilder builder, Element element, String attribute,
String property) {
Assert.notNull(builder, "BeanDefinitionBuilder must not be null!");
Assert.notNull(element, "Element must not be null!");
Assert.hasText(attribute, "Attribute name must not be null!");
Assert.hasText(property, "Property name must not be null!");
Assert.notNull(builder, "BeanDefinitionBuilder must not be null");
Assert.notNull(element, "Element must not be null");
Assert.hasText(attribute, "Attribute name must not be null");
Assert.hasText(property, "Property name must not be null");
String value = element.getAttribute(attribute);
@@ -109,8 +109,8 @@ public abstract class ParsingUtils {
public static AbstractBeanDefinition getSourceBeanDefinition(BeanDefinitionBuilder builder, ParserContext context,
Element element) {
Assert.notNull(element, "Element must not be null!");
Assert.notNull(context, "ParserContext must not be null!");
Assert.notNull(element, "Element must not be null");
Assert.notNull(context, "ParserContext must not be null");
return getSourceBeanDefinition(builder, context.extractSource(element));
}
@@ -124,7 +124,7 @@ public abstract class ParsingUtils {
*/
public static AbstractBeanDefinition getSourceBeanDefinition(BeanDefinitionBuilder builder, @Nullable Object source) {
Assert.notNull(builder, "Builder must not be null!");
Assert.notNull(builder, "Builder must not be null");
AbstractBeanDefinition definition = builder.getRawBeanDefinition();
definition.setSource(source);
@@ -141,7 +141,7 @@ public abstract class ParsingUtils {
*/
public static AbstractBeanDefinition getObjectFactoryBeanDefinition(String targetBeanName, @Nullable Object source) {
Assert.hasText(targetBeanName, "Target bean name must not be null or empty!");
Assert.hasText(targetBeanName, "Target bean name must not be null or empty");
BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(ObjectFactoryCreatingFactoryBean.class);
builder.addPropertyValue("targetBeanName", targetBeanName);

View File

@@ -69,8 +69,8 @@ public class TypeFilterParser {
*/
TypeFilterParser(ReaderContext readerContext, ClassLoader classLoader) {
Assert.notNull(readerContext, "ReaderContext must not be null!");
Assert.notNull(classLoader, "ClassLoader must not be null!");
Assert.notNull(readerContext, "ReaderContext must not be null");
Assert.notNull(classLoader, "ClassLoader must not be null");
this.readerContext = readerContext;
this.classLoader = classLoader;