diff options
author | 2017-09-05 16:01:44 +0200 | |
---|---|---|
committer | 2017-09-06 10:09:53 +0200 | |
commit | 0d8d4cf53963a7b870596a8daac85f32a2d51d69 (patch) | |
tree | ed60453947924c466854cdc217f949d49cfefb88 /src/main/java/com/google/devtools/build/lib/buildeventstream/transports/JsonFormatFileTransport.java | |
parent | 3dd5683e84a2e37852d2aaf820116eead59abad5 (diff) |
Fix assorted ErrorProne warnings.
RELNOTES: None.
PiperOrigin-RevId: 167574104
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream/transports/JsonFormatFileTransport.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/buildeventstream/transports/JsonFormatFileTransport.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/transports/JsonFormatFileTransport.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/transports/JsonFormatFileTransport.java index e090f55800..eca7d37c7b 100644 --- a/src/main/java/com/google/devtools/build/lib/buildeventstream/transports/JsonFormatFileTransport.java +++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/transports/JsonFormatFileTransport.java @@ -22,6 +22,7 @@ import com.google.devtools.build.lib.buildeventstream.PathConverter; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.util.JsonFormat; import java.io.IOException; +import java.nio.charset.StandardCharsets; /** * A simple {@link BuildEventTransport} that writes the JSON representation of the protocol-buffer @@ -68,6 +69,6 @@ public final class JsonFormatFileTransport extends FileTransport { protoJsonRepresentation = "{\"id\" : \"unknown\", \"exception\" : \"InvalidProtocolBufferException\"}\n"; } - writeData(protoJsonRepresentation.getBytes()); + writeData(protoJsonRepresentation.getBytes(StandardCharsets.UTF_8)); } } |