Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 205 for UNUSED (0.03 seconds)

  1. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        public static void christenPoodle(String unused) {
          throw new UnsupportedOperationException();
        }
      }
    
      private static class ThrowsSomethingElse {
        @Keep
        public static void christenPoodle(String unused) {
          throw new RuntimeException();
        }
      }
    
      private interface InterfaceStaticMethodFailsToCheckNull {
        static String create(String unused) {
          return "I don't check";
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 47.9K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

       */
    
      public void testSize() {
        int unused = create().size();
      }
    
      public void testIsEmpty() {
        boolean unused = create().isEmpty();
      }
    
      public void testRemove() {
        create().remove(null);
      }
    
      public void testClear() {
        create().clear();
      }
    
      public void testContainsKey() {
        boolean unused = create().containsKey(null);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6K bytes
    - Click Count (0)
  3. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        CountDownLatch latch = new CountDownLatch(1);
        Object unused =
            new Object() {
              @SuppressWarnings({"removal", "Finalize"}) // b/487687332
              @Override
              protected void finalize() {
                latch.countDown();
              }
            };
        unused = null; // Hint to the JIT that unused is unreachable
        GcFinalization.await(latch);
        assertEquals(0, latch.getCount());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        executor.shutdown();
      }
    
      public void testCallableStartsAfterFirstFutureCompletes() {
        @SuppressWarnings({"unused", "nullness"})
        Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor());
        TestCallable secondCallable = new TestCallable(immediateVoidFuture());
        @SuppressWarnings({"unused", "nullness"})
        Future<?> possiblyIgnoredError1 = serializer.submitAsync(secondCallable, directExecutor());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  5. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

            String a,
            int b,
            // oneConstantOnly doesn't matter since it's not nullable and can be only 1 value.
            @SuppressWarnings("unused") OneConstantEnum oneConstantOnly,
            // noConstant doesn't matter since it can only be null
            @SuppressWarnings("unused") @Nullable NoConstantEnum noConstant) {
          return new GoodEquals(a, b);
        }
    
        // instance method ignored
        public Object badIgnored() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  6. android/guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java

          public boolean noAddOverflow(int a, int b) {
            try {
              int unused = IntMath.checkedAdd(a, b);
              return true;
            } catch (ArithmeticException e) {
              return false;
            }
          }
    
          @Override
          public boolean noAddOverflow(long a, long b) {
            try {
              long unused = LongMath.checkedAdd(a, b);
              return true;
            } catch (ArithmeticException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  7. guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java

          public boolean noAddOverflow(int a, int b) {
            try {
              int unused = IntMath.checkedAdd(a, b);
              return true;
            } catch (ArithmeticException e) {
              return false;
            }
          }
    
          @Override
          public boolean noAddOverflow(long a, long b) {
            try {
              long unused = LongMath.checkedAdd(a, b);
              return true;
            } catch (ArithmeticException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  8. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        CountDownLatch latch = new CountDownLatch(1);
        Object unused =
            new Object() {
              @SuppressWarnings({"removal", "Finalize"}) // b/487687332
              @Override
              protected void finalize() {
                latch.countDown();
              }
            };
        unused = null; // Hint to the JIT that unused is unreachable
        GcFinalization.await(latch);
        assertEquals(0, latch.getCount());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        executor.shutdown();
      }
    
      public void testCallableStartsAfterFirstFutureCompletes() {
        @SuppressWarnings({"unused", "nullness"})
        Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor());
        TestCallable secondCallable = new TestCallable(immediateVoidFuture());
        @SuppressWarnings({"unused", "nullness"})
        Future<?> possiblyIgnoredError1 = serializer.submitAsync(secondCallable, directExecutor());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

       */
    
      public void testSize() {
        int unused = create().size();
      }
    
      public void testIsEmpty() {
        boolean unused = create().isEmpty();
      }
    
      public void testRemove() {
        create().remove(null);
      }
    
      public void testClear() {
        create().clear();
      }
    
      public void testContainsKey() {
        boolean unused = create().containsKey(null);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6K bytes
    - Click Count (0)
Back to Top