svn commit: r14711 - trunk/src/argouml-app/src/org/argouml/notation/providers/uml/CallStateNotationUml.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2008-05-12 13:01:39-0700
New Revision: 14711

Modified:
   trunk/src/argouml-app/src/org/argouml/notation/providers/uml/CallStateNotationUml.java

Log:
Style: Foreach loop.

Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/uml/CallStateNotationUml.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/notation/providers/uml/CallStateNotationUml.java?view=diff&rev=14711&p1=trunk/src/argouml-app/src/org/argouml/notation/providers/uml/CallStateNotationUml.java&p2=trunk/src/argouml-app/src/org/argouml/notation/providers/uml/CallStateNotationUml.java&r1=14710&r2=14711
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/notation/providers/uml/CallStateNotationUml.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/notation/providers/uml/CallStateNotationUml.java	2008-05-12 13:01:39-0700
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 2006-2007 The Regents of the University of California. All
+// Copyright (c) 2006-2008 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
@@ -125,10 +125,7 @@
                 && (newOperationName != null) 
                 && !newOperationName.equals(oldOperationName)) {
             // Same class, other operation
-            Collection c = Model.getFacade().getOperations(clazz);
-            Iterator i = c.iterator();
-            while (i.hasNext()) {
-                Object op = i.next();
+            for ( Object op : Model.getFacade().getOperations(clazz)) {
                 if (newOperationName.equals(
                         Model.getFacade().getName(op))) {
                     Model.getCommonBehaviorHelper().setOperation(entry, op);
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.