Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 167 of 167 for setAccessible (0.07 seconds)

  1. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

            try {
                java.lang.reflect.Method getExpiredTimeMethod = CrawlingInfoHelper.class.getDeclaredMethod("getExpiredTime", int.class);
                getExpiredTimeMethod.setAccessible(true);
    
                long result1 = (Long) getExpiredTimeMethod.invoke(crawlingInfoHelper, 1);
                long result7 = (Long) getExpiredTimeMethod.invoke(crawlingInfoHelper, 7);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/NameTest.java

        @Test
        void constructor_withConfigOnly_shouldInitializeFields() throws Exception {
            Name name = new Name(mockConfig);
    
            Field configField = Name.class.getDeclaredField("config");
            configField.setAccessible(true);
            assertSame(mockConfig, configField.get(name));
        }
    
        @Test
        void constructor_withAllParameters_shouldInitializeCorrectly() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/UnsignedBytes.java

                  (PrivilegedExceptionAction<Unsafe>)
                      () -> {
                        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);
                          }
                        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

                          () -> {
                            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);
                              }
                            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 33.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            assertTrue(Modifier.isPrivate(constructor.getModifiers()));
    
            // Make it accessible to test it throws no exception
            constructor.setAccessible(true);
            constructor.newInstance();
        }
    
        @Test
        public void testCreateSuggestTextId() {
            // Test normal text
            String text = "test text";
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      private static int bucketsOf(HashMap<?, ?> hashMap) throws Exception {
        Field tableField = HashMap.class.getDeclaredField("table");
        tableField.setAccessible(true);
        Object[] table = (Object[]) tableField.get(hashMap);
        // In JDK8, table is set lazily, so it may be null.
        return table == null ? 0 : table.length;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

        }
    
        private void setValueToObject(Object obj, String name, Object value) {
            Field field = ClassUtil.getDeclaredField(obj.getClass(), name);
            field.setAccessible(true);
            FieldUtil.set(field, obj, value);
        }
    
        @Test
        public void test_pruneNode() throws Exception {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 62.9K bytes
    - Click Count (0)
Back to Top