From 9f4f2fde478172aa3c7bfc1f64cf72ff889f4b26 Mon Sep 17 00:00:00 2001 From: Alan Morgan Date: Sun, 2 Jan 2022 02:23:39 -0700 Subject: [PATCH] [GH-11032] Bug - Allow query parameters than contain spaces for Java client. (#11160) The java client doesn't allow query parameters that have a value of just "%20" or "%0A". Those can now be values with this commit. --- .../openapi-generator/src/main/resources/Java/Pair.mustache | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/Pair.mustache b/modules/openapi-generator/src/main/resources/Java/Pair.mustache index ff9e06b20d46..ed767ce72675 100644 --- a/modules/openapi-generator/src/main/resources/Java/Pair.mustache +++ b/modules/openapi-generator/src/main/resources/Java/Pair.mustache @@ -41,10 +41,6 @@ public class Pair { return false; } - if (arg.trim().isEmpty()) { - return false; - } - return true; } }