Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1381 - 1390 of 1,808 for Try (0.01 sec)

  1. guava-tests/test/com/google/common/net/ReflectionFreeAssertThrows.java

              expectedThrowable
                  + " is not yet supported by ReflectionFreeAssertThrows. Add an entry for it in the"
                  + " map in that class.");
        }
        Object result;
        try {
          result = supplier.get();
        } catch (Throwable t) {
          if (predicate.apply(t)) {
            // We are careful to set up INSTANCE_OF to match each Predicate to its target Class.
            @SuppressWarnings("unchecked")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java

         * test code tidy and is used where unit‑testing logic relies on
         * internally stored data.
         */
        private static Object getPrivateField(Object target, String name) {
            try {
                java.lang.reflect.Field f = target.getClass().getDeclaredField(name);
                f.setAccessible(true);
                return f.get(target);
            } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NbtExceptionTest.java

        /**
         * Test that NbtException can be caught as a CIFSException.
         */
        @Test
        @DisplayName("NbtException should be catchable as CIFSException")
        void testCatchableAsCIFSException() {
            try {
                throw new NbtException(NbtException.ERR_NAM_SRVC, NbtException.FMT_ERR);
            } catch (CIFSException e) {
                assertTrue(e instanceof NbtException, "Caught exception should be an instance of NbtException");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsDataConfigBhv.java

            return DataConfigDbm.getInstance();
        }
    
        @Override
        protected <RESULT extends DataConfig> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {
            try {
                final RESULT result = entityType.newInstance();
                result.setAvailable(DfTypeUtil.toBoolean(source.get("available")));
                result.setBoost(DfTypeUtil.toFloat(source.get("boost")));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsLabelTypeBhv.java

            return LabelTypeDbm.getInstance();
        }
    
        @Override
        protected <RESULT extends LabelType> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {
            try {
                final RESULT result = entityType.newInstance();
                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java

            final Map<String, Map<String, List<Tuple3<String, QueryBuilder, ScoreFunctionBuilder<?>>>>> keyMatchQueryMap = new HashMap<>();
            getAvailableKeyMatchList().stream().forEach(keyMatch -> {
                try {
                    final BoolQueryBuilder boolQuery = QueryBuilders.boolQuery();
                    if (logger.isDebugEnabled()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/JAASAuthenticator.java

            this.cachedSubject = null;
        }
    
        @Override
        public synchronized Subject getSubject() {
            if (this.cachedSubject != null) {
                return this.cachedSubject;
            }
    
            try {
                log.debug("Logging on");
                LoginContext lc;
    
                Subject ps = super.getSubject();
    
                if (this.configuration != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

            }
    
            @Test
            @DisplayName("Should work in catch blocks for IOException")
            void testCatchAsIOException() {
                assertDoesNotThrow(() -> {
                    try {
                        throw new TransportException("Test exception");
                    } catch (IOException e) {
                        // Should catch TransportException as IOException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

        protected long getReadInterval(final DataStoreParams paramMap) {
            long readInterval = 0;
            final String value = paramMap.getAsString("readInterval");
            if (StringUtil.isNotBlank(value)) {
                try {
                    readInterval = Long.parseLong(value);
                } catch (final NumberFormatException e) {
                    logger.warn("Invalid read interval: {}", value);
                }
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/score/QueryRescorerTest.java

            assertNotNull(queryRescorer.evaluate(normalParams));
    
            // Test exception case
            Map<String, Object> exceptionParams = new HashMap<>();
            exceptionParams.put("throwException", true);
    
            try {
                queryRescorer.evaluate(exceptionParams);
                fail("Expected RuntimeException");
            } catch (RuntimeException e) {
                assertEquals("Test exception", e.getMessage());
            }
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top