- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 2,560 for void (0.02 seconds)
-
guava-testlib/src/com/google/common/testing/TestLogHandler.java
/** Adds the most recently logged record to our list. */ @Override public void publish(@Nullable LogRecord record) { synchronized (lock) { if (record != null) { list.add(record); } } } @Override public void flush() {} @Override public void close() {} public void clear() { synchronized (lock) { list.clear(); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.8K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractService.java
* #monitor}. */ private void dispatchListenerEvents() { if (!monitor.isOccupiedByCurrentThread()) { listeners.dispatch(); } } private void enqueueStartingEvent() { listeners.enqueue(STARTING_EVENT); } private void enqueueRunningEvent() { listeners.enqueue(RUNNING_EVENT); } private void enqueueStoppingEvent(State from) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 20.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
return ImmutableSet.copyOf(elements); } public void testCreation_allDuplicates() { ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a")); assertTrue(set instanceof SingletonImmutableSet); assertEquals(Lists.newArrayList("a"), new ArrayList<>(set)); } public void testCreation_oneDuplicate() { // now we'll get the varargs overload
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 14.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") @IgnoreJRERequirement // We opt into library desugaring for our tests. public class MapComputeIfPresentTester<K, V> extends AbstractMapTester<K, V> { @MapFeature.Require(SUPPORTS_PUT) public void testComputeIfPresent_supportedAbsent() { assertNull( "computeIfPresent(notPresent, function) should return null", getMap() .computeIfPresent( k3(),Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 6.1K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java
return mavenExecutionRequest; } @Override protected void lookup(MavenContext context) throws Exception { if (context.maven == null) { super.lookup(context); context.maven = context.lookup.lookup(Maven.class); } } @Override protected void postCommands(MavenContext context) throws Exception { super.postCommands(context);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 11 17:20:46 GMT 2025 - 28.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SetViewTest.java
public void testSymmetricDifference_isView() { Set<Integer> set1 = newHashSet(1, 2); Set<Integer> set2 = newHashSet(2, 3); Set<Integer> difference = symmetricDifference(set1, set2); assertThat(difference).containsExactly(1, 3); set1.add(0); assertThat(difference).containsExactly(0, 1, 3); set2.remove(2); assertThat(difference).containsExactly(0, 1, 2, 3); } public void testImmutableCopy_empty() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 29.9K bytes - Click Count (0) -
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java
/** * Create UNIX domain sockets for MockWebServer and OkHttp and connect 'em together. Note that we * cannot do TLS over domain sockets. */ public class ClientAndServer { public void run() throws Exception { File socketFile = new File("/tmp/ClientAndServer.sock"); socketFile.delete(); // Clean up from previous runs. MockWebServer server = new MockWebServer();
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Dec 24 03:46:30 GMT 2018 - 2.1K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsProblemCollector.java
} public List<SettingsProblem> getProblems() { return problems; } public void setSource(String source) { this.source = source; } @Override public void add(SettingsProblem.Severity severity, String message, int line, int column, Exception cause) { if (line <= 0 && column <= 0 && cause instanceof SettingsParseException e) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 10 08:42:00 GMT 2025 - 2K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java
* * @author Eric Chang */ public class TestingExecutorsTest extends TestCase { private volatile boolean taskDone; public void testNoOpScheduledExecutor() throws InterruptedException { taskDone = false; Runnable task = new Runnable() { @Override public void run() { taskDone = true; } }; ScheduledFuture<?> future =Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 18 22:10:29 GMT 2024 - 3.7K bytes - Click Count (0) -
guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java
* * @author Eric Chang */ public class TestingExecutorsTest extends TestCase { private volatile boolean taskDone; public void testNoOpScheduledExecutor() throws InterruptedException { taskDone = false; Runnable task = new Runnable() { @Override public void run() { taskDone = true; } }; ScheduledFuture<?> future =Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 18 22:10:29 GMT 2024 - 3.7K bytes - Click Count (0)