Removed some warnings, redisabled BufferedOutputStream closing.

This commit is contained in:
FrozenCow 2011-03-15 21:04:53 +01:00
parent 8105a1d2a5
commit 6c6d29a402
4 changed files with 8 additions and 20 deletions

View file

@ -33,14 +33,8 @@ public class ClientConfigurationHandler implements HttpHandler {
response.status = HttpStatus.OK;
BufferedOutputStream out = null;
try {
out = new BufferedOutputStream(response.getBody());
out.write(cachedConfiguration);
out.flush();
}
finally
{
out.close();
}
out = new BufferedOutputStream(response.getBody());
out.write(cachedConfiguration);
out.flush();
}
}

View file

@ -88,14 +88,8 @@ public class ClientUpdateHandler implements HttpHandler {
response.status = HttpStatus.OK;
BufferedOutputStream out = null;
try {
out = new BufferedOutputStream(response.getBody());
out.write(bytes);
out.flush();
}
finally
{
out.close();
}
out = new BufferedOutputStream(response.getBody());
out.write(bytes);
out.flush();
}
}