You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/03/26 16:47:09 UTC
[camel-kameleon] branch main updated: Refactor bad smells: (#38)
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-kameleon.git
The following commit(s) were added to refs/heads/main by this push:
new 7ec7421 Refactor bad smells: (#38)
7ec7421 is described below
commit 7ec742129018e1467fef9332021c2dd489054688
Author: Martin Wittlinger <wi...@gmail.com>
AuthorDate: Sun Mar 26 18:47:05 2023 +0200
Refactor bad smells: (#38)
- InnerClassMayBeStatic
Inner classes that do not reference their enclosing instances can be made static.
This prevents a common cause of memory leaks and uses less memory per instance of the class.
---
src/main/java/org/apache/camel/kameleon/WarmUpService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/camel/kameleon/WarmUpService.java b/src/main/java/org/apache/camel/kameleon/WarmUpService.java
index 4bb98a9..89c67ac 100644
--- a/src/main/java/org/apache/camel/kameleon/WarmUpService.java
+++ b/src/main/java/org/apache/camel/kameleon/WarmUpService.java
@@ -81,7 +81,7 @@ public class WarmUpService {
}
}
- public class WarmupRequest {
+ public static class WarmupRequest {
public String type;
public String version;
public String javaVersion;