An interface declaration is nested within an interface declaration, which is not allowed. Interfaces declarations are only allowed within the global scope or within a package.
To correct this error
-
Make sure nested interface declarations do not occur.