From d7d9c1aec2904bfe7abd1016a34da1016ed7a69a Mon Sep 17 00:00:00 2001 From: Zafar Khaja Date: Thu, 14 Aug 2014 21:31:30 +0300 Subject: [PATCH] Add @throws tag to the Version.forIntegers()'s Javadoc --- src/main/java/com/github/zafarkhaja/semver/Version.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/github/zafarkhaja/semver/Version.java b/src/main/java/com/github/zafarkhaja/semver/Version.java index e49d87d..166f216 100644 --- a/src/main/java/com/github/zafarkhaja/semver/Version.java +++ b/src/main/java/com/github/zafarkhaja/semver/Version.java @@ -271,6 +271,7 @@ public class Version implements Comparable { * * @param major the major version number * @return a new instance of the {@code Version} class + * @throws IllegalArgumentException if a negative integer is passed * @since 0.7.0 */ public static Version forIntegers(int major) { @@ -284,6 +285,7 @@ public class Version implements Comparable { * @param major the major version number * @param minor the minor version number * @return a new instance of the {@code Version} class + * @throws IllegalArgumentException if a negative integer is passed * @since 0.7.0 */ public static Version forIntegers(int major, int minor) { @@ -298,6 +300,7 @@ public class Version implements Comparable { * @param minor the minor version number * @param patch the patch version number * @return a new instance of the {@code Version} class + * @throws IllegalArgumentException if a negative integer is passed * @since 0.7.0 */ public static Version forIntegers(int major, int minor, int patch) {