Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-8094

Replace PostProjectAnalysisTask.ProjectAnalysis#getDate by PostProjectAnalysisTask.ProjectAnalysis#getAnalysisDate

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1
    • Component/s: Plugin API
    • Labels:

      Description

      Currently, PostProjectAnalysisTask.ProjectAnalysis#getDate is defined as "Date of the analysis. This date is the same as the date of the project analysis report and the snapshot." and is not nullable.

      Unfortunately, the fact this date can not be null isn't true:

      • this date can be missing from the report
      • the report and/or this date might not be readable

      This method should therefor be deprecated and a new one called getAnalysisDate, which will return an Optional<Date>.

      When date is not available, method getDate will return the current date.

        Attachments

          Activity

            People

            Assignee:
            sebastien.lesaint Sebastien Lesaint
            Reporter:
            sebastien.lesaint Sebastien Lesaint
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: