Search Options

Results per page
Sort
Preferred Languages
Advance

Results 691 - 700 of 1,808 for Try (0.04 sec)

  1. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      public void testLog2Exact() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          // We only expect an exception if x was not a power of 2.
          boolean isPowerOf2 = BigIntegerMath.isPowerOfTwo(x);
          try {
            assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x, UNNECESSARY)));
            assertTrue(isPowerOf2);
          } catch (ArithmeticException e) {
            assertFalse(isPowerOf2);
          }
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/LanguageHelperTest.java

                    languageHelper.getReindexScriptSource());
        }
    
        public void test_init() {
            try {
                languageHelper.init();
                // Should not throw exception
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

         */
        protected void updateThumbnailField(final String thumbnailId, final String value) {
            // TODO bulk
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            try {
                ComponentUtil.getIndexingHelper()
                        .updateDocument(ComponentUtil.getSearchEngineClient(), thumbnailId, fessConfig.getIndexFieldThumbnail(), value);
            } catch (final Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                        ArgumentCaptor.forClass(jcifs.internal.smb1.com.SmbComReadAndX.class);
    
                // Act: choose len so upper/lower 16-bit parts are exercised
                byte[] buf = new byte[0x30000];
                try {
                    in.readDirect(buf, 0, 0x12345);
                    fail("Expected IOException due to short-circuit");
                } catch (IOException expected) {
                    // expected
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

           * something. Try to treat it like a RuntimeException. If we overflow the stack again, the
           * resulting Error will propagate upward up to the root call to set().
           */
          setException(e);
          return;
        }
    
        T transformResult;
        try {
          transformResult = doTransform(localFunction, sourceResult);
        } catch (Throwable t) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

         */
        public void startWatching(String directoryPath, Smb2LeaseKey leaseKey) {
            if (activeWatchers.containsKey(directoryPath)) {
                return; // Already watching
            }
    
            try {
                SmbFile directory = new SmbFile(directoryPath, leaseManager.getContext());
                ChangeNotificationHandle handle = new ChangeNotificationHandle(directoryPath, leaseKey, directory);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java

                try (final InputStream is = responseData.getResponseBody(); final OutputStream os = new FileOutputStream(file);) {
                    CopyUtil.copy(is, os);
                } catch (final IOException e) {
                    throw new CrawlerSystemException("Could not store " + file.getAbsolutePath(), e);
                }
            }
            try {
                resultData.setData(path.getBytes(charsetName));
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

            collection.containsAll(MinimalCollection.of(e3())));
      }
    
      @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES)
      public void testContainsAll_nullNotAllowed() {
        try {
          assertFalse(collection.containsAll(MinimalCollection.of((E) null)));
        } catch (NullPointerException tolerated) {
        }
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_QUERIES)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java

      public void testReplace_absentNullValueUnsupported() {
        try {
          getMap().replace(k3(), null);
        } catch (NullPointerException tolerated) {
          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testReplace_absentNullKeyUnsupported() {
        try {
          getMap().replace(null, v3());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

      private const val ALT_IPA_NAME = 7
    
      override fun verify(
        host: String,
        session: SSLSession,
      ): Boolean =
        if (!host.isAscii()) {
          false
        } else {
          try {
            verify(host, session.peerCertificates[0] as X509Certificate)
          } catch (_: SSLException) {
            false
          }
        }
    
      fun verify(
        host: String,
        certificate: X509Certificate,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top