Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for NPE (0.06 sec)

  1. guava/src/com/google/common/reflect/Types.java

        if (ownerType == null) {
          return newParameterizedType(rawType, arguments);
        }
        // ParameterizedTypeImpl constructor already checks, but we want to throw NPE before IAE
        checkNotNull(arguments);
        checkArgument(rawType.getEnclosingClass() != null, "Owner type for unenclosed %s", rawType);
        return new ParameterizedTypeImpl(ownerType, rawType, arguments);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        }
      }
    
      public void testTryParse_withNullGwt() {
        assertThat(Longs.tryParse("null")).isNull();
        try {
          Longs.tryParse(null);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      }
    
      @GwtIncompatible
      public void testTryParse_withNullNoGwt() {
        assertThat(Floats.tryParse("null")).isNull();
        try {
          Floats.tryParse(null);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        }
      }
    
      public void testTryParse_withNullGwt() {
        assertThat(Ints.tryParse("null")).isNull();
        try {
          Ints.tryParse(null);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      @GwtIncompatible
      public void testTryParse_withNullNoGwt() {
        assertThat(Doubles.tryParse("null")).isNull();
        try {
          Doubles.tryParse(null);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/FloatsTest.java

      }
    
      @GwtIncompatible
      public void testTryParse_withNullNoGwt() {
        assertThat(Floats.tryParse("null")).isNull();
        try {
          Floats.tryParse(null);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/LongsTest.java

        }
      }
    
      public void testTryParse_withNullGwt() {
        assertThat(Longs.tryParse("null")).isNull();
        try {
          Longs.tryParse(null);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      @GwtIncompatible
      public void testTryParse_withNullNoGwt() {
        assertThat(Doubles.tryParse("null")).isNull();
        try {
          Doubles.tryParse(null);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/IntsTest.java

        }
      }
    
      public void testTryParse_withNullGwt() {
        assertThat(Ints.tryParse("null")).isNull();
        try {
          Ints.tryParse(null);
          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Streams.java

       * nulls as long as the *last* element is *not* null.
       *
       * (To "go out of its way," the method tracks a `set` bit so that it can distinguish "the final
       * split has a last element of null, so throw NPE" from "the final split was empty, so look for an
       * element in the prior one.")
       */
      public static <T> java.util.Optional<T> findLast(Stream<T> stream) {
        class OptionalState {
          boolean set = false;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 36.5K bytes
    - Viewed (0)
Back to top