Community
Participate
Working Groups
N20111121-2000. 1. WARNING in /src/org/eclipse/equinox/metatype/impl/ObjectClassDefinitionImpl.java (at line 166) @SuppressWarnings("hiding") Unnecessary @SuppressWarnings("hiding")
This is similar to bug 302375 and bug 300643. The @SuppressWarnings("hiding") is actually necessary because there is, in fact, an instance variable being overridden (intentionally) by a method local one. If I understand correctly, the 'Unnecessary @SuppressWarnings("hiding")' warning shows up in the build because the related 'Local variable declaration hides another field or variable' compiler setting is ignored there but not in my workspace. I believe I can fix this by adding "javacWarnings..=-hiding" to the build.properties of the metatype project, correct?
(In reply to comment #1) > This is similar to bug 302375 and bug 300643. The @SuppressWarnings("hiding") > is actually necessary because there is, in fact, an instance variable being > overridden (intentionally) by a method local one. > > If I understand correctly, the 'Unnecessary @SuppressWarnings("hiding")' > warning shows up in the build because the related 'Local variable declaration > hides another field or variable' compiler setting is ignored there but not in > my workspace. > > I believe I can fix this by adding "javacWarnings..=-hiding" to the > build.properties of the metatype project, correct? yes.
Added javacWarnings..=-hiding to metatype project's build.properties. http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=34f4c9c7d16399d7a0bcc2afff9c464ed269a70c
Marking as fixed as per comment 3.
Verified in N20111122-2000.