- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 555 for unchecked (0.07 sec)
-
guava/src/com/google/common/collect/TreeBasedTable.java
@Override public Comparator<? super C> comparator() { return columnComparator(); } int compare(Object a, Object b) { // pretend we can compare anything @SuppressWarnings("unchecked") Comparator<Object> cmp = (Comparator<Object>) comparator(); return cmp.compare(a, b); } boolean rangeContains(@CheckForNull Object o) { return o != null
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 11.5K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Test ComparableVersion. * */ @SuppressWarnings("unchecked") class ComparableVersionTest { private ComparableVersion newComparable(String version) { ComparableVersion ret = new ComparableVersion(version); String canonical = ret.getCanonical();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/indexer/IndexUpdater.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
@SuppressWarnings("serial") // uses writeReplace(), not default serialization @ElementTypesAreNonnullByDefault class RegularImmutableBiMap<K, V> extends ImmutableBiMap<K, V> { @SuppressWarnings("unchecked") // TODO(cpovirk): Consider storing Entry<?, ?>[] instead. static final RegularImmutableBiMap<Object, Object> EMPTY = new RegularImmutableBiMap<>(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/Streams.java
/** Throws an undeclared checked exception. */ private static void sneakyThrow(Throwable t) { class SneakyThrower<T extends Throwable> { @SuppressWarnings("unchecked") // not really safe, but that's the point void throwIt(Throwable t) throws T { throw (T) t; } } new SneakyThrower<Error>().throwIt(t); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 36.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Ordering.java
* * <p><b>Java 8+ users:</b> use {@link Comparator#naturalOrder} instead. */ @GwtCompatible(serializable = true) @SuppressWarnings({"unchecked", "rawtypes"}) // TODO(kevinb): right way to explain this?? // plus https://github.com/google/guava/issues/989 public static <C extends Comparable> Ordering<C> natural() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java
* @throws Exception */ @Test public void testCopy_beanToNewMap_specificClass() throws Exception { final MyBean src = new MyBean(); src.aaa = "aaa"; @SuppressWarnings("unchecked") final Map<String, Object> dest = BeanUtil.copyBeanToNewMap(src, HashMap.class); assertThat(dest.get("aaa"), is((Object) "aaa")); final BeanMap dest2 = BeanUtil.copyBeanToNewMap(src, BeanMap.class);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 34.5K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/Cache.java
* * <p>No observable state associated with this cache is modified until loading completes. * * @throws ExecutionException if a checked exception was thrown while loading the value * @throws UncheckedExecutionException if an unchecked exception was thrown while loading the * value * @throws ExecutionError if an error was thrown while loading the value * @since 11.0 */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Aug 07 02:38:22 UTC 2022 - 8.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
} }; } private static final String KEY = "puppies"; ConcurrentMap<String, AtomicInteger> backingMap; ConcurrentHashMultiset<String> multiset; @SuppressWarnings("unchecked") @Override protected void setUp() { backingMap = mock(ConcurrentMap.class); when(backingMap.isEmpty()).thenReturn(true); multiset = new ConcurrentHashMultiset<>(backingMap); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/AbstractNetwork.java
// operations only in weird cases like checking for an EndpointPair<ArrayList> in a // Network<LinkedList>. @SuppressWarnings("unchecked") @Override public boolean contains(@CheckForNull Object obj) { if (!(obj instanceof EndpointPair)) { return false; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Mar 13 18:17:09 UTC 2024 - 10.1K bytes - Viewed (0)