Skip to content

Commit

Permalink
Fixes #613
Browse files Browse the repository at this point in the history
  • Loading branch information
skarpenko authored and kptfh committed Nov 14, 2023
1 parent d890bd6 commit 18a4c67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,12 @@ private String queryLine(Map<String, Collection<String>> queries) {
Collection<String> valuesEncoded = query.getValue().stream()
.map(value -> UriUtils.encode(value, UTF_8))
.collect(toList());
queryBuilder.append('&');
queryBuilder.append(collectionFormat.join(query.getKey(), valuesEncoded, UTF_8));

CharSequence queryString = collectionFormat.join(query.getKey(), valuesEncoded, UTF_8);
if(queryString.length() > 0){
queryBuilder.append('&');
queryBuilder.append(queryString);
}
}
if(queryBuilder.length() > 0) {
queryBuilder.deleteCharAt(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void shouldPassEmptyParameterInUrl() {

@Test
public void shouldNotReturnNullPassedParametersNew() {
Map<String, String> paramMap = new HashMap<String, String>() {
Map<String, String> paramMap = new HashMap<>() {
{
put("paramKey", "paramValue");
put("paramKeyNull", null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ReactiveFeignNamedContextFactory reactiveFeignContext() {

@Configuration
@ConditionalOnClass(WebReactiveFeign.class)
public class WebClientReactiveFeignClientPropertiesAutoConfiguration {
public static class WebClientReactiveFeignClientPropertiesAutoConfiguration {

@Bean
@ConditionalOnMissingBean
Expand All @@ -54,7 +54,7 @@ public ReactiveFeignClientsProperties<WebReactiveOptions.Builder> webClientReact

@Configuration
@ConditionalOnClass(Java11ReactiveFeign.class)
public class Java11ReactiveFeignClientPropertiesAutoConfiguration {
public static class Java11ReactiveFeignClientPropertiesAutoConfiguration {

@Bean
@ConditionalOnMissingBean
Expand All @@ -67,7 +67,7 @@ public ReactiveFeignClientsProperties<Java11ReactiveOptions.Builder> java11React

@Configuration
@ConditionalOnClass(JettyReactiveFeign.class)
public class JettyReactiveFeignClientPropertiesAutoConfiguration {
public static class JettyReactiveFeignClientPropertiesAutoConfiguration {

@Bean
@ConditionalOnMissingBean
Expand Down

0 comments on commit 18a4c67

Please sign in to comment.