Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e689a9

Browse files
committed
Kotlin: Avoid name clash
1 parent da159d7 commit 0e689a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ abstract class Modifiable extends Element {
4343
predicate isFinal() { this.hasModifier("final") }
4444

4545
/** Holds if this element has a `sealed` modifier. */
46-
predicate isSealed() { this.hasModifier("sealed") }
46+
// TODO: `isSealed()` conflicts with `ClassOrInterface.isSealed()`. What name do we want to use here?
47+
predicate isSealedKotlin() { this.hasModifier("sealed") }
4748

4849
/** Holds if this element has a `public` modifier or is implicitly public. */
4950
predicate isPublic() { this.hasModifier("public") }

0 commit comments

Comments
 (0)