Home / Function/ String() — netty Function Reference

String() — netty Function Reference

Architecture documentation for the String() function in ResourceLeakDetector.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d26368ea_2377_6726_9fe5_56eb62b032f5["String()"]
  efd8fd00_279e_1a41_04ab_1ca04d075259["TraceRecord"]
  d26368ea_2377_6726_9fe5_56eb62b032f5 -->|defined in| efd8fd00_279e_1a41_04ab_1ca04d075259
  b260358b_454b_6028_886c_2ef501a3d816["addExclusions()"]
  d26368ea_2377_6726_9fe5_56eb62b032f5 -->|calls| b260358b_454b_6028_886c_2ef501a3d816
  style d26368ea_2377_6726_9fe5_56eb62b032f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/ResourceLeakDetector.java lines 709–737

        @Override
        public String toString() {
            StringBuilder buf = new StringBuilder(2048);
            if (hintString != null) {
                buf.append("\tHint: ").append(hintString).append(NEWLINE);
            }

            // Append the stack trace.
            StackTraceElement[] array = getStackTrace();
            // Skip the first three elements.
            out: for (int i = 3; i < array.length; i++) {
                StackTraceElement element = array[i];
                // Strip the noisy stack trace elements.
                String[] exclusions = excludedMethods.get();
                for (int k = 0; k < exclusions.length; k += 2) {
                    // Suppress a warning about out of bounds access
                    // since the length of excludedMethods is always even, see addExclusions()
                    if (exclusions[k].equals(element.getClassName())
                            && exclusions[k + 1].equals(element.getMethodName())) {
                        continue out;
                    }
                }

                buf.append('\t');
                buf.append(element.toString());
                buf.append(NEWLINE);
            }
            return buf.toString();
        }

Domain

Subdomains

Frequently Asked Questions

What does String() do?
String() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/ResourceLeakDetector.java.
Where is String() defined?
String() is defined in common/src/main/java/io/netty/util/ResourceLeakDetector.java at line 709.
What does String() call?
String() calls 1 function(s): addExclusions.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free