From e46ccd74b13783843081370b6722bff5d30ffb9c Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 11 Jun 2020 23:43:41 +0200 Subject: [PATCH] Consistent abstract declaration of "Abstract" base classes Closes gh-25240 --- .../cache/jcache/config/AbstractJCacheConfiguration.java | 4 ++-- .../jmx/export/metadata/AbstractJmxAttribute.java | 4 ++-- .../web/servlet/view/AbstractTemplateViewResolver.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-context-support/src/main/java/org/springframework/cache/jcache/config/AbstractJCacheConfiguration.java b/spring-context-support/src/main/java/org/springframework/cache/jcache/config/AbstractJCacheConfiguration.java index 8f751a9900..34bb1a08d6 100644 --- a/spring-context-support/src/main/java/org/springframework/cache/jcache/config/AbstractJCacheConfiguration.java +++ b/spring-context-support/src/main/java/org/springframework/cache/jcache/config/AbstractJCacheConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-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. @@ -39,7 +39,7 @@ import org.springframework.lang.Nullable; * @see JCacheConfigurer */ @Configuration -public class AbstractJCacheConfiguration extends AbstractCachingConfiguration { +public abstract class AbstractJCacheConfiguration extends AbstractCachingConfiguration { @Nullable protected Supplier exceptionCacheResolver; diff --git a/spring-context/src/main/java/org/springframework/jmx/export/metadata/AbstractJmxAttribute.java b/spring-context/src/main/java/org/springframework/jmx/export/metadata/AbstractJmxAttribute.java index 1054ad1175..03f87424db 100644 --- a/spring-context/src/main/java/org/springframework/jmx/export/metadata/AbstractJmxAttribute.java +++ b/spring-context/src/main/java/org/springframework/jmx/export/metadata/AbstractJmxAttribute.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-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. @@ -22,7 +22,7 @@ package org.springframework.jmx.export.metadata; * @author Rob Harrop * @since 1.2 */ -public class AbstractJmxAttribute { +public abstract class AbstractJmxAttribute { private String description = ""; diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractTemplateViewResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractTemplateViewResolver.java index f35c318674..b664f523f1 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractTemplateViewResolver.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractTemplateViewResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-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. @@ -27,7 +27,7 @@ package org.springframework.web.servlet.view; * @see AbstractTemplateView * @see org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver */ -public class AbstractTemplateViewResolver extends UrlBasedViewResolver { +public abstract class AbstractTemplateViewResolver extends UrlBasedViewResolver { private boolean exposeRequestAttributes = false;