diff --git a/core/src/main/java/org/jboss/jandex/ClassInfo.java b/core/src/main/java/org/jboss/jandex/ClassInfo.java index 80e0ab71..dc591a40 100644 --- a/core/src/main/java/org/jboss/jandex/ClassInfo.java +++ b/core/src/main/java/org/jboss/jandex/ClassInfo.java @@ -885,12 +885,14 @@ public final RecordComponentInfo recordComponent(String name) { /** * Returns a list of all record components declared by this class. - * This list may be empty, but never null. + * This list may be empty, but never {@code null}. + *
+ * If this class is not a record, returns an empty list.
*
- * @return a list of record components
+ * @return immutable list of record components
*/
public final List