Merge pull request #10257 from igfoo/igfoo/hasModifier

Java: Correct hasModifier documentation
This commit is contained in:
Ian Lynagh
2022-09-01 15:49:06 +01:00
committed by GitHub

View File

@@ -20,7 +20,7 @@ abstract class Modifiable extends Element {
* For most purposes, the more specialized predicates `isAbstract`, `isPublic`, etc.
* should be used.
*
* Both this method and those specialized predicates take implicit modifiers into account.
* Those specialized predicates also take implicit modifiers into account.
* For instance, non-default instance methods in interfaces are implicitly
* abstract, so `isAbstract()` will hold for them even if `hasModifier("abstract")`
* does not.