Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for isAccessible (0.35 sec)

  1. android-test-app/src/main/kotlin/okhttp/android/testapp/TestApplication.kt

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
          getProcessName()
        } else {
          Class
            .forName("android.app.ActivityThread")
            .getDeclaredMethod("currentProcessName")
            .apply { isAccessible = true }
            .invoke(null) as String
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Aug 19 08:10:39 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Invokable.java

          return true;
        } catch (Exception e) { // sneaky checked exception
          return false;
        }
      }
    
      /** See {@link java.lang.reflect.AccessibleObject#isAccessible()}. */
      public final boolean isAccessible() {
        return accessibleObject.isAccessible();
      }
    
      @Override
      public final String getName() {
        return member.getName();
      }
    
      @Override
      public final int getModifiers() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

          /*
           * Coverage mode generates synthetic fields.  If we ever add private
           * fields, they will cause similar problems, and we may want to switch
           * this check to isAccessible().
           */
          if (!field.isSynthetic() && field.getType() == String.class) {
            builder.add(field);
          }
        }
        return builder.build();
      }
    
      private static String upperToHttpHeaderName(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

          val method =
            trustManager.javaClass.getDeclaredMethod(
              "findTrustAnchorByIssuerAndSignature",
              X509Certificate::class.java,
            )
          method.isAccessible = true
          CustomTrustRootIndex(trustManager, method)
        } catch (e: NoSuchMethodException) {
          super.buildTrustRootIndex(trustManager)
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

      fieldType: Class<T>,
      fieldName: String,
    ): T? {
      var c: Class<*> = instance.javaClass
      while (c != Any::class.java) {
        try {
          val field = c.getDeclaredField(fieldName)
          field.isAccessible = true
          val value = field.get(instance)
          return if (!fieldType.isInstance(value)) null else fieldType.cast(value)
        } catch (_: NoSuchFieldException) {
        }
    
        c = c.superclass
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

        @Test
        public void testAddFields() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final FieldDesc eee = beanDesc.getFieldDesc("eee");
            assertThat(eee.getField().isAccessible(), is(true));
            final PropertyDesc pd = beanDesc.getPropertyDesc("ggg");
            assertThat(pd, is(notNullValue()));
            assertThat(pd.getPropertyName(), is("ggg"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

        private lateinit var logger: Logger
    
        private val SSLSession.masterSecret: SecretKey?
          get() =
            javaClass
              .getDeclaredField("masterSecret")
              .apply {
                isAccessible = true
              }.get(this) as? SecretKey
    
        val randomRegex = "\"random\"\\s+:\\s+\"([^\"]+)\"".toRegex()
    
        fun register() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/eventbus/Subscriber.java

        } catch (IllegalArgumentException e) {
          throw new Error("Method rejected target/argument: " + event, e);
        } catch (IllegalAccessException e) {
          throw new Error("Method became inaccessible: " + event, e);
        } catch (InvocationTargetException e) {
          if (e.getCause() instanceof Error) {
            throw (Error) e.getCause();
          }
          throw e;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/LittleEndianByteArray.java

        static final VarHandle HANDLE = byteArrayViewVarHandle(long[].class, LITTLE_ENDIAN);
      }
    
      /**
       * The only reference to Unsafe is in this nested class. We set things up so that if
       * Unsafe.theUnsafe is inaccessible, the attempt to load the nested class fails, and the outer
       * class's static initializer can fall back on a non-Unsafe version.
       */
      @SuppressWarnings("SunApi") // b/345822163
      @VisibleForTesting
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MultimapBuilder.java

          @Override
          <K extends K0, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            // K must actually be K0, since enums are effectively final
            // (their subclasses are inaccessible)
            return (Map<K, Collection<V>>) new EnumMap<K0, Collection<V>>(keyClass);
          }
        };
      }
    
      private static final class ArrayListSupplier<V extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18K bytes
    - Viewed (0)
Back to top