Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlietz committed Aug 23, 2023
1 parent b111c4d commit 21198d2
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,14 @@
*/
public class AsyncRawBuilder extends RawBuilder {

private final Logger logger = LoggerFactory.getLogger(RawBuilder.class);
private final Logger logger = LoggerFactory.getLogger(AsyncRawBuilder.class);

public InputStream build(final Map<String, URL> resources, final Map<String, String> headers) {
logger.debug("make()");
logger.debug("building...");
try {
final PipedInputStream pin = new PipedInputStream();
final PipedOutputStream pout = new PipedOutputStream(pin);
new Thread() {
public void run() {
buildFrom(resources, headers, pout);
}
}.start();
new Thread(() -> buildFrom(resources, headers, pout)).start();
return pin;
} catch (IOException e) {
throw new RuntimeException("Error opening pipe.", e);
Expand Down

0 comments on commit 21198d2

Please sign in to comment.