Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3751

Extend S4738 to suggest Java 9 "List.of", "Map.of", "Set.of" instead of Guava

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.15
    • Component/s: Rules
    • Labels:

      Description

      S4738 currently targets Java 8 features that could be used instead of Guava.
      However, Java >8 included more features that could replace Guava in the same manner, it makes sense to report them together in this rule.
      More specifically, this ticket targets List.of, Set.of and Map.of. See JEP-269.

      This implies:

      Make sure that such methods are only reported when using Java version >= 9.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                margarita.nedzelska Margarita Nedzelska
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: