Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16218

Mark use of java.util.Random with NOSONAR to not have false flags in code analysis reports

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None
    • Unknown

    Description

      Sonarqube and others will report these to use SecureRandom instead. But this is only for security related use such as crypto, certificates and whatnot.

      In Camel we use random numbers in some places, and there is also the random function in the simple language.

      So mark those with // NOSONAR in the source code (same line as new Random() are).
      And then only use SecureRandom in security matters.

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: