Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1201 - 1210 of 3,758 for null (0.02 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java

        assertThrows(NullPointerException.class, () -> getMap().replace(k0(), v0(), null));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES)
      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_wrongValueNullValueUnsupported() {
        try {
          assertFalse(getMap().replace(k0(), v3(), null));
        } catch (NullPointerException tolerated) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/EndpointPairIterator.java

     */
    abstract class EndpointPairIterator<N> extends AbstractIterator<EndpointPair<N>> {
      private final BaseGraph<N> graph;
      private final Iterator<N> nodeIterator;
    
      @Nullable N node = null; // null is safe as an initial value because graphs don't allow null nodes
    
      Iterator<N> successorIterator = ImmutableSet.<N>of().iterator();
    
      static <N> EndpointPairIterator<N> of(BaseGraph<N> graph) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NtlmSsp.java

            String msg = req.getHeader("Authorization");
            if (msg != null && msg.startsWith("NTLM ")) {
                final byte[] src = Base64.decode(msg.substring(5));
                if (src[8] == 1) {
                    final Type1Message type1 = new Type1Message(src);
                    final Type2Message type2 = new Type2Message(tc, type1, challenge, null);
                    msg = new String(Base64.encode(type2.toByteArray()), "US-ASCII");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

         */
        @Test
        void testReadDataWireFormat_withNullPipeIn() {
            mockPipe.pipeIn = null;
            byte[] buffer = new byte[10];
            int len = 10;
            int result = response.readDataWireFormat(buffer, 0, len);
            assertEquals(len, result, "readDataWireFormat should return the length when pipeIn is null.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessActionAdjustmentProvider.java

            if (StringUtil.isBlank(requestPath)) {
                return null;
            }
            final String virtualHostKey = ComponentUtil.getVirtualHostHelper().getVirtualHostKey();
            if (StringUtil.isBlank(virtualHostKey)) {
                return null;
            }
            final String prefix = "/" + virtualHostKey;
            if (requestPath.startsWith(prefix)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/ByteEncodableTest.java

            // Test with a null source array
            ByteEncodable encodable = new ByteEncodable(null, 0, 0);
            byte[] dest = new byte[1];
    
            // Expect NullPointerException from System.arraycopy
            assertThrows(NullPointerException.class, () -> {
                encodable.encode(dest, 0);
            }, "Should throw NullPointerException if source array is null");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

            }
    
            @Test
            @DisplayName("Handles null destination without throwing and returns 0")
            void allowsNullBuffer() {
                // Arrange
                Smb2LogoffResponse resp = newResponse();
    
                // Act & Assert
                assertEquals(0, resp.writeBytesWireFormat(null, 0), "Should return 0 even with null buffer");
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt

          |--123--
          |
          """.trimMargin().replace("\n", "\r\n")
        val body =
          MultipartBody
            .Builder("123")
            .addPart("Quick".toRequestBody(null))
            .addPart("Brown".toRequestBody(null))
            .addPart("Fox".toRequestBody(null))
            .build()
        assertThat(body.boundary).isEqualTo("123")
        assertThat(body.type).isEqualTo(MultipartBody.MIXED)
        assertThat(body.contentType().toString())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

            }
    
            /**
             * Gets the content type of the storage object.
             *
             * @return The content type, or null if unavailable
             */
            @Override
            public String getContentType() {
                if (minioClient == null) {
                    return null;
                }
                try {
                    return getStatObject().contentType();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

        void testDefaultConstructor() {
            // Given & When
            CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException();
    
            // Then
            assertNull(exception.getMessage(), "Default constructor should have null message");
            assertNull(exception.getCause(), "Default constructor should have null cause");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top