File tree Expand file tree Collapse file tree
java/ql/src/semmle/code/java Expand file tree Collapse file tree Original file line number Diff line number Diff 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. */
Original file line number Diff line number Diff 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+ */
619623class Record extends Class {
620624 Record ( ) { isRecord ( this ) }
621625}
You can’t perform that action at this time.
0 commit comments