- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 344 for NullPointerException (0.23 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java
expectAdded((E) null); } @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES) public void testAdd_nullUnsupported() { assertThrows(NullPointerException.class, () -> collection.add(null)); expectUnchanged(); expectNullMissingWhenNullUnsupported("Should not contain null after unsupported add(null)"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java
assertThrows(IllegalArgumentException.class, () -> escapeAsString(SIMPLE_ESCAPER, test)); } public void testNullInput() { UnicodeEscaper e = SIMPLE_ESCAPER; assertThrows(NullPointerException.class, () -> e.escape((String) null)); } public void testBadStrings() { UnicodeEscaper e = SIMPLE_ESCAPER; String[] BAD_STRINGS = { String.valueOf(Character.MIN_LOW_SURROGATE),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Ints.java
* * @param collection a collection of {@code Number} instances * @return an array containing the same values as {@code collection}, in the same order, converted * to primitives * @throws NullPointerException if {@code collection} or any of its elements is null * @since 1.0 (parameter was {@code Collection<Integer>} before 12.0) */ public static int[] toArray(Collection<? extends Number> collection) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 31K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
* streams. * * <p>If the stream has nondeterministic order, this has equivalent semantics to {@link * Stream#findAny} (which you might as well use). * * @see Stream#findFirst() * @throws NullPointerException if the last element of the stream is null */ /* * By declaring <T> instead of <T extends @Nullable Object>, we declare this method as requiring a
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 37.4K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 18 20:55:09 UTC 2022 - 13.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
FlagGuard guard = new FlagGuard(monitor2); assertThrows(IllegalMonitorStateException.class, () -> monitor1.hasWaiters(guard)); } public void testNullMonitorInGuardConstructorThrowsNPE() { assertThrows(NullPointerException.class, () -> new FlagGuard(null)); } public void testIsFair() { assertTrue(new Monitor(true).isFair()); assertFalse(new Monitor(false).isFair()); } public void testOccupiedMethods() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/UrlEscaperTesting.java
// URL escapers should throw null pointer exceptions for null input try { e.escape((String) null); fail("Escaping null string should throw exception"); } catch (NullPointerException x) { // pass } // All URL escapers should leave 0-9, A-Z, a-z unescaped assertUnescaped(e, 'a'); assertUnescaped(e, 'z'); assertUnescaped(e, 'A'); assertUnescaped(e, 'Z');
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 17:53:22 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
FlagGuard guard = new FlagGuard(monitor2); assertThrows(IllegalMonitorStateException.class, () -> monitor1.hasWaiters(guard)); } public void testNullMonitorInGuardConstructorThrowsNPE() { assertThrows(NullPointerException.class, () -> new FlagGuard(null)); } public void testIsFair() { assertTrue(new Monitor(true).isFair()); assertFalse(new Monitor(false).isFair()); } public void testOccupiedMethods() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.9K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingSortedMap.java
Object ceilingKey = self.tailMap(key).firstKey(); return unsafeCompare(comparator(), ceilingKey, key) == 0; } catch (ClassCastException | NoSuchElementException | NullPointerException e) { return false; } } /** * A sensible default implementation of {@link #subMap(Object, Object)} in terms of {@link
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.6K bytes - Viewed (0)