We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http://spoon.gforge.inria.fr/mvnsites/spoon-core/apidocs/spoon/reflect/declaration/CtModifiable.html
T addModifier(ModifierKind modifier) Returns: true if this element changed as a result of the call
However, the code does not return a Boolean:
@Override public <C extends CtModifiable> C addModifier(ModifierKind modifier) { if (modifiers == CtElementImpl.<ModifierKind>emptySet()) { this.modifiers = EnumSet.noneOf(ModifierKind.class); } getFactory().getEnvironment().getModelChangeListener().onSetAdd(this, MODIFIER, this.modifiers, modifier); modifiers.add(modifier); return (C) this; }
This documentation issue is applicable to all implementations of addModifier.
addModifier
Recommend the Javadocs be updated to indicate whether there's a way to determine that a modifier was added versus already existed.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
http://spoon.gforge.inria.fr/mvnsites/spoon-core/apidocs/spoon/reflect/declaration/CtModifiable.html
However, the code does not return a Boolean:
This documentation issue is applicable to all implementations of
addModifier
.Recommend the Javadocs be updated to indicate whether there's a way to determine that a modifier was added versus already existed.
The text was updated successfully, but these errors were encountered: