Skip to content

Commit 2a8570f

Browse files
committed
clean up
1 parent 68c366a commit 2a8570f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • openapi-processor-core-parser-openapi4j/src/main/kotlin/io/openapiprocessor/core/parser/openapi4j
  • openapi-processor-core-parser-swagger/src/main/kotlin/io/openapiprocessor/core/parser/swagger

openapi-processor-core-parser-openapi4j/src/main/kotlin/io/openapiprocessor/core/parser/openapi4j/Path.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Path(
2424
override fun getOperations(): List<ParserOperation> {
2525
val ops: MutableList<ParserOperation> = mutableListOf()
2626

27-
HttpMethod.values().map {
27+
HttpMethod.entries.map {
2828
val op = info.getOperation(it.method)
2929
if (op != null) {
3030
ops.add (Operation(it, op, info, refResolver))

openapi-processor-core-parser-swagger/src/main/kotlin/io/openapiprocessor/core/parser/swagger/Path.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Path(
2525
override fun getOperations(): List<ParserOperation> {
2626
val ops: MutableList<ParserOperation> = mutableListOf()
2727

28-
HttpMethod.values().map {
28+
HttpMethod.entries.map {
2929
val op = info.getOperation(it.method)
3030
if (op != null) {
3131
ops.add (Operation(it, op, info, refResolver))

0 commit comments

Comments
 (0)