mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
[i554] Another try to prevent NPEs on IBM J9
This commit is contained in:
1 parent
ae57c4b320
commit
68c5b016f9
1 file changed
+5
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user