Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 522 for safety (0.04 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         * hold the synchronizer. This synchronizer is used to implement the blocking and waiting calls
         * as well as to handle state changes in a thread-safe manner. The current state of the future
         * is held in the Sync state, and the lock is released whenever the state changes to {@link
         * #COMPLETED}, {@link #CANCELLED}, or {@link #INTERRUPTED}
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  2. cmd/erasure-metadata-utils.go

    	distribution := fi.Erasure.Distribution
    
    	var inconsistent int
    	for i, meta := range metaArr {
    		if disks[i] == nil {
    			// Assuming offline drives as inconsistent,
    			// to be safe and fallback to original
    			// distribution order.
    			inconsistent++
    			continue
    		}
    		if !meta.IsValid() {
    			inconsistent++
    			continue
    		}
    		if meta.XLV1 != fi.XLV1 {
    			inconsistent++
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
        @SuppressWarnings("unchecked") // no less safe than putting it in the map!
        public int compare(Entry<K, V> a, Entry<K, V> b) {
          return (keyComparator == null)
              ? ((Comparable) a.getKey()).compareTo(b.getKey())
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/BloomFilter.java

     *
     * <p>As of Guava 23.0, this class is thread-safe and lock-free. It internally uses atomics and
     * compare-and-swap to ensure correctness when multiple threads are used to access it.
     *
     * @param <T> the type of instances that the {@code BloomFilter} accepts
     * @author Dimitris Andreou
     * @author Kevin Bourrillion
     * @since 11.0 (thread-safe since 23.0)
     */
    @Beta
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Service.java

       *
       * @param listener the listener to run when the service changes state is complete
       * @param executor the executor in which the listeners callback methods will be run. For fast,
       *     lightweight listeners that would be safe to execute in any thread, consider {@link
       *     MoreExecutors#directExecutor}.
       * @since 13.0
       */
      void addListener(Listener listener, Executor executor);
    
      /**
       * The lifecycle states of a service.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                    logger.info("Stopping all crawler.");
                }
                forceStop();
            }
        }
    
        /**
         * Adds a finished session ID to the cleanup list.
         * This method is thread-safe and adds the session ID to be cleaned up later.
         *
         * @param sessionId the crawler session ID that has finished processing
         */
        public void addFinishedSessionId(final String sessionId) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AbstractService.java

         */
        Throwable failureCause() {
          checkState(
              state == FAILED,
              "failureCause() is only valid if the service has failed, service is %s",
              state);
          // requireNonNull is safe because the constructor requires a non-null cause with state=FAILED.
          return requireNonNull(failure);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/StringsTest.java

                    byte[] uniBytes = Strings.getUNIBytes(original);
                    String uniRoundTrip = Strings.fromUNIBytes(uniBytes, 0, uniBytes.length);
    
                    // When - round trip through ASCII encoding (for ASCII-safe strings)
                    if (original.chars().allMatch(c -> c < 128)) {
                        byte[] asciiBytes = Strings.getASCIIBytes(original);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Strings.java

       *
       * <p>Consider normalizing your string references with {@link #nullToEmpty}. If you do, you can
       * use {@link String#isEmpty()} instead of this method, and you won't need special null-safe forms
       * of methods like {@link String#toUpperCase} either. Or, if you'd like to normalize "in the other
       * direction," converting empty strings to {@code null}, you can use {@link #emptyToNull}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTransportImplTest.java

            when(cfg.getResponseTimeout()).thenReturn(5_000);
            when(address.getHostAddress()).thenReturn("127.0.0.1");
            when(address.getHostName()).thenReturn("localhost");
    
            // Create the transport with safe defaults (no real sockets)
            transport = new SmbTransportImpl(ctx, address, 445, null, 0, false);
    
            // Reset MID to a known starting point for deterministic behavior
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top