We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffcd50e commit 9a7db22Copy full SHA for 9a7db22
src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGeneratorTask.kt
@@ -77,8 +77,7 @@ open class OpenApiGeneratorTask : DefaultTask() {
77
statusCode < MAX_HTTP_STATUS_CODE
78
}
79
logger.info("Generating OpenApi Docs..")
80
- val url = URL(url)
81
- val connection: HttpURLConnection = url.openConnection() as HttpURLConnection
+ val connection: HttpURLConnection = URL(url).openConnection() as HttpURLConnection
82
connection.requestMethod = "GET"
83
connection.connect()
84
0 commit comments