@PropertySource annotation metadata.
@@ -70,12 +68,16 @@ class PropertySourceRegistry {
boolean ignoreResourceNotFound = propertySource.getBoolean("ignoreResourceNotFound");
Class extends PropertySourceFactory> factoryClass = propertySource.getClass("factory");
- Class extends PropertySourceFactory> factorClassToUse =
+ Class extends PropertySourceFactory> factoryClassToUse =
(factoryClass != PropertySourceFactory.class ? factoryClass : null);
- PropertySourceDescriptor descriptor = new PropertySourceDescriptor(Arrays.asList(locations), ignoreResourceNotFound, name,
- factorClassToUse, encoding);
+ PropertySourceDescriptor descriptor = new PropertySourceDescriptor(Arrays.asList(locations),
+ ignoreResourceNotFound, name, factoryClassToUse, encoding);
this.propertySourceProcessor.processPropertySource(descriptor);
this.descriptors.add(descriptor);
}
+ public ListThe default implementation checks for {@code @jakarta.validation.Valid}, - * Spring's {@link Validated}, - * and custom annotations whose name starts with "Valid". + * Spring's {@link Validated}, and custom annotations whose name starts with "Valid". * @param message the currently processed message * @param parameter the method parameter * @param target the target payload object diff --git a/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAttributeSourcePointcut.java b/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAttributeSourcePointcut.java index 0a7f6383d15..99265d68189 100644 --- a/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAttributeSourcePointcut.java +++ b/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAttributeSourcePointcut.java @@ -57,8 +57,8 @@ class TransactionAttributeSourcePointcut extends StaticMethodMatcherPointcut imp @Override public boolean equals(@Nullable Object other) { - return (this == other || (other instanceof TransactionAttributeSourcePointcut otherPc && - ObjectUtils.nullSafeEquals(this.transactionAttributeSource, otherPc.transactionAttributeSource))); + return (this == other || (other instanceof TransactionAttributeSourcePointcut that && + ObjectUtils.nullSafeEquals(this.transactionAttributeSource, that.transactionAttributeSource))); } @Override