import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
+import java.util.Objects;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
@SuppressWarnings("unchecked")
private void parse(String jsonString) throws ParseException
{
+ Objects.requireNonNull(jsonString,
+ "Supplied jsonString must not be null");
JSONParser jsonParser = new JSONParser();
JSONObject JsonObj = (JSONObject) jsonParser.parse(jsonString);
this.description = (String) JsonObj.get("description");