Skip to content

Commit 9a79e3b

Browse files
committed
Java 14: add PREVIEW FEATURE notes to QLDoc
1 parent 697b273 commit 9a79e3b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,10 +1136,18 @@ class InstanceOfExpr extends Expr, @instanceofexpr {
11361136
else result.isNthChildOf(this, 0)
11371137
}
11381138

1139-
/** Holds if this `instanceof` expression uses pattern matching. */
1139+
/**
1140+
* PREVIEW FEATURE in Java 14. Subject to removal in a future release.
1141+
*
1142+
* Holds if this `instanceof` expression uses pattern matching.
1143+
*/
11401144
predicate isPattern() { exists(getLocalVariableDeclExpr()) }
11411145

1142-
/** Gets the local variable declaration of this `instanceof` expression if pattern matching is used. */
1146+
/**
1147+
* PREVIEW FEATURE in Java 14. Subject to removal in a future release.
1148+
*
1149+
* Gets the local variable declaration of this `instanceof` expression if pattern matching is used.
1150+
*/
11431151
LocalVariableDeclExpr getLocalVariableDeclExpr() { result.isNthChildOf(this, 0) }
11441152

11451153
/** Gets the access to the type on the right-hand side of the `instanceof` operator. */

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,11 @@ class Class extends RefType, @class {
615615
}
616616
}
617617

618-
/** A record declaration. */
618+
/**
619+
* PREVIEW FEATURE in Java 14. Subject to removal in a future release.
620+
*
621+
* A record declaration.
622+
*/
619623
class Record extends Class {
620624
Record() { isRecord(this) }
621625
}

0 commit comments

Comments
 (0)