Improved Bindings.getBinding(Class) caching for Datatype.class
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / request / PropertyInfo.java
index aafcef3b2a65905e15c11111f326000650d5475e..f3753ce80bfc3949c84914c234c14f76520c29e4 100644 (file)
@@ -51,7 +51,7 @@ public class PropertyInfo {
                if(literalRange != null) {
                        Collection<Resource> dts = graph.getAssertedObjects(literalRange, L0.HasDataType);
                        if(dts.size() == 1) {
-                               Datatype dt = graph.getPossibleValue(dts.iterator().next(), Bindings.getBindingUnchecked(Datatype.class));
+                               Datatype dt = graph.getPossibleValue(dts.iterator().next(), Bindings.DATATYPE);
                                if(requiredDatatype == null) requiredDatatype = dt;
                        }
                }