Emphasize "should" a la rfc2119

This commit is contained in:
Gary Gregory 2024-07-10 08:33:06 -04:00
parent c5037c97bd
commit f84c8d6ea1

View File

@ -23,7 +23,7 @@ import java.util.function.Function;
* object into another.
* <p>
* A {@code Transformer} converts the input object to the output object.
* The input object should be left unchanged.
* The input object SHOULD be left unchanged.
* Transformers are typically used for type conversions, or extracting data
* from an object.
* </p>
@ -49,7 +49,10 @@ public interface Transformer<T, R> extends Function<T, R> {
}
/**
* Transforms the input object (leaving it unchanged) into some output object.
* Transforms the input object into some output object.
* <p>
* The input object SHOULD be left unchanged.
* </p>
*
* @param input the object to be transformed, should be left unchanged
* @return a transformed object