isFinal

open fun isFinal(): Boolean(source)

Records are implicitly final, even without the explicit modifier. https://openjdk.java.net/jeps/359#Restrictions-on-records If wanting to find out if the keyword final is explicitly added to this parameter, you should use node.hasModifier(Modifier.Keyword.FINAL)

Return

always true -- Records are always implicitly final, therefore can never not be final.