Specify charset to fix DefaultCharset error from error prone

When all error prone warnings are enabled the DefaultCharset
bug pattern is reported, for example:

  plugins/plugin-manager/src/main/java/com/googlesource/gerrit/plugins/manager/FirstWebLoginListener.java:56:
  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.
        Files.write(firstLoginFile, new Date().toString().getBytes(), StandardOpenOption.CREATE);
                                                                  ^
    (see https://errorprone.info/bugpattern/DefaultCharset)

Change-Id: I29e19b68c014da9afd491006d936f92219808978
4 files changed
tree: e15acfeccb6935bdedcaf7c9ff7404980306b641
  1. .gitignore
  2. BUCK
  3. BUILD
  4. LICENSE
  5. README.md
  6. src/
README.md

plugin-manager

Gerrit web-based plugin manager.

To enable this plugin, please look at the configuration guide