- Sort Score
- Result 10 results
- Languages All
Results 301 - 310 of 426 for NullPointerException (0.89 sec)
-
android/guava/src/com/google/common/escape/UnicodeEscaper.java
* performance for unescaped strings (as measured by {@code CharEscapersBenchmark}). * * @param string the literal string to be escaped * @return the escaped form of {@code string} * @throws NullPointerException if {@code string} is null * @throws IllegalArgumentException if invalid surrogate characters are encountered */ @Override public String escape(String string) { checkNotNull(string);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 13.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
assertThrows( NullPointerException.class, () -> Maps.toMap((Iterable<String>) strings, Functions.constant("foo"))); } public void testToMapWithNullValues() { Iterable<String> strings = ImmutableList.of("one", "two", "three"); assertThrows(NullPointerException.class, () -> Maps.toMap(strings, Functions.constant(null))); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 65K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedInts.java
* * <p><b>Java 8+ users:</b> use {@link Integer#parseUnsignedInt(String)} instead. * * @throws NumberFormatException if the string does not contain a valid unsigned {@code int} value * @throws NullPointerException if {@code s} is null (in contrast to {@link * Integer#parseInt(String)}) */ @CanIgnoreReturnValue public static int parseUnsignedInt(String s) { return parseUnsignedInt(s, 10); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Feb 09 16:22:33 UTC 2025 - 13.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
* Delegates to {@link Map#get}. Returns {@code null} on {@code ClassCastException} and {@code * NullPointerException}. */ static <V extends @Nullable Object> @Nullable V safeGet(Map<?, V> map, @Nullable Object key) { checkNotNull(map); try { return map.get(key); } catch (ClassCastException | NullPointerException e) { return null; } } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 157.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
* Delegates to {@link Map#get}. Returns {@code null} on {@code ClassCastException} and {@code * NullPointerException}. */ static <V extends @Nullable Object> @Nullable V safeGet(Map<?, V> map, @Nullable Object key) { checkNotNull(map); try { return map.get(key); } catch (ClassCastException | NullPointerException e) { return null; } } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 163.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java
assertEquals(0, getMultiset().remove(null, 2)); } @CollectionFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_QUERIES) public void testRemove_nullForbidden() { assertThrows(NullPointerException.class, () -> getMultiset().remove(null, 2)); } @CollectionSize.Require(SEVERAL) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemoveAllIgnoresCount() { initThreeCopies();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java
assertEquals(0, getMultiset().remove(null, 2)); } @CollectionFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_QUERIES) public void testRemove_nullForbidden() { assertThrows(NullPointerException.class, () -> getMultiset().remove(null, 2)); } @CollectionSize.Require(SEVERAL) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testRemoveAllIgnoresCount() { initThreeCopies();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
assertEquals(size + 1, multimap().size()); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutNullValue_unsupported() { assertThrows(NullPointerException.class, () -> multimap().put(k1(), null)); expectUnchanged(); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS}) public void testPutNullKey() { int size = getNumElements();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 20:54:16 UTC 2025 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
testComparator(comparator, Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE); assertThrows(NullPointerException.class, () -> comparator.compare(1, null)); assertThrows(NullPointerException.class, () -> comparator.compare(null, 2)); assertThrows(NullPointerException.class, () -> comparator.compare(null, null)); assertSame(comparator, reserialize(comparator));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Oct 10 23:13:45 UTC 2025 - 42.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
testComparator(comparator, Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE); assertThrows(NullPointerException.class, () -> comparator.compare(1, null)); assertThrows(NullPointerException.class, () -> comparator.compare(null, 2)); assertThrows(NullPointerException.class, () -> comparator.compare(null, null)); assertSame(comparator, reserialize(comparator));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Oct 10 23:13:45 UTC 2025 - 42.8K bytes - Viewed (0)