/*
    This code compiles without any problems
 */

class TestInterfaceInClass {

    private interface Int1 {}
    protected interface Int2 {}
}