mirror of https://github.com/apache/maven.git
Param check in artifact utils.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769557 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
14b3573e79
commit
d2bbf510f9
|
@ -43,6 +43,11 @@ public final class ArtifactUtils
|
|||
|
||||
public static String toSnapshotVersion( String version )
|
||||
{
|
||||
if(version == null)
|
||||
{
|
||||
throw new IllegalArgumentException("version: null");
|
||||
}
|
||||
|
||||
Matcher m = Artifact.VERSION_FILE_PATTERN.matcher( version );
|
||||
if ( m.matches() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue