@@ -112,42 +112,22 @@ private ElementFilter() {} // Do not instantiate.
112
112
}
113
113
114
114
/**
115
- * {@preview Associated with records, a preview feature of the Java language.
116
- *
117
- * This method is associated with <i>records</i>, a preview
118
- * feature of the Java language. Preview features
119
- * may be removed in a future release, or upgraded to permanent
120
- * features of the Java language.}
121
- *
122
115
* Returns a list of record components in {@code elements}.
123
116
* @return a list of record components in {@code elements}
124
117
* @param elements the elements to filter
125
- * @since 14
118
+ * @since 16
126
119
*/
127
- @ jdk .internal .PreviewFeature (feature =jdk .internal .PreviewFeature .Feature .RECORDS ,
128
- essentialAPI =false )
129
- @ SuppressWarnings ("preview" )
130
120
public static List <RecordComponentElement >
131
121
recordComponentsIn (Iterable <? extends Element > elements ) {
132
122
return listFilter (elements , RECORD_COMPONENT_KIND , RecordComponentElement .class );
133
123
}
134
124
135
125
/**
136
- * {@preview Associated with records, a preview feature of the Java language.
137
- *
138
- * This method is associated with <i>records</i>, a preview
139
- * feature of the Java language. Preview features
140
- * may be removed in a future release, or upgraded to permanent
141
- * features of the Java language.}
142
- *
143
126
* Returns a set of record components in {@code elements}.
144
127
* @return a set of record components in {@code elements}
145
128
* @param elements the elements to filter
146
- * @since 14
129
+ * @since 16
147
130
*/
148
- @ jdk .internal .PreviewFeature (feature =jdk .internal .PreviewFeature .Feature .RECORDS ,
149
- essentialAPI =false )
150
- @ SuppressWarnings ("preview" )
151
131
public static Set <RecordComponentElement >
152
132
recordComponentsIn (Set <? extends Element > elements ) {
153
133
return setFilter (elements , RECORD_COMPONENT_KIND , RecordComponentElement .class );
0 commit comments