polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [16/50] [abbrv] zest-qi4j git commit: core-api: ensure EntityReference cannot be created with null value
Date Fri, 17 Apr 2015 16:05:36 GMT
core-api: ensure EntityReference cannot be created with null value


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/761d7f16
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/761d7f16
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/761d7f16

Branch: refs/heads/master
Commit: 761d7f160477b79f1672c161876c1495289c9755
Parents: e2ea757
Author: Paul Merlin <paul@nosphere.org>
Authored: Wed Feb 13 11:52:26 2013 +0100
Committer: Paul Merlin <paul@nosphere.org>
Committed: Wed Feb 13 11:52:26 2013 +0100

----------------------------------------------------------------------
 core/api/src/main/java/org/qi4j/api/entity/EntityReference.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/761d7f16/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java b/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java
index 625f019..0a4a14a 100644
--- a/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java
+++ b/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java
@@ -15,6 +15,7 @@
 package org.qi4j.api.entity;
 
 import java.io.Serializable;
+import org.qi4j.api.util.NullArgumentException;
 
 /**
  * An EntityReference is identity of a specific
@@ -53,6 +54,7 @@ public final class EntityReference
 
     public EntityReference( String identity )
     {
+        NullArgumentException.validateNotEmpty( "identity", identity );
         this.identity = identity;
     }
 


Mime
View raw message