From 75f5cb2450b02f832a78841583c4a854fc4db585 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Sat, 9 Jan 2021 08:50:11 +0800 Subject: [PATCH] HBASE-25333 Add maven enforcer rule to ban VisibleForTesting imports (#2854) Signed-off-by: Peter Somogyi --- pom.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pom.xml b/pom.xml index bfb5e1b8394..734d9e4c5b0 100755 --- a/pom.xml +++ b/pom.xml @@ -1145,6 +1145,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 + +