Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,295 for finally (0.33 sec)

  1. src/main/java/org/codelibs/core/concurrent/CommonPoolUtil.java

    public class CommonPoolUtil {
        private static final Logger logger = Logger.getLogger(CommonPoolUtil.class);
    
        private CommonPoolUtil() {
            // nothing
        }
    
        public static void execute(final Runnable task) {
            ForkJoinPool.commonPool().execute(() -> {
                final Thread currentThread = Thread.currentThread();
                final ClassLoader orignal = currentThread.getContextClassLoader();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (1)
  2. src/main/java/org/codelibs/core/io/CloseableUtil.java

         * <p>
         * {@literal try}ブロックで例外が発生した場合、{@literal finally}ブロックの
         * {@link #close(Closeable)}でも 例外が発生する可能性があります。その場合に{@literal finally}
         * ブロックから例外をスローすると、 {@literal try}ブロックで発生した元の例外が失われてしまいます。
         * </p>
         *
         * @param closeable
         *            クローズ可能なオブジェクト
         * @see Closeable#close()
         */
        public static void close(final Closeable closeable) {
            if (closeable == null) {
                return;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                SmbTreeHandleImpl th = getTreeHandle();
                if ( this.fileId != null && th.isConnected() ) {
                    th.send(new Smb2CloseRequest(th.getConfig(), this.fileId));
                }
            }
            finally {
                this.fileId = null;
            }
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 16:15:08 GMT 2020
    - 5.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/TimeoutTest.java

                return this.wrapper;
            }
        }
    
    
        protected CIFSContext failHostInjecting ( CIFSContext ctx, final String replacement ) throws UnknownHostException {
    
            final NameServiceClient nscl = ctx.getNameServiceClient();
    
            final NameServiceClient wrapper = new DelegatingNameServiceClient(nscl) {
    
                private InetAddress replacementINET = InetAddress.getByName(replacement);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 12.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/it/admin/dict/DictCrudTestBase.java

        @Override
        protected void testRead() {
            final Map<String, Object> searchBody = new HashMap<>();
            String response = checkGetMethod(searchBody, getListEndpointSuffix()).asString();
            final int total = JsonPath.from(response).getInt("response.total");
            final List<Map<String, String>> items = JsonPath.from(response).getList("response.settings");
            final int status = JsonPath.from(response).getInt("response.status");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

    import org.dbflute.optional.OptionalEntity;
    
    public class SynonymFile extends DictionaryFile<SynonymItem> {
        private static final String SYNONYM = "synonym";
    
        List<SynonymItem> synonymItemList;
    
        public SynonymFile(final String id, final String path, final Date timestamp) {
            super(id, path, timestamp);
        }
    
        @Override
        public String getType() {
            return SYNONYM;
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/SerializeUtil.java

                final ObjectInputStream ois = new ObjectInputStream(bais);
                try {
                    return ois.readObject();
                } finally {
                    CloseableUtil.close(ois);
                }
            } catch (final IOException ex) {
                throw new IORuntimeException(ex);
            } catch (final ClassNotFoundException ex) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/transport/Transport.java

                        ioe2.printStackTrace( log );
                    }
                    throw ioe;
                } catch( InterruptedException ie ) {
                    throw new TransportException( ie );
                } finally {
                    response_map.remove( request );
                }
        }
        private void loop() {
            while( thread == Thread.currentThread() ) {
                try {
                    Request key = peekKey();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ldap/LdapManager.java

        protected void modifyReplaceEntry(final List<ModificationItem> modifyList, final String name, final String value) {
            final Attribute attr = new BasicAttribute(name, value);
            final ModificationItem mod = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, attr);
            modifyList.add(mod);
        }
    
        protected void modifyDeleteEntry(final List<ModificationItem> modifyList, final String name, final Object value) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 65.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final MyBean myBean = new MyBean();
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final PropertyDesc propDesc = beanDesc.getPropertyDesc("jjj");
            propDesc.setValue(myBean, null);
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = IllegalPropertyRuntimeException.class)
        public void testSetValue_invalidType() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.1K bytes
    - Viewed (0)
Back to top