diff options
-rw-r--r-- | api/src/main/java/org/semver/Delta.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/src/main/java/org/semver/Delta.java b/api/src/main/java/org/semver/Delta.java index 339518d..0fea247 100644 --- a/api/src/main/java/org/semver/Delta.java +++ b/api/src/main/java/org/semver/Delta.java @@ -53,6 +53,13 @@ public class Delta { private final AbstractInfo info; public Difference(@Nonnull final String className, @Nonnull final AbstractInfo info) { + if (className == null) { + throw new IllegalArgumentException("null className"); + } + if (info == null) { + throw new IllegalArgumentException("null info"); + } + this.className = className; this.info = info; } |