Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for initialize (0.19 sec)

  1. guava-tests/test/com/google/common/reflect/ReflectionTest.java

      }
    
      public void testInitialize() {
        assertEquals("This test can't be included twice in the same suite.", 0, classesInitialized);
    
        Reflection.initialize(A.class);
        assertEquals(1, classesInitialized);
    
        Reflection.initialize(
            A.class, // Already initialized (above)
            B.class, C.class);
        assertEquals(3, classesInitialized);
      }
    
      public void testNullPointers() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/ReflectionTest.java

      }
    
      public void testInitialize() {
        assertEquals("This test can't be included twice in the same suite.", 0, classesInitialized);
    
        Reflection.initialize(A.class);
        assertEquals(1, classesInitialized);
    
        Reflection.initialize(
            A.class, // Already initialized (above)
            B.class, C.class);
        assertEquals(3, classesInitialized);
      }
    
      public void testNullPointers() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

      private UncaughtExceptionHandlers() {}
    
      /**
       * Returns an exception handler that exits the system. This is particularly useful for the main
       * thread, which may start up other, non-daemon threads, but fail to fully initialize the
       * application successfully.
       *
       * <p>Example usage:
       *
       * <pre>
       * public static void main(String[] args) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/Striped64.java

       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
          threadHashCode.set(hc = new int[1]); // Initialize randomly
          int r = rng.nextInt(); // Avoid zero to allow xorShift rehash
          h = hc[0] = (r == 0) ? 1 : r;
        } else h = hc[0];
        boolean collide = false; // True if last slot nonempty
        for (; ; ) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

                        }
                      }
                      throw new NoSuchFieldError("the Unsafe");
                    });
          } catch (PrivilegedActionException e) {
            throw new RuntimeException("Could not initialize intrinsics", e.getCause());
          }
        }
    
        static {
          theUnsafe = getUnsafe();
          BYTE_ARRAY_BASE_OFFSET = theUnsafe.arrayBaseOffset(byte[].class);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/ClassPath.java

         *
         * @since 30.1
         */
        public boolean isTopLevel() {
          return className.indexOf('$') == -1;
        }
    
        /**
         * Loads (but doesn't link or initialize) the class.
         *
         * @throws LinkageError when there were errors in loading classes that this class depends on.
         *     For example, {@link NoClassDefFoundError}.
         */
        public Class<?> load() {
    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. android/guava/src/com/google/common/eventbus/EventBus.java

     *
     * <ul>
     *   <li>It makes the cross-references between producer and subscriber harder to find. This can
     *       complicate debugging, lead to unintentional reentrant calls, and force apps to eagerly
     *       initialize all possible subscribers at startup time.
     *   <li>It uses reflection in ways that break when code is processed by optimizers/minimizers like
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/Striped64.java

       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
          threadHashCode.set(hc = new int[1]); // Initialize randomly
          int r = rng.nextInt(); // Avoid zero to allow xorShift rehash
          h = hc[0] = (r == 0) ? 1 : r;
        } else h = hc[0];
        boolean collide = false; // True if last slot nonempty
        for (; ; ) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

                    }
                    throw new NoSuchFieldError("the Unsafe");
                  }
                });
          } catch (java.security.PrivilegedActionException e) {
            throw new RuntimeException("Could not initialize intrinsics", e.getCause());
          }
        }
    
        private volatile RunnableExecutorPair head = NULL_PAIR;
    
        public void add(Runnable runnable, Executor executor) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/Striped64.java

       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
          threadHashCode.set(hc = new int[1]); // Initialize randomly
          int r = rng.nextInt(); // Avoid zero to allow xorShift rehash
          h = hc[0] = (r == 0) ? 1 : r;
        } else h = hc[0];
        boolean collide = false; // True if last slot nonempty
        for (; ; ) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top