The current code is
public $Type$Buffer put(String src, int start, int end) {
checkScope();
int length = end - start;
Objects.checkFromIndexSize(start, length, src.length());
if (isReadOnly())
throw new ReadOnlyBufferException();
but should be using the #if[rw]-#else[rw]-#end[rw] construct as elsewhere in the template.
public $Type$Buffer put(String src, int start, int end) {
checkScope();
int length = end - start;
Objects.checkFromIndexSize(start, length, src.length());
if (isReadOnly())
throw new ReadOnlyBufferException();
but should be using the #if[rw]-#else[rw]-#end[rw] construct as elsewhere in the template.