Merge pull request #5682 from smowton/smowton/docs/fix-has-modifier-comment

Fix documentation of Modifier.qll
This commit is contained in:
Chris Smowton
2021-04-21 15:41:29 +01:00
committed by GitHub

View File

@@ -18,7 +18,9 @@ abstract class Modifiable extends Element {
* Holds if this element has modifier `m`.
*
* For most purposes, the more specialized predicates `isAbstract`, `isPublic`, etc.
* should be used, which also take implicit modifiers into account.
* should be used.
*
* Both this method and those specialized predicates 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.