diff options
author | Julien Eluard <[email protected]> | 2010-11-19 10:05:47 +0100 |
---|---|---|
committer | Julien Eluard <[email protected]> | 2010-11-19 10:05:47 +0100 |
commit | 6f0d6b9537143bb301d5ca74439b13458cd3a22c (patch) | |
tree | bf668808ceb174762c3b9374706c27d20769be10 /api | |
parent | 708d49d14e2b9c6d3cb72e9a61facbda71bf739e (diff) |
Wrong field initialization.
Diffstat (limited to 'api')
-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; } |