Skip to content

Commit 10e979e

Browse files
committed
Polishing
1 parent 4143b44 commit 10e979e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

spring-context/src/test/resources/org/springframework/jmx/export/notificationPublisherTests.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<entry key="spring:type=PublisherStandardMBean" value-ref="publisherStandardMBean"/>
1818
</map>
1919
</property>
20-
<property name="server" ref="server"/>
20+
<property name="server" ref="server"/>
2121
</bean>
2222

2323
</beans>

spring-web/src/main/java/org/springframework/http/server/reactive/ServletServerHttpRequest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public InetSocketAddress getRemoteAddress() {
198198
@Nullable
199199
protected SslInfo initSslInfo() {
200200
X509Certificate[] certificates = getX509Certificates();
201-
return certificates != null ? new DefaultSslInfo(getSslSessionId(), certificates) : null;
201+
return (certificates != null ? new DefaultSslInfo(getSslSessionId(), certificates) : null);
202202
}
203203

204204
@Nullable
@@ -208,8 +208,7 @@ private String getSslSessionId() {
208208

209209
@Nullable
210210
private X509Certificate[] getX509Certificates() {
211-
String name = "javax.servlet.request.X509Certificate";
212-
return (X509Certificate[]) this.request.getAttribute(name);
211+
return (X509Certificate[]) this.request.getAttribute("javax.servlet.request.X509Certificate");
213212
}
214213

215214
@Override

0 commit comments

Comments
 (0)