- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 446 for Unsafe (0.05 sec)
-
android/guava/src/com/google/common/collect/ExplicitOrdering.java
} ExplicitOrdering(ImmutableMap<T, Integer> rankMap) { this.rankMap = rankMap; } @Override public int compare(T left, T right) { return rank(left) - rank(right); // safe because both are nonnegative } private int rank(T value) { Integer rank = rankMap.get(value); if (rank == null) { throw new IncomparableValueException(value); } return rank; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 2K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java
private static final char[] CHAR_BUFFER = new char[1024]; static char[] charBufferFromThreadLocal() { // ThreadLocal is not available to GWT, so we always reuse the same // instance. It is always safe to return the same instance because // javascript is single-threaded, and only used by blocks that doesn't // involve async callbacks. return CHAR_BUFFER; } private Platform() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 1.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
} /** * Returns the empty multimap. * * <p><b>Performance note:</b> the instance returned is a singleton. */ // Casting is safe because the multimap will never hold any elements. @SuppressWarnings("unchecked") public static <K, V> ImmutableSetMultimap<K, V> of() { return (ImmutableSetMultimap<K, V>) EmptyImmutableSetMultimap.INSTANCE; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.8K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/AllowConcurrentEvents.java
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Marks an event subscriber method as being thread-safe. This annotation indicates that EventBus * may invoke the event subscriber simultaneously from multiple threads. * * <p>This does not mark the method, and so should be used in combination with {@link Subscribe}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlExtractor.java
/** Map of metadata field names to their corresponding XPath expressions. */ protected Map<String, String> metadataXpathMap = new HashMap<>(); /** Thread-local instance of XPathAPI for thread-safe XPath evaluation. */ private final ThreadLocal<XPathAPI> xpathAPI = new ThreadLocal<>(); /** * Creates a new HtmlExtractor instance. */ public HtmlExtractor() { super(); }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 9.3K bytes - Viewed (0) -
api/go1.2.txt
pkg strings, func IndexByte(string, uint8) int pkg sync/atomic, func SwapInt32(*int32, int32) int32 pkg sync/atomic, func SwapInt64(*int64, int64) int64 pkg sync/atomic, func SwapPointer(*unsafe.Pointer, unsafe.Pointer) unsafe.Pointer pkg sync/atomic, func SwapUint32(*uint32, uint32) uint32 pkg sync/atomic, func SwapUint64(*uint64, uint64) uint64 pkg sync/atomic, func SwapUintptr(*uintptr, uintptr) uintptr
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Oct 18 04:36:59 UTC 2013 - 1.9M bytes - Viewed (1) -
android/guava/src/com/google/common/base/AbstractIterator.java
} return false; } @Override @ParametricNullness public final T next() { if (!hasNext()) { throw new NoSuchElementException(); } state = State.NOT_READY; // Safe because hasNext() ensures that tryToComputeNext() has put a T into `next`. T result = uncheckedCastNullableTToT(next); next = null; return result; } @Override public final void remove() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java
if (!compareAndSet(currentThread, DONE)) { waitForInterrupt(currentThread); } if (run) { if (error == null) { // The cast is safe because of the `run` and `error` checks. afterRanInterruptiblySuccess(uncheckedCastNullableTToT(result)); } else { afterRanInterruptiblyFailure(error); } } } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 10K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
* is not available, and it is always an error to attempt read its streamed content. Reading from * [ResponseBody.source] always throws on such instances. * * It is safe and supported to call [ResponseBody.contentType] and [ResponseBody.contentLength] on * all instances of [ResponseBody]. */ @get:JvmName("body") val body: ResponseBody, /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 14:39:28 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/util/InputValidatorTest.java
void testValidDomains(String domain) { assertDoesNotThrow(() -> InputValidator.validateDomain(domain)); } @Test @DisplayName("Test safe integer addition") void testSafeAddition() { assertEquals(100, InputValidator.safeAdd(50, 50)); assertEquals(0, InputValidator.safeAdd(-50, 50));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0)