- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 1,200 for Ensure (0.28 seconds)
-
internal/dsync/drwmutex.go
// yet. if len(locks)-tolerance == tolerance { // In case of split brain scenarios where // tolerance is exactly half of the len(*locks) // then we need to make sure we have unlocked // upto tolerance+1 - especially for RUnlock // to ensure that we don't end up with active // read locks on the resource after unlocking // only half of the lockers. return unlocksFailed >= tolerance }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 20.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
assertEquals(4, list.lastIndexOf("b")); } public void testCopyOfDefensiveCopy() { // Depending on JDK version, either toArray() or toArray(T[]) may be called... use this class // rather than mocking to ensure that one of those methods is called. class TestArrayList<E> extends ArrayList<E> { boolean toArrayCalled = false; @Override public Object[] toArray() { toArrayCalled = true;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/OptionalUtilTest.java
assertNull(emptyOptional.orElse(null)); } @Test public void test_ofNullable_multipleTypesInSequence() { // Test multiple different types in sequence to ensure type safety OptionalEntity<String> stringOpt = OptionalUtil.ofNullable("string"); OptionalEntity<Integer> intOpt = OptionalUtil.ofNullable(42);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java
* One thread sets alive to false, other threads should see the change immediately. */ @Test public void test_aliveField_volatileVisibility() throws Exception { // Ensure alive starts as true assertTrue(dataStore.alive); final int readerThreadCount = 5; final long testDurationMs = 200; // Run for 200msCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.8K bytes - Click Count (1) -
src/test/java/jcifs/netbios/NameQueryResponseTest.java
Field opCodeField = NameServicePacket.class.getDeclaredField("opCode"); opCodeField.setAccessible(true); opCodeField.set(nameQueryResponse, 7); // WACK opCode, which is not QUERY (0) // Ensure 'resultCode' is 0 for this test to isolate opCode condition Field resultCodeField = NameServicePacket.class.getDeclaredField("resultCode"); resultCodeField.setAccessible(true);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.4K bytes - Click Count (0) -
internal/logger/target/kafka/kafka.go
sconfig.Net.TLS.Config.InsecureSkipVerify = h.kconfig.TLS.SkipVerify sconfig.Net.TLS.Config.ClientAuth = h.kconfig.TLS.ClientAuth sconfig.Net.TLS.Config.RootCAs = h.kconfig.TLS.RootCAs // These settings are needed to ensure that kafka client doesn't hang on brokers // refer https://github.com/IBM/sarama/issues/765#issuecomment-254333355 sconfig.Producer.Retry.Max = 2 sconfig.Producer.Retry.Backoff = (10 * time.Second)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 10.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
String filePath = directoryPath; if (!filePath.endsWith("/")) { filePath += "/"; } filePath += fileInfo.getName(); // Ensure proper SMB URL format if (!filePath.startsWith("smb://")) { if (filePath.startsWith("/")) { filePath = "smb://localhost" + filePath; } else {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 12.3K bytes - Click Count (0) -
cmd/erasure-server-pool-decom.go
part.Number, NewPutObjReader(hr), ObjectOptions{ PreserveETag: part.ETag, // Preserve original ETag to ensure same metadata. IndexCB: func() []byte { return part.Index // Preserve part Index to ensure decompression works. }, NoAuditLog: true, }) if err != nil { return fmt.Errorf("decommissionObject: PutObjectPart() %w", err) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 42.2K bytes - Click Count (1) -
android/guava/src/com/google/common/xml/XmlEscapers.java
* outside the ASCII character range. Unlike HTML escaping the XML escapers will not escape * non-ASCII characters to their numeric entity replacements. These XML escapers provide the minimal * level of escaping to ensure that the output can be safely included in a Unicode XML document. * * <p>For details on the behavior of the escapers in this class, see sections <a * href="http://www.w3.org/TR/2008/REC-xml-20081126/#charsets">2.2</a> and <a
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Sep 11 17:06:34 GMT 2025 - 6.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSet.java
* ImmutableEnumSet/ImmutableSortedSet, regardless of implementation type. It * captures their "logical contents" and they are reconstructed using public * static factories. This is necessary to ensure that the existence of a * particular implementation type is an implementation detail. */ @J2ktIncompatible // serialization private static final class SerializedForm implements Serializable {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Oct 11 14:54:00 GMT 2025 - 22.4K bytes - Click Count (0)