2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 16:27:11 -07:00

Made VersionGeneric constructor public

This commit is contained in:
Geert Bevin 2024-07-19 23:22:09 -04:00
parent 19991e84c4
commit 3ee8f81317

View file

@ -10,6 +10,7 @@ import java.util.*;
import static java.util.Objects.requireNonNull;
/**
* Generic version implementation based on the Maven implementation.
*
* @since 2.0
*/
@ -40,7 +41,7 @@ public class VersionGeneric implements Version {
* @param version The version string, must not be {@code null}.
* @since 2.0
*/
VersionGeneric(String version) {
public VersionGeneric(String version) {
version_ = requireNonNull(version, "version cannot be null");
items_ = parse(version);
hash_ = items_.hashCode();