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() {