mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 04:18:44 +00:00
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
This commit is contained in:
1 parent
84a74bf638
commit
9523364898
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user