diff options
author | Roel Spilker <r.spilker@gmail.com> | 2014-06-06 00:41:01 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2014-06-06 00:41:01 +0200 |
commit | 68c5b016f9a2663abc9cd4aeb0cc0034949469ca (patch) | |
tree | 94f877c6330089f3c3fe288f4ad8320b81b9b976 /src | |
parent | ae57c4b3202458101f961185ef274b00dda58058 (diff) | |
download | lombok-68c5b016f9a2663abc9cd4aeb0cc0034949469ca.tar.gz lombok-68c5b016f9a2663abc9cd4aeb0cc0034949469ca.tar.bz2 lombok-68c5b016f9a2663abc9cd4aeb0cc0034949469ca.zip |
[i554] Another try to prevent NPEs on IBM J9
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/javac/apt/Processor.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lombok/javac/apt/Processor.java b/src/core/lombok/javac/apt/Processor.java index 3d234541..ce4d75ff 100644 --- a/src/core/lombok/javac/apt/Processor.java +++ b/src/core/lombok/javac/apt/Processor.java @@ -256,12 +256,16 @@ public class Processor extends AbstractProcessor { for (int i = priorityLevels.length - 1; i >= 0; i--) { Long curLevel = priorityLevels[i]; Long nextLevel = (i == priorityLevels.length - 1) ? null : priorityLevels[i + 1]; + List<JCCompilationUnit> cusToAdvance = new ArrayList<JCCompilationUnit>(); for (Map.Entry<JCCompilationUnit, Long> entry : roots.entrySet()) { if (curLevel.equals(entry.getValue())) { - entry.setValue(nextLevel); + cusToAdvance.add(entry.getKey()); newLevels.add(nextLevel); } } + for (JCCompilationUnit unit : cusToAdvance) { + roots.put(unit, nextLevel); + } } newLevels.remove(null); |