Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 274 for Reflection (0.26 sec)

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/BouncyCastleSocketAdapter.kt

     */
    package okhttp3.internal.platform.android
    
    import javax.net.ssl.SSLSocket
    import okhttp3.Protocol
    import okhttp3.internal.platform.Platform
    import org.bouncycastle.jsse.BCSSLSocket
    
    /**
     * Simple non-reflection SocketAdapter for BouncyCastle.
     */
    class BouncyCastleSocketAdapter : SocketAdapter {
      override fun matchesSocket(sslSocket: SSLSocket): Boolean = sslSocket is BCSSLSocket
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

       * unhashable objects can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getHashCodeMethod() {
        return getMethod(ListHashCodeTester.class, "testHashCode");
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt

            String::class.java,
            String::class.java,
          )
        } catch (_: NoSuchMethodException) {
          null
        }
    
      /** Android method to clean and sort certificates, called via reflection. */
      @Suppress("unused", "UNCHECKED_CAST")
      fun checkServerTrusted(
        chain: Array<out X509Certificate>,
        authType: String,
        host: String,
      ): List<Certificate> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. proguard/base.pro

    -keep class sun.misc.JavaLangAccess {
      *** getStackTraceElement(...);
      *** getStackTraceDepth(...);
    }
    
    # FinalizableReferenceQueue calls this reflectively
    # Proguard is intelligent enough to spot the use of reflection onto this, so we
    # only need to keep the names, and allow it to be stripped out if
    # FinalizableReferenceQueue is unused.
    -keepnames class com.google.common.base.internal.Finalizer {
      *** startFinalizer(...);
    }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 09 00:29:01 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SecurityBlobTest.java

        }
    
        // Uses reflection to set internal array to null to exercise defensive branch in length()
        @Test
        @DisplayName("length(): handles internal null defensively")
        void length_handlesNullInternalArray() throws Exception {
            // Arrange
            SecurityBlob blob = new SecurityBlob(new byte[] { 1, 2, 3 });
    
            // Force internal field to null via reflection to exercise defensive branch
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            long serverTimeZoneOffset = 3600000L; // 1 hour
            response = new SmbComQueryInformationResponse(mockConfig, serverTimeZoneOffset);
    
            // Set a test time using reflection
            long testTime = System.currentTimeMillis();
            setFieldValue(response, "lastWriteTime", testTime);
    
            // All time methods should return the same converted time
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

        public <T> Iterable<? super CharSequence> wildCardsDoNotMatchByLowerBound(
            List<? super String> list) {
          return notSubtype(list);
        }
    
        // Can't test getSupertype() or getSubtype() because JDK reflection doesn't consider
        // Foo<?> and Foo<? extends Bar> equal for class Foo<T extends Bar>
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/https/HandlerTest.java

                assertNotEquals(httpsPort, httpPort);
            }
        }
    
        @Nested
        @DisplayName("Edge Cases")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle reflection access to protected method")
            void testProtectedMethodAccess() throws Exception {
                // Given
                Handler testHandler = new Handler(null);
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/StandardAndroidSocketAdapter.kt

    import javax.net.ssl.SSLSocketFactory
    import javax.net.ssl.X509TrustManager
    import okhttp3.OkHttpClient
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.readFieldOrNull
    
    /**
     * Base Android reflection based SocketAdapter for the built in Android SSLSocket.
     *
     * It's assumed to always be present with known class names on Android devices, so we build
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            // Verify the correct number of bytes were read (37 bytes total)
            assertEquals(37, bytesRead);
    
            // Verify values through reflection
            Field totalParamField = response.getClass().getSuperclass().getSuperclass().getDeclaredField("totalParameterCount");
            totalParamField.setAccessible(true);
            assertEquals(1000, totalParamField.get(response));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top