PavelTurk opened a new issue, #6718:
URL: https://github.com/apache/netbeans/issues/6718

   ### Description
   
   I suggest to add `{@inheritDoc}` inline tag whenever code generated by NB 
contains `@Override` method. 
   
   For example, we have `A` class:
   
   ```
   public class A {
   
       /**
        * Does it.
        *
        * Does it as no one else.
        *
        * @param foo
        * @return string if everything is ok.
        */
       public String doIt(int foo) {
           return null;
       }
   }
   ```
   Now we want to override `doIt` method in `B` class. So,
   
   ```
   public class B extends A {
   
      //here Alt+Insert -> Override method -> select doIt. The following code 
must be generated:
   
       /**
        * {@inheritDoc}
        */
       @Override
       public String doIt(int a) {
           return super.doIt(a);
       }
   }
   ```
   The same is for interfaces implementations.
   
   ### Use case/motivation
   
   In most cases Javadoc comments are provided in interfaces or parent classes 
while implementation and child classes take these comments from interfaces or 
parent classes.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to