- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 522 for safety (0.07 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java
@MapFeature.Require(SUPPORTS_REMOVE) /* * ListMultimap.asMap essentially returns a Map<K, List<V>>; we just can't declare it that way. * Thus, calls like asMap().values().remove(someList) are safe because they are comparing a list * to a collection of other lists. */ @SuppressWarnings("CollectionUndefinedEquality") public void testValuesRemove() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 4.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java
@MapFeature.Require(SUPPORTS_REMOVE) /* * ListMultimap.asMap essentially returns a Map<K, List<V>>; we just can't declare it that way. * Thus, calls like asMap().values().remove(someList) are safe because they are comparing a list * to a collection of other lists. */ @SuppressWarnings("CollectionUndefinedEquality") public void testValuesRemove() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 4.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
size = sfd.getInitialSize(); resumeKey = rkresp.getResumeKey(); // start with some reasonably safe defaults, the server will till us if it does not like it // can we resume this if we loose the file descriptor? int maxChunks = 256; int maxChunkSize = 1024 * 1024;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
// Then assertNotNull(exception.getContext()); assertTrue(exception.getContext().isEmpty()); // Adding null context should be safe exception.withContext(null); assertTrue(exception.getContext().isEmpty()); } @Test @DisplayName("Should be serializable") void testSerialization() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java
} public void testCreate() { Subscriber s1 = Subscriber.create(bus, this, getTestSubscriberMethod("recordingMethod")); assertThat(s1).isInstanceOf(Subscriber.SynchronizedSubscriber.class); // a thread-safe method should not create a synchronized subscriber Subscriber s2 = Subscriber.create(bus, this, getTestSubscriberMethod("threadSafeMethod")); assertThat(s2).isNotInstanceOf(Subscriber.SynchronizedSubscriber.class); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableTable.java
* {@link Builder#putAll} * * <p>Despite the method name, this method attempts to avoid actually copying the data when it is * safe to do so. The exact circumstances under which a copy will or will not be performed are * undocumented and subject to change. */ public static <R, C, V> ImmutableTable<R, C, V> copyOf(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java
} } public static <K, V> ImmutableMap<K, V> copyOf(Map<? extends K, ? extends V> map) { if ((map instanceof ImmutableMap) && !(map instanceof ImmutableSortedMap)) { @SuppressWarnings("unchecked") // safe since map is not writable ImmutableMap<K, V> kvMap = (ImmutableMap<K, V>) map; return kvMap; } else if (map instanceof EnumMap) { EnumMap<?, ?> enumMap = (EnumMap<?, ?>) map;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 16.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/SerializableTester.java
* those sublists might implement a private {@code MySubList} type but serialize as a plain {@code * MyList} to save space. So long as {@code MyList} has all the public supertypes of {@code * MySubList}, this is safe. For these cases, for which {@code reserializeAndAssert} is too * strict, use {@link #reserialize}. * * @return the re-serialized object
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
*/ ) { continue; } Class<?> clazz = info.load(); try { Method unused = clazz.getDeclaredMethod("writeReplace"); continue; // It overrides writeReplace, so it's safe. } catch (NoSuchMethodException e) { // This is a class whose supertypes we want to examine. We'll do that below. } Optional<Class<?>> supersWithPackagePrivateWriteReplace =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 01 03:07:54 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java
@MapFeature.Require(SUPPORTS_REMOVE) /* * SetMultimap.asMap essentially returns a Map<K, Set<V>>; we just can't declare it that way. * Thus, calls like asMap().values().remove(someSet) are safe because they are comparing a set to * a collection of other sets. */ @SuppressWarnings("CollectionUndefinedEquality") public void testValuesRemove() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 4.3K bytes - Viewed (0)