Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for defensively (0.06 sec)

  1. guava/src/com/google/common/base/Predicates.java

       * {@code true}. The components are evaluated in order, and evaluation will be "short-circuited"
       * as soon as a false predicate is found. It defensively copies the iterable passed in, so future
       * changes to it won't alter the behavior of this predicate. If {@code components} is empty, the
       * returned predicate will always evaluate to {@code true}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/HashCode.java

          return hash == that.asLong();
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /**
       * Creates a {@code HashCode} from a byte array. The array is defensively copied to preserve the
       * immutability contract of {@code HashCode}. The array cannot be empty.
       *
       * @since 15.0 (since 12.0 in HashCodes)
       */
      public static HashCode fromBytes(byte[] bytes) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

    public class AtomicDoubleArray implements Serializable {
      private static final long serialVersionUID = 0L;
    
      // Making this non-final is the lesser evil according to Effective
      // Java 2nd Edition Item 76: Write readObject methods defensively.
      private transient AtomicLongArray longs;
    
      /**
       * Creates a new {@code AtomicDoubleArray} of the given length, with all elements initially zero.
       *
       * @param length the length of the array
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt

            require(tls) { "no cipher suites for cleartext connections" }
            require(cipherSuites.isNotEmpty()) { "At least one cipher suite is required" }
    
            this.cipherSuites = cipherSuites.copyOf() as Array<String> // Defensive copy.
          }
    
        fun allEnabledTlsVersions() =
          apply {
            require(tls) { "no TLS versions for cleartext connections" }
            this.tlsVersions = null
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/PreauthIntegrityTest.java

                // Verify the reset method exists
                assertNotNull(resetMethod);
            }
        }
    
        /**
         * Test that getPreauthIntegrityHash returns a defensive copy
         */
        @Test
        @DisplayName("getPreauthIntegrityHash should return defensive copy")
        void testGetPreauthHashDefensiveCopy() throws Exception {
            byte[] hash = transport.getPreauthIntegrityHash();
            assertNotNull(hash);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            }
    
            byte[] key = null;
            byte[] keyCopy = null;
    
            try {
                // Get the key and create a defensive copy for SecretKeySpec
                key = encrypt ? getEncryptionKey() : getDecryptionKey();
                keyCopy = Arrays.copyOf(key, key.length);
    
                // Validate key length matches expected cipher requirements
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertArrayEquals(hashAlgos, context.getHashAlgos());
                // The implementation returns the same reference, not a defensive copy
                assertSame(hashAlgos, context.getHashAlgos());
            }
    
            @Test
            @DisplayName("Should return salt correctly")
            void testGetSalt() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

            if (pendingOps.isEmpty()) {
                return;
            }
    
            log.info("Redistributing {} pending operations from failed channel", pendingOps.size());
    
            // Create a defensive copy to avoid ConcurrentModificationException
            List<CommonServerMessageBlock> operationsCopy = List.copyOf(pendingOps);
    
            // Clear the failed channel's pending operations first
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSet.java

       * is unnecessary; for example, {@code copyOf(copyOf(anArrayList))} will copy the data only once.
       * This reduces the expense of habitually making defensive copies at API boundaries. However, the
       * precise conditions for skipping the copy operation are undefined.
       *
       * @throws NullPointerException if any of {@code elements} is null
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableCollection.java

     *       unnecessary; for example, {@code copyOf(copyOf(anArrayList))} should copy the data only
     *       once. This reduces the expense of habitually making defensive copies at API boundaries.
     *       However, the precise conditions for skipping the copy operation are undefined.
     *   <li><b>Warning:</b> a view collection such as {@link ImmutableMap#keySet} or {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
Back to top