From d0e1802d957c712ec48b55fe2380dc39a8a95214 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Fri, 8 Jan 2021 19:02:23 +0800 Subject: [PATCH] HBASE-25333 Add maven enforcer rule to ban VisibleForTesting imports --- pom.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pom.xml b/pom.xml index 749ab83842bb..e4505d6afbcf 100755 --- a/pom.xml +++ b/pom.xml @@ -1341,6 +1341,19 @@ org.glassfish.jersey.** + + true + 512 + + You should never use this style of annotations(i.e, 'this is for test only') + in IA.Public or IA.LimitedPrivate classes. Use IA.Private to tell users this is + not for public use. + For IA.Private classes, use RestrictedApi annotation in error prone instead. + + + org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting + +