-
public class VersionHelper
-
-
Method Summary
-
-
Method Detail
-
getMajor
static int getMajor(String version)
Extracts the major version number from a version string.
The version string is expected to be in the format "major.minor.patch" (e.g., "1.2.3").If the string cannot be parsed or is in an unexpected format, this method logs an errorand returns 0.
- Parameters:
version- The version string to parse.
-
-
-
-