JavadocWriter: Accessor javadoc is smaller than field's javadoc - should ignore if javadoc contains only javadoc tags

I have a field that intentionally has a setter but no getter, so I used the
InspectionGadgets intention to add the @noinspection FieldHasSetterButNoGetter tag, which
created a javadoc comment for the field.

Problem:
The JavadocWriter inspection "Accessor javadoc is smaller than field's javadoc" now flags
the setter with a warning but the intention does nothing because the field's javadoc only
has the one tag, which correctly does not get copied to the accessor.

Solution:
If smartcopy of the field javadoc would do nothing, then don't flag the accessor/mutator.

1 comment

Ok, i'll implement it tomorrow, along with the NPE fix :)

Gilles

0

Please sign in to leave a comment.