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

FP on S1185: Changing method visibility should not raise issue

    XMLWordPrintable

    Details

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

      Description

      Bar.java
      import java.io.IOException;
      
      public class Bar {
        protected Object foo() throws IOException {
          return null;
        }
      }
      
      Foo.java
      import java.io.IOException;
      
      public class Foo extends Bar {
      
        @Override
        public Object foo() throws IOException { // should not raise an issue
          return super.foo();
        }
      }
      

      Mailing list: https://groups.google.com/d/msgid/sonarqube/DUB124-DS124FC64C6C03D15EC6DFE798230%40phx.gbl

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.gumowski Michael Gumowski
              Reporter:
              michael.gumowski Michael Gumowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: