fix string comparison in scala sttp client (#13235)

This commit is contained in:
William Cheng 2022-08-20 14:58:32 +08:00 committed by GitHub
parent 640010ad38
commit 344d6b19b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ public class ScalaSttpClientCodegen extends AbstractScalaCodegen implements Code
String jsonLibrary = JSON_LIBRARY_PROPERTY.getValue(additionalProperties);
String jsonValueClass = jsonLibrary == "circe" ? "io.circe.Json" : "org.json4s.JValue";
String jsonValueClass = "circe".equals(jsonLibrary) ? "io.circe.Json" : "org.json4s.JValue";
additionalProperties.put(CodegenConstants.GROUP_ID, groupId);
additionalProperties.put(CodegenConstants.ARTIFACT_ID, artifactId);