MCPcopy Create free account
hub / github.com/apache/fory / _normalize_java_version

Function _normalize_java_version

ci/release.py:950–957  ·  view source on GitHub ↗
(v: str)

Source from the content-addressed store, hash-verified

948
949
950def _normalize_java_version(v: str) -> str:
951 v = v.strip()
952 if re.search(r"(?i)-snapshot$", v):
953 return re.sub(r"(?i)-snapshot$", "-SNAPSHOT", v)
954 if re.search(r"(?i)(\.dev\d*|-dev\d*)$", v):
955 base = re.sub(r"(?i)(\.dev\d*|-dev\d*)$", "", v)
956 return f"{base}-SNAPSHOT"
957 return v
958
959
960def _normalize_go_version(v: str) -> str:

Callers 4

bump_versionFunction · 0.85
bump_java_versionFunction · 0.85
_update_scala_versionFunction · 0.85
_update_kotlin_versionFunction · 0.85

Calls 1

subMethod · 0.45

Tested by

no test coverage detected