Skip to content

[MSHARED-1079] Improve Javadoc of MessageBuilder, add #build() and deprecate #toString() #328

Closed

Description

@jira-importer

Konrad Windszus opened MSHARED-1079 and commented

It is not clear from the javadoc of MessageBuilder (https://maven.apache.org/shared/maven-shared-utils/apidocs/org/apache/maven/shared/utils/logging/MessageBuilder.html) that the toString() method is supposed to be called at the end to get the content's of the builder.
Please add JavaDoc for the toString method and in the best case add an explicit build method, which just calls toString internally.

Also it needs to be clarified if the MessageBuilder can be reused after toString has been called.


Affects: maven-shared-utils-3.3.4

Issue Links:

  • MSHARED-562 add an API to create messages with consistent and configurable colors

Remote Links:

Backported to: maven-shared-utils-3.4.0

Activity

  1. jira-importer commented on Jun 8, 2022

    @jira-importer
    Author

    Michael Osipov commented

    I agree that a build() method would be the best option.

  2. jira-importer commented on Jul 25, 2022

    @jira-importer
    Author
  3. added
    enhancement
    priority:major
    on Jul 3, 2025
  4. removed
    priority:major
    on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions