Community
Participate
Working Groups
Build 3.0M3 With unused private member diagnosis enabled, the following (slightly incorrect) code should not signal that the local type B is unused: public class X { public static class Y { public Y(Z z) {} } public interface Z {} } class A { private static class B extends X.Y implements X.Z { B(A a) { super(B.this); } } }
Actually, the diagnosis is right, B is never referenced from the outside.