Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for intentional (0.42 sec)

  1. guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

    import junit.framework.TestSuite;
    
    /**
     * Test suite covering {@link Ints#asList(int[])}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("cast") // redundant casts are intentional and harmless
    public class IntArrayAsListTest extends TestCase {
    
      private static List<Integer> asList(Integer[] values) {
        int[] temp = new int[values.length];
        for (int i = 0; i < values.length; i++) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        @Override
        public synchronized void run() {
          checkState(wasRun.getCount() > 0);
          wasRun.countDown();
        }
      }
    
      @SuppressWarnings("IsInstanceIncompatibleType") // intentional.
      public void testListenInPoolThreadRunsListenerAfterRuntimeException() throws Exception {
        RuntimeExceptionThrowingFuture<String> input = new RuntimeExceptionThrowingFuture<>();
        /*
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

    import junit.framework.TestSuite;
    
    /**
     * Test suite covering {@link Ints#asList(int[])}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("cast") // redundant casts are intentional and harmless
    public class IntArrayAsListTest extends TestCase {
    
      private static List<Integer> asList(Integer[] values) {
        int[] temp = new int[values.length];
        for (int i = 0; i < values.length; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/StringsTest.java

        assertFalse(Strings.validSurrogatePairAt("x\uDCAB", 0));
        assertFalse(Strings.validSurrogatePairAt("\uD8ABx", 0));
      }
    
      @SuppressWarnings("LenientFormatStringValidation") // Intentional for testing.
      public void testLenientFormat() {
        assertEquals("%s", Strings.lenientFormat("%s"));
        assertEquals("5", Strings.lenientFormat("%s", 5));
        assertEquals("foo [5]", Strings.lenientFormat("foo", 5));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        @Override
        public synchronized void run() {
          checkState(wasRun.getCount() > 0);
          wasRun.countDown();
        }
      }
    
      @SuppressWarnings("IsInstanceIncompatibleType") // intentional.
      public void testListenInPoolThreadRunsListenerAfterRuntimeException() throws Exception {
        RuntimeExceptionThrowingFuture<String> input = new RuntimeExceptionThrowingFuture<>();
        /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

         * handleException() at all.
         */
        if (throwable instanceof Error) {
          /*
           * TODO(cpovirk): Do we really want to log this if we called setException(throwable) and it
           * returned true? This was intentional (CL 46470009), but it seems odd compared to how we
           * normally handle Error.
           *
           * Similarly, do we really want to log the same Error more than once?
           */
          log(throwable);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/PreconditionsTest.java

    /**
     * Unit test for {@link Preconditions}.
     *
     * @author Kevin Bourrillion
     * @author Jared Levy
     */
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings("LenientFormatStringValidation") // Intentional for testing
    @GwtCompatible(emulated = true)
    public class PreconditionsTest extends TestCase {
      public void testCheckArgument_simple_success() {
        Preconditions.checkArgument(true);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. android/pom.xml

                    <!-- TODO(cpovirk): Enable NullArgumentForNonNullParameter for
                         prod code. It's disabled automatically for "test code"
                         (which is good: our tests have intentional violations), but
                         Error Prone doesn't know it's building test code unless we
                         pass -XepCompilingTestOnlyCode, and that argument needs to
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

    /**
     * Unit test for {@link Preconditions}.
     *
     * @author Kevin Bourrillion
     * @author Jared Levy
     */
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings("LenientFormatStringValidation") // Intentional for testing
    @GwtCompatible(emulated = true)
    public class PreconditionsTest extends TestCase {
      public void testCheckArgument_simple_success() {
        Preconditions.checkArgument(true);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/StringsTest.java

        assertFalse(Strings.validSurrogatePairAt("x\uDCAB", 0));
        assertFalse(Strings.validSurrogatePairAt("\uD8ABx", 0));
      }
    
      @SuppressWarnings("LenientFormatStringValidation") // Intentional for testing.
      public void testLenientFormat() {
        assertEquals("%s", Strings.lenientFormat("%s"));
        assertEquals("5", Strings.lenientFormat("%s", 5));
        assertEquals("foo [5]", Strings.lenientFormat("foo", 5));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 10.3K bytes
    - Viewed (0)
Back to top