I want to write method that would accept parameter of types a.A or b.B. Currently it's implemented:
I want to have one generic method "doSth" that use wildcards and accepts only a.A or b.B. Important information a.A and b.B aren't subtypes of each other. The only common type is java.lang.Object.