Simplified code

This commit is contained in:
JKetelaar
2014-07-21 16:25:20 +02:00
parent b2b2cb5ce4
commit c71904fb86
@@ -44,8 +44,7 @@ public class SDNScripts extends ScriptParser {
String line; String line;
while ((line = br.readLine()) != null) { while ((line = br.readLine()) != null) {
Object obj = parser.parse(line); JSONObject jsonObject = (JSONObject) parser.parse(line);
JSONObject jsonObject = (JSONObject) obj;
String jarName = String.valueOf(jsonObject.get("jarname")); String jarName = String.valueOf(jsonObject.get("jarname"));
int sdnId = Integer.parseInt(String.valueOf(jsonObject.get("scriptid"))); int sdnId = Integer.parseInt(String.valueOf(jsonObject.get("scriptid")));
String scriptName = String.valueOf(jsonObject.get("scriptname")); String scriptName = String.valueOf(jsonObject.get("scriptname"));