diff --git a/build.gradle b/build.gradle
index 7b125b06debc..974b07de3de3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -28,24 +28,24 @@ ext {
!it.name.equals("spring-build-src") && !it.name.equals("spring-framework-bom")
}
- aspectjVersion = "1.9.4"
+ aspectjVersion = "1.9.5"
freemarkerVersion = "2.3.28"
groovyVersion = "2.5.8"
hsqldbVersion = "2.4.1"
jackson2Version = "2.9.9"
- jettyVersion = "9.4.21.v20190926"
+ jettyVersion = "9.4.24.v20191120"
junit5Version = "5.3.2"
kotlinVersion = "1.2.71"
log4jVersion = "2.11.2"
nettyVersion = "4.1.43.Final"
- reactorVersion = "Californium-SR13"
+ reactorVersion = "Californium-SR14"
rxjavaVersion = "1.3.8"
rxjavaAdapterVersion = "1.2.1"
- rxjava2Version = "2.2.14"
+ rxjava2Version = "2.2.15"
slf4jVersion = "1.7.28" // spring-jcl + consistent 3rd party deps
tiles3Version = "3.0.8"
- tomcatVersion = "9.0.27"
- undertowVersion = "2.0.27.Final"
+ tomcatVersion = "9.0.29"
+ undertowVersion = "2.0.28.Final"
gradleScriptDir = "${rootProject.projectDir}/gradle"
withoutJclOverSlf4j = {
@@ -142,7 +142,7 @@ configure(allprojects) { project ->
}
checkstyle {
- toolVersion = "8.26"
+ toolVersion = "8.27"
configDir = rootProject.file("src/checkstyle")
}
diff --git a/gradle.properties b/gradle.properties
index 52cd8c3529f2..47ad59cda14b 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1 +1 @@
-version=5.1.12.BUILD-SNAPSHOT
+version=5.1.13.BUILD-SNAPSHOT
diff --git a/spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java b/spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java
index 3ca7fc95c7e8..f5c165d5cfdb 100644
--- a/spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java
+++ b/spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2019 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.
@@ -41,8 +41,8 @@
/**
* Decorator for a standard {@link BeanInfo} object, e.g. as created by
- * {@link Introspector#getBeanInfo(Class)}, designed to discover and register static
- * and/or non-void returning setter methods. For example:
+ * {@link Introspector#getBeanInfo(Class)}, designed to discover and register
+ * static and/or non-void returning setter methods. For example:
*
*
* public class Bean {
@@ -145,11 +145,10 @@ private List findCandidateWriteMethods(MethodDescriptor[] methodDescript
public static boolean isCandidateWriteMethod(Method method) {
String methodName = method.getName();
- Class>[] parameterTypes = method.getParameterTypes();
- int nParams = parameterTypes.length;
+ int nParams = method.getParameterCount();
return (methodName.length() > 3 && methodName.startsWith("set") && Modifier.isPublic(method.getModifiers()) &&
(!void.class.isAssignableFrom(method.getReturnType()) || Modifier.isStatic(method.getModifiers())) &&
- (nParams == 1 || (nParams == 2 && int.class == parameterTypes[0])));
+ (nParams == 1 || (nParams == 2 && int.class == method.getParameterTypes()[0])));
}
private void handleCandidateWriteMethod(Method method) throws IntrospectionException {
@@ -209,7 +208,7 @@ private PropertyDescriptor findExistingPropertyDescriptor(String propertyName, C
}
private String propertyNameFor(Method method) {
- return Introspector.decapitalize(method.getName().substring(3, method.getName().length()));
+ return Introspector.decapitalize(method.getName().substring(3));
}
@@ -488,7 +487,7 @@ public void setPropertyEditorClass(@Nullable Class> propertyEditorClass) {
}
/*
- * See java.beans.IndexedPropertyDescriptor#equals(java.lang.Object)
+ * See java.beans.IndexedPropertyDescriptor#equals
*/
@Override
public boolean equals(Object other) {
@@ -535,11 +534,13 @@ static class PropertyDescriptorComparator implements Comparator beans = new Closure