]> source.dussan.org Git - sonarqube.git/commit
SONAR-2379 Fix ClassCastException in DependencyUnmarshaller
authorEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 20 Apr 2011 17:12:40 +0000 (21:12 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 20 Apr 2011 20:39:27 +0000 (00:39 +0400)
commitfdf6f4dcc2a4ee620dde9cdb5e2909ec4bd8c7f9
tree66e60139be70a9d5903ae44b8806664e87769158
parent07b20316ee247a1694eb9191f985cb2de2d08b49
SONAR-2379 Fix ClassCastException in DependencyUnmarshaller

GwtUtils.getString returns string representation of a numeric field,
so this is a contract in WSUtils.getString and JdkUtils.getString
must not cast Object to String.
sonar-ws-client/src/main/java/org/sonar/wsclient/services/WSUtils.java
sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/JsonUtils.java
sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/DependencyUnmarshallerTest.java
sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/JsonUtilsTest.java
sonar-ws-client/src/test/resources/dependencies/many.json
sonar-ws-client/src/test/resources/dependencies/single.json