Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 528 for safety (4.66 sec)

  1. android/guava/src/com/google/common/collect/Cut.java

      @Override
      public abstract int hashCode();
    
      /*
       * The implementation neither produces nor consumes any non-null instance of type C, so
       * casting the type parameter is safe.
       */
      @SuppressWarnings("unchecked")
      static <C extends Comparable> Cut<C> belowAll() {
        return (Cut<C>) BelowAll.INSTANCE;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            assertTrue(stats.getIntegerOverflowsPrevented() > 0);
        }
    
        @Test
        public void testBoundaryValues() throws Exception {
            // Test boundary values for safe operations
            assertEquals(Integer.MAX_VALUE, validator.safeAdd(Integer.MAX_VALUE, 0));
            assertEquals(Integer.MIN_VALUE, validator.safeAdd(Integer.MIN_VALUE, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. cmd/admin-handlers-idp-config.go

    		return
    	}
    
    	dynamic, err := cfg.ReadConfig(strings.NewReader(cfgData))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// IDP config is not dynamic. Sanity check.
    	if dynamic {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), "", r.URL)
    		return
    	}
    
    	if err = validateConfig(ctx, cfg, subSys); err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        // We assume that all defaults are generics-safe, even if they aren't,
        // we take the risk.
        @SuppressWarnings("unchecked")
        T defaultValue = (T) defaults.getInstance(type.getRawType());
        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe
        T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Absent.java

      }
    
      @Override
      public T or(T defaultValue) {
        return checkNotNull(defaultValue, "use Optional.orNull() instead of Optional.or(null)");
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast
      @Override
      public Optional<T> or(Optional<? extends T> secondChoice) {
        return (Optional<T>) checkNotNull(secondChoice);
      }
    
      @Override
      public T or(Supplier<? extends T> supplier) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 15 22:14:00 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/NullsFirstOrdering.java

          return RIGHT_IS_GREATER;
        }
        if (right == null) {
          return LEFT_IS_GREATER;
        }
        return ordering.compare(left, right);
      }
    
      @Override
      @SuppressWarnings("nullness") // should be safe, but not sure if we can avoid the warning
      public <S extends @Nullable T> Ordering<S> reverse() {
        // ordering.reverse() might be optimized, so let it do its thing
        return ordering.<T>reverse().<@NonNull S>nullsLast();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/cache/RequestResult.java

    /**
     * A record representing the result of a single request operation, containing the original request,
     * the result (if successful), and any error that occurred during processing.
     * <p>
     * This class is immutable and thread-safe, suitable for use in concurrent operations.
     *
     * @param <REQ> The type of the request
     * @param <REP> The type of the response, which must extend {@code Result<REQ>}
     * @param request The original request that was processed
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

            if (!isTarget(path)) {
                return null;
            }
    
            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        /**
         * Encodes a file path using Base64 URL-safe encoding.
         *
         * @param path the file path to encode
         * @return the Base64 encoded path
         */
        protected String encodePath(final String path) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/DfsTest.java

        void testGetTrustedDomains_Success() throws IOException, SmbAuthException {
            // This test is complex due to static method dependencies and reflection access
            // For now, we'll test the disabled path which is safer
            testDfs.setDisabled(true);
            assertNull(testDfs.getTrustedDomains(auth));
        }
    
        @Test
        void testIsTrustedDomain() throws SmbAuthException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            // Create a snapshot of connections to close
            List<SmbTransportImpl> toClose = new ArrayList<>(this.connections);
            toClose.addAll(this.nonPooledConnections);
    
            // Clear the collections (thread-safe operations)
            this.connections.clear();
            this.nonPooledConnections.clear();
            this.activeConnections.set(0);
    
            // Close all connections outside of synchronization
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
Back to top