Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for cloneOf (0.05 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            return restrictions;
        }
    
        /**
         * @deprecated VersionRange is immutable, cloning is not useful and even more an issue against the cache
         * @return a clone
         */
        @Deprecated
        public VersionRange cloneOf() {
            List<Restriction> copiedRestrictions = null;
    
            if (restrictions != null) {
                copiedRestrictions = new ArrayList<>();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 19K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

                orig.refresh();
                // Clone should retain its cached Subject
                assertSame(copySubj, copy.getSubject(), "Clone should retain its cached Subject");
            } else {
                // If JAAS is not configured and getSubject() returns null, verify cloning still works
                assertNull(first, "First call to getSubject() returned null - JAAS not configured");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

            Kerb5Authenticator cloned = auth.clone();
    
            assertNotSame(auth, cloned);
            assertEquals(subj, cloned.getSubject());
            assertEquals("alice", cloned.getUser());
            assertEquals("EXAMPLE.COM", cloned.getRealm());
            assertEquals("cifs", cloned.getService());
            assertEquals(123, cloned.getUserLifeTime());
            assertEquals(456, cloned.getLifeTime());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         */
        protected static void cloneInternal(NtlmPasswordAuthenticator cloned, NtlmPasswordAuthenticator toClone) {
            cloned.domain = toClone.domain;
            cloned.username = toClone.username;
            cloned.password = toClone.password != null ? toClone.password.clone() : null;
            cloned.type = toClone.type;
        }
    
        /**
         * Returns the domain.
         */
        @Override
        public String getUserDomain() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/HMACT64Test.java

                when(mockMd5.clone()).thenReturn(clonedMd5);
    
                HMACT64 clonedHmac = (HMACT64) originalHmac.clone();
    
                assertNotNull(clonedHmac);
                assertNotSame(originalHmac, clonedHmac);
                verify(mockMd5, times(1)).clone(); // Verify that the internal MD5 was cloned
            }
        }
    
        @Test
        void testCloneNotSupportedException() throws NoSuchAlgorithmException, CloneNotSupportedException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertEquals(original.getUsername(), cloned.getUsername());
            assertEquals(original.getPassword(), cloned.getPassword());
    
            // Verify password arrays are independent
            original.secureWipePassword();
            assertNull(original.getPassword());
            assertEquals("ClonePass123!", cloned.getPassword());
        }
    
        /**
         * Test authentication type guessing with secure password
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  7. cmd/object-api-datatypes.go

    		if err != nil {
    			encLogIf(GlobalContext, err)
    			return nil
    		}
    		data = decrypted
    	}
    	return data
    }
    
    // Clone - Returns a cloned copy of current objectInfo
    func (o *ObjectInfo) Clone() (cinfo ObjectInfo) {
    	cinfo = ObjectInfo{
    		Bucket:                     o.Bucket,
    		Name:                       o.Name,
    		ModTime:                    o.ModTime,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. cmd/postpolicyform_test.go

    		{
    			name:    "happy path no errors",
    			fv:      defaultFormVals.Clone(),
    			wantErr: "",
    		},
    		{
    			name:    "expired policy document",
    			fv:      defaultFormVals.Clone(),
    			expired: true,
    			wantErr: "Invalid according to Policy: Policy expired",
    		},
    		{
    			name:    "different AMZ date",
    			fv:      defaultFormVals.Clone().Set(xhttp.AmzDate, "2017T000000Z"),
    			wantErr: policyCondFailedErr,
    		},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. cmd/metacache-entries.go

    func (m metaCacheEntries) isSorted() bool {
    	return sort.SliceIsSorted(m, m.less)
    }
    
    // shallowClone will create a shallow clone of the array objects,
    // but object metadata will not be cloned.
    func (m metaCacheEntries) shallowClone() metaCacheEntries {
    	dst := make(metaCacheEntries, len(m))
    	copy(dst, m)
    	return dst
    }
    
    type metadataResolutionParams struct {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  10. gorm.go

    	if sqldb, ok := connPool.(*sql.DB); ok && sqldb != nil {
    		return sqldb, nil
    	}
    
    	return nil, ErrInvalidDB
    }
    
    func (db *DB) getInstance() *DB {
    	if db.clone > 0 {
    		tx := &DB{Config: db.Config, Error: db.Error}
    
    		if db.clone == 1 {
    			// clone with new statement
    			tx.Statement = &Statement{
    				DB:        tx,
    				ConnPool:  db.Statement.ConnPool,
    				Context:   db.Statement.Context,
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 26 06:24:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top