From 8594e2e43a7bf3bb44264e3a136a9a825ecd5976 Mon Sep 17 00:00:00 2001 From: Kyle Lin Date: Wed, 15 Jun 2022 14:18:26 +0800 Subject: [PATCH] Allow label message formatting --- src/main/java/chaos/unity/nenggao/FileReportBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/chaos/unity/nenggao/FileReportBuilder.java b/src/main/java/chaos/unity/nenggao/FileReportBuilder.java index 0552050..bb58513 100644 --- a/src/main/java/chaos/unity/nenggao/FileReportBuilder.java +++ b/src/main/java/chaos/unity/nenggao/FileReportBuilder.java @@ -396,8 +396,8 @@ private ReportBuilder(final @NotNull FileReportBuilder parentBuilder, @NotNull R return this; } - public @NotNull LabelBuilder label(@NotNull Span span, @NotNull String message) { - return new LabelBuilder(this, new Label(span, message)); + public @NotNull LabelBuilder label(@NotNull Span span, @NotNull String message, @Nullable Object... args) { + return new LabelBuilder(this, new Label(span, String.format(message, args))); } public @NotNull FileReportBuilder build() {