]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.objmap2/src/org/simantics/objmap/structural/rules/domain/RelatedObjectsAccessor.java
Use unique names at the model scope instead of pipe run
[simantics/3d.git] / org.simantics.objmap2 / src / org / simantics / objmap / structural / rules / domain / RelatedObjectsAccessor.java
index 0289564906dfd02c682396dd8ad1caf75dc4db08..c56ffb6d1b3fb72e4b5df9c4583e062b2d124933 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * Copyright (c) 2007, 2013 Association for Decentralized Information Management\r
  * in Industry THTH ry.\r
  * All rights reserved. This program and the accompanying materials\r
  * are made available under the terms of the Eclipse Public License v1.0\r
@@ -62,7 +62,7 @@ public class RelatedObjectsAccessor implements IDomainAccessor<StructuralResourc
                   \r
                    Resource res = getServiceResource(g, element);\r
                    if (res == null)\r
-                       return Collections.EMPTY_LIST;\r
+                       return Collections.emptyList();\r
                    Collection<Resource> coll = g.getObjects(res, relation);\r
                        List<StructuralResource> result = new ArrayList<StructuralResource>(coll.size());\r
                        for (Resource r : coll) {\r