Class Java14Validator

    • Field Detail

      • recordAsTypeIdentifierNotAllowed

        final Validator recordAsTypeIdentifierNotAllowed
        With the introduction of record classes, record is no longer permitted as an identifier.
        A type identifier is any identifier other than the character sequences var, yield, and record.

        Type identifiers are used in certain contexts involving the declaration or use of types. For example, the name of a class must be a TypeIdentifier, so it is illegal to declare a class named var, yield, or record (8.1).
        https://docs.oracle.com/javase/specs/jls/se15/preview/specs/records-jls.html#jls-3.8
      • recordDeclarationValidator

        final Validator recordDeclarationValidator
    • Constructor Detail

      • Java14Validator

        public Java14Validator()