You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (JIRA)" <ji...@apache.org> on 2017/03/31 08:35:41 UTC
[jira] [Comment Edited] (HBASE-17857) Remove IS annotations from
IA.Public classes
[ https://issues.apache.org/jira/browse/HBASE-17857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950476#comment-15950476 ]
Duo Zhang edited comment on HBASE-17857 at 3/31/17 8:35 AM:
------------------------------------------------------------
The script is like this
{noformat}
#!/bin/bash
IS_PUBLIC=`awk '{print $1}' < $1 | grep -s "^@InterfaceAudience.Public"`
if [ ! -n "$IS_PUBLIC" ]; then
# echo "Skipping $1"
exit 1
fi
echo "Processing $1"
grep -v "^[ ]*@InterfaceStability." $1 | grep -v "import org.apache.hadoop.hbase.classification.InterfaceStability" > /tmp/tmp.java
mv /tmp/tmp.java $1
{noformat}
And executed with
{noformat}
find . -type f -name *.java -exec ./rm_anno.sh {} \;
{noformat}
was (Author: apache9):
The script is like this
{noformat}
#!/bin/bash
IS_PUBLIC=`awk '{print $1}' < $1 | grep -s "^@InterfaceAudience.Public"`
if [ ! -n "$IS_PUBLIC" ]; then
# echo "Skipping $1"
exit 1
fi
echo "Processing $1"
grep -v "^[ ]*@InterfaceStability." $1 > /tmp/tmp.java
mv /tmp/tmp.java $1
{noformat}
And executed with
{noformat}
find . -type f -name *.java -exec ./rm_anno.sh {} \;
{noformat}
> Remove IS annotations from IA.Public classes
> --------------------------------------------
>
> Key: HBASE-17857
> URL: https://issues.apache.org/jira/browse/HBASE-17857
> Project: HBase
> Issue Type: Sub-task
> Components: API
> Affects Versions: 2.0.0
> Reporter: Duo Zhang
> Assignee: Duo Zhang
> Fix For: 2.0.0
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)