While going over the code in JsonRPCRequest.java, i found this bit, now it might be my Java reading abilities failing me, but I'm under the distinct impression that all this code does is add an empty "prefs" json object to the response, and the actual userperfs (which are put in up) are never used or included .... meaning their not in the json response at all.

Should i duplicate this behavior (because their being excluded is intentional), is it a bug, or am i missing something obvious?

JsonRPCRequest.java line 84:

        JSONObject prefs = new JSONObject();

        // User pref specs
        for (GadgetSpec.UserPref pref : outGadget.getUserPrefs()) {
          JSONObject up = new JSONObject()
              .put("displayName", pref.getDisplayName())
              .put("type", pref.getDataType().toString().toLowerCase())
              .put("default", pref.getDefaultValue())
              .put("enumValues", pref.getEnumValues());
        }
        gadgetJson.put("userPrefs", prefs);

Reply via email to