//renaming to kk, j package p; class A{ private void m(final int i, int j){ new Object(){ int kk; void fred(){ kk= 0; } }; } }