mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-05 03:56:12 +00:00
Use 'this' to assign to class field. (#10417)
This commit is contained in:
@@ -442,7 +442,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
* @return API client
|
||||
*/
|
||||
public ApiClient setUserAgent(String userAgent) {
|
||||
userAgent = userAgent;
|
||||
this.userAgent = userAgent;
|
||||
addDefaultHeader("User-Agent", userAgent);
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user