From e60d4326898ec7ba478f2ffcf9a1317a4d0693f2 Mon Sep 17 00:00:00 2001 From: spring-builds Date: Fri, 23 May 2025 23:45:54 +0000 Subject: [PATCH] Bumping versions --- .../openfeign/support/SpringMvcContract.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/support/SpringMvcContract.java b/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/support/SpringMvcContract.java index 157cd9b1..1221d91f 100644 --- a/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/support/SpringMvcContract.java +++ b/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/support/SpringMvcContract.java @@ -241,12 +241,10 @@ public class SpringMvcContract extends Contract.BaseContract implements Resource if (isGetMethod(metadata) && method.getParameterCount() > 0 && !hasHttpAnnotations(method)) { if (LOG.isWarnEnabled()) { - LOG.warn(String.format( - "[OpenFeign Warning] Feign method '%s' is declared as GET with parameters, but none of the parameters are annotated " + - "(e.g. @RequestParam, @RequestHeader, @PathVariable, etc). This may result in fallback to POST at runtime. " + - "Consider explicitly annotating parameters.", - method.toGenericString() - )); + LOG.warn(String + .format("[OpenFeign Warning] Feign method '%s' is declared as GET with parameters, but none of the parameters are annotated " + + "(e.g. @RequestParam, @RequestHeader, @PathVariable, etc). This may result in fallback to POST at runtime. " + + "Consider explicitly annotating parameters.", method.toGenericString())); } } @@ -261,11 +259,9 @@ public class SpringMvcContract extends Contract.BaseContract implements Resource for (Parameter parameter : method.getParameters()) { for (Annotation annotation : parameter.getAnnotations()) { Class annotationType = annotation.annotationType(); - if (annotationType == RequestParam.class || - annotationType == RequestHeader.class || - annotationType == PathVariable.class || - annotationType == SpringQueryMap.class || - annotationType == QueryMap.class) { + if (annotationType == RequestParam.class || annotationType == RequestHeader.class + || annotationType == PathVariable.class || annotationType == SpringQueryMap.class + || annotationType == QueryMap.class) { return true; } }