LeakCreation Class — netty Architecture
Architecture documentation for the LeakCreation class in LeakPresenceDetector.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e5f56492_afc9_02be_fa67_aab1a27be49e["LeakCreation"] acb11df3_85c3_c25d_0290_bc4b45701d31["LeakPresenceDetector.java"] e5f56492_afc9_02be_fa67_aab1a27be49e -->|defined in| acb11df3_85c3_c25d_0290_bc4b45701d31 0a592766_d816_a1e8_cd6e_a61a6f749ce3["String()"] e5f56492_afc9_02be_fa67_aab1a27be49e -->|method| 0a592766_d816_a1e8_cd6e_a61a6f749ce3
Relationship Graph
Source Code
common/src/main/java/io/netty/util/LeakPresenceDetector.java lines 331–348
private static final class LeakCreation extends Throwable {
final Thread thread = Thread.currentThread();
String message;
@Override
public synchronized String getMessage() {
if (message == null) {
if (inStaticInitializerSlow(getStackTrace())) {
message = "Resource created in static initializer. Please wrap the static initializer in " +
"LeakPresenceDetector.staticInitializer so that this resource is excluded.";
} else {
message = "Resource created outside static initializer on thread '" + thread.getName() + "' (" +
thread.getState() + "), likely leak.";
}
}
return message;
}
}
Source
Frequently Asked Questions
What is the LeakCreation class?
LeakCreation is a class in the netty codebase, defined in common/src/main/java/io/netty/util/LeakPresenceDetector.java.
Where is LeakCreation defined?
LeakCreation is defined in common/src/main/java/io/netty/util/LeakPresenceDetector.java at line 331.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free