Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1181 - 1190 of 2,371 for Try (0.01 seconds)

  1. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/VersionPropertiesLoader.java

        static Properties loadBuildSrcVersion(File input, ProviderFactory providerFactory) throws IOException {
            Properties props = new Properties();
            InputStream is = new FileInputStream(input);
            try {
                props.load(is);
            } finally {
                is.close();
            }
            loadBuildSrcVersion(props, providerFactory);
            return props;
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Aug 09 07:39:30 GMT 2021
    - 2.7K bytes
    - Click Count (0)
  2. docs/features/events.md

        .url("https://publicobject.com/helloworld.txt")
        .build();
    
    System.out.println("REQUEST 1 (new connection)");
    try (Response response = client.newCall(request).execute()) {
      // Consume and discard the response body.
      response.body().source().readByteString();
    }
    
    System.out.println("REQUEST 2 (pooled connection)");
    try (Response response = client.newCall(request).execute()) {
      // Consume and discard the response body.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/executer/RerunTestExecuter.java

            int retryCount = 0;
            JvmTestExecutionSpec testExecutionSpec = spec;
            while (true) {
                try {
                    delegate.execute(testExecutionSpec, retryTestResultProcessor);
                    break;
                } catch (ExecException e) {
                    extension.getDidRerun().set(true);
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java

        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
    
        assertTrue(latch.await(5, SECONDS));
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
    
        try {
          future.get();
          fail("Future should rethrow the exception.");
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().hasMessageThat().isEqualTo(message);
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/lang/ConstructorUtil.java

                throws InstantiationRuntimeException, IllegalAccessRuntimeException {
            assertArgumentNotNull("constructor", constructor);
    
            try {
                return constructor.newInstance(args);
            } catch (final InstantiationException e) {
                throw new InstantiationRuntimeException(constructor.getDeclaringClass(), e);
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java

        }
    
        @Test
        public void test_constructorExists() {
            // Verify constructor exists with expected parameters
            try {
                FessActionValidator.class.getConstructor(RequestManager.class, UserMessagesCreator.class, Class[].class);
                assertTrue("Constructor with required parameters exists", true);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/TransportProvider.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * Transporter provider is a service that provides somewhat trivial transport capabilities backed by Maven internals.
     * This API does not try to cover all the requirements out there, just the basic ones, and is intentionally simple.
     * If plugin or extension needs anything more complex feature wise (i.e. HTTP range support or alike) it should
     * probably roll its own.
     * <p>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 2.1K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/DefaultConflictResolverFactory.java

         */
    
        @Override
        public ConflictResolver getConflictResolver(String type) throws ConflictResolverNotFoundException {
            try {
                return (ConflictResolver) container.lookup(ConflictResolver.ROLE, type);
            } catch (ComponentLookupException exception) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  9. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/test/TestClasspathUtils.java

                    .defineMethod("main",   void.class, Visibility.PUBLIC, Ownership.STATIC)
                    .withParameters(String[].class)
                    .intercept(mainImplementation)
                    .make();
            try {
                dynamicType.toJar(targetFile(projectRoot));
            } catch (IOException e) {
                e.printStackTrace();
                fail("Cannot setup jdk jar hell classpath");
            }
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jun 07 15:14:44 GMT 2021
    - 2.9K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/BreakingChangesGenerator.java

     */
    public class BreakingChangesGenerator {
    
        static void update(File templateFile, File outputFile, List<ChangelogEntry> entries) throws IOException {
            try (FileWriter output = new FileWriter(outputFile)) {
                output.write(
                    generateFile(QualifiedVersion.of(VersionProperties.getElasticsearch()), Files.readString(templateFile.toPath()), entries)
                );
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 14:45:41 GMT 2021
    - 3K bytes
    - Click Count (0)
Back to Top