Details

      Description

      Google releases Guava with beta and deprecated code that should not be used. From Guava README:

      If your code is a library itself (i.e. it is used on the CLASSPATH of users outside your own control), you should not use beta API

        Issue Links

          Activity

          Hide
          ctubbsii Christopher Tubbs added a comment -

          To prevent the use of beta classes from Guava, we could create a regex rule in checkstyle to ban any Guava imports that aren't in the vetted list. And, we should check everything we're currently using from Guava to ensure it's not marked beta. If a new Guava class is used in an import statement, we can explicitly check if it's beta and then add it to the vetted list in the regex.

          This is not an ideal solution, but we need to do something to avoid beta classes.

          Show
          ctubbsii Christopher Tubbs added a comment - To prevent the use of beta classes from Guava, we could create a regex rule in checkstyle to ban any Guava imports that aren't in the vetted list. And, we should check everything we're currently using from Guava to ensure it's not marked beta. If a new Guava class is used in an import statement, we can explicitly check if it's beta and then add it to the vetted list in the regex. This is not an ideal solution, but we need to do something to avoid beta classes.

            People

            • Assignee:
              milleruntime Michael Miller
              Reporter:
              milleruntime Michael Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h

                  Development