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

Investigate how to ban usages of "var" in production code.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0.3, 5.1
    • Build
    • None

    Description

      In this thread (1) we reached the consensus of banning usages of "var" in the production code but allowing it in tests. We should investigate how to handle this robustly, e.g. by a checkstyle rule. The investigation how to do this should be conducted.

      Upon delivery, that probably means that the existing usages of "var" in the production code will need to be fixed and converted to have it all on types again because such rule would fail the compilation of the production code otherwise.

      (1) https://lists.apache.org/thread/jfgj8lh1llp9zrodmfqyq22kvtlodyk6

      Attachments

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              smiklosovic Stefan Miklosovic
              Stefan Miklosovic
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m