Example

public class ClassA {
public class InnerClassA () {
}
}

Solution
Do not have more than 1 class or interface in a single file

Re-design the code structure to avoid the use of inner classes/interfaces.