Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 1,112 for SuppressWarnings (0.1 seconds)

  1. guava-testlib/src/com/google/common/testing/CollectorTester.java

      /**
       * Verifies that the specified expected result is always produced by collecting the specified
       * inputs, regardless of how the elements are divided.
       */
      @SafeVarargs
      @CanIgnoreReturnValue
      @SuppressWarnings("nullness") // TODO(cpovirk): Remove after we fix whatever the bug is.
      public final CollectorTester<T, A, R> expectCollects(R expectedResult, T... inputs) {
        List<T> list = Arrays.asList(inputs);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu May 15 21:47:56 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  2. okhttp/src/jvmMain/java9/module-info.java

    @SuppressWarnings("module")
    module okhttp3 {
      requires transitive kotlin.stdlib;
      requires transitive okio;
      requires java.logging;
      exports okhttp3;
      exports okhttp3.internal to okhttp3.logging, okhttp3.sse, okhttp3.java.net.cookiejar, okhttp3.dnsoverhttps, mockwebserver3, okhttp3.mockwebserver, okhttp3.coroutines, okhttp3.tls;
      exports okhttp3.internal.concurrent to mockwebserver3, okhttp3.mockwebserver;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Sep 21 08:30:26 GMT 2025
    - 969 bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(Lists.newArrayList("a"), new ArrayList<>(set));
      }
    
      public void testCreation_oneDuplicate() {
        // now we'll get the varargs overload
        @SuppressWarnings("DistinctVarargsChecker") // deliberately testing deduplication
        ImmutableSet<String> set =
            ImmutableSet.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "a");
        assertEquals(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

    import junit.framework.TestCase;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Unit test for {@code AbstractIterator}.
     *
     * @author Kevin Bourrillion
     */
    @SuppressWarnings("serial") // No serialization is used in this test
    @GwtCompatible
    @NullMarked
    public class AbstractIteratorTest extends TestCase {
    
      public void testDefaultBehaviorOfNextAndHasNext() {
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

     * comparable. This implementation passes the navigable set test suites.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public final class SafeTreeSet<E> implements Serializable, NavigableSet<E> {
      @SuppressWarnings("unchecked")
      private static final Comparator<Object> NATURAL_ORDER =
          new Comparator<Object>() {
            @Override
            public int compare(Object o1, Object o2) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        // We assume that all defaults are generics-safe, even if they aren't,
        // we take the risk.
        @SuppressWarnings("unchecked")
        T defaultValue = (T) defaults.getInstance(type.getRawType());
        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe
        T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProcessor.java

    import org.apache.maven.model.locator.ModelLocator;
    
    /**
     * ModelProcessor
     *
     * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    @SuppressWarnings("checkstyle:interfaceistype")
    public interface ModelProcessor extends ModelLocator, ModelReader {
    
        String SOURCE = "org.apache.maven.model.building.source";
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class SortedSetMultimapGetTester<K, V>
        extends AbstractMultimapTester<K, V, SortedSetMultimap<K, V>> {
      public void testValueComparator() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        Class<? super T> rawType = type.getRawType();
        @SuppressWarnings("unchecked") // Assume all default values are generics safe.
        T defaultValue = (T) defaultValues.getInstance(rawType);
        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // ArbitraryInstances always returns generics-safe dummies.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

    /**
     * An immutable sorted set with one or more elements. TODO(jlevy): Consider separate class for a
     * single-element sorted set.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     */
    @GwtCompatible
    @SuppressWarnings({"serial", "rawtypes"})
    final class RegularImmutableSortedSet<E> extends ImmutableSortedSet<E> {
      static final RegularImmutableSortedSet<Comparable> NATURAL_EMPTY_SET =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 9K bytes
    - Click Count (0)
Back to Top