Author: tfmorris
Date: 2008-05-20 07:22:59-0700
New Revision: 14776
Modified:
trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java
Log:
Wrap long lines
Modified: trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java?view=diff&rev=14776&p1=trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java&p2=trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java&r1=14775&r2=14776
==============================================================================
--- trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java (original)
+++ trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java 2008-05-20 07:22:59-0700
@@ -579,11 +579,12 @@
public Collection<Interface> getRealizedInterfaces(Object cls) {
Classifier classifier = (Classifier) cls;
if (classifier == null) {
- return Collections.EMPTY_LIST;
+ return Collections.emptyList();
}
List<Interface> result = new ArrayList<Interface>();
try {
- for (Dependency clientDependency : classifier.getClientDependency()) {
+ for (Dependency clientDependency
+ : classifier.getClientDependency()) {
if (clientDependency instanceof Abstraction) {
Abstraction abstraction = (Abstraction) clientDependency;
for (Stereotype stereo : abstraction.getStereotype()) {
@@ -1335,7 +1336,6 @@
} else if (modelElement instanceof ClassifierRole) {
return ns instanceof Collaboration;
} else if (ns instanceof Collaboration) {
-
/*
* Although not represented in the OCL (or our Java), the
* English text of WFR #4 of Section 2.10.3.4 in the UML 1.4
@@ -1637,6 +1637,7 @@
Collection<Generalization> generalizations =
generalizableElement.getGeneralization();
+
for (Generalization generalization : generalizations) {
GeneralizableElement parent = generalization.getParent();
if (!modelImpl.getModelManagementHelper().getAllContents(namespace)
@@ -1820,7 +1821,8 @@
}
for (Object supertype : getSupertypes(o)) {
if (!visited.contains(supertype)) {
- internalGetAllRealizedInterfaces(supertype, col, visited);
+ internalGetAllRealizedInterfaces(supertype, col,
+ visited);
}
}
}
@@ -2100,7 +2102,8 @@
public void addClientDependency(Object handle, Object dependency) {
if (handle instanceof ModelElement
&& dependency instanceof Dependency) {
- ((ModelElement) handle).getClientDependency().add((Dependency) dependency);
+ ((ModelElement) handle).getClientDependency().add(
+ (Dependency) dependency);
return;
}
throw new IllegalArgumentException("handle: " + handle
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.