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

S00100 "Method naming convention" False positive when the method is overridden

    XMLWordPrintable

    Details

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

      Description

      In the following code, we do not expect an issue on the overridden method:

      public class Base {
      	
        public void MANGLED____name(AbstractSomething something) throws Exception {
        }
      
        private static class Derived extends Base {
      
          // This method is overriden, and hence there is no choice in its name
          @Override
          public void MANGLED____name(AbstractSomething something) throws Exception {
          }
      
        }
      
        private static class AbstractSomething {
        }
      
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benzonico OLD - Nicolas Peru
              Reporter:
              dinesh.bolkensteyn Dinesh Bolkensteyn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: