Commit d238a31d authored by Andy Wilkinson's avatar Andy Wilkinson

Polish

parent 214c7ebd
/*
* Copyright 2012-2017 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Auto-configuration for Tomcat actuator metrics.
*/
package org.springframework.boot.actuate.autoconfigure.metrics.web.tomcat;
...@@ -297,7 +297,6 @@ public abstract class AbstractWebFluxEndpointHandlerMapping ...@@ -297,7 +297,6 @@ public abstract class AbstractWebFluxEndpointHandlerMapping
return arguments; return arguments;
} }
@SuppressWarnings("unchecked")
private Map<String, String> getTemplateVariables(ServerWebExchange exchange) { private Map<String, String> getTemplateVariables(ServerWebExchange exchange) {
return exchange.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE); return exchange.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE);
} }
......
...@@ -42,9 +42,9 @@ public class MongoReactiveHealthIndicator extends AbstractReactiveHealthIndicato ...@@ -42,9 +42,9 @@ public class MongoReactiveHealthIndicator extends AbstractReactiveHealthIndicato
@Override @Override
protected Mono<Health> doHealthCheck(Health.Builder builder) { protected Mono<Health> doHealthCheck(Health.Builder builder) {
Mono<Document> buildInfo = this.reactiveMongoTemplate.executeCommand( Mono<Document> buildInfo = this.reactiveMongoTemplate
"{ buildInfo: 1 }"); .executeCommand("{ buildInfo: 1 }");
return buildInfo.map(document -> up(builder, document)); return buildInfo.map((document) -> up(builder, document));
} }
private Health up(Health.Builder builder, Document document) { private Health up(Health.Builder builder, Document document) {
...@@ -52,4 +52,3 @@ public class MongoReactiveHealthIndicator extends AbstractReactiveHealthIndicato ...@@ -52,4 +52,3 @@ public class MongoReactiveHealthIndicator extends AbstractReactiveHealthIndicato
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment