Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getDeclaredField (0.29 sec)

  1. src/test/java/org/codelibs/core/lang/ModifierUtilTest.java

            f = Hoge.class.getDeclaredField("s");
            assertFalse(ModifierUtil.isInstanceField(f));
        }
    
        /**
         * @throws Exception
         */
        public void testIsTransient() throws Exception {
            Field f = Hoge.class.getDeclaredField("bbb");
            assertTrue(ModifierUtil.isTransient(f));
            f = Hoge.class.getDeclaredField("s");
            assertFalse(ModifierUtil.isTransient(f));
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            final FieldDesc hoge = beanDesc.getFieldDesc("HOGE");
            assertThat(hoge.getBeanDesc(), is(sameInstance(beanDesc)));
            assertThat(hoge.getField(), is(MyBean.class.getDeclaredField("HOGE")));
            assertThat(hoge.getFieldName(), is("HOGE"));
            assertThat(hoge.getFieldType(), is(sameClass(String.class)));
            assertThat(hoge.isPublic(), is(true));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleModuleBuilderTest.java

                    currentProjects);
        }
    
        static void set(Object obj, String field, Object v) throws NoSuchFieldException, IllegalAccessException {
            Field f = obj.getClass().getDeclaredField(field);
            f.setAccessible(true);
            f.set(obj, v);
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:09 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/initialization/exception/DefaultExceptionAnalyser.java

                return exception;
            }
        }
    
        private static Throwable patchCircularCause(Throwable current, Throwable parent) {
            try {
                Field causeField = Throwable.class.getDeclaredField("cause");
                causeField.setAccessible(true);
                Throwable replacement = new Throwable("[CIRCULAR REFERENCE: " + current + "]");
                replacement.setStackTrace(current.getStackTrace());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 13:10:04 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

        // Make sure we are actually running with the expected helper implementation
        Class<?> abstractFutureClass = classLoader.loadClass(AbstractFuture.class.getName());
        Field helperField = abstractFutureClass.getDeclaredField("ATOMIC_HELPER");
        helperField.setAccessible(true);
        assertEquals(expectedHelperClassName, helperField.get(null).getClass().getSimpleName());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTestType.java

            DefaultArtifactDescriptorReader pomReader =
                    (DefaultArtifactDescriptorReader) getContainer().lookup(ArtifactDescriptorReader.class);
            Field field = DefaultArtifactDescriptorReader.class.getDeclaredField("artifactResolver");
            field.setAccessible(true);
            field.set(pomReader, resolver);
    
            projectBuilder = getContainer().lookup(ProjectBuilder.class, "classpath");
        }
    
        @Test
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

        // Make sure we are actually running with the expected helper implementation
        Class<?> abstractFutureClass = classLoader.loadClass(AbstractFuture.class.getName());
        Field helperField = abstractFutureClass.getDeclaredField("ATOMIC_HELPER");
        helperField.setAccessible(true);
        assertEquals(expectedHelperClassName, helperField.get(null).getClass().getSimpleName());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        } catch (Throwable reflectionFailure) { // sneaky checked exception
          // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause
          // getDeclaredField to throw a NoSuchFieldException when the field is definitely there.
          // For these users fallback to a suboptimal implementation, based on synchronized. This will
          // be a definite performance hit to those users.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/opensearch/extension/analysis/ReloadableKuromojiTokenizerFactory.java

        private static Field getAccessibleField(final Class<?> clazz, final String name) {
            return AccessController.doPrivileged((PrivilegedAction<Field>) () -> {
                try {
                    final Field field = clazz.getDeclaredField(name);
                    field.setAccessible(true);
                    return field;
                } catch (final Exception e) {
                    throw new IllegalArgumentException("Failed to load fields.", e);
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        } catch (Throwable reflectionFailure) { // sneaky checked exception
          // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause
          // getDeclaredField to throw a NoSuchFieldException when the field is definitely there.
          // For these users fallback to a suboptimal implementation, based on synchronized. This will
          // be a definite performance hit to those users.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top