This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 9807d028145 Regen for commit b5e8dfcabc16a7c72dc5c0141747af2fa30de172
9807d028145 is described below

commit 9807d0281456a1d6c615ab8e2a4fe9082ea2ce12
Author: oscerd <osc...@users.noreply.github.com>
AuthorDate: Tue Jan 10 15:17:21 2023 +0000

    Regen for commit b5e8dfcabc16a7c72dc5c0141747af2fa30de172
    
    Signed-off-by: GitHub <nore...@github.com>
---
 .../org/apache/camel/component/es/ElasticsearchConfiguration.java   | 4 ++--
 .../java/org/apache/camel/component/es/ElasticsearchProducer.java   | 6 ++----
 .../builder/endpoint/dsl/ElasticsearchEndpointBuilderFactory.java   | 5 +++--
 3 files changed, 7 insertions(+), 8 deletions(-)

diff --git 
a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchConfiguration.java
 
b/components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchConfiguration.java
index 5058bf75b0c..0cded24d9bc 100644
--- 
a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchConfiguration.java
+++ 
b/components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchConfiguration.java
@@ -213,8 +213,8 @@ public class ElasticsearchConfiguration {
     }
 
     /**
-     * The certificate that can be used to access the ES Cluster.
-     * It can be loaded by default from classpath, but you can prefix with 
classpath:, file:, or http: to load the resource from different systems.
+     * The certificate that can be used to access the ES Cluster. It can be 
loaded by default from classpath, but you
+     * can prefix with classpath:, file:, or http: to load the resource from 
different systems.
      */
     public String getCertificatePath() {
         return certificatePath;
diff --git 
a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchProducer.java
 
b/components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchProducer.java
index d373a2b0b9e..dc13751e598 100644
--- 
a/components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchProducer.java
+++ 
b/components/camel-elasticsearch/src/main/java/org/apache/camel/component/es/ElasticsearchProducer.java
@@ -16,10 +16,7 @@
  */
 package org.apache.camel.component.es;
 
-import java.io.ByteArrayInputStream;
 import java.io.InputStream;
-import java.nio.file.Files;
-import java.nio.file.Paths;
 import java.security.KeyStore;
 import java.security.cert.Certificate;
 import java.security.cert.CertificateFactory;
@@ -543,7 +540,8 @@ class ElasticsearchProducer extends DefaultAsyncProducer {
         try {
             CertificateFactory factory = 
CertificateFactory.getInstance("X.509");
             InputStream resolveMandatoryResourceAsInputStream
-                    = 
ResourceHelper.resolveMandatoryResourceAsInputStream(getEndpoint().getCamelContext(),
 configuration.getCertificatePath());
+                    = 
ResourceHelper.resolveMandatoryResourceAsInputStream(getEndpoint().getCamelContext(),
+                            configuration.getCertificatePath());
             Certificate trustedCa = 
factory.generateCertificate(resolveMandatoryResourceAsInputStream);
             KeyStore trustStore = KeyStore.getInstance("pkcs12");
             trustStore.load(null, null);
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ElasticsearchEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ElasticsearchEndpointBuilderFactory.java
index 82e50eb4a3d..2cc5c5dbb52 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ElasticsearchEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ElasticsearchEndpointBuilderFactory.java
@@ -383,8 +383,9 @@ public interface ElasticsearchEndpointBuilderFactory {
             return this;
         }
         /**
-         * The path of the self-signed certificate to use to access to
-         * Elasticsearch.
+         * The certificate that can be used to access the ES Cluster. It can be
+         * loaded by default from classpath, but you can prefix with 
classpath:,
+         * file:, or http: to load the resource from different systems.
          * 
          * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
          * 

Reply via email to