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 f235a5a  Rename memory-leak example to MemoryLeak.java
f235a5a is described below

commit f235a5a8c94966a087c431831ed7ca511c4e105d
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jul 2 09:05:13 2026 +0200

    Rename memory-leak example to MemoryLeak.java
    
    Class name must match filename for public class.
    
    Co-Authored-By: Claude <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 camel-jbang-example-catalog.json                  | 4 ++--
 memory-leak/{memory-leak.java => MemoryLeak.java} | 2 +-
 memory-leak/README.md                             | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/camel-jbang-example-catalog.json b/camel-jbang-example-catalog.json
index 8ac7469..a065576 100644
--- a/camel-jbang-example-catalog.json
+++ b/camel-jbang-example-catalog.json
@@ -284,8 +284,8 @@
         "requiresDocker": false,
         "hasCitrusTests": false,
         "files": [
-            "README.md",
-            "memory-leak.java"
+            "MemoryLeak.java",
+            "README.md"
         ]
     },
     {
diff --git a/memory-leak/memory-leak.java b/memory-leak/MemoryLeak.java
similarity index 96%
rename from memory-leak/memory-leak.java
rename to memory-leak/MemoryLeak.java
index f1b2e1c..2ce67a6 100644
--- a/memory-leak/memory-leak.java
+++ b/memory-leak/MemoryLeak.java
@@ -5,7 +5,7 @@ import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
 
-class memory_leak extends RouteBuilder {
+public class MemoryLeak extends RouteBuilder {
 
     // these collections grow forever — simulating a memory leak
     private final Map<String, byte[]> cache = new HashMap<>();
diff --git a/memory-leak/README.md b/memory-leak/README.md
index 1391a2d..4a513cc 100644
--- a/memory-leak/README.md
+++ b/memory-leak/README.md
@@ -9,7 +9,7 @@ It runs three routes:
 
 ### How to run
 
-    camel run memory-leak.java
+    camel run MemoryLeak.java
 
 ### Diagnose with TUI
 

Reply via email to