Search Options

Results per page
Sort
Preferred Languages
Advance

Results 851 - 860 of 3,758 for null (0.02 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

        val sentRequestMillis = System.currentTimeMillis()
    
        var invokeStartEvent = true
        var responseBuilder: Response.Builder? = null
        var sendRequestException: IOException? = null
        val hasRequestBody = HttpMethod.permitsRequestBody(request.method) && requestBody != null
        val isUpgradeRequest =
          !hasRequestBody &&
            "upgrade".equals(request.header("Connection"), ignoreCase = true)
        try {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Strings.java

         *
         * @param str the string to encode
         * @param encoding the character encoding to use
         * @return encoded byte array, or empty array if str is null
         */
        public static byte[] getBytes(final String str, final Charset encoding) {
            if (str == null) {
                return new byte[0];
            }
            return str.getBytes(encoding);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

    class PACDecodingExceptionTest {
    
        /**
         * Test the default constructor.
         */
        @Test
        void testDefaultConstructor() {
            PACDecodingException e = new PACDecodingException();
            // Expect null message and null cause
            assertNull(e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a message.
         */
        @Test
        void testMessageConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  4. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

      fun assertClose() {
        nextEvent() as Closed
      }
    
      fun assertFailure(
        message: String?,
        code: Int? = null,
      ) {
        val event = nextEvent() as Failure
        if (code != null) {
          assertThat(event.response?.code).isEqualTo(code)
        }
        if (message != null) {
          assertThat(event.message).isEqualTo(message)
        } else {
          assertThat(event.t).isNull()
        }
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:32:52 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. api/maven-api-core/src/test/java/org/apache/maven/api/services/RequestTraceTest.java

        }
    
        @Test
        void testNullValues() {
            RequestTrace trace = new RequestTrace(null, null, null);
            assertNull(trace.context());
            assertNull(trace.parent());
            assertNull(trace.data());
        }
    
        @Test
        void testChainedTraces() {
            RequestTrace root = new RequestTrace("root", null, "root-data");
            RequestTrace level1 = new RequestTrace("level1", root, "level1-data");
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactFactory.java

        /**
         * Creates an artifact.
         *
         * @param request the request holding artifact creation parameters
         * @return an {@code Artifact}, never {@code null}
         * @throws IllegalArgumentException if {@code request} is null or {@code request.session} is null or invalid
         */
        @Nonnull
        Artifact create(@Nonnull ArtifactFactoryRequest request);
    
        @Nonnull
        default Artifact create(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

          monitor.leave();
        }
      }
    
      /**
       * Returns the comparator used to order the elements in this queue, or {@code null} if this queue
       * uses the {@linkplain Comparable natural ordering} of its elements.
       *
       * @return the comparator used to order the elements in this queue, or {@code null} if this queue
       *     uses the natural ordering of its elements
       */
      @CanIgnoreReturnValue // pushed down from class to method
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/SecureKeyManager.java

            checkNotClosed();
    
            if (key == null || sessionId == null) {
                throw new IllegalArgumentException("Session ID and key must not be null");
            }
    
            // Clone the key to prevent external modification
            byte[] keyClone = key.clone();
            SecretKey secretKey = new SecretKeySpec(keyClone, algorithm);
    
            // Store in memory
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertNotNull(defaultConfig.getRandom(), "Random should not be null");
            assertNotNull(defaultConfig.getLocalTimezone(), "Local timezone should not be null");
            assertNotNull(defaultConfig.getMachineId(), "Machine ID should not be null");
        }
    
        @Test
        @DisplayName("Test network configuration getters")
        void testNetworkConfigurationGetters() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        builder = builder.delete(null)
        builder = builder.put(requestBody)
        builder = builder.patch(requestBody)
        builder = builder.method("", requestBody)
        builder = builder.method("", null)
        builder = builder.tag("")
        builder = builder.tag(null)
        builder = builder.tag(String::class.java, "")
        builder = builder.tag(String::class.java, null)
        val request: Request = builder.build()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
Back to top