Update to Spring Framework 6.1.0-M2
Closes gh-792
This commit is contained in:
@@ -782,7 +782,8 @@ public final class LdapUtils {
|
||||
|
||||
@Override
|
||||
public void handleAttributeValue(String attributeName, Object attributeValue, int index) {
|
||||
Assert.isTrue(attributeName == null || this.clazz.isAssignableFrom(attributeValue.getClass()));
|
||||
Assert.isTrue(attributeName == null || this.clazz.isAssignableFrom(attributeValue.getClass()),
|
||||
() -> "either attributeName must be null or the attribute value must be of type " + this.clazz);
|
||||
this.collection.add(this.clazz.cast(attributeValue));
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public final class LdapTransactionUtils {
|
||||
* name.
|
||||
*/
|
||||
public static Name getFirstArgumentAsName(Object[] args) {
|
||||
Assert.notEmpty(args);
|
||||
Assert.notEmpty(args, "args cannot be empty");
|
||||
|
||||
Object firstArg = args[0];
|
||||
return getArgumentAsName(firstArg);
|
||||
|
||||
@@ -55,7 +55,7 @@ public class ModifyAttributesOperationRecorder implements CompensatingTransactio
|
||||
* CompensatingTransactionOperationRecorder#recordOperation(java.lang.Object[])
|
||||
*/
|
||||
public CompensatingTransactionOperationExecutor recordOperation(Object[] args) {
|
||||
Assert.notNull(args);
|
||||
Assert.notNull(args, "args cannot be empty");
|
||||
Name dn = LdapTransactionUtils.getFirstArgumentAsName(args);
|
||||
if (args.length != 2 || !(args[1] instanceof ModificationItem[])) {
|
||||
throw new IllegalArgumentException("Unexpected arguments to ModifyAttributes operation");
|
||||
|
||||
@@ -54,7 +54,7 @@ public class RenameOperationRecorder implements CompensatingTransactionOperation
|
||||
*/
|
||||
public CompensatingTransactionOperationExecutor recordOperation(Object[] args) {
|
||||
log.debug("Storing rollback information for rename operation");
|
||||
Assert.notEmpty(args);
|
||||
Assert.notEmpty(args, "args cannot be empty");
|
||||
if (args.length != 2) {
|
||||
// This really shouldn't happen.
|
||||
throw new IllegalArgumentException("Illegal argument length");
|
||||
|
||||
2
dependencies/build.gradle
vendored
2
dependencies/build.gradle
vendored
@@ -14,7 +14,7 @@ repositories {
|
||||
ext.queryDslVersion = '5.0.0'
|
||||
|
||||
dependencies {
|
||||
api platform("org.springframework:spring-framework-bom:6.0.10")
|
||||
api platform("org.springframework:spring-framework-bom:6.1.0-M2")
|
||||
api platform("org.springframework.data:spring-data-bom:2021.2.13")
|
||||
api platform('com.fasterxml.jackson:jackson-bom:2.15.2')
|
||||
api platform("org.junit:junit-bom:5.9.3")
|
||||
|
||||
@@ -40,7 +40,7 @@ public class ContextSourceEc2InstanceLaunchingFactoryBean extends AbstractEc2Ins
|
||||
|
||||
@Override
|
||||
protected final Object doCreateInstance(final String dnsName) throws Exception {
|
||||
Assert.hasText(this.userDn);
|
||||
Assert.hasText(this.userDn, "userDn cannot be null");
|
||||
LdapContextSource instance = new LdapContextSource();
|
||||
instance.setUrl("ldap://" + dnsName);
|
||||
instance.setUserDn(this.userDn);
|
||||
|
||||
Reference in New Issue
Block a user