Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7182 Make it possible to update Guava
  3. OAK-7549

commons: avoid use of Guava beta APIs in FileIOUtils

    XMLWordPrintableJSON

Details

    • Technical task
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • 1.56.0
    • commons
    • None

    Description

      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)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: