Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 344 for NullPointerException (0.21 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/MinimalCollectionTest.java

                    // TODO: MinimalCollection should perhaps throw
                    for (Object element : elements) {
                      if (element == null) {
                        throw new NullPointerException();
                      }
                    }
                    return MinimalCollection.of(elements);
                  }
                })
            .named("MinimalCollection")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/exception/NullArgumentException.java

     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    /**
     * 引数がnullだった場合にthrowする例外です。
     *
     * {@link NullPointerException}をthrowする代わりに使うことを想定しています。
     *
     * @author wyukawa
     */
    public class NullArgumentException extends ClIllegalArgumentException {
    
        /**
         *
         */
        private static final long serialVersionUID = 1L;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

        assertThrows(NullPointerException.class, () -> collection.addAll(containsNull));
        expectUnchanged();
        expectNullMissingWhenNullUnsupported(
            "Should not contain null after unsupported addAll(containsNull)");
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_nullCollectionReference() {
        assertThrows(NullPointerException.class, () -> collection.addAll(null));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Interner.java

       * original interned instance was garbage-collected.
       *
       * <p><b>Warning:</b> do not use with mutable objects.
       *
       * @throws NullPointerException if {@code sample} is null
       */
      E intern(E sample);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableBiMap.java

        }
    
        /**
         * Associates all of the given map's keys and values in the built bimap. Duplicate keys or
         * values are not allowed, and will cause {@link #build} to fail.
         *
         * @throws NullPointerException if any key or value in {@code map} is null
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(Map<? extends K, ? extends V> map) {
          super.putAll(map);
          return this;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      // This test assumes that the implementation does not support null keys.
      public void testRowNull() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertThrows(NullPointerException.class, () -> table.row(null));
      }
    
      public void testColumn() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals(ImmutableMap.of("foo", 'a', "bar", 'b'), table.column(1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt

      fun onlyRoute() = routes.single()
    
      @Throws(IOException::class)
      override fun authenticate(
        route: Route?,
        response: Response,
      ): Request? {
        if (route == null) throw NullPointerException("route == null")
        responses += response
        routes += route
        if (!schemeMatches(response) || credential == null) return null
        val header =
          when (response.code) {
            407 -> "Proxy-Authorization"
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMultimap.java

         *
         * @throws NullPointerException if {@code key}, {@code values}, or any element in {@code values}
         *     is null. The builder is left in an invalid state.
         */
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(K key, Iterable<? extends V> values) {
          if (key == null) {
            throw new NullPointerException("null key in entry: null=" + Iterables.toString(values));
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testSetValueNullUnsupported() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          assertThrows(NullPointerException.class, () -> entry.setValue(null));
          expectUnchanged();
        }
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNull_unsupported() {
        E[] array = createArrayWithNullElement();
    
        assertThrows(
            NullPointerException.class,
            () -> {
              Object unused = getSubjectGenerator().create(array);
            });
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testCreateWithNull_unsupported()} so that tests
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top