public class A {
static class B {
}
}
public class C {
void m(X x) {
if (x instanceof A.B) { ... } // not working
}
}
Is there a way to verify if some object (x) is actually the inner class (B) of some class (A) in this scenario?
I'm getting this error, but I unfortunately have no control over the classes A and B.
The type A.B is not visible