From fd3069d70c320fb1252f51833c84abbccf1a224e Mon Sep 17 00:00:00 2001 From: Viraj Jasani Date: Tue, 5 Oct 2021 22:47:05 +0530 Subject: [PATCH] HADOOP-17947. Additional element types for VisibleForTesting (ADDENDUM) (#3521) (cherry picked from commit 783e4805e7ef46da6095e0375fe8dd5e9cd26e85) --- .../org/apache/hadoop/classification/VisibleForTesting.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/VisibleForTesting.java b/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/VisibleForTesting.java index 1aa76eaec61..6b405ae9729 100644 --- a/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/VisibleForTesting.java +++ b/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/VisibleForTesting.java @@ -37,7 +37,7 @@ import java.lang.annotation.Target; * they MUST be re-scoped as public/limited private. */ @Retention(RetentionPolicy.CLASS) -@Target({ ElementType.TYPE, ElementType.METHOD }) +@Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR }) @Documented public @interface VisibleForTesting { }