Skip to content

Commit c53f2d1

Browse files
committed
Tweaked KDoc comments
1 parent 9186109 commit c53f2d1

15 files changed

+31
-31
lines changed

typedrest/src/main/kotlin/net/typedrest/URIExtensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fun URI.ensureTrailingSlash(): URI =
1616
/**
1717
* Resolves a relative URI using this URI as the base.
1818
*
19-
* @param relativeUri The relative URI to resolve. Prepend "./" to imply a trailing slash in the base URI even if it is missing there.
19+
* @param relativeUri The relative URI to resolve. Add a `./` prefix here to imply a trailing slash in the base URI even if it is missing there.
2020
*/
2121
fun URI.join(relativeUri: String): URI =
2222
if (relativeUri.startsWith("./")) {
@@ -28,7 +28,7 @@ fun URI.join(relativeUri: String): URI =
2828
/**
2929
* Resolves a relative URI using this URI as the base.
3030
*
31-
* @param relativeUri The relative URI to resolve. Prepend "./" to imply a trailing slash in the base URI even if it is missing there.
31+
* @param relativeUri The relative URI to resolve. Add a `./` prefix here to imply a trailing slash in the base URI even if it is missing there.
3232
*/
3333
fun URI.join(relativeUri: URI): URI =
3434
if (relativeUri.toString().startsWith("./")) {

typedrest/src/main/kotlin/net/typedrest/endpoints/AbstractEndpoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class AbstractEndpoint(
3030
* Creates a new endpoint with a relative URI.
3131
*
3232
* @param referrer The endpoint used to navigate to this one.
33-
* @param relativeUri The URI of this endpoint relative to the referrer's.
33+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s.
3434
*/
3535
constructor(referrer: Endpoint, relativeUri: URI) : this(
3636
referrer.uri.join(relativeUri),

typedrest/src/main/kotlin/net/typedrest/endpoints/generic/AbstractCachingEndpoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import java.net.URI
1010
* Base class for building endpoints that use ETags and Last-Modified timestamps for caching and to avoid lost updates.
1111
*
1212
* @param referrer The endpoint used to navigate to this one.
13-
* @param relativeUri The URI of this endpoint relative to the referrer's.
13+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s.
1414
*/
1515
abstract class AbstractCachingEndpoint(referrer: Endpoint, relativeUri: URI) :
1616
AbstractEndpoint(referrer, relativeUri), CachingEndpoint {

typedrest/src/main/kotlin/net/typedrest/endpoints/generic/CollectionEndpointImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ open class CollectionEndpointImpl<TEntity> : GenericCollectionEndpointImpl<TEnti
1515
* Creates a new element collection endpoint.
1616
*
1717
* @param referrer The endpoint used to navigate to this one.
18-
* @param relativeUri The URI of this endpoint relative to the referrer's.
18+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s.
1919
* @param entityType The type of individual elements in the collection.
2020
*/
2121
constructor(referrer: Endpoint, relativeUri: URI, entityType: Class<TEntity>)
@@ -25,7 +25,7 @@ open class CollectionEndpointImpl<TEntity> : GenericCollectionEndpointImpl<TEnti
2525
* Creates a new element collection endpoint.
2626
*
2727
* @param referrer The endpoint used to navigate to this one.
28-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
28+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
2929
* @param entityType The type of individual elements in the collection.
3030
*/
3131
constructor(referrer: Endpoint, relativeUri: String, entityType: Class<TEntity>)

typedrest/src/main/kotlin/net/typedrest/endpoints/generic/ElementEndpointImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import java.net.URI
1010
* Endpoint for an individual resource.
1111
*
1212
* @param referrer The endpoint used to navigate to this one.
13-
* @param relativeUri The URI of this endpoint relative to the referrer's.
13+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s.
1414
* @param entityType The type of entity the endpoint represents.
1515
* @param TEntity The type of entity the endpoint represents.
1616
*/
@@ -23,7 +23,7 @@ open class ElementEndpointImpl<TEntity>(
2323
* Creates a new element endpoint.
2424
*
2525
* @param referrer The endpoint used to navigate to this one.
26-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
26+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
2727
* @param entityType The type of entity the endpoint represents.
2828
*/
2929
constructor(referrer: Endpoint, relativeUri: String, entityType: Class<TEntity>) :

typedrest/src/main/kotlin/net/typedrest/endpoints/generic/GenericCollectionEndpointImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import java.net.URLEncoder
1313
* Use the more constrained [CollectionEndpointImpl] when possible.
1414
*
1515
* @param referrer The endpoint used to navigate to this one.
16-
* @param relativeUri The URI of this endpoint relative to the referrer's.
16+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s.
1717
* @param entityType The type of individual elements in the collection.
1818
* @param elementEndpointFactory The factory for constructing [TElementEndpoint]s to provide for individual elements.
1919
* @param TEntity The type of individual elements in the collection.
@@ -29,7 +29,7 @@ open class GenericCollectionEndpointImpl<TEntity, TElementEndpoint : ElementEndp
2929
* Creates a new element collection endpoint.
3030
*
3131
* @param referrer The endpoint used to navigate to this one.
32-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
32+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
3333
* @param entityType The type of individual elements in the collection.
3434
* @param elementEndpointFactory The factory for constructing [TElementEndpoint]s to provide for individual elements.
3535
*/

typedrest/src/main/kotlin/net/typedrest/endpoints/generic/IndexerEndpointImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import java.net.URLEncoder
99
* Endpoint that addresses child [TElementEndpoint]s by ID.
1010
*
1111
* @param referrer The endpoint used to navigate to this one.
12-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
12+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
1313
* @param elementEndpointFactory The factory for constructing [TElementEndpoint]s to provide for individual elements.
1414
* @param TElementEndpoint The type of [Endpoint] to provide for individual elements.
1515
*/
@@ -22,7 +22,7 @@ open class IndexerEndpointImpl<TElementEndpoint : Endpoint>(
2222
* Creates a new indexer endpoint.
2323
*
2424
* @param referrer The endpoint used to navigate to this one.
25-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
25+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
2626
* @param elementEndpointFactory The factory for constructing [TElementEndpoint]s to provide for individual elements.
2727
*/
2828
constructor(referrer: Endpoint, relativeUri: String, elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint) :

typedrest/src/main/kotlin/net/typedrest/endpoints/raw/BlobEndpointImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import java.net.URI
1212
* Endpoint for a binary blob that can be downloaded or uploaded.
1313
*
1414
* @param referrer The endpoint used to navigate to this one.
15-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
15+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
1616
*/
1717
open class BlobEndpointImpl(referrer: Endpoint, relativeUri: URI) : AbstractEndpoint(referrer, relativeUri), BlobEndpoint {
1818
/**
1919
* Creates a new blob endpoint.
2020
*
2121
* @param referrer The endpoint used to navigate to this one.
22-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
22+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
2323
*/
2424
constructor(referrer: Endpoint, relativeUri: String) :
2525
this(referrer, URI(relativeUri))

typedrest/src/main/kotlin/net/typedrest/endpoints/raw/UploadEndpointImpl.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import java.net.URI
1111
/**
1212
* Implementation of an [UploadEndpoint] that accepts binary uploads using multi-part form encoding or raw bodies.
1313
*
14-
* @property referrer The endpoint used to navigate to this one.
15-
* @property relativeUri The URI of this endpoint relative to the [referrer]'s.
16-
* @property formField The name of the form field to place the uploaded data into; null to use raw bodies instead of multi-part forms.
14+
* @param referrer The endpoint used to navigate to this one.
15+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s.
16+
* @param formField The name of the form field to place the uploaded data into; null to use raw bodies instead of multi-part forms.
1717
*/
1818
class UploadEndpointImpl(
1919
private val referrer: Endpoint,
@@ -24,8 +24,8 @@ class UploadEndpointImpl(
2424
* Creates a new upload endpoint.
2525
*
2626
* @param referrer The endpoint used to navigate to this one.
27-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
28-
* @property formField The name of the form field to place the uploaded data into; null to use raw bodies instead of multi-part forms.
27+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
28+
* @param formField The name of the form field to place the uploaded data into; null to use raw bodies instead of multi-part forms.
2929
*/
3030
constructor(referrer: Endpoint, relativeUri: String, formField: String? = null) :
3131
this(referrer, URI(relativeUri), formField)

typedrest/src/main/kotlin/net/typedrest/endpoints/rpc/AbstractRpcEndpoint.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import java.net.URI
99
* Base class for building RPC endpoints.
1010
*
1111
* @param referrer The endpoint used to navigate to this one.
12-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
12+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
1313
*/
1414
abstract class AbstractRpcEndpoint(referrer: Endpoint, relativeUri: URI) : AbstractEndpoint(referrer, relativeUri), RpcEndpoint {
1515
/**
1616
* Creates a new RPC endpoint with a relative URI.
1717
*
1818
* @param referrer The endpoint used to navigate to this one.
19-
* @param relativeUri The URI of this endpoint relative to the referrer's. Add a "./" prefix here to imply a trailing slash on referrer's URI.
19+
* @param relativeUri The URI of this endpoint relative to the [referrer]'s. Add a `./` prefix here to imply a trailing slash on referrer's URI.
2020
*/
2121
constructor(referrer: Endpoint, relativeUri: String) :
2222
this(referrer, URI(relativeUri))

0 commit comments

Comments
 (0)