[ 
https://issues.apache.org/jira/browse/OAK-7549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke resolved OAK-7549.
---------------------------------
    Fix Version/s: 1.56.0
       Resolution: Implemented

Done while migratng to shaded Guava.

> commons: avoid use of Guava beta APIs in FileIOUtils
> ----------------------------------------------------
>
>                 Key: OAK-7549
>                 URL: https://issues.apache.org/jira/browse/OAK-7549
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: commons
>            Reporter: Julian Reschke
>            Priority: Major
>             Fix For: 1.56.0
>
>
> {noformat}
> C:\projects\apache\oak\trunk\oak-commons\src\main\java\org\apache\jackrabbit\oak\commons\FileIOUtils.java:92:
>  error: [BetaApi] @Beta APIs should not be used in library code as they are 
> subject to change
>         move(sorted, file);
>         ^
>     (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> C:\projects\apache\oak\trunk\oak-commons\src\main\java\org\apache\jackrabbit\oak\commons\FileIOUtils.java:105:
>  error: [BetaApi] @Beta APIs should not be used in library code as they are 
> subject to change
>         move(sorted, file);
>         ^
>     (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> C:\projects\apache\oak\trunk\oak-commons\src\main\java\org\apache\jackrabbit\oak\commons\FileIOUtils.java:164:
>  error: [BetaApi] @Beta APIs should not be used in library code as they are 
> subject to change
>             appendStream = asByteSink(appendTo, APPEND).openBufferedStream();
>                            ^
>     (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> C:\projects\apache\oak\trunk\oak-commons\src\main\java\org\apache\jackrabbit\oak\commons\FileIOUtils.java:181:
>  error: [BetaApi] @Beta APIs should not be used in library code as they are 
> subject to change
>             close(appendStream, threw);
>             ^
>     (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> C:\projects\apache\oak\trunk\oak-commons\src\main\java\org\apache\jackrabbit\oak\commons\FileIOUtils.java:250:
>  error: [BetaApi] @Beta APIs should not be used in library code as they are 
> subject to change
>         BufferedWriter writer =  newWriter(f, UTF_8);
>                                  ^
>     (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> C:\projects\apache\oak\trunk\oak-commons\src\main\java\org\apache\jackrabbit\oak\commons\FileIOUtils.java:266:
>  error: [BetaApi] @Beta APIs should not be used in library code as they are 
> subject to change
>             close(writer, threw);
>             ^
>     (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> C:\projects\apache\oak\trunk\oak-commons\src\main\java\org\apache\jackrabbit\oak\commons\FileIOUtils.java:296:
>  error: [BetaApi] @Beta APIs should not be used in library code as they are 
> subject to change
>             close(reader, threw);
>             ^
>     (see https://github.com/google/guava/wiki/PhilosophyExplained#beta-apis)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to