Skip to content

Commit a1c3326

Browse files
committed
corrected trial
1 parent 5d1a72e commit a1c3326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/advisor/client/Trial.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public Trial(JSONObject jsonObject) throws JSONException, ParseException {
4444
Object objParams=jsonObject.get("parameter_values");
4545
this.parameterValues=objParams.equals(JSONObject.NULL)?null:new JSONObject( jsonObject.getString("parameter_values"));
4646
Object objValue=jsonObject.get("objective_value");
47-
this.objectiveValue=objValue.equals(JSONObject.NULL)?null:(Double)objValue;
47+
this.objectiveValue=objValue.equals(JSONObject.NULL)?null:Double.parseDouble(objValue.toString());
4848
this.status=jsonObject.getString("status");
4949
this.createdTime= Trial.dtf.parse(jsonObject.getString("created_time"));
5050
this.updatedTime= Trial.dtf.parse(jsonObject.getString("updated_time"));

0 commit comments

Comments
 (0)