The java.lang.Record class was added in Java SE 14. Since the java.lang.* package
is imported implicitly in any Java class, a namespace clash could occur if another package's Record class
is imported using a wildcard. For example, if your application is using a com.foo.Record class which is imported
using import com.foo.*, starting with Java 14, the compiler will be unable to determine if your application usage of Record
is referencing com.foo.Record or java.lang.Record.
To avoid this namespace clash, use a single-type import, such as import com.foo.Record.
This rule will flag any existing Record reference once per file. Review your application's usage of
Record classes and ensure they are not imported using a wildcard.
For more information on these changes, see the Java 14 Release Notes: JEP 359 Records (Preview).