Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for CheckReturnValue (0.22 sec)

  1. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        assertEquals(10, in.available());
        int total = 0;
        while (in.read() != -1) {
          total++;
        }
        assertEquals(0, in.available());
        assertEquals(20, total);
      }
    
      @SuppressWarnings("CheckReturnValue") // these calls to skip always return 0
      public void testSkip() throws Exception {
        MultiInputStream multi =
            new MultiInputStream(
                Collections.singleton(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

          assertTrue(Thread.holdsLock(mutex));
          return delegate.descendingIterator();
        }
    
        private static final long serialVersionUID = 0;
      }
    
      @SuppressWarnings("CheckReturnValue")
      public void testHoldsLockOnAllOperations() {
        create().element();
        create().offer("foo");
        create().peek();
        create().poll();
        create().remove();
        create().add("foo");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        assertEquals(10, in.available());
        int total = 0;
        while (in.read() != -1) {
          total++;
        }
        assertEquals(0, in.available());
        assertEquals(20, total);
      }
    
      @SuppressWarnings("CheckReturnValue") // these calls to skip always return 0
      public void testSkip() throws Exception {
        MultiInputStream multi =
            new MultiInputStream(
                Collections.singleton(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

          assertTrue(Thread.holdsLock(mutex));
          return delegate.descendingIterator();
        }
    
        private static final long serialVersionUID = 0;
      }
    
      @SuppressWarnings("CheckReturnValue")
      public void testHoldsLockOnAllOperations() {
        create().element();
        create().offer("foo");
        create().peek();
        create().poll();
        create().remove();
        create().add("foo");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/SourceSinkFactories.java

            Java8Compatibility.clear(buffer);
          }
          return builder.toString();
        }
      }
    
      private static class UrlByteSourceFactory extends FileByteSourceFactory {
    
        @SuppressWarnings("CheckReturnValue") // only using super.createSource to create a file
        @Override
        public ByteSource createSource(byte[] bytes) throws IOException {
          super.createSource(bytes);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Converter.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.errorprone.annotations.CheckReturnValue;
    import com.google.errorprone.annotations.ForOverride;
    import com.google.errorprone.annotations.InlineMe;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    import com.google.j2objc.annotations.RetainedWith;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 18 21:43:06 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        assertEqualCharNodes(Iterables.limit(result, 2), "db");
        assertThat(graph.requestedNodes).containsExactly('a', 'a', 'a', 'b', 'b', 'c', 'd', 'd');
      }
    
      @Test
      @SuppressWarnings("CheckReturnValue")
      public void forTree_acceptsDirectedGraph() throws Exception {
        MutableGraph<String> graph = GraphBuilder.directed().build();
        graph.putEdge("a", "b");
    
        Traverser.forTree(graph); // Does not throw
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/TraverserTest.java

        assertEqualCharNodes(Iterables.limit(result, 2), "db");
        assertThat(graph.requestedNodes).containsExactly('a', 'a', 'a', 'b', 'b', 'c', 'd', 'd');
      }
    
      @Test
      @SuppressWarnings("CheckReturnValue")
      public void forTree_acceptsDirectedGraph() throws Exception {
        MutableGraph<String> graph = GraphBuilder.directed().build();
        graph.putEdge("a", "b");
    
        Traverser.forTree(graph); // Does not throw
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Unit test for {@link NullPointerTester}.
     *
     * @author Kevin Bourrillion
     * @author Mick Killianey
     */
    @SuppressWarnings({
      "CheckReturnValue",
      "unused", // many methods tested reflectively -- maybe prefer local @Keep annotations?
    })
    @NullUnmarked
    public class NullPointerTesterTest extends TestCase {
    
      /** Non-NPE RuntimeException. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteSource.java

          return Optional.of((long) length);
        }
    
        @Override
        public byte[] read() {
          return Arrays.copyOfRange(bytes, offset, offset + length);
        }
    
        @SuppressWarnings("CheckReturnValue") // it doesn't matter what processBytes returns here
        @Override
        @ParametricNullness
        public <T extends @Nullable Object> T read(ByteProcessor<T> processor) throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 20 20:55:20 UTC 2025
    - 25.7K bytes
    - Viewed (0)
Back to top