From a7c63b92614e31baf19e011fb91b519e9aa1ebcd Mon Sep 17 00:00:00 2001 From: Andrew Kent Date: Tue, 14 Aug 2018 12:58:13 -0700 Subject: [PATCH] Clarify comment for safe interface iteration. --- .../datadog/trace/agent/tooling/ByteBuddyElementMatchers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/ByteBuddyElementMatchers.java b/dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/ByteBuddyElementMatchers.java index c42494ba61..bbcbcc5508 100644 --- a/dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/ByteBuddyElementMatchers.java +++ b/dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/ByteBuddyElementMatchers.java @@ -129,8 +129,8 @@ public class ByteBuddyElementMatchers { } /** - * TypeDefinition#getInterfaces() may throw an exception during iteration if an interface is - * absent from the classpath. + * TypeDefinition#getInterfaces() produces an interator which may throw an exception during + * iteration if an interface is absent from the classpath. * *

This method exists to allow getting interfaces even if the lookup on one fails. */