Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for isAccessible (0.06 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                    for (Field field : fields) {
                        Class<?> type = field.getType();
                        if (isQualifiedForInterpolation(field, type)) {
                            boolean isAccessible = field.isAccessible();
                            field.setAccessible(true);
                            try {
                                try {
                                    if (String.class == type) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. native-image-tests/src/main/kotlin/okhttp3/RunTests.kt

      val colorPalette =
        Class.forName("org.junit.platform.console.tasks.ColorPalette").getField("DEFAULT").apply {
          isAccessible = true
        }.get(null)
      return Class.forName(
        "org.junit.platform.console.tasks.TreePrintingListener",
      ).declaredConstructors.first()
        .apply {
          isAccessible = true
        }
        .newInstance(PrintWriter(System.out), colorPalette, Theme.UNICODE) as TestExecutionListener
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  4. 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();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. 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();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.2K 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java

            } else {
                metadata = event.getMetadata();
            }
    
            String errorType = " is invalid";
            if (exception instanceof FileNotFoundException) {
                errorType = " is inaccessible";
            }
    
            String msg = "";
            if (exception != null) {
                msg = ": " + exception.getMessage();
            }
    
            if (logger.isDebugEnabled()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top