Skip to content

Commit

Permalink
fix: isCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
danglotb committed Nov 26, 2019
1 parent 9c2f6cc commit c880782
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static boolean isNonEmptyPrimitiveCollectionOrMap(Object collectionOrMap)
}

public static boolean isCollection(Object object) {
return Collection.class.isInstance(object);
return Collection.class.isInstance(object) && object.getClass().getName().startsWith("java.util");
}

public static boolean isNonEmptyPrimitiveCollection(Object object) {
Expand Down
Binary file modified dspot/src/main/resources/compare/objectlog/ObjectLogUtils.class
Binary file not shown.

0 comments on commit c880782

Please sign in to comment.