Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1441 - 1450 of 1,808 for try (0.01 sec)

  1. guava/src/com/google/common/collect/Queues.java

          long timeout,
          TimeUnit unit) {
        Preconditions.checkNotNull(buffer);
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        boolean interrupted = false;
        try {
          while (added < numElements) {
            // we could rely solely on #poll, but #drainTo might be more efficient when there are
            // multiple elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsScheduledJobBhv.java

            return ScheduledJobDbm.getInstance();
        }
    
        @Override
        protected <RESULT extends ScheduledJob> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {
            try {
                final RESULT result = entityType.newInstance();
                result.setAvailable(DfTypeUtil.toBoolean(source.get("available")));
                result.setCrawler(DfTypeUtil.toBoolean(source.get("crawler")));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/query/FuzzyQueryCommandTest.java

        public void test_execute_withInvalidQuery() {
            QueryContext context = new QueryContext("test", false);
            Query invalidQuery = new TermQuery(new Term("field", "value"));
            float boost = 1.0f;
    
            try {
                fuzzyQueryCommand.execute(context, invalidQuery, boost);
                fail("Should throw InvalidQueryException");
            } catch (InvalidQueryException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

            byte[] type2Token = type2Message.toByteArray();
    
            context.initSecContext(type2Token, 0, type2Token.length); // state -> 3 (established)
    
            // Try to call again
            SmbException e = assertThrows(SmbException.class, () -> {
                context.initSecContext(new byte[0], 0, 0);
            });
            assertEquals("Invalid state", e.getMessage());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                SMBUtil.writeInt2(4, buffer1, 0);
                SMBUtil.writeInt2(4, buffer2, 0);
    
                // When - simulate concurrent access
                Thread thread1 = new Thread(() -> {
                    try {
                        response.readBytesWireFormat(buffer1, 0);
                    } catch (SMBProtocolDecodingException e) {
                        fail("Thread 1 failed: " + e.getMessage());
                    }
                });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java

                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.charMappingFile.getInputStream()) {
                file.update(inputStream);
            } catch (final IOException e) {
                logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/xml/DomUtil.java

            assertArgumentNotNull("contents", contents);
    
            if (encoding == null) {
                return new ByteArrayInputStream(contents.getBytes());
            }
            try {
                return new ByteArrayInputStream(contents.getBytes(encoding));
            } catch (final UnsupportedEncodingException ex) {
                throw new IORuntimeException(ex);
            }
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/OsddHelperTest.java

            final OsddHelper osddHelper = new OsddHelper();
            osddHelper.setContentType("application/opensearchdescription+xml");
            osddHelper.init();
            assertFalse(osddHelper.hasOpenSearchFile());
    
            try {
                osddHelper.asStream();
                fail();
            } catch (final Exception e) {
                assertEquals("Unsupported Open Search Description Document response.", e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

            // Match should work
            ResponseData responseData = new ResponseData();
            assertTrue(ruleWithoutContainer.match(responseData));
    
            // Register should fail with null container
            try {
                ruleWithoutContainer.register(0);
                fail("Should throw exception with null container");
            } catch (NullPointerException e) {
                // Expected
            }
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

            if (rule != null) {
              wildcardMatch = rule
              break
            }
          }
        }
    
        // Exception rules only apply to wildcard rules, so only try it if we matched a wildcard.
        var exception: String? = null
        if (wildcardMatch != null) {
          for (labelIndex in 0 until domainLabelsUtf8Bytes.size - 1) {
            val rule =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top