From e2ddf8132d99fe926ce28e8a1dab8180613274d9 Mon Sep 17 00:00:00 2001 From: bbilger Date: Thu, 16 Nov 2017 23:59:38 +0100 Subject: [PATCH] fix sonar complaints; #20 --- .../openwhisk/webaction/io/WebActionRequestBodyAdapter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openwhisk/webaction/jrestless-openwhisk-webaction-handler/src/main/java/com/jrestless/openwhisk/webaction/io/WebActionRequestBodyAdapter.java b/openwhisk/webaction/jrestless-openwhisk-webaction-handler/src/main/java/com/jrestless/openwhisk/webaction/io/WebActionRequestBodyAdapter.java index 335b3db..6dad6d4 100644 --- a/openwhisk/webaction/jrestless-openwhisk-webaction-handler/src/main/java/com/jrestless/openwhisk/webaction/io/WebActionRequestBodyAdapter.java +++ b/openwhisk/webaction/jrestless-openwhisk-webaction-handler/src/main/java/com/jrestless/openwhisk/webaction/io/WebActionRequestBodyAdapter.java @@ -20,7 +20,6 @@ import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; -import com.google.gson.JsonParseException; import com.google.gson.JsonPrimitive; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; @@ -41,8 +40,7 @@ class WebActionRequestBodyAdapter implements JsonDeserializer, JsonSerializer { @Override - public String deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) - throws JsonParseException { + public String deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { if (json.isJsonNull()) { return null; } else if (json.isJsonPrimitive()) {