chibenwa commented on code in PR #2695: URL: https://github.com/apache/james-project/pull/2695#discussion_r2022962800
########## mailet/api/src/main/java/org/apache/mailet/Mailet.java: ########## @@ -127,14 +129,19 @@ public interface Mailet { /** * Returns information about the mailet, such as author, version and * copyright. + * <p> + * By default, this method returns an empty string. Override this method + * to have it return a meaningful value. * * @return the Mailet information (as a plain text string) */ - String getMailetInfo(); + default String getMailetInfo() { + return ""; Review Comment: Maybe we could default to getClass().getSimpleName()? (ok that is a behavioural change... So maybe in another PR, but providing sane defaults for this would look good to me. One less thing to care about) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org