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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -