svn commit: r17652 - trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-12-12 05:33:00-0800
New Revision: 17652

Modified:
   trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java

Log:
Reduce casting

Modified: trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java?view=diff&pathrev=17652&r1=17651&r2=17652
==============================================================================
--- trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java	(original)
+++ trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java	2009-12-12 05:33:00-0800
@@ -3828,10 +3828,11 @@
                 return "";
             }
             if (handle instanceof TemplateParameter) {
+                TemplateParameter templateParameter =
+                    (TemplateParameter) handle;
                 // TODO: Do we want to construct an artificial name here?
                 StringBuffer result = new StringBuffer();
-                ModelElement template =
-                        ((TemplateParameter) handle).getTemplate();
+                ModelElement template = templateParameter.getTemplate();
                 if (template != null) {
                     String name = template.getName();
                     if (name != null) {
@@ -3839,8 +3840,7 @@
                     }
                 }
                 result.append(":");
-                ModelElement parameter =
-                        ((TemplateParameter) handle).getParameter();
+                ModelElement parameter = templateParameter.getParameter();
                 if (parameter != null) {
                     String name = parameter.getName();
                     if (name != null) {

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2429972

To unsubscribe from this discussion, e-mail: [[email protected]].
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.