- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 540 for safety (0.08 sec)
-
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) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
// Not a valid string assertNotWellFormed(-1, 0, -1, 0); } public void testShardsHaveExpectedRoundTrippables() { // A sanity check. long actual = 0; for (long expected : generateFourByteShardsExpectedRunnables()) { actual += expected; } assertEquals(EXPECTED_FOUR_BYTE_ROUNDTRIPPABLE_COUNT, actual); }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.8K bytes - Viewed (0) -
android/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 Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 35.7K 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) -
tensorflow/c/c_api_function_test.cc
// Test we can retrieve function OpDef from graph TF_Buffer* buffer = TF_NewBuffer(); TF_GraphGetOpDef(host_graph_, func_name_, buffer, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); // Sanity check returned OpDef string data(static_cast<const char*>(buffer->data), buffer->length); OpDef op_def; op_def.ParseFromString(data); EXPECT_EQ(op_def.name(), func_name_);
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (1) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
* credentials. Authenticated connections can/will be reused. * * @deprecated This is broken by design, even a possible vulnerability. Deprecation is conditional on whether future JDK * versions will allow to do this safely. */ @Deprecated public class NtlmHttpURLConnection extends HttpURLConnection { private static final Logger log = LoggerFactory.getLogger(NtlmHttpURLConnection.class);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 25.6K 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 objectRegistered: 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)