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

@@ -43,7 +43,7 @@ public final class Accessor {
*/
public Accessor(Method method) {
Assert.notNull(method, "Method must not be null!");
Assert.notNull(method, "Method must not be null");
PropertyDescriptor descriptor = BeanUtils.findPropertyForMethod(method);

View File

@@ -62,7 +62,7 @@ class DefaultProjectionInformation implements ProjectionInformation {
*/
DefaultProjectionInformation(Class<?> type) {
Assert.notNull(type, "Projection type must not be null!");
Assert.notNull(type, "Projection type must not be null");
this.projectionType = type;
this.properties = new PropertyDescriptorSource(type).getDescriptors();
@@ -133,7 +133,7 @@ class DefaultProjectionInformation implements ProjectionInformation {
*/
PropertyDescriptorSource(Class<?> type) {
Assert.notNull(type, "Type must not be null!");
Assert.notNull(type, "Type must not be null");
this.type = type;
this.metadata = getMetadata(type);
@@ -228,7 +228,7 @@ class DefaultProjectionInformation implements ProjectionInformation {
} catch (IOException e) {
logger.info(LogMessage.format("Couldn't read class metadata for %s. Input property calculation might fail!", type));
logger.info(LogMessage.format("Couldn't read class metadata for %s. Input property calculation might fail", type));
return Optional.empty();
}
}

View File

@@ -109,7 +109,7 @@ class ProjectingMethodInterceptor implements MethodInterceptor {
return getProjection(result, targetType);
} else {
throw new UnsupportedOperationException(
String.format("Cannot project %s to %s. Target type is not an interface and no matching Converter found",
String.format("Cannot project %s to %s; Target type is not an interface and no matching Converter found",
ClassUtils.getDescriptiveType(result), ClassUtils.getQualifiedName(targetType)));
}
}
@@ -174,7 +174,7 @@ class ProjectingMethodInterceptor implements MethodInterceptor {
*/
private static Collection<?> asCollection(Object source) {
Assert.notNull(source, "Source object must not be null!");
Assert.notNull(source, "Source object must not be null");
if (source instanceof Collection) {
return (Collection<?>) source;

View File

@@ -46,7 +46,7 @@ class PropertyAccessingMethodInterceptor implements MethodInterceptor {
*/
public PropertyAccessingMethodInterceptor(Object target) {
Assert.notNull(target, "Proxy target must not be null!");
Assert.notNull(target, "Proxy target must not be null");
this.target = new DirectFieldAccessFallbackBeanWrapper(target);
}

View File

@@ -86,7 +86,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
*/
public void registerMethodInvokerFactory(MethodInterceptorFactory factory) {
Assert.notNull(factory, "MethodInterceptorFactory must not be null!");
Assert.notNull(factory, "MethodInterceptorFactory must not be null");
this.factories.add(0, factory);
}
@@ -95,9 +95,9 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
@SuppressWarnings("unchecked")
public <T> T createProjection(Class<T> projectionType, Object source) {
Assert.notNull(projectionType, "Projection type must not be null!");
Assert.notNull(source, "Source must not be null!");
Assert.isTrue(projectionType.isInterface(), "Projection type must be an interface!");
Assert.notNull(projectionType, "Projection type must not be null");
Assert.notNull(source, "Source must not be null");
Assert.isTrue(projectionType.isInterface(), "Projection type must be an interface");
if (projectionType.isInstance(source)) {
return (T) source;
@@ -118,7 +118,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
@Override
public <T> T createProjection(Class<T> projectionType) {
Assert.notNull(projectionType, "Projection type must not be null!");
Assert.notNull(projectionType, "Projection type must not be null");
return createProjection(projectionType, new HashMap<String, Object>());
}
@@ -216,7 +216,7 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
*/
public TargetAwareMethodInterceptor(Class<?> targetType) {
Assert.notNull(targetType, "Target type must not be null!");
Assert.notNull(targetType, "Target type must not be null");
this.targetType = targetType;
}

View File

@@ -86,7 +86,7 @@ public class SpelAwareProxyProjectionFactory extends ProxyProjectionFactory impl
*/
private static boolean hasMethodWithValueAnnotation(Class<?> type) {
Assert.notNull(type, "Type must not be null!");
Assert.notNull(type, "Type must not be null");
AnnotationDetectionMethodCallback<Value> callback = new AnnotationDetectionMethodCallback<Value>(Value.class);
ReflectionUtils.doWithMethods(type, callback);

View File

@@ -73,10 +73,10 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor {
public SpelEvaluatingMethodInterceptor(MethodInterceptor delegate, Object target, @Nullable BeanFactory beanFactory,
SpelExpressionParser parser, Class<?> targetInterface) {
Assert.notNull(delegate, "Delegate MethodInterceptor must not be null!");
Assert.notNull(target, "Target object must not be null!");
Assert.notNull(parser, "SpelExpressionParser must not be null!");
Assert.notNull(targetInterface, "Target interface must not be null!");
Assert.notNull(delegate, "Delegate MethodInterceptor must not be null");
Assert.notNull(target, "Target object must not be null");
Assert.notNull(parser, "SpelExpressionParser must not be null");
Assert.notNull(targetInterface, "Target interface must not be null");
StandardEvaluationContext evaluationContext = new StandardEvaluationContext();