Skip to content

Commit 5012464

Browse files
committed
Fix type cast detection
1 parent 109597a commit 5012464

File tree

1 file changed

+3
-0
lines changed
  • core/esmf-aspect-meta-model-interface/src/main/java/org/eclipse/esmf/metamodel

1 file changed

+3
-0
lines changed

core/esmf-aspect-meta-model-interface/src/main/java/org/eclipse/esmf/metamodel/Scalar.java

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ default boolean isScalar() {
3232
}
3333

3434
private boolean transitivelyCastable( final String from, final String to ) {
35+
if ( from.equals( to ) ) {
36+
return true;
37+
}
3538
final Map<String, String> castable = ImmutableMap.<String, String> builder()
3639
.put( XSD.xbyte.getURI(), XSD.xshort.getURI() )
3740
.put( XSD.xshort.getURI(), XSD.xint.getURI() )

0 commit comments

Comments
 (0)