Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for NullPointerException (0.23 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

       * @return the non-null reference that was validated
       * @throws NullPointerException if {@code reference} is null
       * @see Verify#verifyNotNull Verify.verifyNotNull()
       */
      @CanIgnoreReturnValue
      public static <T> T checkNotNull(@CheckForNull T reference) {
        if (reference == null) {
          throw new NullPointerException();
        }
        return reference;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * comparable.
       *
       * @throws ClassCastException if the keys in {@code map} are not mutually comparable
       * @throws NullPointerException if any key or value in {@code map} is null
       * @throws IllegalArgumentException if any two keys are equal according to their natural ordering
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * comparable.
       *
       * @throws ClassCastException if the keys in {@code map} are not mutually comparable
       * @throws NullPointerException if any key or value in {@code map} is null
       * @throws IllegalArgumentException if any two keys are equal according to their natural ordering
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

       * set is serializable.
       *
       * @param elements the elements that the set should contain
       * @return a new thread-safe set containing those elements (minus duplicates)
       * @throws NullPointerException if {@code elements} or any of its contents is null
       * @since 15.0
       */
      public static <E> Set<E> newConcurrentHashSet(Iterable<? extends E> elements) {
        Set<E> set = newConcurrentHashSet();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testToMapWithNullValues() {
        Iterable<String> strings = ImmutableList.of("one", "two", "three");
        try {
          Maps.toMap(strings, Functions.constant(null));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testToMapWithNullValues() {
        Iterable<String> strings = ImmutableList.of("one", "two", "three");
        try {
          Maps.toMap(strings, Functions.constant(null));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(2, (int) result.next());
        try {
          result.hasNext();
          fail("no exception thrown");
        } catch (NullPointerException e) {
        }
        try {
          result.next();
          fail("no exception thrown");
        } catch (NullPointerException e) {
        }
        // There is no way to get "through" to the 3.  Buh-bye
      }
    
      public void testConcatVarArgsContainingNull() {
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterators.java

       * necessary.
       *
       * <p>The returned iterator supports {@code remove()} when the corresponding input iterator
       * supports it.
       *
       * @throws NullPointerException if any of the provided iterators is null
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterator<T> concat(Iterator<? extends T>... inputs) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(2, (int) result.next());
        try {
          result.hasNext();
          fail("no exception thrown");
        } catch (NullPointerException e) {
        }
        try {
          result.next();
          fail("no exception thrown");
        } catch (NullPointerException e) {
        }
        // There is no way to get "through" to the 3.  Buh-bye
      }
    
      public void testConcatVarArgsContainingNull() {
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            final ModelResolver modelResolver = getModelResolver(request);
            if (workspaceResolver == null && modelResolver == null) {
                throw new NullPointerException(String.format(
                        "request.workspaceModelResolver and request.modelResolver cannot be null (parent POM %s and POM %s)",
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
Back to top