소스 검색

HADOOP-17947. Additional element types for VisibleForTesting (ADDENDUM) (#3521)

(cherry picked from commit 783e4805e7ef46da6095e0375fe8dd5e9cd26e85)
Viraj Jasani 3 년 전
부모
커밋
fd3069d70c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/VisibleForTesting.java

+ 1 - 1
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 {
 }