Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for uploader (0.59 sec)

  1. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        final ClassLoader myLoader = getClass().getClassLoader();
        URLClassLoader sepLoader = new URLClassLoader(getClassPathUrls(), myLoader.getParent());
    
        Class<?> frqC = FinalizableReferenceQueue.class;
        Class<?> sepFrqC = sepLoader.loadClass(frqC.getName());
        assertNotSame(frqC, sepFrqC);
    
        Class<?> sepFrqSystemLoaderC =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        IdentityLoader<Object> loader = identityLoader();
        for (int i = 1; i < 1000; i++) {
          LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().maximumSize(i).build(loader);
          assertEquals(i, CacheTesting.getTotalSegmentSize(cache));
        }
      }
    
      public void testEviction_setMaxSegmentWeight() {
        IdentityLoader<Object> loader = identityLoader();
        for (int i = 1; i < 1000; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/ClassPath.java

        private final String resourceName;
    
        final ClassLoader loader;
    
        static ResourceInfo of(File file, String resourceName, ClassLoader loader) {
          if (resourceName.endsWith(CLASS_FILE_NAME_EXTENSION)) {
            return new ClassInfo(file, resourceName, loader);
          } else {
            return new ResourceInfo(file, resourceName, loader);
          }
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 24.9K bytes
    - Viewed (1)
  4. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertSame(loader, cache.localCache.defaultLoader);
      }
    
      // null parameters test
    
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        CacheLoader<Object, Object> loader = identityLoader();
        tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
      }
    
      // stats tests
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        Callable<Integer> loader =
            new Callable<Integer>() {
              private int i = 0;
    
              @Override
              public Integer call() throws Exception {
                return ++i;
              }
            };
    
        cache.put(0, 10);
    
        assertEquals(Integer.valueOf(10), cache.get(0, loader));
        assertEquals(Integer.valueOf(1), cache.get(20, loader));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/ClassPathTest.java

              ImmutableSet.of(
                  new ResourceInfo(FILE, "left/some.txt", loader),
                  new ResourceInfo(FILE, "left/sibling/another.txt", loader),
                  new ResourceInfo(FILE, "right/another.txt", loader),
                  new ResourceInfo(FILE, "right/sibling/some.txt", loader)),
              new ClassPath.LocationInfo(root.toFile(), loader).scanResources());
        } finally {
          deleteRecursivelyOrLog(root);
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

      }
    
      private static ResourceInfo resourceInfo(Class<?> cls) {
        String resource = cls.getName().replace('.', '/') + ".class";
        ClassLoader loader = cls.getClassLoader();
        return ResourceInfo.of(FILE, resource, loader);
      }
    
      private static ClassInfo classInfo(Class<?> cls) {
        return classInfo(cls, cls.getClassLoader());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 07 16:50:33 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Platform.java

         * won't be cleared as long as the enum constant is referenced somewhere, and the enum constant
         * is referenced somewhere for as long as the enum class is loaded. *Maybe in theory* the enum
         * class could be unloaded after the above call to `getEnumConstants` but before we call
         * `get()`, but that is vanishingly unlikely.
         */
        return ref == null ? Optional.absent() : Optional.fromNullable(enumClass.cast(ref.get()));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/CacheBuilder.java

       *
       * @param loader the cache loader used to obtain new values
       * @return a cache having the requested features
       */
      public <K1 extends K, V1 extends V> LoadingCache<K1, V1> build(
          CacheLoader<? super K1, V1> loader) {
        checkWeightWithWeigher();
        return new LocalCache.LocalLoadingCache<>(this, loader);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      }
    
      /**
       * Loads {@link WillBeUnloadedException} in a separate {@code ClassLoader}, calls {@code
       * getChecked(future, WillBeUnloadedException.class)}, and returns the loader. The caller can then
       * test that the {@code ClassLoader} can still be GCed. The test amounts to a test that {@code
       * getChecked} holds no strong references to the class.
       */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
Back to top