Skip to content

Commit 7e02358

Browse files
committed
Merge branch '5.1.x'
2 parents 5e505ce + 33b5bc2 commit 7e02358

File tree

8 files changed

+25
-19
lines changed

8 files changed

+25
-19
lines changed

spring-context/src/main/java/org/springframework/jmx/access/MBeanClientInterceptor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -658,6 +658,9 @@ public boolean equals(@Nullable Object other) {
658658
if (this == other) {
659659
return true;
660660
}
661+
if (!(other instanceof MethodCacheKey)) {
662+
return false;
663+
}
661664
MethodCacheKey otherKey = (MethodCacheKey) other;
662665
return (this.name.equals(otherKey.name) && Arrays.equals(this.parameterTypes, otherKey.parameterTypes));
663666
}

spring-expression/src/main/java/org/springframework/expression/spel/support/StandardTypeComparator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
import org.springframework.util.NumberUtils;
2727

2828
/**
29-
* A simple basic {@link TypeComparator} implementation.
30-
* <p>It supports comparison of Numbers and types implementing Comparable.
29+
* A basic {@link TypeComparator} implementation: supports comparison of
30+
* {@link Number} types as well as types implementing {@link Comparable}.
3131
*
3232
* @author Andy Clement
3333
* @author Juergen Hoeller

spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -522,7 +522,8 @@ protected boolean destinationEquals(DestinationCacheKey otherKey) {
522522
public boolean equals(@Nullable Object other) {
523523
// Effectively checking object equality as well as toString equality.
524524
// On WebSphere MQ, Destination objects do not implement equals...
525-
return (this == other || (other instanceof DestinationCacheKey && destinationEquals((DestinationCacheKey) other)));
525+
return (this == other || (other instanceof DestinationCacheKey &&
526+
destinationEquals((DestinationCacheKey) other)));
526527
}
527528

528529
@Override
@@ -577,6 +578,9 @@ public boolean equals(@Nullable Object other) {
577578
if (this == other) {
578579
return true;
579580
}
581+
if (!(other instanceof ConsumerCacheKey)) {
582+
return false;
583+
}
580584
ConsumerCacheKey otherKey = (ConsumerCacheKey) other;
581585
return (destinationEquals(otherKey) &&
582586
ObjectUtils.nullSafeEquals(this.selector, otherKey.selector) &&

spring-test/spring-test.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies {
6060
testCompile("javax.ejb:javax.ejb-api:3.2")
6161
testCompile("javax.interceptor:javax.interceptor-api:1.2.2")
6262
testCompile("javax.mail:javax.mail-api:1.6.2")
63-
testCompile("org.hibernate:hibernate-core:5.4.2.Final")
63+
testCompile("org.hibernate:hibernate-core:5.4.3.Final")
6464
testCompile("org.hibernate:hibernate-validator:6.0.16.Final")
6565
testCompile("org.junit.platform:junit-platform-runner")
6666
testCompile("org.junit.platform:junit-platform-testkit")
@@ -72,7 +72,7 @@ dependencies {
7272
testCompile("org.apache.tiles:tiles-core:${tiles3Version}", withoutJclOverSlf4J)
7373
testCompile("org.apache.tiles:tiles-servlet:${tiles3Version}", withoutJclOverSlf4J)
7474
testCompile("org.hsqldb:hsqldb:${hsqldbVersion}")
75-
testCompile("org.apache.httpcomponents:httpclient:4.5.8") {
75+
testCompile("org.apache.httpcomponents:httpclient:4.5.9") {
7676
exclude group: "commons-logging", module: "commons-logging"
7777
}
7878
testCompile("io.projectreactor.netty:reactor-netty")

spring-web/spring-web.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies {
3939
}
4040
optional("org.eclipse.jetty:jetty-reactive-httpclient:1.0.3")
4141
optional("com.squareup.okhttp3:okhttp:3.14.2")
42-
optional("org.apache.httpcomponents:httpclient:4.5.8") {
42+
optional("org.apache.httpcomponents:httpclient:4.5.9") {
4343
exclude group: "commons-logging", module: "commons-logging"
4444
}
4545
optional("org.apache.httpcomponents:httpasyncclient:4.1.4") {

spring-webflux/spring-webflux.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies {
3535
optional("io.undertow:undertow-websockets-jsr:${undertowVersion}") {
3636
exclude group: "org.jboss.spec.javax.websocket", module: "jboss-websocket-api_1.1_spec"
3737
}
38-
optional("org.apache.httpcomponents:httpclient:4.5.8") {
38+
optional("org.apache.httpcomponents:httpclient:4.5.9") {
3939
exclude group: "commons-logging", module: "commons-logging"
4040
}
4141
optional("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")

spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/RouterFunctionMapping.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,6 +38,7 @@
3838

3939
/**
4040
* {@code HandlerMapping} implementation that supports {@link RouterFunction RouterFunctions}.
41+
*
4142
* <p>If no {@link RouterFunction} is provided at
4243
* {@linkplain #RouterFunctionMapping(RouterFunction) construction time}, this mapping
4344
* will detect all router functions in the application context, and consult them in
@@ -56,8 +57,8 @@ public class RouterFunctionMapping extends AbstractHandlerMapping implements Ini
5657

5758
/**
5859
* Create an empty {@code RouterFunctionMapping}.
59-
* <p>If this constructor is used, this mapping will detect all {@link RouterFunction} instances
60-
* available in the application context.
60+
* <p>If this constructor is used, this mapping will detect all
61+
* {@link RouterFunction} instances available in the application context.
6162
*/
6263
public RouterFunctionMapping() {
6364
}
@@ -154,20 +155,18 @@ protected Mono<?> getHandlerInternal(ServerWebExchange exchange) {
154155
}
155156

