- Sort Score
- Result 10 results
- Languages All
Results 4541 - 4550 of 4,820 for If (0.01 sec)
-
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
assertThat(min(2, 1, reverse)).isEqualTo(2); assertThat(max(1, 2, reverse)).isEqualTo(1); assertThat(max(2, 1, reverse)).isEqualTo(1); } /** * Fails compilation if the signature of min and max is changed to take {@code Comparator<T>} * instead of {@code Comparator<? super T>}. */ public void testMinMaxWithSupertypeComparator() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 6.4K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
/** * awaitFullGc() is not quite as reliable a way to ensure calling of a specific finalize method as * the more direct await* methods, but should be reliable enough in practice to avoid flakiness of * this test. (And if it isn't, we'd like to know about it first!) */ public void testAwaitFullGc() { CountDownLatch finalizerRan = new CountDownLatch(1); WeakReference<Object> ref = new WeakReference<Object>(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
// skip fully reader = new CharSequenceReader(charSequence); assertEquals(expected.length(), reader.skip(Long.MAX_VALUE)); assertFullyRead(reader); // skip 5 and read the rest if (expected.length() > 5) { reader = new CharSequenceReader(charSequence); assertEquals(5, reader.skip(5)); buf = new char[expected.length() - 5];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTestType.java
System.out.println("[ Looking for " + groupId + ":" + artifactId + " ]"); for (Artifact a : project.getArtifacts()) { System.out.println(a.toString()); if (artifactId.equals(a.getArtifactId()) && a.getGroupId().equals(groupId)) { System.out.println("RETURN"); return a; } } System.out.println("Return null");
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 6.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TextUtilTest.java
} public static String normalizeText(final String str, final int initialCapacity, final int maxAlphanumTermSize, final int maxSymbolTermSize, final boolean removeDuplication) { if (str == null) { return StringUtil.EMPTY; } try (final Reader reader = new StringReader(str)) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Aug 07 02:55:08 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java
CountDownLatch latch = new CountDownLatch(1); List<String> receivedLines = new ArrayList<>(); Consumer<String> callback = line -> { receivedLines.add(line); if (receivedLines.size() == 5000) { latch.countDown(); } }; InputStreamThread thread = new InputStreamThread(is, StandardCharsets.UTF_8, 100, callback);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/resources/plugin/repo2/index.html
<title>Index of /repositories/snapshots/org/codelibs/fess</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="icon" type="image/png" href="https://oss.sonatype.org/favicon.png"> <!--[if IE]> <link rel="SHORTCUT ICON" href="https://oss.sonatype.org/favicon.ico"/> <![endif]-->
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 13 07:34:14 UTC 2019 - 10.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
verify(mockCloseable, timeout(1000)).close(); } /** * Marks the given step final, waits for it to be finished, and returns the value. * * @throws ExecutionException if the step failed * @throws CancellationException if the step was cancelled */ abstract <T> T getFinalValue(ClosingFuture<T> closingFuture) throws ExecutionException;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 75.4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java
return new Murmur3_128Hasher(seed); } @Override public String toString() { return "Hashing.murmur3_128(" + seed + ")"; } @Override public boolean equals(@Nullable Object object) { if (object instanceof Murmur3_128HashFunction) { Murmur3_128HashFunction other = (Murmur3_128HashFunction) object; return seed == other.seed; } return false; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 5.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt
assertThat(reader.nextPart()).isNull() } /** * Read 100 MiB of 'a' chars. This was really slow due to a performance bug in [MultipartReader], * and will be really slow if we regress the fix for that. */ @Test fun `reading a large part with small byteCount`() { val multipartBody = MultipartBody .Builder("foo") .addPart(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 02:11:14 UTC 2025 - 15.4K bytes - Viewed (0)