[jboss-cvs] jboss-seam/src/main/org/jboss/seam/framework ...
Peter Muir
peter at bleepbleep.org.uk
Mon Aug 13 10:33:48 EDT 2007
User: pmuir
Date: 07/08/13 10:33:48
Modified: src/main/org/jboss/seam/framework EntityIdentifier.java
Identifier.java
Log:
JBSEAM-1794
Revision Changes Path
1.5 +1 -1 jboss-seam/src/main/org/jboss/seam/framework/EntityIdentifier.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EntityIdentifier.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/framework/EntityIdentifier.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- EntityIdentifier.java 6 Jul 2007 19:42:55 -0000 1.4
+++ EntityIdentifier.java 13 Aug 2007 14:33:47 -0000 1.5
@@ -19,7 +19,7 @@
{
if (entityManager == null)
{
- throw new IllegalArgumentException("EntityManager must not be null");
+ throw new NullPointerException("EntityManager must not be null");
}
try
{
1.2 +8 -2 jboss-seam/src/main/org/jboss/seam/framework/Identifier.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Identifier.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/framework/Identifier.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Identifier.java 15 Apr 2007 17:41:23 -0000 1.1
+++ Identifier.java 13 Aug 2007 14:33:47 -0000 1.2
@@ -2,6 +2,12 @@
import java.io.Serializable;
+/**
+ * Wrapper class that identifies an entity
+ *
+ * @author Pete Muir
+ *
+ */
public abstract class Identifier<T> implements Serializable
{
@@ -31,9 +37,9 @@
@Override
public boolean equals(Object other)
{
- if (other instanceof EntityIdentifier)
+ if (other instanceof Identifier)
{
- EntityIdentifier that = (EntityIdentifier) other;
+ Identifier that = (Identifier) other;
if (id == null || clazz == null)
{
throw new IllegalArgumentException("Class and Id must not be null");
More information about the jboss-cvs-commits
mailing list