- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 409 for NullPointerException (0.28 sec)
-
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* @throws ClassCastException {@inheritDoc} * @throws NullPointerException {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} */ @CanIgnoreReturnValue // pushed down from class to method @Override public int drainTo(Collection<? super E> c) { if (c == null) throw new NullPointerException(); if (c == this) throw new IllegalArgumentException();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 19.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/NullPointerTester.java
private enum ExceptionTypePolicy { /** * Exceptions should be {@link NullPointerException} or {@link UnsupportedOperationException}. */ NPE_OR_UOE() { @Override public boolean isExpectedType(Throwable cause) { return cause instanceof NullPointerException || cause instanceof UnsupportedOperationException; } }, /**
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 23.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 22.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SIllegalStateExceptionTest.java
final ClIllegalStateException clIllegalStateException = new ClIllegalStateException("hoge", new NullPointerException()); assertThat(clIllegalStateException.getMessage(), is("hoge")); assertThat(clIllegalStateException.getCause(), instanceOf(NullPointerException.class)); } /** * Test method for
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
@MapFeature.Require(absent = ALLOWS_NULL_KEYS) public void testPutAllNullForbidden() { try { multimap().putAll(null, Collections.singletonList(v3())); fail("Expected NullPointerException"); } catch (NullPointerException expected) { // success } } @MapFeature.Require(SUPPORTS_PUT) public void testPutAllEmptyCollectionOnAbsentKey() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 7.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
fail("expected NullPointerException"); } catch (NullPointerException expected) { } } public void testBuilderAddCopiesHandlesNullsCorrectly() { ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder(); try { builder.addCopies(null, 2); fail("expected NullPointerException"); } catch (NullPointerException expected) { } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 21K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java
* Returns {@link ChecksumAlgorithm} for given algorithm name, or throws if algorithm not supported. * * @throws ChecksumAlgorithmServiceException if asked algorithm name is not supported. * @throws NullPointerException if passed in name is {@code null}. */ @Nonnull ChecksumAlgorithm select(@Nonnull String algorithmName); /**
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Dec 21 08:05:10 GMT 2023 - 6.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMultiset.java
* * @throws NullPointerException if {@code element} is null * @since 6.0 (source-compatible since 2.0) */ public static <E> ImmutableMultiset<E> of(E element) { return copyFromElements(element); } /** * Returns an immutable multiset containing the given elements, in order. * * @throws NullPointerException if any element is null
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 20.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableList.java
* * @throws NullPointerException if {@code element} is null */ public static <E> ImmutableList<E> of(E element) { return new SingletonImmutableList<>(element); } /** * Returns an immutable list containing the given elements, in order. * * @throws NullPointerException if any element is null */
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 30K bytes - Viewed (1) -
android/guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java
public enum MapFeature implements Feature<Map> { /** * The map does not throw {@code NullPointerException} on calls such as {@code containsKey(null)}, * {@code get(null)}, {@code keySet().contains(null)} or {@code remove(null)}. */ ALLOWS_NULL_KEY_QUERIES, ALLOWS_NULL_KEYS(ALLOWS_NULL_KEY_QUERIES), /** * The map does not throw {@code NullPointerException} on calls such as {@code
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 3K bytes - Viewed (0)