mirror of
https://github.com/rife2/bld
synced 2025-12-20 16:48:38 +01:00
Made VersionGeneric constructor public
This commit is contained in:
parent
19991e84c4
commit
3ee8f81317
|
|
@ -10,6 +10,7 @@ import java.util.*;
|
||||||
import static java.util.Objects.requireNonNull;
|
import static java.util.Objects.requireNonNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Generic version implementation based on the Maven implementation.
|
||||||
*
|
*
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -40,7 +41,7 @@ public class VersionGeneric implements Version {
|
||||||
* @param version The version string, must not be {@code null}.
|
* @param version The version string, must not be {@code null}.
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
VersionGeneric(String version) {
|
public VersionGeneric(String version) {
|
||||||
version_ = requireNonNull(version, "version cannot be null");
|
version_ = requireNonNull(version, "version cannot be null");
|
||||||
items_ = parse(version);
|
items_ = parse(version);
|
||||||
hash_ = items_.hashCode();
|
hash_ = items_.hashCode();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue