On 04/06/2020 17:55, Paul Sandoz wrote:
:
FWIW I keep tripping over the prefix “ensures”.  As I understand the 
implementation initializes a class, if not already so (and it has to check as 
you point out below). Focusing on the main action seems appropriate in this 
regard. I expect John has more context on the naming.

One thing to mention is that some of the java.util classes have ensureCapacity methods, also have an EnsureXXX methods in JNI to ensure capacity. I've used ensureXXX in a few places to ensure that something is done before going further. Is it that this ensure method returns the Class rather than void?

-Alan.

Reply via email to