- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 426 for NullPointerException (0.17 sec)
-
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
} /** * Creates a new {@code AtomicDoubleArray} with the same length as, and all elements copied from, * the given array. * * @param array the array to copy elements from * @throws NullPointerException if array is null */ public AtomicDoubleArray(double[] array) { int len = array.length; long[] longArray = new long[len]; for (int i = 0; i < len; i++) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
@Override public OutputStream openStream() { return ByteStreams.nullOutputStream(); } } // Compare by toString() to satisfy 2 properties: // 1. compareTo(null) should throw NullPointerException // 2. the order is deterministic and easy to understand, for debugging purpose. @SuppressWarnings("ComparableType") private static final class ByToString implements Comparable<Object>, Serializable {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 20.9K bytes - Viewed (0) -
guava/src/com/google/common/base/Predicates.java
* * <ul> * <li>The {@link Predicate} returned by this method is {@link Serializable}. * <li>The {@link Predicate} returned by this method catches {@link ClassCastException} and * {@link NullPointerException}. * <li>Code that chains multiple predicates together (especially negations) may be more readable * using this method. For example, {@code not(in(target))} is generally more readable than
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 26.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
void testNullMaximumVersion() { // Given when(mockConfig.getMaximumVersion()).thenReturn(null); // When/Then - Should throw NPE based on actual implementation assertThrows(NullPointerException.class, () -> { new Smb2NegotiateRequest(mockConfig, 0); }); } @Test @DisplayName("Should properly align buffer writes") void testBufferAlignment() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
entry.setValue(3); assertThat(cache.size()).isEqualTo(1); assertThat(cache.getIfPresent(1)).isEqualTo(3); checkValidState(cache); assertThrows(NullPointerException.class, () -> entry.setValue(null)); checkValidState(cache); } } /* ---------------- Local utilities -------------- */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
TestDcerpcHandle handleWithNullBinding = new TestDcerpcHandle(mockContext); // When/Then: Should throw NPE for null binding (expected behavior) assertThrows(NullPointerException.class, () -> handleWithNullBinding.toString()); } @Test @DisplayName("Should handle session key retrieval") void testSessionKeyRetrieval() throws CIFSException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
// keep retries small for faster and deterministic tests when(config.getMaxRequestRetries()).thenReturn(2); when(config.isTraceResourceUsage()).thenReturn(false); // Mock credentials to avoid NullPointerException when(ctx.getCredentials()).thenReturn(credentials); when(credentials.getUserDomain()).thenReturn("DOMAIN"); // Mock DFS resolver when(ctx.getDfs()).thenReturn(dfsResolver); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
return asImmutableList(array); } private static <E> List<E> nullCheckedList(Object... array) { for (int i = 0, len = array.length; i < len; i++) { if (array[i] == null) { throw new NullPointerException("at index " + i); } } @SuppressWarnings("unchecked") E[] castedArray = (E[]) array; return Arrays.asList(castedArray); } @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 11.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 13.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSource.java
* possible. * * @param sources the sources to concatenate * @return a {@code ByteSource} containing the concatenated data * @throws NullPointerException if any of {@code sources} is {@code null} * @since 15.0 */ public static ByteSource concat(Iterator<? extends ByteSource> sources) { return concat(ImmutableList.copyOf(sources)); } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 08 18:35:13 UTC 2025 - 25.7K bytes - Viewed (0)