aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Glick <jesse.glick@oracle.com>2010-11-29 17:54:19 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-11-29 17:54:19 +0100
commit9523364898061cf4163c51f9f70befb19d1d64a6 (patch)
tree567d3e5624dc169d86387f446b0a2463b4f2aa3f
parent84a74bf63884e70fbd25b2e54eb8e60de66ccda9 (diff)
downloadlombok-9523364898061cf4163c51f9f70befb19d1d64a6.tar.gz
lombok-9523364898061cf4163c51f9f70befb19d1d64a6.tar.bz2
lombok-9523364898061cf4163c51f9f70befb19d1d64a6.zip
Make compilable under JDK 7's javac (thus also removing an error mark in NetBeans' editor).
src/core/lombok/core/LombokNode.java:260: gatherAndRemoveChildren(Map<N,L>) has private access in LombokNode for (L child : children) child.gatherAndRemoveChildren(map); ^ where N,L,A are type-variables: N extends Object declared in class LombokNode L extends LombokNode<A,L,N> declared in class LombokNode A extends AST<A,L,N> declared in class LombokNode
-rw-r--r--src/core/lombok/core/LombokNode.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/core/LombokNode.java b/src/core/lombok/core/LombokNode.java
index 4a57e080..90e55757 100644
--- a/src/core/lombok/core/LombokNode.java
+++ b/src/core/lombok/core/LombokNode.java
@@ -289,9 +289,9 @@ public abstract class LombokNode<A extends AST<A, L, N>, L extends LombokNode<A,
ast.replaceNewWithExistingOld(oldNodes, newNode);
}
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({"unchecked", "rawtypes"})
private void gatherAndRemoveChildren(Map<N, L> map) {
- for (L child : children) child.gatherAndRemoveChildren(map);
+ for (LombokNode child : children) child.gatherAndRemoveChildren(map);
ast.identityDetector.remove(get());
map.put(get(), (L) this);
children.clear();