@Override protected String _call() { BlobStore blobStore = context.blobStore(); Optional<InputStream> blobAsStream = blobStore.getBlobAsStream(MergeOp.MERGE_MSG); if (!blobAsStream.isPresent()) { return ""; } try (InputStream in = blobAsStream.get()) { List<String> lines = CharStreams.readLines(new InputStreamReader(in, Charsets.UTF_8)); return Joiner.on("\n").join(lines); } catch (IOException e) { throw new RuntimeException(e); } }
@Override protected String _call() { BlobStore blobStore = context.blobStore(); Optional<InputStream> blobAsStream = blobStore.getBlobAsStream(MergeOp.MERGE_MSG); if (!blobAsStream.isPresent()) { return ""; } try (InputStream in = blobAsStream.get()) { List<String> lines = CharStreams.readLines(new InputStreamReader(in, Charsets.UTF_8)); return Joiner.on("\n").join(lines); } catch (IOException e) { throw Throwables.propagate(e); } }