Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Bug in descriptor ... NeighborList.java ? #556
In this circumstance, not all atoms are put into the neighbor list.
Should this be revised to:
Yes I think so, will have to look at what this descriptor is doing but the better way to write this doing 1/2 the work and in less lines...
List arl = this.boxes.get(key); if (arl == null) this.boxes.put(arl, arl = new ArrayList<>()); arl.add(i);
Java 8 has computeIfAbsent which is the same but this is the way to do it in Java 7.