Skip to content

Commit

Permalink
Do not employ bitwise-or operation for logic
Browse files Browse the repository at this point in the history
  • Loading branch information
CoreRasurae authored and Luís Mendes committed Oct 29, 2024
1 parent 7361c2a commit b0a0061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/spoon/support/util/SortedList.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void add(int index, E element) {
public boolean addAll(Collection<? extends E> c) {
boolean ret = false;
for (E e : c) {
ret |= add(e);
ret = add(e) || ret;
}
return ret;
}
Expand Down

0 comments on commit b0a0061

Please sign in to comment.