Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for NPE (0.01 sec)

  1. guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

          // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ForMapMultimapAsMapImplementsMapTest.java

          // GWT's HashMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's HashMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

          // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().retainAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testKeySetRemoveAllNullFromEmpty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        public void oneArg(String s) {
          // Fail: missing NPE for s
        }
      }
    
      public void testFailOneArgDoesntThrowNpe() {
        shouldFail(new FailOneArgDoesntThrowNpe());
      }
    
      private static class FailOneArgThrowsWrongType extends PassObject {
        @Override
        public void oneArg(String s) {
          doThrow(s); // Fail: throwing non-NPE exception for null s
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

       * documentation.
       */
      public void add(Runnable runnable, Executor executor) {
        // Fail fast on a null. We throw NPE here because the contract of Executor states that it throws
        // NPE on null listener, so we propagate that contract up into the add method as well.
        checkNotNull(runnable, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        // https://android-review.googlesource.com/#/c/271775/
        try {
          this.socket = rawSocket.asBufferedSocket()
        } catch (npe: NullPointerException) {
          if (npe.message == NPE_THROW_WITH_NULL) {
            throw IOException(npe)
          }
        }
      }
    
      /**
       * Does all the work to build an HTTPS connection over a proxy tunnel. The catch here is that a
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/ExecutionList.java

       * documentation.
       */
      public void add(Runnable runnable, Executor executor) {
        // Fail fast on a null. We throw NPE here because the contract of Executor states that it throws
        // NPE on null listener, so we propagate that contract up into the add method as well.
        checkNotNull(runnable, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

          // GWT's HashMap.keySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRemoveAllNullFromEmpty() {
        try {
          super.testEntrySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's HashMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        try {
          // This set never contains null.  We need to explicitly check here
          // because some comparator might throw NPE (e.g. the natural ordering).
          return object != null && sortedDelegate.contains(object);
        } catch (ClassCastException e) {
          return false;
        }
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java

            } catch (final NullPointerException e) {
                // This is expected if the implementation requires a non-null context
                assertTrue("NPE is acceptable for null context in this implementation", true);
            }
        }
    
        private CustomSize createBasicAnnotation() {
            return new CustomSize() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top