majorVersion() — netty Function Reference
Architecture documentation for the majorVersion() function in PlatformDependent0.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 67146ab2_c6b9_9df0_7d90_b9bd516e7ef7["majorVersion()"] be4c38f2_d236_e498_c295_1033d2617879["PlatformDependent0"] 67146ab2_c6b9_9df0_7d90_b9bd516e7ef7 -->|defined in| be4c38f2_d236_e498_c295_1033d2617879 01e0757b_cb8e_ac10_89b3_93d9e26678f2["majorVersionFromJavaSpecificationVersion()"] 01e0757b_cb8e_ac10_89b3_93d9e26678f2 -->|calls| 67146ab2_c6b9_9df0_7d90_b9bd516e7ef7 style 67146ab2_c6b9_9df0_7d90_b9bd516e7ef7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/PlatformDependent0.java lines 1181–1194
static int majorVersion(final String javaSpecVersion) {
final String[] components = javaSpecVersion.split("\\.");
final int[] version = new int[components.length];
for (int i = 0; i < components.length; i++) {
version[i] = Integer.parseInt(components[i]);
}
if (version[0] == 1) {
assert version[1] >= 6;
return version[1];
} else {
return version[0];
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does majorVersion() do?
majorVersion() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PlatformDependent0.java.
Where is majorVersion() defined?
majorVersion() is defined in common/src/main/java/io/netty/util/internal/PlatformDependent0.java at line 1181.
What calls majorVersion()?
majorVersion() is called by 1 function(s): majorVersionFromJavaSpecificationVersion.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free