- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,266 for safe (0.65 sec)
-
guava/src/com/google/common/collect/CompactHashMap.java
return requireNonNull(values); } /* * The following methods are safe to call as long as the conditions in the *previous* comment are * met *and* the index is less than size(). * * (The above explains when these methods are safe from a `nullness` perspective. From an * `unchecked` perspective, they're safe because we put only K/V elements into each array.) */ @SuppressWarnings("unchecked")
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 39.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Absent.java
} @Override public T or(T defaultValue) { return checkNotNull(defaultValue, "use Optional.orNull() instead of Optional.or(null)"); } @SuppressWarnings("unchecked") // safe covariant cast @Override public Optional<T> or(Optional<? extends T> secondChoice) { return (Optional<T>) checkNotNull(secondChoice); } @Override public T or(Supplier<? extends T> supplier) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Apr 15 22:14:00 UTC 2025 - 2.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/cache/RequestResult.java
/** * A record representing the result of a single request operation, containing the original request, * the result (if successful), and any error that occurred during processing. * <p> * This class is immutable and thread-safe, suitable for use in concurrent operations. * * @param <REQ> The type of the request * @param <REP> The type of the response, which must extend {@code Result<REQ>} * @param request The original request that was processed
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 2.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/NullsFirstOrdering.java
return RIGHT_IS_GREATER; } if (right == null) { return LEFT_IS_GREATER; } return ordering.compare(left, right); } @Override @SuppressWarnings("nullness") // should be safe, but not sure if we can avoid the warning public <S extends @Nullable T> Ordering<S> reverse() { // ordering.reverse() might be optimized, so let it do its thing return ordering.<T>reverse().<@NonNull S>nullsLast(); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/SneakyThrows.java
* throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Feb 03 21:52:39 UTC 2025 - 2.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactStatus.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.artifact; import java.util.HashMap; import java.util.Map; /** * Type safe enumeration for the artifact status field. * */ @Deprecated public final class ArtifactStatus implements Comparable<ArtifactStatus> { /** * No trust - no information about status. */
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/ds/DataStoreFactory.java
* <p>Data stores are registered by name and class name, allowing flexible lookup. * The factory also supports dynamic discovery of data store plugins by scanning * JAR files for data store configurations.</p> * * <p>Thread-safe operations are supported for registration and retrieval of data stores. * The factory caches data store names with a time-based refresh mechanism to improve * performance while ensuring up-to-date plugin discovery.</p> */
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ClassToInstanceMap.java
import org.jspecify.annotations.Nullable; /** * A map, each entry of which maps a Java <a href="http://tinyurl.com/2cmwkz">raw type</a> to an * instance of that type. In addition to implementing {@code Map}, the additional type-safe * operations {@link #putInstance} and {@link #getInstance} are available. * * <p>Like any other {@code Map<Class, Object>}, this map may contain entries for primitive types,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FakeTicker.java
* * <p>The ticker can be configured so that the time is incremented whenever {@link #read} is called: * see {@link #setAutoIncrementStep}. * * <p>This class is thread-safe. * * @author Jige Yu * @since 10.0 */ @NullMarked @GwtCompatible public class FakeTicker extends Ticker { private final AtomicLong nanos = new AtomicLong();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 3.4K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt
fun scriptsCacheDirsUnder(cacheDir: File) = scriptCacheDirNames .map { File(cacheDir, it) } .filter { it.isDirectory } /** * Clean up cache files for older versions that aren't multi-process safe. */ fun FileSystemOperations.removeDodgyCacheFiles(dir: Directory) { if (dir.asFile.isDirectory) { for (cacheDir in dir.asFile.listFiles()) { if (!cacheDir.name.matches(dirVersionPattern)) {
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 4.4K bytes - Viewed (0)