You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider guava and fastutil collections and maps as safe so they can
be treated as regular collections and maps and use in expression
and captured as well
Copy file name to clipboardExpand all lines: dd-java-agent/agent-debugger/debugger-bootstrap/src/main/java/datadog/trace/bootstrap/debugger/util/WellKnownClasses.java
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -215,6 +215,14 @@ public static boolean isSafe(Collection<?> collection) {
215
215
// All Collection implementations from Google ProtoBuf are considered as safe
216
216
returntrue;
217
217
}
218
+
if (className.startsWith("com.google.common.collect.")) {
219
+
// All Collection implementations from Google Guava are considered as safe
220
+
returntrue;
221
+
}
222
+
if (className.startsWith("it.unimi.dsi.fastutil.")) {
223
+
// All Collection implementations from fastutil are considered as safe
0 commit comments