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

S2325: extend the rule to cover final methods and classes

    Details

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

      Description

      Currently implementation of RSPEC-2325 is limited to private methods to guarantee that methods will not be overridden. Still final method or containing class will guarantee the same thing

      class A {
         public final String method() { // we should report here
           return "Hello, world";
         }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                guillaume.dequenne Guillaume Dequenne
                Reporter:
                elena.vilchik Elena Vilchik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: