Author: xor
Date: 2008-11-13 19:53:59 +0000 (Thu, 13 Nov 2008)
New Revision: 23538

Modified:
   trunk/plugins/WoT/Identity.java
Log:
Enable the throwing of DuplicateIdentityException again now that its a 
RuntimeException.

Modified: trunk/plugins/WoT/Identity.java
===================================================================
--- trunk/plugins/WoT/Identity.java     2008-11-13 19:48:34 UTC (rev 23537)
+++ trunk/plugins/WoT/Identity.java     2008-11-13 19:53:59 UTC (rev 23538)
@@ -150,8 +150,8 @@
                query.descend("id").constrain(id);
                ObjectSet<Identity> result = query.execute();
                
-               assert(result.size() <= 1);
                if(result.size() == 0) throw new UnknownIdentityException(id);
+               else if(result.size() > 1) throw new 
DuplicateIdentityException(id);
                return result.next();
        }
 

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to