Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update collection-object-parameters-may-be-null for new annotations. #3549

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ class Vector<E> {
package java.util.concurrent;

public class ArrayBlockingQueue<E> {
public boolean removeAll(Collection<?> c);
public boolean retainAll(Collection<?> c);
public boolean remove(@Nullable Object o);
public boolean contains(@Nullable Object o);
}

public class ConcurrentLinkedDeque<E> {
Expand All @@ -210,8 +210,6 @@ public class ConcurrentSkipListSet<E>

public class CopyOnWriteArrayList<E>
implements List<E>, RandomAccess, Cloneable, java.io.Serializable {
public int indexOf(@Nullable Object o);
public int lastIndexOf(@Nullable Object o);
public boolean removeAll(Collection<?> c);
public boolean retainAll(Collection<?> c);
}
Expand All @@ -229,13 +227,15 @@ public class DelayQueue<E extends Delayed> extends AbstractQueue<E>
}

class LinkedBlockingDeque<E> {
public boolean removeAll(Collection<?> c);
public boolean retainAll(Collection<?> c);
public boolean removeFirstOccurrence(@Nullable Object o);
public boolean removeLastOccurrence(@Nullable Object o);
public boolean remove(@Nullable Object o);
public boolean contains(@Nullable Object o);
}

class LinkedBlockingQueue<E> {
public boolean removeAll(Collection<?> c);
public boolean retainAll(Collection<?> c);
public boolean remove(@Nullable Object o);
public boolean contains(@Nullable Object o);
}

class LinkedTransferQueue<E> {
Expand All @@ -244,8 +244,8 @@ class LinkedTransferQueue<E> {
}

class PriorityBlockingQueue<E> {
public boolean removeAll(Collection<?> c);
public boolean retainAll(Collection<?> c);
public boolean remove(@Nullable Object o);
public boolean contains(@Nullable Object o);
}

public class SynchronousQueue<E> extends AbstractQueue<E>
Expand Down