Skip to content

Commit 246a515

Browse files
committed
Java: instanceof pattern matching is no longer a preview feature
1 parent beb0902 commit 246a515

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,15 +1366,11 @@ class InstanceOfExpr extends Expr, @instanceofexpr {
13661366
}
13671367

13681368
/**
1369-
* PREVIEW FEATURE in Java 14. Subject to removal in a future release.
1370-
*
13711369
* Holds if this `instanceof` expression uses pattern matching.
13721370
*/
13731371
predicate isPattern() { exists(this.getLocalVariableDeclExpr()) }
13741372

13751373
/**
1376-
* PREVIEW FEATURE in Java 14. Subject to removal in a future release.
1377-
*
13781374
* Gets the local variable declaration of this `instanceof` expression if pattern matching is used.
13791375
*/
13801376
LocalVariableDeclExpr getLocalVariableDeclExpr() { result.isNthChildOf(this, 0) }

0 commit comments

Comments
 (0)