Consistent abstract declaration for utility classes (plus polishing)

Issue: SPR-16968
This commit is contained in:
Juergen Hoeller
2018-07-01 02:31:20 +02:00
parent e72f4ec501
commit 4ff1e3e74b
21 changed files with 31 additions and 77 deletions

View File

@@ -22,7 +22,7 @@ package org.springframework.cache.config;
* @author Juergen Hoeller
* @since 4.1
*/
public final class CacheManagementConfigUtils {
public abstract class CacheManagementConfigUtils {
/**
* The name of the cache advisor bean.
@@ -48,8 +48,4 @@ public final class CacheManagementConfigUtils {
public static final String JCACHE_ASPECT_BEAN_NAME =
"org.springframework.cache.config.internalJCacheAspect";
private CacheManagementConfigUtils() {
}
}

View File

@@ -29,7 +29,6 @@ import org.springframework.core.annotation.AnnotatedElementUtils;
*/
final class BeanAnnotationHelper {
private BeanAnnotationHelper() {
}

View File

@@ -30,7 +30,6 @@ import org.springframework.beans.factory.support.BeanDefinitionRegistry;
*/
final class ScopedProxyCreator {
private ScopedProxyCreator() {
}

View File

@@ -49,7 +49,6 @@ import org.springframework.lang.Nullable;
*/
final class PostProcessorRegistrationDelegate {
private PostProcessorRegistrationDelegate() {
}
@@ -306,7 +305,7 @@ final class PostProcessorRegistrationDelegate {
* BeanPostProcessor instantiation, i.e. when a bean is not eligible for
* getting processed by all BeanPostProcessors.
*/
private static class BeanPostProcessorChecker implements BeanPostProcessor {
private static final class BeanPostProcessorChecker implements BeanPostProcessor {
private static final Log logger = LogFactory.getLog(BeanPostProcessorChecker.class);

View File

@@ -46,7 +46,6 @@ import org.springframework.format.datetime.DateFormatterRegistrar;
*/
final class JodaTimeConverters {
private JodaTimeConverters() {
}

View File

@@ -43,7 +43,6 @@ import org.springframework.format.datetime.DateFormatterRegistrar;
*/
final class DateTimeConverters {
private DateTimeConverters() {
}

View File

@@ -30,7 +30,6 @@ import javax.management.ObjectName;
*/
public final class ObjectNameManager {
private ObjectNameManager() {
}

View File

@@ -22,7 +22,7 @@ package org.springframework.scheduling.config;
* @author Juergen Hoeller
* @since 4.1
*/
public final class TaskManagementConfigUtils {
public abstract class TaskManagementConfigUtils {
/**
* The bean name of the internally managed Scheduled annotation processor.
@@ -42,9 +42,4 @@ public final class TaskManagementConfigUtils {
public static final String ASYNC_EXECUTION_ASPECT_BEAN_NAME =
"org.springframework.scheduling.config.internalAsyncExecutionAspect";
private TaskManagementConfigUtils() {
}
}