Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 471 for NullPointerException (0.07 sec)

  1. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        Predicate<Class<?>> isInteger = Predicates.subtypeOf(Integer.class);
    
        assertTrue(isInteger.apply(Integer.class));
        assertFalse(isInteger.apply(Float.class));
    
        assertThrows(NullPointerException.class, () -> isInteger.apply(null));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Predicates.subtypeOf
      public void testSubtypeOf_subclass() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SplitterTest.java

     */
    @NullMarked
    @GwtCompatible
    public class SplitterTest extends TestCase {
    
      private static final Splitter COMMA_SPLITTER = Splitter.on(',');
    
      public void testSplitNullString() {
        assertThrows(NullPointerException.class, () -> COMMA_SPLITTER.split(null));
      }
    
      public void testCharacterSimpleSplit() {
        String simple = "a,b,c";
        Iterable<String> letters = COMMA_SPLITTER.split(simple);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *
       * <ul>
       *   <li>All non-private static methods are checked such that passing null for any parameter
       *       that's not annotated nullable should throw {@link NullPointerException}.
       *   <li>If there is any non-private constructor or non-private static factory method declared by
       *       {@code cls}, all non-private instance methods will be checked too using the instance
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/ShortsTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Short> list = Arrays.asList((short) 0, (short) 1, null);
        assertThrows(NullPointerException.class, () -> Shorts.toArray(list));
      }
    
      public void testToArray_withConversion() {
        short[] array = {(short) 0, (short) 1, (short) 2};
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/ByteStreams.java

       * stream.
       *
       * <p>A caller can detect EOF if the number of bytes read is less than {@code len}. All subsequent
       * calls on the same stream will return zero.
       *
       * <p>If {@code b} is null, a {@code NullPointerException} is thrown. If {@code off} is negative,
       * or {@code len} is negative, or {@code off+len} is greater than the length of the array {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testConcatNullPointerException() {
        List<Integer> list1 = newArrayList(1);
        List<Integer> list2 = newArrayList(4);
    
        assertThrows(NullPointerException.class, () -> Iterables.concat(list1, null, list2));
      }
    
      public void testConcatPeformingFiniteCycle() {
        Iterable<Integer> iterable = asList(1, 2, 3);
        int n = 4;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testConcatNullPointerException() {
        List<Integer> list1 = newArrayList(1);
        List<Integer> list2 = newArrayList(4);
    
        assertThrows(NullPointerException.class, () -> Iterables.concat(list1, null, list2));
      }
    
      public void testConcatPeformingFiniteCycle() {
        Iterable<Integer> iterable = asList(1, 2, 3);
        int n = 4;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SetsTest.java

        assertThrows(
            IllegalArgumentException.class,
            () -> {
              Set<Set<Integer>> unused = powerSet(ContiguousSet.closed(0, Integer.MAX_VALUE / 2));
            });
    
        assertThrows(NullPointerException.class, () -> powerSet(singleton(null)));
      }
    
      public void testPowerSetEqualsAndHashCode_verifyAgainstHashSet() {
        ImmutableList<Integer> allElements =
            ImmutableList.of(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

       * @return {@code ImmutableListMultimap} mapping the result of evaluating the function {@code
       *     keyFunction} on each value in the input collection to that value
       * @throws NullPointerException if any element of {@code values} is {@code null}, or if {@code
       *     keyFunction} produces {@code null} for any key
       */
      public static <K, V> ImmutableListMultimap<K, V> index(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Multimaps.java

       * @return {@code ImmutableListMultimap} mapping the result of evaluating the function {@code
       *     keyFunction} on each value in the input collection to that value
       * @throws NullPointerException if any element of {@code values} is {@code null}, or if {@code
       *     keyFunction} produces {@code null} for any key
       */
      public static <K, V> ImmutableListMultimap<K, V> index(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.9K bytes
    - Viewed (0)
Back to top