Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18700

Remove AssertJ annotations from the production code

    XMLWordPrintableJSON

Details

    Description

      We are using VisibleForTesting annotation from AssertJ in the production code. At the same time, we are not shipping assertj library in the tarball.

      The way it works is that we depend on assertj with "provided" scope and then we will not ship the lib. It is possible, because the default RetentionPolicy for that annotation is CLASS which means that while we compile with the annotation, it does not need to be there in runtime ...

      There is VisibleForTesting annotation from Guava which is used extensively. Usage of VisibleForTesting from AssertJ was used by mistake as that probably popped up as the first import to add when doing code completion in IDEA.

      Attachments

        Activity

          People

            smiklosovic Stefan Miklosovic
            smiklosovic Stefan Miklosovic
            Stefan Miklosovic
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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