summaryrefslogtreecommitdiffstats
path: root/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo
diff options
context:
space:
mode:
authorIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-11-30 17:03:13 +0100
committerIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-11-30 17:03:13 +0100
commite1d0bc427ee3ff535a8eb72f761155e6ecaea775 (patch)
treeb59c6f628c4cbb219b295d01429965a34895331e /abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo
parentfa30c3ee5f8d3191b9fdd9b06fb3314e101337f3 (diff)
Disable coverage on a few more methods.
Diffstat (limited to 'abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo')
-rw-r--r--abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java6
1 files changed, 6 insertions, 0 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 67f5715da24..9187b1e45ac 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
@@ -50,6 +50,8 @@ public class AbiCheck extends AbstractMojo {
@Parameter
private String specFileName = DEFAULT_SPEC_FILE;
+ // CLOVER:OFF
+ // Testing that Gson can read JSON files is not very useful
private static Map<String, JavaClassSignature> readSpec(String fileName) throws IOException {
try (FileReader reader = new FileReader(fileName)) {
TypeToken<Map<String, JavaClassSignature>> typeToken =
@@ -59,7 +61,10 @@ public class AbiCheck extends AbstractMojo {
return gson.fromJson(reader, typeToken.getType());
}
}
+ // CLOVER:ON
+ // CLOVER:OFF
+ // Testing that Gson can write JSON files is not very useful
private static void writeSpec(Map<String, JavaClassSignature> signatures, String fileName)
throws IOException {
Gson gson = new GsonBuilder().setPrettyPrinting().create();
@@ -67,6 +72,7 @@ public class AbiCheck extends AbstractMojo {
gson.toJson(signatures, writer);
}
}
+ // CLOVER:ON
private static boolean matchingClasses(String className, JavaClassSignature expected,
JavaClassSignature actual, Log log) {