Suppress Eclipse warnings for deliberate name shadowing

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-11-21 18:48:48 +00:00
parent 38ac11d0b7
commit 9a76dcf3c9
3 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@
* @author mbenson
* @version $Id$
*/
@SuppressWarnings({ "unused", "hiding" }) // deliberate re-use of variable names
public class PrivatelyShadowedChild extends Parent {
private String s = "ss";
private boolean b = true;

View File

@ -21,5 +21,6 @@
* @version $Id$
*/
public class PublicChild extends Parent {
@SuppressWarnings("hiding") // deliberate reuse of variable name
static final String VALUE = "child";
}

View File

@ -20,6 +20,7 @@
* @author mbenson
* @version $Id$
*/
@SuppressWarnings("hiding") // deliberate re-use of variable names
public class PubliclyShadowedChild extends Parent {
public String s = "ss";
public boolean b = true;