File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
java/ql/src/semmle/code/java Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -1136,10 +1136,18 @@ class InstanceOfExpr extends Expr, @instanceofexpr {
1136
1136
else result .isNthChildOf ( this , 0 )
1137
1137
}
1138
1138
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
+ */
1140
1144
predicate isPattern ( ) { exists ( getLocalVariableDeclExpr ( ) ) }
1141
1145
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
+ */
1143
1151
LocalVariableDeclExpr getLocalVariableDeclExpr ( ) { result .isNthChildOf ( this , 0 ) }
1144
1152
1145
1153
/** 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 {
615
615
}
616
616
}
617
617
618
- /** A record declaration. */
618
+ /**
619
+ * PREVIEW FEATURE in Java 14. Subject to removal in a future release.
620
+ *
621
+ * A record declaration.
622
+ */
619
623
class Record extends Class {
620
624
Record ( ) { isRecord ( this ) }
621
625
}
You can’t perform that action at this time.
0 commit comments