Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 730 for ensure (0.05 sec)

  1. guava/src/com/google/common/util/concurrent/ServiceManagerBridge.java

    import com.google.common.collect.ImmutableMultimap;
    import com.google.common.util.concurrent.Service.State;
    
    /**
     * Superinterface of {@link ServiceManager} to introduce a bridge method for {@code
     * servicesByState()}, to ensure binary compatibility with older Guava versions that specified
     * {@code servicesByState()} to return {@code ImmutableMultimap}.
     */
    @J2ktIncompatible
    @GwtIncompatible
    interface ServiceManagerBridge {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformInitializer.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform
    
    import android.content.Context
    import androidx.startup.Initializer
    
    /**
     * Androidx Startup initializer to ensure that the AndroidPlatform has access to the application context.
     */
    class PlatformInitializer : Initializer<Platform> {
      override fun create(context: Context): Platform {
        PlatformRegistry.applicationContext = context
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Dec 31 14:50:53 UTC 2024
    - 1K bytes
    - Viewed (1)
  3. guava/src/com/google/common/collect/ImmutableSet.java

              return of();
            case 1:
              /*
               * requireNonNull is safe because we ensure that the first `distinct` elements have been
               * populated.
               */
              return of(requireNonNull(dedupedElements[0]));
            default:
              /*
               * The suppression is safe because we ensure that the first `distinct` elements have been
               * populated.
               */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/BaseTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * Base test class providing common test infrastructure and utilities.
     * All test classes should extend this to ensure consistent test setup.
     */
    @ExtendWith(MockitoExtension.class)
    public abstract class BaseTest {
    
        protected final Logger logger = LoggerFactory.getLogger(getClass());
    
        @BeforeEach
        void baseSetUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/SortedMultisetBridge.java

    import java.util.SortedSet;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Superinterface of {@link SortedMultiset} to introduce a bridge method for {@code elementSet()},
     * to ensure binary compatibility with older Guava versions that specified {@code elementSet()} to
     * return {@code SortedSet}.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

            assertEquals(mockPolicyHandle, capturedRpc.handle);
            assertEquals(access, capturedRpc.access_mask);
            assertEquals(mockSid, capturedRpc.sid);
            assertEquals(handle, capturedRpc.domain_handle); // Ensure the handle itself is passed for output
        }
    
        @Test
        void constructor_shouldThrowSmbExceptionOnRpcError() throws IOException {
            // Arrange
            int access = 0x01;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NbtExceptionTest.java

            assertTrue(exception instanceof CIFSException, "NbtException should be an instance of CIFSException");
        }
    
        /**
         * Test the getErrorString method with various error classes and codes to ensure all branches are covered.
         */
        @ParameterizedTest
        @MethodSource("provideErrorClassAndCodeForGetErrorString")
        @DisplayName("getErrorString should return correct messages for all defined error classes and codes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  8. cmd/os_windows.go

    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    func readDirFn(dirPath string, filter func(name string, typ os.FileMode) error) error {
    	// Ensure we don't pick up files as directories.
    	globAll := filepath.Clean(dirPath) + `\*`
    	globAllP, err := syscall.UTF16PtrFromString(globAll)
    	if err != nil {
    		return errInvalidArgument
    	}
    	data := &syscall.Win32finddata{}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 5K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-rebalance.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("rebalanceObject: PutObjectPart() %w", err)
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 04 20:47:24 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  10. cmd/admin-handlers-idp-ldap.go

    		// More than maxConfigSize bytes were available
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigTooLarge), r.URL)
    		return
    	}
    
    	// Ensure body content type is opaque to ensure that request body has not
    	// been interpreted as form data.
    	contentType := r.Header.Get("Content-Type")
    	if contentType != "application/octet-stream" {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 08 02:46:04 UTC 2025
    - 19.2K bytes
    - Viewed (0)
Back to top