mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 19:45:01 +00:00
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:
parent
38ac11d0b7
commit
9a76dcf3c9
@ -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;
|
||||
|
@ -21,5 +21,6 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
public class PublicChild extends Parent {
|
||||
@SuppressWarnings("hiding") // deliberate reuse of variable name
|
||||
static final String VALUE = "child";
|
||||
}
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user