Skip to content

Commit

Permalink
HBASE-25333 Add maven enforcer rule to ban VisibleForTesting imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Apache9 committed Jan 7, 2021
1 parent a414361 commit 538d529
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,14 @@
<bannedImport>org.glassfish.jersey.**</bannedImport>
</bannedImports>
</restrictImports>
<restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
<includeTestCode>true</includeTestCode>
<commentLineBufferSize>512</commentLineBufferSize>
<reason>Use RestrictedApi annotation in error prone instead</reason>
<bannedImports>
<bannedImport>org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting</bannedImport>
</bannedImports>
</restrictImports>
</rules>
</configuration>
</execution>
Expand Down

0 comments on commit 538d529

Please sign in to comment.