Skip to content

Commit 505eba1

Browse files
committed
Remove redundant reference
1 parent 6f30685 commit 505eba1

File tree

1 file changed

+5
-5
lines changed
  • documentify-project/documentify-core/src/main/kotlin/io/github/bgmsound/documentify/core/specification/schema

1 file changed

+5
-5
lines changed

documentify-project/documentify-core/src/main/kotlin/io/github/bgmsound/documentify/core/specification/schema/ResourceSpec.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ class ResourceSpec(
2929
}
3030

3131
fun link(rel: String): Link {
32-
val link = Link.Companion.newLink(rel)
32+
val link = Link.newLink(rel)
3333
this.links.add(link)
3434
return link
3535
}
3636

3737
fun links(vararg links: String) {
38-
this.links.addAll(links.map { Link.Companion.newLink(it) })
38+
this.links.addAll(links.map { Link.newLink(it) })
3939
}
4040

4141
fun links(links: Collection<String>) {
42-
this.links.addAll(links.map { Link.Companion.newLink(it) })
42+
this.links.addAll(links.map { Link.newLink(it) })
4343
}
4444

4545
fun tag(tag: String) {
@@ -94,13 +94,13 @@ class ResourceSpec(
9494
}
9595
if (request.fields.isNotEmpty()) {
9696
if (request.schema != null) {
97-
resourceBuilder.requestSchema(Schema.Companion.schema(request.schema!!))
97+
resourceBuilder.requestSchema(Schema.schema(request.schema!!))
9898
}
9999
resourceBuilder.requestFields(buildFields(request.fields))
100100
}
101101
if (response.fields.isNotEmpty()) {
102102
if (response.schema != null) {
103-
resourceBuilder.responseSchema(Schema.Companion.schema(response.schema!!))
103+
resourceBuilder.responseSchema(Schema.schema(response.schema!!))
104104
}
105105
resourceBuilder.responseFields(buildFields(response.fields))
106106
}

0 commit comments

Comments
 (0)