- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 758 for APPLY (0.13 seconds)
-
guava/src/com/google/common/collect/Maps.java
K k = (K) key; return function.apply(k); } else { return defaultValue; } } @Override public @Nullable V remove(@Nullable Object key) { if (backingSet().remove(key)) { @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it K k = (K) key; return function.apply(k); } else { return null; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 163.4K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RepositoriesSetupPlugin.java
public class RepositoriesSetupPlugin implements Plugin<Project> { private static final Pattern LUCENE_SNAPSHOT_REGEX = Pattern.compile("\\w+-snapshot-([a-z0-9]+)"); @Override public void apply(Project project) { configureRepositories(project); } /** * Adds repositories used by ES projects and dependencies */ public static void configureRepositories(Project project) {
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.7K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.ci-reporting.gradle.kts
* * Reducing the number of reports also makes it easier to find the important ones when analysing a failed build in * TeamCity. */ val testFilesCleanup = project.extensions.create<TestFileCleanUpExtension>("testFilesCleanup").apply { reportOnly.convention(false) } // TODO:isolated:incremental the service won't track up-to-date projects (project configuration skipped) that still run tests
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 11 09:36:42 GMT 2026 - 3.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapMakerTest.java
DelayingIdentityLoader(CountDownLatch delayLatch) { this.delayLatch = delayLatch; } @CanIgnoreReturnValue // Sure, why not? @Override public T apply(T key) { awaitUninterruptibly(delayLatch); return key; } } /* * TODO(cpovirk): eliminate duplication between these tests and those in LegacyMapMakerTests and * anywhere else */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/TestWithDependenciesPlugin.java
* <p> * This plugin will add the plugin-metadata and properties files for each * dependency to the test source set. */ public class TestWithDependenciesPlugin implements Plugin<Project> { @Override public void apply(final Project project) { ExtraPropertiesExtension extraProperties = project.getExtensions().getExtraProperties(); if (extraProperties.has("isEclipse") && Boolean.valueOf(extraProperties.get("isEclipse").toString())) {
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 3.2K bytes - Click Count (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
* un-deprecated because Java callers can't chain when assigning Kotlin vals. (The getter remains * deprecated). */ fun setLevel(level: Level) = apply { this.level = level } @JvmName("-deprecated_level") @Deprecated( message = "moved to var", replaceWith = ReplaceWith(expression = "level"),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Nov 07 02:57:33 GMT 2025 - 11.5K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt
companion object { private lateinit var logger: Logger private val SSLSession.masterSecret: SecretKey? get() = javaClass .getDeclaredField("masterSecret") .apply { isAccessible = true }.get(this) as? SecretKey val randomRegex = "\"random\"\\s+:\\s+\"([^\"]+)\"".toRegex() fun register() {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
private var authenticator = JavaNetAuthenticator() private val fakeDns = FakeDns() private val recordingAuthenticator = RecordingAuthenticator() private val factory = TestValueFactory() .apply { dns = fakeDns } @BeforeEach fun setup() { Authenticator.setDefault(recordingAuthenticator) } @AfterEach fun tearDown() { Authenticator.setDefault(null)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.7K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java
private final TearDownStack stack = new TearDownStack(); @Override protected void setUp() throws Exception { super.setUp(); handler = new TestLogHandler(); // You could also apply it higher up the Logger hierarchy than this ExampleClassUnderTest.logger.addHandler(handler); ExampleClassUnderTest.logger.setUseParentHandlers(false); // optional stack.addTearDown( () -> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 2.9K bytes - Click Count (0) -
CLAUDE.md
mvn clean package # Build mvn install # Install to local Maven repo mvn formatter:format # Format code mvn license:format # Apply license headers mvn verify # Generate coverage report ``` ## Code Conventions ### Class Structure - **Utility classes**: `abstract` class + `protected` constructor
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Mar 12 03:38:56 GMT 2026 - 3K bytes - Click Count (0)