code: /*
  WriteTag
  tag = @incomplete
  tagSeverity = error
  tagFormat = \\S
  tokens = INTERFACE_DEF, CLASS_DEF, ENUM_DEF, ANNOTATION_DEF, RECORD_DEF, COMPACT_CTOR_DEF, CTOR_DEF
  
  
  */
  
  //non-compiled with javac: Compilable with Java14
  package com.puppycrawl.tools.checkstyle.checks.javadoc.writetag;
  
  
  public class InputWriteTagRecordsAndCompactCtors { // violation 'missing @incomplete tag.'
  
      // violation 2 lines below 'Type Javadoc tag @incomplete must match pattern '\\S''
      /**
       * @incomplete
       */
      class TestClass {
      }
  
      // violation 2 lines below 'Failed to recognize 'record' introduced in Java 14.'
      /**
       * @incomplete Failed to recognize 'record' introduced in Java 14.
       */
      record MyRecord1() {
  
      }
  
  
      record MyRecord2(String myString) { // violation 'missing @incomplete tag.'
  
          // violation 2 lines below 'Failed to recognize 'record' introduced in Java 14.'
          /**
           * @incomplete Failed to recognize 'record' introduced in Java 14.
           */
          public MyRecord2 {
          }
      }
  
  
      record MyRecord3(int x) { // violation 'Type Javadoc comment is missing @incomplete tag.*'
  
          // violation 2 lines below 'Failed to recognize 'record' introduced in Java 14.'
          /**
           * @incomplete Failed to recognize 'record' introduced in Java 14.
           */
          MyRecord3() {
              this(3);
          }
      }
  
  
      record MyRecord4(int y) { // violation 'Type Javadoc comment is missing @incomplete tag.*'
  
          private record MyRecord5(int z) { // violation 'missing @incomplete tag.'
  
              // violation 2 lines below 'Failed to recognize 'record' introduced in Java 14.'
              /**
               * @incomplete Failed to recognize 'record' introduced in Java 14.
               */
              public MyRecord5 {
              }
          }
  
      }
  }
  