Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1161 - 1170 of 2,682 for latch (0.02 seconds)

  1. android/guava/src/com/google/common/base/SmallCharMatcher.java

       */
      @VisibleForTesting
      static int chooseTableSize(int setSize) {
        if (setSize == 1) {
          return 2;
        }
        // Correct the size for open addressing to match desired load factor.
        // Round up to the next highest power of 2.
        int tableSize = Integer.highestOneBit(setSize - 1) << 1;
        while (tableSize * DESIRED_LOAD_FACTOR < setSize) {
          tableSize <<= 1;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 03:49:18 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java

          renamingDecorator(executor(), threadNameSupplier)
              .execute(
                  () -> {
                    try {
                      startUp();
                      notifyStarted();
                    } catch (Throwable t) {
                      restoreInterruptIfIsInterruptedException(t);
                      notifyFailed(t);
                    }
                  });
        }
    
        @Override
        protected final void doStop() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

                default -> array[i];
                };
            }
            return new String(array);
        }
    
        /**
         * Fixes a string to match Windows-specific mapping rules.
         *
         * @param source
         *            The string
         * @return The string fixed to match Windows-specific mapping rules
         */
        public static String toWindowsMapping(final String source) {
            if (isEmpty(source)) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            while (clazz != null) {
                try {
                    Field f = clazz.getDeclaredField(fieldName);
                    f.setAccessible(true);
                    return f.get(target);
                } catch (NoSuchFieldException e) {
                    clazz = clazz.getSuperclass();
                }
            }
            throw new NoSuchFieldException(fieldName);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

            // When
            int bytesWritten = trans.writeParametersWireFormat(dst, 0);
    
            // Then
            assertEquals(dst.length, bytesWritten, "The number of bytes written should match the expected length.");
            // Check informationLevel
            assertEquals((byte) (informationLevel & 0xFF), dst[0]);
            assertEquals((byte) ((informationLevel >> 8) & 0xFF), dst[1]);
            // Check reserved bytes
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java

                try {
                    String version = resolveVersion(artifact, request);
                    artifact.updateVersion(version, request.getLocalRepository());
                } catch (RepositoryMetadataResolutionException e) {
                    throw new ArtifactResolutionException(e.getMessage(), artifact, e);
                }
            }
        }
    
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java

                                        .embedded(true)
                                        .build()));
                    } catch (InvokerException.ExitException e) {
                        exitCode = e.getExitCode();
                        exception = e;
                    } catch (Exception e) {
                        exception = e;
                    }
    
                    // dump things out
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 21 12:17:55 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/suggest/entity/SuggestItemMerger.java

            // Utility class
        }
    
        /**
         * Merges two SuggestItem instances into a new SuggestItem.
         *
         * <p>The merge follows these rules:
         * <ul>
         * <li>IDs must match, or an IllegalArgumentException is thrown</li>
         * <li>Text is taken from item1</li>
         * <li>Readings are merged, maintaining uniqueness</li>
         * <li>Fields, tags, languages, and roles are merged, maintaining uniqueness</li>
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/relatedcontent/AdminRelatedcontentAction.java

            getRelatedContent(form).ifPresent(entity -> {
                try {
                    relatedContentService.store(entity);
                    saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL));
                } catch (final Exception e) {
                    logger.warn("Failed to process a request.", e);
                    throwValidationError(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e)),
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/mylasta/direction/FessEnvTest.java

                fail("Should throw ConfigPropertyNotFoundException");
            } catch (ConfigPropertyNotFoundException e) {
                assertTrue(e.getMessage().contains("non.existent.property"));
            }
    
            try {
                emptyEnv.is("non.existent.boolean");
                fail("Should throw ConfigPropertyNotFoundException");
            } catch (ConfigPropertyNotFoundException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
Back to Top