diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 16:42:33 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 16:42:33 +0200 |
commit | bd3966af0e5d2ce948bf22dcb99227e0df5c6f13 (patch) | |
tree | aef91399af0bef930dd18acb8bf0bb0f4817557e /src/lombok/core/LombokNode.java | |
parent | 56616f3bec6d8eda8c2bcf0550490f0098fb7fed (diff) | |
parent | 1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7 (diff) | |
download | lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.gz lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.bz2 lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.zip |
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'src/lombok/core/LombokNode.java')
-rw-r--r-- | src/lombok/core/LombokNode.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lombok/core/LombokNode.java b/src/lombok/core/LombokNode.java index e4712313..c8ee4c00 100644 --- a/src/lombok/core/LombokNode.java +++ b/src/lombok/core/LombokNode.java @@ -125,8 +125,8 @@ public abstract class LombokNode<A extends AST<A, L, N>, L extends LombokNode<A, * Also affects the underlying (Eclipse/javac) AST. */ @SuppressWarnings("unchecked") - public L replaceWith(N newN, Kind kind) { - L newNode = ast.buildTree(newN, kind); + public L replaceWith(N newN, Kind newNodeKind) { + L newNode = ast.buildTree(newN, newNodeKind); newNode.parent = parent; for (int i = 0; i < parent.children.size(); i++) { if (parent.children.get(i) == this) ((List)parent.children).set(i, newNode); @@ -227,8 +227,8 @@ public abstract class LombokNode<A extends AST<A, L, N>, L extends LombokNode<A, * Does not change the underlying (javac/Eclipse) AST, only the wrapped view. */ @SuppressWarnings("unchecked") - public L add(N newChild, Kind kind) { - L n = ast.buildTree(newChild, kind); + public L add(N newChild, Kind newChildKind) { + L n = ast.buildTree(newChild, newChildKind); if (n == null) return null; n.parent = (L) this; ((List)children).add(n); |