Skip to content

Commit

Permalink
Allow label message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ChAoSUnItY committed Jun 15, 2022
1 parent d7cb34f commit 8594e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/chaos/unity/nenggao/FileReportBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8594e2e

Please sign in to comment.