## Uses of Class
java.lang.SuppressWarnings

- Packages that use SuppressWarnings
  Package | Description
  --- | ---
  java.util |
  java.util.concurrent | Utility classes commonly useful in concurrent programming.
  java.util.stream | Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
  org.netbeans.modules.openide.util |

- - ### Uses of SuppressWarnings in java.util

    Fields in java.util with annotations of type SuppressWarnings
    Modifier and Type | Field and Description
    --- | ---
    `static List` | Collections.`EMPTY_LIST` The empty list (immutable).
    `static Map` | Collections.`EMPTY_MAP` The empty map (immutable).
    `static Set` | Collections.`EMPTY_SET` The empty set (immutable).

    Methods in java.util with annotations of type SuppressWarnings
    Modifier and Type | Method and Description
    --- | ---
    `static <T> List<T>` | Arrays.`asList(T... a)` Returns a fixed-size list backed by the specified array.
    `static <T> T[]` | Arrays.`copyOf(T[] original, int newLength)` Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.
    `static <T> T[]` | Arrays.`copyOfRange(T[] original, int from, int to)` Copies the specified range of the specified array into a new array.
    `static <T> Enumeration<T>` | Collections.`emptyEnumeration()` Returns an enumeration that has no elements.
    `static <T> Iterator<T>` | Collections.`emptyIterator()` Returns an iterator that has no elements.
    `static <T> List<T>` | Collections.`emptyList()` Returns the empty list (immutable).
    `static <T> ListIterator<T>` | Collections.`emptyListIterator()` Returns a list iterator that has no elements.
    `static <K,V> Map<K,V>` | Collections.`emptyMap()` Returns the empty map (immutable).
    `static <T> Set<T>` | Collections.`emptySet()` Returns the empty set (immutable).
    `static <T> Spliterator<T>` | Spliterators.`emptySpliterator()` Creates an empty `Spliterator`
    `default void` | Spliterator.OfPrimitive.`forEachRemaining(T_CONS action)` Performs the given action for each remaining element, sequentially in the current thread, until all elements have been processed or the action throws an exception.
    `void` | PrimitiveIterator.`forEachRemaining(T_CONS action)` Performs the given action for each remaining element, in the order elements occur when iterating, until all elements have been processed or the action throws an exception.
    `static <T extends Comparable<? super T>> void` | Arrays.`parallelSort(T[] a)` Sorts the specified array of objects into ascending order, according to the natural ordering of its elements.
    `static <T> void` | Arrays.`parallelSort(T[] a, Comparator<? super T> cmp)` Sorts the specified array of objects according to the order induced by the specified comparator.
    `static <T extends Comparable<? super T>> void` | Arrays.`parallelSort(T[] a, int fromIndex, int toIndex)` Sorts the specified range of the specified array of objects into ascending order, according to the natural ordering of its elements.
    `static <T> void` | Arrays.`parallelSort(T[] a, int fromIndex, int toIndex, Comparator<? super T> cmp)` Sorts the specified range of the specified array of objects according to the order induced by the specified comparator.
    `<T> T[]` | Vector.`toArray(T[] a)` Returns an array containing all of the elements in this Vector in the correct order; the runtime type of the returned array is that of the specified array.
    `<T> T[]` | LinkedList.`toArray(T[] a)` Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
    `<T> T[]` | ArrayList.`toArray(T[] a)` Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
    `boolean` | Spliterator.OfPrimitive.`tryAdvance(T_CONS action)` If a remaining element exists, performs the given action on it, returning `true`; else returns `false`.

    Constructors in java.util with annotations of type SuppressWarnings
    Constructor and Description
    `PriorityQueue(Collection<? extends E> c)` Creates a `PriorityQueue` containing the elements in the specified collection.
    `PriorityQueue(PriorityQueue<? extends E> c)` Creates a `PriorityQueue` containing the elements in the specified priority queue.
    `PriorityQueue(SortedSet<? extends E> c)` Creates a `PriorityQueue` containing the elements in the specified sorted set.

  - ### Uses of SuppressWarnings in java.util.concurrent

    Methods in java.util.concurrent with annotations of type SuppressWarnings
    Modifier and Type | Method and Description
    --- | ---
    `Object[]` | LinkedBlockingDeque.`toArray()` Returns an array containing all of the elements in this deque, in proper sequence (from first to last element).
    `<T> T[]` | LinkedBlockingQueue.`toArray(T[] a)` Returns an array containing all of the elements in this queue, in proper sequence; the runtime type of the returned array is that of the specified array.
    `<T> T[]` | LinkedBlockingDeque.`toArray(T[] a)` Returns an array containing all of the elements in this deque, in proper sequence; the runtime type of the returned array is that of the specified array.
    `<T> T[]` | CopyOnWriteArrayList.`toArray(T[] a)` Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
    `<T> T[]` | ConcurrentLinkedQueue.`toArray(T[] a)` Returns an array containing all of the elements in this queue, in proper sequence; the runtime type of the returned array is that of the specified array.
    `<T> T[]` | ArrayBlockingQueue.`toArray(T[] a)` Returns an array containing all of the elements in this queue, in proper sequence; the runtime type of the returned array is that of the specified array.

    Constructors in java.util.concurrent with annotations of type SuppressWarnings
    Constructor and Description
    `ConcurrentHashMap(int initialCapacity, float loadFactor, int concurrencyLevel)` Creates a new, empty map with the specified initial capacity, load factor and concurrency level.

  - ### Uses of SuppressWarnings in java.util.stream

    Methods in java.util.stream with annotations of type SuppressWarnings
    Modifier and Type | Method and Description
    --- | ---
    `static <T> Stream<T>` | Stream.`of(T... values)` Returns a sequential ordered stream whose elements are the specified values.

  - ### Uses of SuppressWarnings in org.netbeans.modules.openide.util

    Methods in org.netbeans.modules.openide.util with annotations of type SuppressWarnings
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | GlobalLookup.`execute(Lookup defaultLookup, Runnable r)`

Copyright © 2025 API Design. All Rights Reserved.