Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1671 - 1680 of 2,371 for Try (0.01 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

        assertThat(clientTestRule.takeUncaughtException())
          .matchesPredicate { it == null || it is RejectedExecutionException }
      }
    
      private fun sleep(delayMillis: Int) {
        try {
          Thread.sleep(delayMillis.toLong())
        } catch (e: InterruptedException) {
          Thread.currentThread().interrupt()
        }
      }
    
      private fun interruptLater(delayMillis: Int) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 18:33:48 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
    
            // Test that it can be caught as CIFSException
            boolean caughtAsCIFSException = false;
            try {
                throw exception;
            } catch (CIFSException e) {
                caughtAsCIFSException = true;
                assertEquals(exception, e);
            }
            assertTrue(caughtAsCIFSException);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

         * are passed to maven, possibly containing profile activator properties
         *
         */
        public DefaultProfileManager(PlexusContainer container, Properties props) {
            try {
                this.profileSelector = container.lookup(ProfileSelector.class);
                this.logger = ((MutablePlexusContainer) container).getLogger();
            } catch (ComponentLookupException e) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

            }
    
            if (graph.isEmptyEdges()) {
                return null; // no edges - nothing to worry about
            }
    
            final TreeSet<MetadataGraphVertex> vertices = graph.getVertices();
    
            try {
                // edge case - single vertex graph
                if (vertices.size() == 1) {
                    return new MetadataGraph(entry);
                }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsThumbnailQueueBhv.java

            return ThumbnailQueueDbm.getInstance();
        }
    
        @Override
        protected <RESULT extends ThumbnailQueue> 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")));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/opensearch/user/bsbhv/BsRoleBhv.java

        public RoleDbm asDBMeta() {
            return RoleDbm.getInstance();
        }
    
        @Override
        protected <RESULT extends Role> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {
            try {
                final RESULT result = entityType.newInstance();
                result.setName(DfTypeUtil.toString(source.get("name")));
                return updateEntity(source, result);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/dcerpc/DcerpcHandle.java

         * @throws IOException
         *            if there is an I/O error during binding
         */
        public void bind() throws DcerpcException, IOException {
            synchronized (this) {
                try {
                    this.state = 1;
                    final DcerpcMessage bind = new DcerpcBind(this.binding, this);
                    sendrecv(bind);
                } catch (final IOException ioe) {
                    this.state = 0;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/NtlmUtil.java

            if (password == null) {
                throw new NullPointerException("Password parameter is required");
            }
            final String tempStr = new String(password);
            try {
                final MessageDigest md4 = Crypto.getMD4();
                md4.update(Strings.getUNIBytes(tempStr));
                return md4.digest();
            } finally {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/NotifyResponseTest.java

            inputList.clear();
            assertEquals(2, notifications.size());
    
            // Try to modify returned list - behavior depends on implementation
            // This tests that the implementation properly handles list modifications
            try {
                notifications.clear();
                // If this succeeds, the implementation allows modification
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

            assertEquals("", writtenLastName);
        }
    
        // Helper methods
    
        private Object getFieldValue(Object obj, String fieldName) {
            try {
                Field field = getField(obj.getClass(), fieldName);
                field.setAccessible(true);
                return field.get(obj);
            } catch (Exception e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.7K bytes
    - Click Count (0)
Back to Top