jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] 08/13: Don't declare to throw IllegalArgumentException explicitly
Date Sat, 10 Oct 2020 11:29:09 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit a026f218e449d433670afe8b628021829bbb3a68
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Thu Oct 8 18:45:18 2020 +0200

    Don't declare to throw IllegalArgumentException explicitly
---
 .../apache/jmeter/protocol/http/util/GraphQLRequestParamUtils.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/util/GraphQLRequestParamUtils.java
b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/util/GraphQLRequestParamUtils.java
index be9560c..1c4ec8a 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/util/GraphQLRequestParamUtils.java
+++ b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/util/GraphQLRequestParamUtils.java
@@ -141,7 +141,7 @@ public final class GraphQLRequestParamUtils {
      * @throws UnsupportedEncodingException if it fails to decode parameter value
      */
     public static GraphQLRequestParams toGraphQLRequestParams(byte[] postData, final String
contentEncoding)
-            throws IllegalArgumentException, JsonProcessingException, UnsupportedEncodingException
{
+            throws JsonProcessingException, UnsupportedEncodingException {
         final String encoding = StringUtils.isNotEmpty(contentEncoding) ? contentEncoding
                 : EncoderCache.URL_ARGUMENT_ENCODING;
 
@@ -197,7 +197,7 @@ public final class GraphQLRequestParamUtils {
      * @throws UnsupportedEncodingException if it fails to decode parameter value
      */
     public static GraphQLRequestParams toGraphQLRequestParams(final Arguments arguments,
final String contentEncoding)
-            throws IllegalArgumentException, UnsupportedEncodingException {
+            throws UnsupportedEncodingException {
         final String encoding = StringUtils.isNotEmpty(contentEncoding) ? contentEncoding
                 : EncoderCache.URL_ARGUMENT_ENCODING;
 
@@ -242,7 +242,7 @@ public final class GraphQLRequestParamUtils {
         return new GraphQLRequestParams(operationName, query, variables);
     }
 
-    private static String getJsonNodeTextContent(final JsonNode jsonNode, final boolean nullable)
throws IllegalArgumentException {
+    private static String getJsonNodeTextContent(final JsonNode jsonNode, final boolean nullable)
{
         final JsonNodeType nodeType = jsonNode.getNodeType();
 
         if (nodeType == JsonNodeType.NULL) {


Mime
View raw message