156157
@SuppressWarnings("unchecked")
157-
private void setAttributes(Map<String, Object> attributes, ServerRequest serverRequest,
158-
HandlerFunction<?> handlerFunction) {
158+
private void setAttributes(
159+
Map<String, Object> attributes, ServerRequest serverRequest, HandlerFunction<?> handlerFunction) {
159160

160161
attributes.put(RouterFunctions.REQUEST_ATTRIBUTE, serverRequest);
161162
attributes.put(BEST_MATCHING_HANDLER_ATTRIBUTE, handlerFunction);
162163

163-
PathPattern matchingPattern =
164-
(PathPattern) attributes.get(RouterFunctions.MATCHING_PATTERN_ATTRIBUTE);
164+
PathPattern matchingPattern = (PathPattern) attributes.get(RouterFunctions.MATCHING_PATTERN_ATTRIBUTE);
165165
if (matchingPattern != null) {
166166
attributes.put(BEST_MATCHING_PATTERN_ATTRIBUTE, matchingPattern);
167167
}
168168
Map<String, String> uriVariables =
169-
(Map<String, String>) attributes
170-
.get(RouterFunctions.URI_TEMPLATE_VARIABLES_ATTRIBUTE);
169+
(Map<String, String>) attributes.get(RouterFunctions.URI_TEMPLATE_VARIABLES_ATTRIBUTE);
171170
if (uriVariables != null) {
172171
attributes.put(URI_TEMPLATE_VARIABLES_ATTRIBUTE, uriVariables);
173172
}

spring-webmvc/spring-webmvc.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dependencies {
5050
testCompile("org.eclipse.jetty:jetty-server") {
5151
exclude group: "javax.servlet", module: "javax.servlet"
5252
}
53-
testCompile("org.apache.httpcomponents:httpclient:4.5.8") {
53+
testCompile("org.apache.httpcomponents:httpclient:4.5.9") {
5454
exclude group: "commons-logging", module: "commons-logging"
5555
}
5656
testCompile("commons-fileupload:commons-fileupload:1.4")

0 commit comments

Comments
 (0)