This commit is contained in:
Stephane Nicoll
2020-01-01 09:16:53 +01:00
parent a9b0b78cb2
commit 6fc52b0563
11 changed files with 28 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 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.
@@ -162,13 +162,12 @@ public class JerseyEndpointResourceFactory {
}
}
@SuppressWarnings("unchecked")
private Map<String, Object> extractBodyArguments(ContainerRequestContext data) {
Map<?, ?> entity = ((ContainerRequest) data).readEntity(Map.class);
Map<String, Object> entity = ((ContainerRequest) data).readEntity(Map.class);
if (entity == null) {
return Collections.emptyMap();
}
return (Map<String, Object>) entity;
return entity;
}
private Map<String, Object> extractPathParameters(ContainerRequestContext requestContext) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 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.
@@ -375,7 +375,7 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
/**
* Handler for a {@link ReactiveWebOperation}.
*/
private final class WriteOperationHandler {
private static final class WriteOperationHandler {
private final ReactiveWebOperation operation;
@@ -394,7 +394,7 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
/**
* Handler for a {@link ReactiveWebOperation}.
*/
private final class ReadOperationHandler {
private static final class ReadOperationHandler {
private final ReactiveWebOperation operation;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 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.
@@ -284,7 +284,7 @@ public abstract class AbstractWebMvcEndpointHandlerMapping extends RequestMappin
* Adapter class to convert an {@link OperationInvoker} into a
* {@link ServletWebOperation}.
*/
private class ServletWebOperationAdapter implements ServletWebOperation {
private static class ServletWebOperationAdapter implements ServletWebOperation {
private static final String PATH_SEPARATOR = AntPathMatcher.DEFAULT_PATH_SEPARATOR;
@@ -375,7 +375,7 @@ public abstract class AbstractWebMvcEndpointHandlerMapping extends RequestMappin
/**
* Handler for a {@link ServletWebOperation}.
*/
private final class OperationHandler {
private static final class OperationHandler {
private final ServletWebOperation operation;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 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.
@@ -88,7 +88,7 @@ public class OrderedHealthAggregator extends AbstractHealthAggregator {
/**
* {@link Comparator} used to order {@link Status}.
*/
private class StatusComparator implements Comparator<Status> {
private static class StatusComparator implements Comparator<Status> {
private final List<String> statusOrder;