Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 344 for NullPointerException (0.13 sec)

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

    @GwtCompatible(emulated = true)
    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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/ClassPath.java

         * such classes, this method always returns an empty string. But under some version of Java,
         * {@code class.getPackage().getName()} produces a {@code NullPointerException} because {@code
         * class.getPackage()} returns {@code null}.
         */
        public String getPackageName() {
          return Reflection.getPackageName(className);
        }
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Range.java

       *
       * @throws ClassCastException if the values are not mutually comparable
       * @throws NoSuchElementException if {@code values} is empty
       * @throws NullPointerException if any of {@code values} is null
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) {
        checkNotNull(values);
        if (values instanceof SortedSet) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //             Thread.yield();
      //         }
      //     }
    
      public static class NPETask implements Callable<String> {
        @Override
        public String call() {
          throw new NullPointerException();
        }
      }
    
      public static class CallableOne implements Callable<Integer> {
        @Override
        public Integer call() {
          return one;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //             Thread.yield();
      //         }
      //     }
    
      public static class NPETask implements Callable<String> {
        @Override
        public String call() {
          throw new NullPointerException();
        }
      }
    
      public static class CallableOne implements Callable<Integer> {
        @Override
        public Integer call() {
          return one;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/net/InternetDomainName.java

       * returns a new {@code InternetDomainName} with the value {@code www.bar.foo.com}. Only lenient
       * validation is performed, as described {@link #from(String) here}.
       *
       * @throws NullPointerException if leftParts is null
       * @throws IllegalArgumentException if the resulting name is not valid
       */
      public InternetDomainName child(String leftParts) {
        return from(checkNotNull(leftParts) + "." + name);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/MoreFiles.java

           * more sense for us to fall back to a generic FileSystemException (by returning null here)
           * than to dereference parentPath and end up producing NullPointerException.
           */
          return null;
        }
        // requireNonNull is safe because paths have file names when they have parents.
        Path pathResolvedFromParent = parentPath.resolve(requireNonNull(path.getFileName()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
Back to top