Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 231453631
  • Loading branch information
Googler authored and weixiao-huang committed Jan 31, 2019
1 parent cc76862 commit b129197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ final class ByteStreamServer extends ByteStreamImplBase {
private final Path workPath;
private final DigestUtil digestUtil;

static @Nullable Digest parseDigestFromResourceName(String resourceName) {
@Nullable
static Digest parseDigestFromResourceName(String resourceName) {
try {
String[] tokens = resourceName.split("/");
if (tokens.length < 2) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static FileSystem getFileSystem() {
value = System.getProperty("bazel.DigestFunction", "SHA256");
hashFunction = new DigestFunctionConverter().convert(value);
} catch (OptionsParsingException e) {
throw new Error("The specified hash function '" + value + "' is not supported.");
throw new Error("The specified hash function '" + value + "' is not supported.", e);
}
return new JavaIoFileSystem(hashFunction);
}
Expand Down Expand Up @@ -277,7 +277,8 @@ public static void main(String[] args) throws Exception {

final Server server = worker.startServer();

EventLoopGroup bossGroup = null, workerGroup = null;
EventLoopGroup bossGroup = null;
EventLoopGroup workerGroup = null;
Channel ch = null;
if (remoteWorkerOptions.httpListenPort != 0) {
// Configure the server.
Expand Down

0 comments on commit b129197

Please sign in to comment.