[ https://issues.apache.org/jira/browse/HBASE-21881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16767151#comment-16767151 ]
Nihal Jain edited comment on HBASE-21881 at 2/13/19 12:59 PM: -------------------------------------------------------------- [^forbiddenapi_all.out] Results for test + source classes. {noformat} Search "Forbidden method invocation" (1273 hits in 1 file) Search "Forbidden class/interface use" (92 hits in 1 file) Search "Deprecated in Java 1.8" (8 hits in 1 file) Search "[Uses default charset]" (611 hits in 1 file) Search "Uses default locale" (599 hits in 1 file) Search "Reflection usage to work around" (74 hits in 1 file) Search "[non-portable or internal runtime class]" (74 hits in 1 file){noformat} HBASE-21872 would take care of around ~360 errors {noformat} Search "[ERROR] Forbidden method invocation: java.lang.String#getBytes() [Uses default charset]" (362 hits in 1 file) {noformat} was (Author: nihaljain.cs): [^forbiddenapi_all.out] Results for test + source classes. > Use Forbidden API Checker to prevent future usages of forbidden api's > --------------------------------------------------------------------- > > Key: HBASE-21881 > URL: https://issues.apache.org/jira/browse/HBASE-21881 > Project: HBase > Issue Type: Improvement > Components: build > Reporter: Nihal Jain > Assignee: Nihal Jain > Priority: Major > Attachments: forbiddenapi_all.out, forbiddenapis.out > > > [Policeman's Forbidden API > Checker|https://github.com/policeman-tools/forbidden-apis] provides an > elegant way to fail build if any "forbidden api" is used in the code base. > Here we will add the plugin to our pom.xml. > We will discuss which all api's to put in forbidden list. Or whether to use > the one's bundled with the plugin. -- This message was sent by Atlassian JIRA (v7.6.3#76005)