This commit is contained in:
Andy Wilkinson
2018-02-13 17:50:40 +00:00
parent 214c7ebdd5
commit d238a31d3d
3 changed files with 23 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
/*
* 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;

View File

@@ -297,7 +297,6 @@ public abstract class AbstractWebFluxEndpointHandlerMapping
return arguments;
}
@SuppressWarnings("unchecked")
private Map<String, String> getTemplateVariables(ServerWebExchange exchange) {
return exchange.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE);
}

View File

@@ -42,9 +42,9 @@ public class MongoReactiveHealthIndicator extends AbstractReactiveHealthIndicato
@Override
protected Mono<Health> doHealthCheck(Health.Builder builder) {
Mono<Document> buildInfo = this.reactiveMongoTemplate.executeCommand(
"{ buildInfo: 1 }");
return buildInfo.map(document -> up(builder, document));
Mono<Document> buildInfo = this.reactiveMongoTemplate
.executeCommand("{ buildInfo: 1 }");
return buildInfo.map((document) -> up(builder, document));
}
private Health up(Health.Builder builder, Document document) {
@@ -52,4 +52,3 @@ public class MongoReactiveHealthIndicator extends AbstractReactiveHealthIndicato
}
}