Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 130 for setAccessible (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       *
       * @param instance the instance to invoke {@code method} on, or null if {@code method} is static
       */
      public void testMethodParameter(@Nullable Object instance, Method method, int paramIndex) {
        method.setAccessible(true);
        testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass());
      }
    
      /**
       * Verifies that {@code ctor} produces a {@link NullPointerException} or {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

                assertTrue("Constructor should be protected", java.lang.reflect.Modifier.isProtected(constructor.getModifiers()));
    
                // Test that constructor is accessible when made accessible
                constructor.setAccessible(true);
                ThreadDumpUtil instance = constructor.newInstance();
                assertNotNull(instance);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

        }
    
        private void setMethodAccessible(Method method) {
            if (isExceptPrivateAccessible(method)) {
                return;
            }
            try {
                method.setAccessible(true);
            } catch (RuntimeException e) {
                throw new BeanMethodSetAccessibleFailureException(beanDesc.getBeanClass(), method, e);
            }
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 24 01:52:43 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  4. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

                    if (Modifier.isStatic(field.getModifiers()) || field.isSynthetic()) {
                        continue;
                    }
    
                    try {
                        field.setAccessible(true);
                        Object value = field.get(node);
                        if (value == null) {
                            continue;
                        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

                try {
                    java.lang.reflect.Field propField = org.lastaflute.core.direction.ObjectiveConfig.class.getDeclaredField("prop");
                    propField.setAccessible(true);
                    propField.set(this, new org.dbflute.helper.jprop.ObjectiveProperties("test.properties"));
                } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 25K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

        private String[] invokeDistinct(String[] values) {
            try {
                java.lang.reflect.Method method = LdapUser.class.getDeclaredMethod("distinct", String[].class);
                method.setAccessible(true);
                return (String[]) method.invoke(null, (Object) values);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16.9K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        ImmutableList.Builder<Invokable<?, ?>> builder = ImmutableList.builder();
        for (Method method : cls.getDeclaredMethods()) {
          Invokable<?, ?> invokable = Invokable.from(method);
          invokable.setAccessible(true);
          if (invokable.isPublic() && invokable.isStatic() && !invokable.isSynthetic()) {
            builder.add(invokable);
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 32.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/hash/Striped64.java

                @Override
                public Unsafe run() throws Exception {
                  Class<Unsafe> k = Unsafe.class;
                  for (Field f : k.getDeclaredFields()) {
                    f.setAccessible(true);
                    Object x = f.get(null);
                    if (k.isInstance(x)) return k.cast(x);
                  }
                  throw new NoSuchFieldError("the Unsafe");
                }
              });
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 15 22:17:15 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

                }
            }
        }
    
        private void setFieldAccessible(Field field) {
            if (isExceptPrivateAccessible(field)) {
                return;
            }
            try {
                field.setAccessible(true);
            } catch (RuntimeException e) {
                throw new BeanFieldSetAccessibleFailureException(beanClass, field, e);
            }
        }
    
        private boolean isExceptPrivateAccessible(Field field) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 25.8K bytes
    - Click Count (1)
  10. src/test/java/jcifs/smb/Kerb5ContextTest.java

            }
        }
    
        private static void setPrivateField(Object target, String name, Object value) throws Exception {
            Field f = target.getClass().getDeclaredField(name);
            f.setAccessible(true);
            f.set(target, value);
        }
    
        static ASN1ObjectIdentifier[] supportedMechs() {
            return Kerb5Context.SUPPORTED_MECHS;
        }
    
        @ParameterizedTest
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.2K bytes
    - Click Count (0)
Back to Top