svn commit: r12960 - trunk/src_new/org/argouml/cognitive/ItemUID.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-07-02 13:43:27-0700
New Revision: 12960

Modified:
   trunk/src_new/org/argouml/cognitive/ItemUID.java

Log:
Fix cast broken in rev 12950 commit (which was also the wrong change set for this change)

Modified: trunk/src_new/org/argouml/cognitive/ItemUID.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/cognitive/ItemUID.java?view=diff&rev=12960&p1=trunk/src_new/org/argouml/cognitive/ItemUID.java&p2=trunk/src_new/org/argouml/cognitive/ItemUID.java&r1=12959&r2=12960
==============================================================================
--- trunk/src_new/org/argouml/cognitive/ItemUID.java	(original)
+++ trunk/src_new/org/argouml/cognitive/ItemUID.java	2007-07-02 13:43:27-0700
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 2002-2006 The Regents of the University of California. All
+// Copyright (c) 2002-2007 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -162,21 +162,11 @@
                 || (obj instanceof CommentEdge)) {
             return UUIDHelper.getUUID(obj);
         }
-	/*
-	// Want to use the "built in" UID of the MXxx instances
-	// d00mst 2002-10-08
-	if (obj instanceof MModelElement)
-	{
-	String id = ((MModelElement)obj).getTaggedValue("org.argouml.uid");
-	//LOG.debug("Read UID " + id + " from an object!");
-	return id;
-	}
-	*/
 
 	Object rv;
 	try {
-	    Method m = obj.getClass().getMethod("getItemUID", (Class) null);
-	    rv = m.invoke(obj, (Object) null);
+	    Method m = obj.getClass().getMethod("getItemUID", (Class[]) null);
+	    rv = m.invoke(obj, (Object[]) null);
 	} catch (NoSuchMethodException nsme) {
 	    // Apparently this object had no getItemUID
 	    return null;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.