mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 06:42:45 +00:00
minor improvements on java client based on intellji ide (#13864)
This commit is contained in:
@@ -65,7 +65,7 @@ if(hasProperty('target') && target == 'android') {
|
||||
task.from variant.javaCompile.destinationDir
|
||||
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
|
||||
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
|
||||
artifacts.add('archives', task);
|
||||
artifacts.add('archives', task)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -687,7 +687,7 @@ public class ApiClient {
|
||||
if (b.length() > 0) {
|
||||
b.append(",");
|
||||
}
|
||||
b.append(String.valueOf(o));
|
||||
b.append(o);
|
||||
}
|
||||
return b.toString();
|
||||
} else {
|
||||
@@ -1529,7 +1529,7 @@ public class ApiClient {
|
||||
KeyStore caKeyStore = newEmptyKeyStore(password);
|
||||
int index = 0;
|
||||
for (Certificate certificate : certificates) {
|
||||
String certificateAlias = "ca" + Integer.toString(index++);
|
||||
String certificateAlias = "ca" + (index++);
|
||||
caKeyStore.setCertificateEntry(certificateAlias, certificate);
|
||||
}
|
||||
trustManagerFactory.init(caKeyStore);
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ServerConfiguration {
|
||||
throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + ".");
|
||||
}
|
||||
}
|
||||
url = url.replaceAll("\\{" + name + "\\}", value);
|
||||
url = url.replace("{" + name + "}", value);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user