CheckOperationsImpl: Fix DefaultCharset warning
When all error prone warnings are enabled the DefaultCharset bug
pattern is reported:
CheckOperationsImpl.java:103: error: [DefaultCharset] Implicit use of \
the platform default charset, which can result in differing behaviour \
between JVM executions or incorrect behavior if the encoding of the \
data source doesn't match expectations.
note.copy(), new String(notes.getCachedBytes(note.toObjectId(), Integer.MAX_VALUE)));
^
(see https://errorprone.info/bugpattern/DefaultCharset)
Change-Id: I64571d9d4ca2447f4c2b2e92be7ab3eb43df9c51
1 file changed