Make intermediate classes of public classes public

Backport gh-12590 to 1.5.x and also pick up a few classes that were
missed. This commit also makes a few properties bound classes public.

Closes gh-17337
This commit is contained in:
Phillip Webb 2019-06-28 12:05:35 -07:00
parent 1ee8c53b90
commit 6d01bc915b
7 changed files with 21 additions and 11 deletions

View File

@ -28,8 +28,9 @@ import org.springframework.util.StringUtils;
* The JSON web token provided with each request that originates from Cloud Foundry.
*
* @author Madhura Bhave
* @since 1.5.22
*/
class Token {
public class Token {
private static final Charset UTF_8 = Charset.forName("UTF-8");

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 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.
@ -22,8 +22,9 @@ package org.springframework.boot.actuate.metrics.buffer;
* @param <T> the value type
* @author Dave Syer
* @author Phillip Webb
* @since 1.5.22
*/
abstract class Buffer<T extends Number> {
public abstract class Buffer<T extends Number> {
private volatile long timestamp;

View File

@ -30,12 +30,16 @@ import org.springframework.lang.UsesJava8;
* @author Dave Syer
* @author Phillip Webb
* @param <B> the buffer type
* @since 1.5.22
*/
@UsesJava8
abstract class Buffers<B extends Buffer<?>> {
public abstract class Buffers<B extends Buffer<?>> {
private final ConcurrentHashMap<String, B> buffers = new ConcurrentHashMap<String, B>();
Buffers() {
}
public void forEach(final Predicate<String> predicate, final BiConsumer<String, B> consumer) {
this.buffers.forEach(new BiConsumer<String, B>() {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2019 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.
@ -24,8 +24,9 @@ import org.springframework.messaging.support.MessageBuilder;
* A metric message sent via Spring Integration.
*
* @author Phillip Webb
* @since 1.5.22
*/
class MetricMessage {
public class MetricMessage {
private static final String METRIC_NAME = "metricName";

View File

@ -40,8 +40,9 @@ import org.springframework.util.MultiValueMap;
* Abstract base class for nested conditions.
*
* @author Phillip Webb
* @since 1.5.22
*/
abstract class AbstractNestedCondition extends SpringBootCondition implements ConfigurationCondition {
public abstract class AbstractNestedCondition extends SpringBootCondition implements ConfigurationCondition {
private final ConfigurationPhase configurationPhase;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2016 the original author or authors.
* Copyright 2012-2019 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.
@ -27,8 +27,9 @@ import org.springframework.util.StringUtils;
* A {@link MockMvcBuilderCustomizer} that configures Spring REST Docs.
*
* @author Andy Wilkinson
* @since 1.5.22
*/
class RestDocsMockMvcBuilderCustomizer implements InitializingBean, MockMvcBuilderCustomizer {
public class RestDocsMockMvcBuilderCustomizer implements InitializingBean, MockMvcBuilderCustomizer {
private final MockMvcRestDocumentationConfigurer delegate;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2018 the original author or authors.
* Copyright 2012-2019 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.
@ -39,8 +39,9 @@ import org.springframework.util.Assert;
* Servlet 3.0+ container.
*
* @author Phillip Webb
* @since 1.5.22
*/
abstract class AbstractFilterRegistrationBean extends RegistrationBean {
public abstract class AbstractFilterRegistrationBean extends RegistrationBean {
/**
* Filters that wrap the servlet request should be ordered less than or equal to this.