summaryrefslogtreecommitdiffstats
path: root/abi-check-plugin
diff options
context:
space:
mode:
authorIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-12-18 10:37:51 +0100
committerIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-12-18 17:42:09 +0100
commit20dd84fcab377efb131be33c30903d357fac9abe (patch)
treebf7ec75136257c2f6b1cacf431850c0b9eeddaaa /abi-check-plugin
parentff33b319cac87159ae31b005228ea40d5bb718d5 (diff)
Disable HTML escaping in generated JSON.
Diffstat (limited to 'abi-check-plugin')
-rw-r--r--abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java b/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java
index 3ae1102014d..ca3966c3db2 100644
--- a/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java
+++ b/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java
@@ -68,7 +68,7 @@ public class AbiCheck extends AbstractMojo {
// Testing that Gson can write JSON files is not very useful
private static void writeSpec(Map<String, JavaClassSignature> signatures, File file)
throws IOException {
- Gson gson = new GsonBuilder().setPrettyPrinting().create();
+ Gson gson = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create();
try (FileWriter writer = new FileWriter(file)) {
gson.toJson(signatures, writer);
}