java - How to override method's javadoc without overriding the method itself? -


say have 2 classes:

public abstract class abstractfoo {      /**      * bar. subclasses may override method, not required baz.      */     public void bar() {         // default implementation     }  }  public class concretefoo extends abstractfoo {      /**      * bar. <b>note:</b> not baz, have yourself.      */     @override     public void bar() {         super.bar();     } } 

in subclass (concretefoo) want override bar()'s javadoc keep implementation in super class (abstractfoo). there way without overriding method?

no there absolutely no way of doing that.
should, however, use

/**  * {@inheritdoc}  * add whatever here  */ 

notation implementation javadoc, if plan on overriding method.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -