You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/06/17 12:24:57 UTC
[camel] 13/40: (chores) camel-file: align visibility of the constructor with the one declared in the class
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 8cb4830cbd59c2eca545794040712cdce9407174
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sat Jun 17 09:34:35 2023 +0200
(chores) camel-file: align visibility of the constructor with the one declared in the class
---
.../java/org/apache/camel/component/file/GenericFileComponent.java | 4 ++--
.../java/org/apache/camel/component/file/GenericFileConsumer.java | 4 ++--
.../java/org/apache/camel/component/file/GenericFileEndpoint.java | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileComponent.java b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileComponent.java
index c9f7f24aeb5..5deb420f712 100644
--- a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileComponent.java
+++ b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileComponent.java
@@ -39,10 +39,10 @@ public abstract class GenericFileComponent<T> extends DefaultComponent {
protected Logger log = LoggerFactory.getLogger(getClass());
- public GenericFileComponent() {
+ protected GenericFileComponent() {
}
- public GenericFileComponent(CamelContext context) {
+ protected GenericFileComponent(CamelContext context) {
super(context);
}
diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
index 8812150e8de..45808a4cbf6 100644
--- a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
+++ b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
@@ -61,8 +61,8 @@ public abstract class GenericFileConsumer<T> extends ScheduledBatchPollingConsum
private final String[] includeExt;
private final String[] excludeExt;
- public GenericFileConsumer(GenericFileEndpoint<T> endpoint, Processor processor, GenericFileOperations<T> operations,
- GenericFileProcessStrategy<T> processStrategy) {
+ protected GenericFileConsumer(GenericFileEndpoint<T> endpoint, Processor processor, GenericFileOperations<T> operations,
+ GenericFileProcessStrategy<T> processStrategy) {
super(endpoint, processor);
this.endpoint = endpoint;
this.operations = operations;
diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
index 2628b7d5d1d..5dc26d43232 100644
--- a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
+++ b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
@@ -439,10 +439,10 @@ public abstract class GenericFileEndpoint<T> extends ScheduledPollEndpoint imple
private Pattern includePattern;
private Pattern excludePattern;
- public GenericFileEndpoint() {
+ protected GenericFileEndpoint() {
}
- public GenericFileEndpoint(String endpointUri, Component component) {
+ protected GenericFileEndpoint(String endpointUri, Component component) {
super(endpointUri, component);
}