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 28ae745 commit ffcd50eCopy full SHA for ffcd50e
src/main/kotlin/org/springdoc/openapi/gradle/plugin/OpenApiGeneratorTask.kt
@@ -69,8 +69,7 @@ open class OpenApiGeneratorTask : DefaultTask() {
69
waitTimeInSeconds.get().toLong(),
70
SECONDS
71
) until {
72
- val url = URL(url)
73
- val connection: HttpURLConnection = url.openConnection() as HttpURLConnection
+ val connection: HttpURLConnection = URL(url).openConnection() as HttpURLConnection
74
connection.requestMethod = "GET"
75
connection.connect()
76
val statusCode = connection.responseCode
0 commit comments