eclipse-jdt / eclipse-jdt/eclipse.jdt.core
invalidJavadocTags does not consider default access modifiers
- Dominant language
- Java
- Stars
- 237
- Forks
- 195
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 47
Description
`invalidJavadocTags` can be configured to only examine methods with certain access modifiers (`invalidJavadocTagsVisibility`). However this seems to only consider explicitly specified modifiers and not effective/default modifiers.
E.g. when `invalidJavadocTagsVisibility` is set to `protected` it should validate all methods in an interface since they are all implicitly `public`. However, a warning is only created when the method is explicitly marked as `public`:
```java
public interface MyInterface
{
// creates a warning
/**
* @param doesNotExist
*/
public void test1();
// does not create a warning
/**
* @param doesNotExist
*/
void test2();
}
```
Contributor guide
Assessment
This issue has not been assessed yet.