You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Deparvu (JIRA)" <ji...@apache.org> on 2019/05/13 16:22:00 UTC

[jira] [Comment Edited] (OAK-7217) check public Oak APIs for references to Guava

    [ https://issues.apache.org/jira/browse/OAK-7217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16838660#comment-16838660 ] 

Alex Deparvu edited comment on OAK-7217 at 5/13/19 4:21 PM:
------------------------------------------------------------

I tried a different approach (bash script see  [^extract-guava.sh]), it wasn't obvious but I think I was able to collect usages of Guava.

There are 2 sets attached:
* complete usage set  [^guava-global.log] 
* only public packages set  [^guava-public.log]

Format is class and import (both normal import and static imports are captured)
{noformat}
oak-security-spi/src/main/java/org/apache/jackrabbit/oak/plugins/tree/TreeUtil.java:import com.google.common.base.Strings;
oak-security-spi/src/main/java/org/apache/jackrabbit/oak/plugins/tree/TreeUtil.java:import static com.google.common.collect.Iterables.contains;
{noformat}

this is how I had the global usage:
{code}
grep -Rw . -e 'import\( static\)\? com.google.common' --include=\*.java | grep -v '/src/test/' | sort
{code}


does this cover it?





was (Author: alex.parvulescu):
I tried a different approach (bash script see  [^extract-guava.sh]), it wasn't obvious but I think I was able to collect usages of Guava.

There are 2 sets attached:
* complete usage set  [^guava-global.log] 
* only public packages set  [^guava-public.log]

Format is class and import (both normal import and static imports are captured)
bq. oak-security-spi/src/main/java/org/apache/jackrabbit/oak/plugins/tree/TreeUtil.java:import com.google.common.base.Strings;
bq. oak-security-spi/src/main/java/org/apache/jackrabbit/oak/plugins/tree/TreeUtil.java:import static com.google.common.collect.Iterables.contains;

this is how I had the global usage:
{code}
grep -Rw . -e 'import\( static\)\? com.google.common' --include=\*.java | grep -v '/src/test/' | sort
{code}


does this cover it?




> check public Oak APIs for references to Guava
> ---------------------------------------------
>
>                 Key: OAK-7217
>                 URL: https://issues.apache.org/jira/browse/OAK-7217
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>            Reporter: Julian Reschke
>            Priority: Minor
>         Attachments: detect-api.diff, extract-guava.sh, guava-global.log, guava-public.log
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)