]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.objmap2/src/org/simantics/objmap/graph/annotations/factories/OptionalRelatedElementsRuleFactory.java
Fixed/ignored unnecessary warnings.
[simantics/3d.git] / org.simantics.objmap2 / src / org / simantics / objmap / graph / annotations / factories / OptionalRelatedElementsRuleFactory.java
index 6900fda6dc11db5eba8fea50fba9ad1ea318fa8b..84b1134ac01f9cec9cbdd7c65a16c47bcecb05ac 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<Resource, Range>(\r
                 new RelatedObjectsAccessor(g.getResource(annotation.value()),\r
                         annotation.composition()),\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