From ccc3d5e945084658cfc9da031eaa05e08e9f24ea 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 8f751a990082..34bb1a08d63e 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 @@ * @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 1054ad117528..03f87424db97 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 @@ * @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 f35c31867437..b664f523f1a2 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 @@ * @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;