Removed some warnings, redisabled BufferedOutputStream closing.
This commit is contained in:
parent
4961c27cf0
commit
411e1adbfc
4 changed files with 8 additions and 20 deletions
|
|
@ -64,7 +64,7 @@ class JsonTimerTask extends TimerTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jsonMsgs != null) {
|
if (jsonMsgs != null) {
|
||||||
Iterator iter = jsonMsgs.iterator();
|
Iterator<?> iter = jsonMsgs.iterator();
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
JSONObject o = (JSONObject) iter.next();
|
JSONObject o = (JSONObject) iter.next();
|
||||||
if (Long.parseLong(String.valueOf(o.get("timestamp"))) >= (lastTimestamp)) {
|
if (Long.parseLong(String.valueOf(o.get("timestamp"))) >= (lastTimestamp)) {
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ public class KzedMap extends MapType {
|
||||||
KzedMapTile t = (KzedMapTile) tile;
|
KzedMapTile t = (KzedMapTile) tile;
|
||||||
|
|
||||||
int ix = KzedMap.anchorx + t.px / 2 + t.py / 2;
|
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 iz = KzedMap.anchorz + t.px / 2 - t.py / 2;
|
||||||
|
|
||||||
int x1 = ix - KzedMap.tileHeight / 2;
|
int x1 = ix - KzedMap.tileHeight / 2;
|
||||||
|
|
|
||||||
|
|
@ -33,14 +33,8 @@ public class ClientConfigurationHandler implements HttpHandler {
|
||||||
response.status = HttpStatus.OK;
|
response.status = HttpStatus.OK;
|
||||||
|
|
||||||
BufferedOutputStream out = null;
|
BufferedOutputStream out = null;
|
||||||
try {
|
out = new BufferedOutputStream(response.getBody());
|
||||||
out = new BufferedOutputStream(response.getBody());
|
out.write(cachedConfiguration);
|
||||||
out.write(cachedConfiguration);
|
out.flush();
|
||||||
out.flush();
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
out.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -88,14 +88,8 @@ public class ClientUpdateHandler implements HttpHandler {
|
||||||
response.status = HttpStatus.OK;
|
response.status = HttpStatus.OK;
|
||||||
|
|
||||||
BufferedOutputStream out = null;
|
BufferedOutputStream out = null;
|
||||||
try {
|
out = new BufferedOutputStream(response.getBody());
|
||||||
out = new BufferedOutputStream(response.getBody());
|
out.write(bytes);
|
||||||
out.write(bytes);
|
out.flush();
|
||||||
out.flush();
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
out.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue