Polishing
This commit is contained in:
parent
4143b445d6
commit
10e979e58b
|
@ -17,7 +17,7 @@
|
|||
<entry key="spring:type=PublisherStandardMBean" value-ref="publisherStandardMBean"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="server" ref="server"/>
|
||||
<property name="server" ref="server"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
|
@ -198,7 +198,7 @@ class ServletServerHttpRequest extends AbstractServerHttpRequest {
|
|||
@Nullable
|
||||
protected SslInfo initSslInfo() {
|
||||
X509Certificate[] certificates = getX509Certificates();
|
||||
return certificates != null ? new DefaultSslInfo(getSslSessionId(), certificates) : null;
|
||||
return (certificates != null ? new DefaultSslInfo(getSslSessionId(), certificates) : null);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
@ -208,8 +208,7 @@ class ServletServerHttpRequest extends AbstractServerHttpRequest {
|
|||
|
||||
@Nullable
|
||||
private X509Certificate[] getX509Certificates() {
|
||||
String name = "javax.servlet.request.X509Certificate";
|
||||
return (X509Certificate[]) this.request.getAttribute(name);
|
||||
return (X509Certificate[]) this.request.getAttribute("javax.servlet.request.X509Certificate");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue