]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.objmap2/src/org/simantics/objmap/structural/annotations/factories/OptionalRelatedElementsRuleFactory.java
Use unique names at the model scope instead of pipe run
[simantics/3d.git] / org.simantics.objmap2 / src / org / simantics / objmap / structural / annotations / factories / OptionalRelatedElementsRuleFactory.java
index ad603ec3fdc6a05cd357c07703af54bd747adbb7..734b3cd795f89ce398cc82b318fbb3d9e811409a 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
@@ -37,7 +37,7 @@ public class OptionalRelatedElementsRuleFactory<Range> implements IFieldRuleFact
         return new MappedElementsRule<StructuralResource, Range>(\r
                 new RelatedObjectsAccessor(g.getResource(annotation.value()),\r
                         annotation.composition(),false),\r
-                new FieldAccessorWithDefault<Range,Collection<Range>>(field, (Collection<Range>)Collections.emptyList())\r
+                new FieldAccessorWithDefault<Range,Collection<Range>>(field, Collections.<Range>emptyList())\r
                 );\r
     }\r
 \r