- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 310 for unchecked (0.2 sec)
-
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
// `key` was in the cache, so it's a K. // (Or it's a weird case like a LinkedList in a Cache<ArrayList, ...>, but *shrug*.) @SuppressWarnings("unchecked") K castKey = (K) key; @SuppressWarnings("unchecked") // similar to the above V castValue = (V) value; alertListenerIfPresent(castKey, castValue, RemovalCause.EXPLICIT); remove(key); return true; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 27 19:19:19 GMT 2024 - 21.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
@SuppressWarnings({"rawtypes", "unchecked"}) Entry<Object, V>[] entries = new Entry[size]; for (int i = 0; i < size; i++) { // requireNonNull is safe because the first `2*size` elements have been filled in. Object key = requireNonNull(alternatingKeysAndValues[2 * i]); @SuppressWarnings("unchecked") V value = (V) requireNonNull(alternatingKeysAndValues[2 * i + 1]);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 41.7K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt
require(diagnostic is DiagnosticWithParameters1<*, *>) @Suppress("UNCHECKED_CAST") diagnostic.a as Collection<ResolvedCall<*>> } in diagnosticWithResolvedCallsAtPosition2 -> { require(diagnostic is DiagnosticWithParameters2<*, *, *>) @Suppress("UNCHECKED_CAST") diagnostic.b as Collection<ResolvedCall<*>> }
Plain Text - Registered: Fri May 03 08:18:13 GMT 2024 - Last Modified: Mon Apr 29 12:48:54 GMT 2024 - 34.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
Class<? super T> rawType = type.getRawType(); @SuppressWarnings("unchecked") // Assume all default values are generics safe. T defaultValue = (T) defaultValues.getInstance(rawType); if (defaultValue != null) { return defaultValue; } @SuppressWarnings("unchecked") // ArbitraryInstances always returns generics-safe dummies. T value = (T) ArbitraryInstances.get(rawType);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 33K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
assertEquals(Ordering.natural().max(filtered), first); } catch (NoSuchElementException e) { assertTrue(filtered.isEmpty()); } } } @SuppressWarnings("unchecked") public void testHeadSet() { for (List<Integer> contents : SAMPLE_INPUTS) { for (int i = 0; i < 10; i++) { assertEquals(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 12.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeRangeMap.java
} private final class AsMapOfRanges extends IteratorBasedAbstractMap<Range<K>, V> { final Iterable<Entry<Range<K>, V>> entryIterable; @SuppressWarnings("unchecked") // it's safe to upcast iterables AsMapOfRanges(Iterable<RangeMapEntry<K, V>> entryIterable) { this.entryIterable = (Iterable) entryIterable; } @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 21.9K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java
@Test public void testPluginArtifactsExpressionReference() throws Exception { Session session = newSession(); MojoExecution exec = newMojoExecution(session); @SuppressWarnings("unchecked") Collection<Artifact> depResults = (Collection<Artifact>) new PluginParameterExpressionEvaluatorV4(session, null, exec).evaluate("${mojo.plugin.dependencies}");
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 19.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Converter.java
} // SPI methods (what subclasses must implement) /** * Returns a representation of {@code a} as an instance of type {@code B}. If {@code a} cannot be * converted, an unchecked exception (such as {@link IllegalArgumentException}) should be thrown. * * @param a the instance to convert; will never be null * @return the converted instance; <b>must not</b> be null */ @ForOverride
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 23K bytes - Viewed (0) -
guava/src/com/google/common/base/Functions.java
* * <p><b>Discouraged:</b> Prefer using a lambda like {@code v -> v}, which is shorter and often * more readable. */ // implementation is "fully variant"; E has become a "pass-through" type @SuppressWarnings("unchecked") public static <E extends @Nullable Object> Function<E, E> identity() { return (Function<E, E>) IdentityFunction.INSTANCE; } // enum singleton pattern
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 14.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java
} return authUrl; } protected void storeStateInSession(final HttpSession session, final String state, final String nonce) { @SuppressWarnings("unchecked") Map<String, StateData> stateMap = (Map<String, StateData>) session.getAttribute(STATES); if (stateMap == null) { stateMap = new HashMap<>(); session.setAttribute(STATES, stateMap);
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 28.1K bytes - Viewed (0)