/*
FinalClass


*/

//non-compiled with javac: Compilable with Java14
package com.puppycrawl.tools.checkstyle.checks.design.finalclass;

public record InputFinalClassConstructorInRecord(String string) { // ok

    public InputFinalClassConstructorInRecord {
    }
    public InputFinalClassConstructorInRecord(int x) {
        this(String.valueOf(x));
    }

    class F {
        private F() {
        }
    }

    class K extends F {
    }

    class X {
        class F { // violation
            private F() {
            }
        }
    }

}
