Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getPackage (1.34 sec)

  1. android/guava/src/com/google/common/reflect/Reflection.java

     */
    @ElementTypesAreNonnullByDefault
    public final class Reflection {
    
      /**
       * Returns the package name of {@code clazz} according to the Java Language Specification (section
       * 6.7). Unlike {@link Class#getPackage}, this method only parses the class name, without
       * attempting to define the {@link Package} and hence load files.
       */
      public static String getPackageName(Class<?> clazz) {
        return getPackageName(clazz.getName());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        // without resorting to even crazier hacks to reset static final boolean fields.
        System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        classReloader =
            new URLClassLoader(ClassPathUtil.getClassPathUrls()) {
              @GuardedBy("loadedClasses")
              final Map<String, Class<?>> loadedClasses = new HashMap<>();
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        // without resorting to even crazier hacks to reset static final boolean fields.
        System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        classReloader =
            new URLClassLoader(ClassPathUtil.getClassPathUrls()) {
              @GuardedBy("loadedClasses")
              final Map<String, Class<?>> loadedClasses = new HashMap<>();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

      }
    
      private static ClassLoader getClassLoader(final Set<String> blocklist) {
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        ClassLoader classLoader = AggregateFutureStateFallbackAtomicHelperTest.class.getClassLoader();
        // we delegate to the current classloader so both loaders agree on classes like TestCase
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

      }
    
      private static ClassLoader getClassLoader(final Set<String> blocklist) {
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        ClassLoader classLoader = AggregateFutureStateFallbackAtomicHelperTest.class.getClassLoader();
        // we delegate to the current classloader so both loaders agree on classes like TestCase
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/ClassPath.java

         *
         * <p>Behaves similarly to {@code class.getPackage().}{@link Package#getName() getName()} but
         * does not require the class (or package) to be loaded.
         *
         * <p>But note that this method may behave differently for a class in the default package: For
         * such classes, this method always returns an empty string. But under some version of Java,
    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)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

      }
    
      private static ClassLoader getClassLoader(final Set<String> disallowedClassNames) {
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        ClassLoader classLoader = AbstractFutureFallbackAtomicHelperTest.class.getClassLoader();
        // we delegate to the current classloader so both loaders agree on classes like TestCase
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        }
        return result;
      }
    
      private List<Class<?>> loadClassesInPackage() throws IOException {
        List<Class<?>> classes = Lists.newArrayList();
        String packageName = getClass().getPackage().getName();
        for (ClassPath.ClassInfo classInfo :
            ClassPath.from(getClass().getClassLoader()).getTopLevelClasses(packageName)) {
          Class<?> cls;
          try {
            cls = classInfo.load();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/NullPointerTester.java

              map.putIfAbsent(new Signature(method), method);
            }
          }
          return map.values();
        }
    
        private ImmutableList<Method> getVisibleMethods(Class<?> cls) {
          // Don't use cls.getPackage() because it does nasty things like reading
          // a file.
          String visiblePackage = Reflection.getPackageName(cls);
          ImmutableList.Builder<Method> builder = ImmutableList.builder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractFutureInnocuousThreadTest.java

        // property is forbidden and then continue running tests normally in one jvm without resorting
        // to even crazier hacks to reset static final boolean fields.
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
        classReloader =
            new URLClassLoader(ClassPathUtil.getClassPathUrls()) {
              @GuardedBy("loadedClasses")
              final Map<String, Class<?>> loadedClasses = new HashMap<>();
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 5.1K bytes
    - Viewed (0)
Back to top