I like "with" for methods that return a new instance and "set" for those
that do not.

Since most if not all of our builders don't create new instances on setter
calls I would go with "set".

2c,
Gary

Gary

On May 22, 2017 8:36 AM, "Mikael Ståldal" <[email protected]> wrote:

> What is the preferred naming convention for plugin builder setter methods?
> It is setXXX or withXXX? I see both being used in the code base.
>
> I wonder which to use for the upcoming HttpAppender (LOG4J2-1442).
>
>
>

Reply via email to