From 4d4eb6ba6268f10037ea1e78cce492d92c760e5e Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Wed, 25 Sep 2024 18:59:32 +0200 Subject: [PATCH] Prepend actual class file. --- .../main/java/net/bytebuddy/build/Plugin.java | 76 +++++++++++++++++-- 1 file changed, 70 insertions(+), 6 deletions(-) diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java b/byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java index 0f4ca42b68..a8e796329c 100644 --- a/byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java +++ b/byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java @@ -28,6 +28,7 @@ import net.bytebuddy.pool.TypePool; import net.bytebuddy.utility.CompoundList; import net.bytebuddy.utility.FileSystem; +import net.bytebuddy.utility.StreamDrainer; import net.bytebuddy.utility.nullability.AlwaysNull; import net.bytebuddy.utility.nullability.MaybeNull; @@ -2959,7 +2960,7 @@ public static Source ofTypes(Collection> types) { /** * Represents a collection of types as an in-memory source. * - * @param types The types to represent. + * @param types The types to represent. * @param versionedTypes A versioned mapping of types to represent. * @return A source representing the supplied types. */ @@ -4884,16 +4885,20 @@ public Summary apply(Source source, Target target, List