summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0f1b201)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
public void compacter(int nElements) {
// Remove the first nElements
public void compacter(int nElements) {
// Remove the first nElements
- if (isEmpty()) {
- return;
- } else if (nElements == 0) {
+ if (isEmpty() || nElements == 0) {
return;
} else if (headNode != null && headNode.getNext() == null) {
headNode = null;
return;
} else if (headNode != null && headNode.getNext() == null) {
headNode = null;