- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 426 for NullPointerException (0.09 sec)
-
guava-tests/test/com/google/common/base/FunctionsTest.java
new Object() { @Override public String toString() { return "I'm a string"; } })); assertThrows(NullPointerException.class, () -> Functions.toStringFunction().apply(null)); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testToStringFunctionSerializable() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 16K bytes - Viewed (0) -
guava/src/com/google/common/collect/Lists.java
* @throws IllegalArgumentException if the size of the cartesian product would be greater than * {@link Integer#MAX_VALUE} * @throws NullPointerException if {@code lists}, any one of the {@code lists}, or any element of * a provided list is null * @since 19.0 */ public static <B> List<List<B>> cartesianProduct(List<? extends List<? extends B>> lists) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 42.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
buffer = new DfsReferralRequestBuffer(path, maxReferralLevel); assertNotNull(buffer); // Will throw NPE when trying to call size() or encode() assertThrows(NullPointerException.class, () -> { buffer.size(); }); } @ParameterizedTest @DisplayName("Should handle various referral levels")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
assertThat(reMultisetFirst.a.isEmpty()).isFalse(); // The following NPE is a side effect of our changes to avoid mutating `final` fields. assertThrows(NullPointerException.class, () -> reMultisetFirst.z.multiset.isEmpty()); ContainsBothWithContainsMultisetFirst reContainsMultisetFirst = reserialize(containsMultisetFirst);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 16.3K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 19K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
* <li>All visible static methods are checked such that passing null for any parameter that's * not annotated nullable (according to the rules of {@link NullPointerTester}) should throw * {@link NullPointerException}. * <li>If there is any visible constructor or visible static factory method declared by the * class, all visible instance methods will be checked too using the instance created by
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultimapsTest.java
List<@Nullable Integer> values = Arrays.asList(1, null); assertThrows( NullPointerException.class, () -> Multimaps.index((List<Integer>) values, Functions.identity())); } public void testIndex_nullKey() { List<Integer> values = Arrays.asList(1, 2); assertThrows( NullPointerException.class, () -> Multimaps.index(values, Functions.constant(null))); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 38.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeMultiset.java
AvlNode<E> root = rootReference.get(); if (!range.contains(e) || root == null) { return 0; } return root.count(comparator(), e); } catch (ClassCastException | NullPointerException e) { return 0; } } @CanIgnoreReturnValue @Override public int add(@ParametricNullness E element, int occurrences) { checkNonnegative(occurrences, "occurrences");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 34.3K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
guava/src/com/google/common/collect/Iterators.java
* necessary. * * <p>The returned iterator supports {@code remove()} when the corresponding input iterator * supports it. * * @throws NullPointerException if any of the provided iterators is null */ @SafeVarargs public static <T extends @Nullable Object> Iterator<T> concat(Iterator<? extends T>... inputs) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 12:42:11 UTC 2025 - 51.4K bytes - Viewed (0)