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 2026/04/08 10:15:47 UTC

(camel) 19/38: (chores): fix SonarCloud S5993 in camel-splunk

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 dcdbf3eb2c6c45a86dc388ea8ab57281c1cdac54
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sat Mar 28 13:39:04 2026 +0000

    (chores): fix SonarCloud S5993 in camel-splunk
    
    Change public constructors of abstract classes to protected.
    
    Claude Code on behalf of Otavio R. Piske
    
    Co-Authored-By: Claude Sonnet 4.6 <no...@anthropic.com>
---
 .../org/apache/camel/component/splunk/support/SplunkDataWriter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataWriter.java b/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataWriter.java
index 0ef0ad019f0d..21cb2456766e 100644
--- a/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataWriter.java
+++ b/components/camel-splunk/src/main/java/org/apache/camel/component/splunk/support/SplunkDataWriter.java
@@ -42,7 +42,7 @@ public abstract class SplunkDataWriter implements DataWriter {
     private Socket socket;
     protected final Lock lock = new ReentrantLock();
 
-    public SplunkDataWriter(SplunkEndpoint endpoint, Args args) {
+    protected SplunkDataWriter(SplunkEndpoint endpoint, Args args) {
         this.endpoint = endpoint;
         this.args = args;
     }