- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 41 for defensively (0.44 sec)
-
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
// Verify getPath was called three times (once for each accept call) verify(mockDir, times(3)).getPath(); verifyNoMoreInteractions(mockDir); } /** * Defensive behavior: implementation throws NPE on null inputs by design. */ @Test @DisplayName("implementation explicitly rejects nulls with NPE") void implementationRejectsNulls() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileFilterTest.java
verifyNoMoreInteractions(smbFile); } @Test @DisplayName("accept: rejects null input with meaningful NullPointerException") void accept_rejectsNullInput() { // Arrange: defensive filter that validates input SmbFileFilter filter = f -> { if (f == null) { throw new NullPointerException("file must not be null"); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
} @Override public <T> T[] toArray(T[] a) { toArrayCalled = true; return super.toArray(a); } } // Test that toArray() is used to make a defensive copy in copyOf(), so concurrently modified // synchronized collections can be safely copied. TestArrayList<String> toCopy = new TestArrayList<>(); ImmutableSortedMultiset<String> unused =Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 22.7K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt
} fun getBody(): Buffer? = body?.clone() fun setBody(body: Buffer) = apply { setHeader("Content-Length", body.size) this.body = body.clone() // Defensive copy. } fun setBody(body: String): MockResponse = setBody(Buffer().writeUtf8(body)) fun setChunkedBody( body: Buffer, maxChunkSize: Int, ) = apply {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 7.1K bytes - Viewed (1) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
assertArrayEquals(hashAlgos, context.getHashAlgos()); // The implementation returns the same reference, not a defensive copy assertSame(hashAlgos, context.getHashAlgos()); } @Test @DisplayName("Should return salt correctly") void testGetSalt() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt
heldCertificate: HeldCertificate, vararg intermediates: X509Certificate, ) = apply { this.heldCertificate = heldCertificate this.intermediates = arrayOf(*intermediates) // Defensive copy. } /** * Add a trusted root certificate to use when authenticating a peer. Peers must provide * a chain of certificates whose root is one of these. */Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/ldap/LdapManager.java
* @return an optional containing the authenticated user if successful, empty otherwise */ public OptionalEntity<FessUser> login(final String username, final String password) { // Add defensive null/blank checks if (StringUtil.isBlank(username) || StringUtil.isBlank(password)) { if (logger.isDebugEnabled()) { logger.debug("Login failed: username or password is blank");Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 86.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
} assertThat(actual.getBounds()) .asList() .containsExactlyElementsIn(asList(expected.getBounds())) .inOrder(); } /** * Working with arrays requires defensive code. Verify that we clone the type array for both input * and output. */ public void testNewParameterizedTypeImmutability() { Type[] typesIn = {String.class, Integer.class};Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 19:03:19 UTC 2025 - 15.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java
if (pendingOps.isEmpty()) { return; } log.info("Redistributing {} pending operations from failed channel", pendingOps.size()); // Create a defensive copy to avoid ConcurrentModificationException List<CommonServerMessageBlock> operationsCopy = List.copyOf(pendingOps); // Clear the failed channel's pending operations firstRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 11.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
} byte[] key = null; byte[] keyCopy = null; try { // Get the key and create a defensive copy for SecretKeySpec key = encrypt ? getEncryptionKey() : getDecryptionKey(); keyCopy = Arrays.copyOf(key, key.length); // Validate key length matches expected cipher requirementsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0)