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

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

commit 9440d8d38815a3febc234b84c7051bcc7e504a52
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Sat Jun 17 09:41:19 2023 +0200

    (chores) camel-http-common: align visibility of the constructor with the 
one declared in the class
---
 .../main/java/org/apache/camel/http/common/HttpCommonComponent.java   | 2 +-
 .../main/java/org/apache/camel/http/common/HttpCommonEndpoint.java    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonComponent.java
 
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonComponent.java
index 115a2edc879..266e9b7191f 100644
--- 
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonComponent.java
+++ 
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonComponent.java
@@ -38,7 +38,7 @@ public abstract class HttpCommonComponent extends 
HeaderFilterStrategyComponent
                             + " If you enable this then be aware that Java 
will deserialize the incoming data from the request to Java and that can be a 
potential security risk.")
     protected boolean allowJavaSerializedObject;
 
-    public HttpCommonComponent() {
+    protected HttpCommonComponent() {
     }
 
     /**
diff --git 
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
 
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
index a42fdbd0e21..b1518e5d879 100644
--- 
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
+++ 
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
@@ -174,10 +174,10 @@ public abstract class HttpCommonEndpoint extends 
DefaultEndpoint implements Head
     @UriParam(label = "producer,proxy", description = "Proxy authentication 
domain (workstation name) to use with NTML")
     private String proxyAuthNtHost;
 
-    public HttpCommonEndpoint() {
+    protected HttpCommonEndpoint() {
     }
 
-    public HttpCommonEndpoint(String endPointURI, HttpCommonComponent 
component, URI httpURI) {
+    protected HttpCommonEndpoint(String endPointURI, HttpCommonComponent 
component, URI httpURI) {
         super(endPointURI, component);
         this.component = component;
         this.httpUri = httpURI;

Reply via email to