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

@ -64,7 +64,7 @@ class JsonTimerTask extends TimerTask {
}
if (jsonMsgs != null) {
Iterator iter = jsonMsgs.iterator();
Iterator<?> iter = jsonMsgs.iterator();
while (iter.hasNext()) {
JSONObject o = (JSONObject) iter.next();
if (Long.parseLong(String.valueOf(o.get("timestamp"))) >= (lastTimestamp)) {

View File

@ -144,7 +144,7 @@ public class KzedMap extends MapType {
KzedMapTile t = (KzedMapTile) tile;
int ix = KzedMap.anchorx + t.px / 2 + t.py / 2;
int iy = 127;
//int iy = 127;
int iz = KzedMap.anchorz + t.px / 2 - t.py / 2;
int x1 = ix - KzedMap.tileHeight / 2;

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();
}
}
}

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();
}
}
}