Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ public static boolean isSafe(Collection<?> collection) {
// All Collection implementations from Google ProtoBuf are considered as safe
return true;
}
if (className.startsWith("com.google.common.collect.")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe collect these packages in a list and iterate so we're not duplicating so much now that the list is growing. otherwise 👍🏻

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

// All Collection implementations from Google Guava are considered as safe
return true;
}
if (className.startsWith("it.unimi.dsi.fastutil.")) {
// All Collection implementations from fastutil are considered as safe
return true;
}
return false;
}

Expand All @@ -229,6 +237,14 @@ public static boolean isSafe(Map<?, ?> map) {
// All Map implementations from Google ProtoBuf are considered as safe
return true;
}
if (className.startsWith("com.google.common.collect.")) {
// All Map implementations from Google Guava are considered as safe
return true;
}
if (className.startsWith("it.unimi.dsi.fastutil.")) {
// All Map implementations from fastutil are considered as safe
return true;
}
return false;
}

Expand Down