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
tree: 33db7535d6dfac688390024fa66c25e2403a376c
  1. gr-checks/
  2. java/
  3. javatests/
  4. proto/
  5. resources/
  6. BUILD
  7. LICENSE
  8. README.md
README.md

Gerrit Code Review Checks Plugin

This plugin provides a unified experience for checkers (CI systems, static analyzers, etc.) to integrate with Gerrit Code Review.