]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13155 upgrade gson from 2.8.5 to 2.8.6
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 17 Mar 2020 20:34:10 +0000 (21:34 +0100)
committersonartech <sonartech@sonarsource.com>
Sat, 21 Mar 2020 20:04:02 +0000 (20:04 +0000)
No major changes
https://github.com/google/gson/blob/master/CHANGELOG.md

build.gradle
server/sonar-webserver-webapi/src/test/java/org/sonar/server/component/ws/TreeActionTest.java

index 51f1961ceeb834517e012b23969073de668c6dca..c608205335d4a1b29c003f71e09bc2b8a75b2e48 100644 (file)
@@ -185,7 +185,7 @@ subprojects {
         exclude 'junit:junit'
       }
       dependency 'com.google.code.findbugs:jsr305:3.0.2'
-      dependency 'com.google.code.gson:gson:2.8.5'
+      dependency 'com.google.code.gson:gson:2.8.6'
       dependency('com.google.guava:guava:28.2-jre') {
         exclude 'com.google.errorprone:error_prone_annotations'
         exclude 'com.google.guava:listenablefuture'
index 3e121c0bd14959ee588556bc52d204bcc9d2ef96..321fd80c336567a10a7a5d53cfa852608440c7de 100644 (file)
@@ -541,7 +541,7 @@ public class TreeActionTest {
 
     Date now = new Date();
     JsonParser jsonParser = new JsonParser();
-    JsonElement jsonTree = jsonParser.parse(IOUtils.toString(getClass().getResource("tree-example.json"), UTF_8));
+    JsonElement jsonTree = jsonParser.parseString(IOUtils.toString(getClass().getResource("tree-example.json"), UTF_8));
     JsonArray components = jsonTree.getAsJsonObject().getAsJsonArray("components");
     for (int i = 0; i < components.size(); i++) {
       JsonElement componentAsJsonElement = components.get(i);