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
Post a Comment