Skip to content

Commit 80716c3

Browse files
author
Zhen
committed
Move map up for Clojure map which is both a map and iterable.
In java, all maps are not iterable as it is undefined what to iterate so it is safe to assume nothing will be changed after this change.
1 parent 9c22889 commit 80716c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/src/main/java/org/neo4j/driver/v1/Values.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public static Value value( Object value )
8080
if ( value instanceof Float ) { return value( (float) value ); }
8181

8282
if ( value instanceof List<?> ) { return value( (List<Object>) value ); }
83-
if ( value instanceof Iterable<?> ) { return value( (Iterable<Object>) value ); }
8483
if ( value instanceof Map<?, ?> ) { return value( (Map<String,Object>) value ); }
84+
if ( value instanceof Iterable<?> ) { return value( (Iterable<Object>) value ); }
8585
if ( value instanceof Iterator<?> ) { return value( (Iterator<Object>) value ); }
8686

8787
if ( value instanceof boolean[] ) { return value( (boolean[]) value ); }

0 commit comments

Comments
 (0)