Skip to content

Commit 94f0a15

Browse files
authored
Merge pull request #5682 from smowton/smowton/docs/fix-has-modifier-comment
Fix documentation of Modifier.qll
2 parents ba33508 + bd3b317 commit 94f0a15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/ql/src/semmle/code/java/Modifier.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ abstract class Modifiable extends Element {
1818
* Holds if this element has modifier `m`.
1919
*
2020
* For most purposes, the more specialized predicates `isAbstract`, `isPublic`, etc.
21-
* should be used, which also take implicit modifiers into account.
21+
* should be used.
22+
*
23+
* Both this method and those specialized predicates take implicit modifiers into account.
2224
* For instance, non-default instance methods in interfaces are implicitly
2325
* abstract, so `isAbstract()` will hold for them even if `hasModifier("abstract")`
2426
* does not.

0 commit comments

Comments
 (0)