aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJulien Eluard <[email protected]>2010-11-19 10:05:47 +0100
committerJulien Eluard <[email protected]>2010-11-19 10:05:47 +0100
commit6f0d6b9537143bb301d5ca74439b13458cd3a22c (patch)
treebf668808ceb174762c3b9374706c27d20769be10 /api
parent708d49d14e2b9c6d3cb72e9a61facbda71bf739e (diff)
Wrong field initialization.
Diffstat (limited to 'api')
-rw-r--r--api/src/main/java/org/semver/Delta.java7
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;
}