Skip to content

Commit

Permalink
Throwing exception when input cannot be parsed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoelkers committed Mar 27, 2015
1 parent a4512a9 commit 580ea7e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -121,7 +121,7 @@ public static Version fromString(String version) {
} else
return new Version(major, minor, patch, additional, sha1);
} else
return null;
throw new IllegalArgumentException("Unable to parse Version string " + version);
}

public Version(int major, int minor, int patch) {
Expand Down

0 comments on commit 580ea7e

Please sign in to comment.