Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.6
-
Component/s: API, Web Services
-
Labels:None
Description
It's a shame to have duplicated code between sonar-ws-client and sonar-gwt-api : problem is that we can't use same classes to parse JSON, but actually code is the same. In order to remove this duplication we can reuse the same principle as for WSUtils. Disadvantage - type safety, but I think that this is not a big problem, since we have unit tests for unmarshallers. In fact it would be better to use emulation of types from org.json.simple for GWT, but this solution is more straightforward.
Done in https://github.com/SonarSource/sonar/commit/815899837ca07904fe9dc9223b4a4e8ac486cb59