Home / Function/ getInt() — netty Function Reference

getInt() — netty Function Reference

Architecture documentation for the getInt() function in SystemPropertyUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a94b1a19_d177_8d47_52d7_bfc770a0fa9c["getInt()"]
  1e2b5a90_1617_877a_4b1d_2ffa3b96bb90["SystemPropertyUtil"]
  a94b1a19_d177_8d47_52d7_bfc770a0fa9c -->|defined in| 1e2b5a90_1617_877a_4b1d_2ffa3b96bb90
  style a94b1a19_d177_8d47_52d7_bfc770a0fa9c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/SystemPropertyUtil.java lines 131–150

    public static int getInt(String key, int def) {
        String value = get(key);
        if (value == null) {
            return def;
        }

        value = value.trim();
        try {
            return Integer.parseInt(value);
        } catch (Exception e) {
            // Ignore
        }

        logger.warn(
                "Unable to parse the integer system property '{}':{} - using the default value: {}",
                key, value, def
        );

        return def;
    }

Domain

Subdomains

Frequently Asked Questions

What does getInt() do?
getInt() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/SystemPropertyUtil.java.
Where is getInt() defined?
getInt() is defined in common/src/main/java/io/netty/util/internal/SystemPropertyUtil.java at line 131.

Analyze Your Own Codebase

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

Try Supermodel Free