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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-jbang-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new 88a2462  Fix memory-leak example class visibility
88a2462 is described below

commit 88a24629e322db68469c2d2ab11c6d829e9e8e73
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jul 2 09:04:07 2026 +0200

    Fix memory-leak example class visibility
    
    Remove public modifier so class name does not need to match filename.
    
    Co-Authored-By: Claude <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 memory-leak/memory-leak.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/memory-leak/memory-leak.java b/memory-leak/memory-leak.java
index 9e8b890..f1b2e1c 100644
--- a/memory-leak/memory-leak.java
+++ b/memory-leak/memory-leak.java
@@ -5,7 +5,7 @@ import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
 
-public class memory_leak extends RouteBuilder {
+class memory_leak extends RouteBuilder {
 
     // these collections grow forever — simulating a memory leak
     private final Map<String, byte[]> cache = new HashMap<>();

Reply via email to