Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for AnonymousToLambda (0.09 seconds)

  1. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

       * for bridge methods.
       */
      // We use an anonymous class to be sure that we generate two methods (bridge and original).
      @SuppressWarnings("AnonymousToLambda")
      public void testRegistrationWithBridgeMethod() {
        AtomicInteger calls = new AtomicInteger();
        bus.register(
            new Callback<String>() {
              @Subscribe
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/eventbus/EventBusTest.java

       * for bridge methods.
       */
      // We use an anonymous class to be sure that we generate two methods (bridge and original).
      @SuppressWarnings("AnonymousToLambda")
      public void testRegistrationWithBridgeMethod() {
        AtomicInteger calls = new AtomicInteger();
        bus.register(
            new Callback<String>() {
              @Subscribe
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      private static final int INITIAL_DELAY = 10;
      private static final int DELAY = 20;
      private static final TimeUnit UNIT = MILLISECONDS;
    
      // Unique runnable object used for comparison.
      @SuppressWarnings("AnonymousToLambda")
      final Runnable testRunnable =
          new Runnable() {
            @Override
            public void run() {}
          };
    
      boolean called = false;
    
      private void assertSingleCallWithCorrectParameters(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      private static final int INITIAL_DELAY = 10;
      private static final int DELAY = 20;
      private static final TimeUnit UNIT = MILLISECONDS;
    
      // Unique runnable object used for comparison.
      @SuppressWarnings("AnonymousToLambda")
      final Runnable testRunnable =
          new Runnable() {
            @Override
            public void run() {}
          };
    
      boolean called = false;
    
      private void assertSingleCallWithCorrectParameters(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/cache/CacheBuilder.java

       *   isn't one yet.
       *
       * - lambda: Outside Google, we got a report of a similar problem in
       *   https://github.com/google/guava/issues/6565
       */
      @SuppressWarnings("AnonymousToLambda")
      static final Supplier<StatsCounter> CACHE_STATS_COUNTER =
          new Supplier<StatsCounter>() {
            @Override
            public StatsCounter get() {
              return new SimpleStatsCounter();
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 52K bytes
    - Click Count (0)
  6. guava/src/com/google/common/cache/CacheBuilder.java

       *   isn't one yet.
       *
       * - lambda: Outside Google, we got a report of a similar problem in
       *   https://github.com/google/guava/issues/6565
       */
      @SuppressWarnings("AnonymousToLambda")
      static final Supplier<StatsCounter> CACHE_STATS_COUNTER =
          new Supplier<StatsCounter>() {
            @Override
            public StatsCounter get() {
              return new SimpleStatsCounter();
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 51.7K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        GcFinalization.awaitClear(futureRef);
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testWhenAllSucceed_releasesCallable() throws Exception {
        @SuppressWarnings("AnonymousToLambda") // We want an instance that can be GCed.
        AsyncCallable<Long> combiner =
            new AsyncCallable<Long>() {
              @Override
              public ListenableFuture<Long> call() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        GcFinalization.awaitClear(futureRef);
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testWhenAllSucceed_releasesCallable() throws Exception {
        @SuppressWarnings("AnonymousToLambda") // We want an instance that can be GCed.
        AsyncCallable<Long> combiner =
            new AsyncCallable<Long>() {
              @Override
              public ListenableFuture<Long> call() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
Back to Top