Skip to content

Commit 9bc3893

Browse files
authored
Fixed bug 10889
Fixed bug #10889 Variable 'auth' might not have been initialized
1 parent bdec255 commit 9bc3893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/Java/libraries/feign/ApiClient.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class ApiClient {
5353
this();
5454
for(String authName : authNames) {
5555
{{#hasAuthMethods}}
56-
RequestInterceptor auth;
56+
RequestInterceptor auth = null;
5757
{{#authMethods}}if ("{{name}}".equals(authName)) {
5858
{{#isBasic}}
5959
auth = new HttpBasicAuth();

0 commit comments

Comments
 (0)