From c42a0eeb383c518d77617d6e8e2abed76e59038d Mon Sep 17 00:00:00 2001 From: Qimiao Chen Date: Wed, 25 Mar 2020 21:34:29 +0800 Subject: [PATCH] Make resourceAnnotationTypes field final in CommonAnnotationBPP Closes gh-24774 --- .../context/annotation/CommonAnnotationBeanPostProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessor.java b/spring-context/src/main/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessor.java index 9aef3f1a11..d2059526a5 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessor.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 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. @@ -151,7 +151,7 @@ public class CommonAnnotationBeanPostProcessor extends InitDestroyAnnotationBean @Nullable private static Class ejbRefClass; - private static Set> resourceAnnotationTypes = new LinkedHashSet<>(4); + private final static Set> resourceAnnotationTypes = new LinkedHashSet<>(4); static { try {