Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1781 - 1790 of 1,809 for scratch (0.06 seconds)

  1. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(asList(4, 4, 3, 3), numberOrdering.greatestOf(list.iterator(), 4));
      }
    
      private static void assertListImmutable(List<Integer> result) {
        try {
          result.set(0, 1);
          fail();
        } catch (UnsupportedOperationException expected) {
          // pass
        }
      }
    
      public void testIteratorMinAndMax() {
        List<Integer> ints = Lists.newArrayList(5, 3, 0, 9);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(asList(4, 4, 3, 3), numberOrdering.greatestOf(list.iterator(), 4));
      }
    
      private static void assertListImmutable(List<Integer> result) {
        try {
          result.set(0, 1);
          fail();
        } catch (UnsupportedOperationException expected) {
          // pass
        }
      }
    
      public void testIteratorMinAndMax() {
        List<Integer> ints = Lists.newArrayList(5, 3, 0, 9);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/net/MediaType.java

            } else {
              value = tokenizer.consumeToken(TOKEN_MATCHER);
            }
            parameters.put(attribute, value);
          }
          return create(type, subtype, parameters.build());
        } catch (IllegalStateException e) {
          throw new IllegalArgumentException("Could not parse '" + input + "'", e);
        }
      }
    
      private static void consumeSeparator(Tokenizer tokenizer, char c) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  4. CHANGELOG.md

    _2025-10-09_
    
     *  Fix: Don't crash when calling `Socket.shutdownOutput()` or `shutdownInput()` on an `SSLSocket`
        on Android API 21 through 23. This method throws an `UnsupportedOperationException`, so we now
        catch that and close the underlying stream instead.
    
     *  Upgrade: [Okio 3.16.1][okio_3_16_1].
    
    
    ## Version 5.2.0
    
    _2025-10-07_
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 15 11:57:47 GMT 2026
    - 36.2K bytes
    - Click Count (2)
  5. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      // valid result thrown by java.util.TreeSet#equals.
      private static void assertNotEqualLenient(TreeSet<?> unexpected, SortedSet<?> actual) {
        try {
          assertThat(actual).isNotEqualTo(unexpected);
        } catch (ClassCastException accepted) {
        }
      }
    
      public void testHeadSetInclusive() {
        String[] strings = NUMBER_NAMES.toArray(new String[0]);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.2K bytes
    - Click Count (0)
  6. cmd/object-api-utils.go

    // compressSelfTest performs a self-test to ensure that compression
    // algorithms completes a roundtrip. If any algorithm
    // produces an incorrect checksum it fails with a hard error.
    //
    // compressSelfTest tries to catch any issue in the compression implementation
    // early instead of silently corrupting data.
    func compressSelfTest() {
    	// 4 MB block.
    	// Approx runtime ~30ms
    	data := make([]byte, 4<<20)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 37.3K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        filesystem.read(file) {
          readUtf8()
        }
    
      private fun readFileOrNull(file: Path): String? =
        try {
          filesystem.read(file) {
            readUtf8()
          }
        } catch (_: FileNotFoundException) {
          null
        }
    
      fun writeFile(
        file: Path,
        content: String,
      ) {
        file.parent?.let {
          filesystem.createDirectories(it)
        }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 59.4K bytes
    - Click Count (0)
  8. .bazelrc

    # --incompatible_remove_legacy_whole_archive flag does.
    # This flag is set to true in Bazel 1.0 and newer versions. We tried to migrate
    # Tensorflow to the default, however test coverage wasn't enough to catch the
    # errors.
    # There is ongoing work on Bazel team's side to provide support for transitive
    # shared libraries. As part of migrating to transitive shared libraries, we
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Mar 28 04:33:01 GMT 2026
    - 58.9K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

          if (exceptionMessage != null) {
            fail("Expected failure with $exceptionMessage but got $result")
          } else {
            fail("Expected failure but got $result")
          }
        } catch (iae: IllegalArgumentException) {
          iae.printStackTrace()
          if (exceptionMessage != null) {
            assertThat(iae).hasMessage(exceptionMessage)
          }
        }
      }
    
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Aug 04 07:38:48 GMT 2025
    - 69.9K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                      } else {
                        cache.refresh(key);
                        value = cache.get(key);
                      }
                      result.set(index, value);
                    } catch (Throwable t) {
                      result.set(index, t);
                    }
                    gettersComplete.countDown();
                  });
          thread.start();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
Back to Top