Update NonKotlinContact targets

This commit is contained in:
JeremyStar™ 2024-12-15 13:50:09 +01:00
parent ae5ba252a5
commit 6f998f4e33
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 18 additions and 8 deletions

View file

@ -40,9 +40,13 @@ package de.staropensource.engine.base.annotation
* @since v1-alpha10 * @since v1-alpha10
*/ */
@Target( @Target(
AnnotationTarget.TYPE_PARAMETER, AnnotationTarget.PROPERTY,
AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD,
AnnotationTarget.TYPE, AnnotationTarget.CONSTRUCTOR,
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER,
AnnotationTarget.TYPEALIAS,
) )
@Retention(AnnotationRetention.RUNTIME) @Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented @MustBeDocumented

View file

@ -227,7 +227,8 @@ class FileAccess {
* @return matching [Path] * @return matching [Path]
* @since v1-alpha10 * @since v1-alpha10
*/ */
fun formatToPath(string: String): @NonKotlinContact Path = Path.of(format(string)) @NonKotlinContact
fun formatToPath(string: String): Path = Path.of(format(string))
/** /**
* Undoes formatting made by [format] * Undoes formatting made by [format]
@ -247,7 +248,8 @@ class FileAccess {
* @return unformatted string path * @return unformatted string path
* @since v1-alpha10 * @since v1-alpha10
*/ */
fun unformatFromPath(path: @NonKotlinContact Path): String = unformat(path.toString()) @NonKotlinContact
fun unformatFromPath(path: Path): String = unformat(path.toString())
} }
@ -262,7 +264,9 @@ class FileAccess {
* *
* @since v1-alpha10 * @since v1-alpha10
*/ */
val path: @NonKotlinContact Path @NonKotlinContact
val path: Path
@NonKotlinContact
@JvmName(name = "getJavaPath") @JvmName(name = "getJavaPath")
get get
@ -276,7 +280,8 @@ class FileAccess {
* *
* @since v1-alpha10 * @since v1-alpha10
*/ */
private val file: @NonKotlinContact File private val file: File
@NonKotlinContact
@JvmName(name = "getJavaFile") @JvmName(name = "getJavaFile")
get get
@ -520,7 +525,8 @@ class FileAccess {
* @return filesystem * @return filesystem
* @since v1-alpha10 * @since v1-alpha10
*/ */
fun getFileSystem(): @NonKotlinContact FileSystem = path.fileSystem @NonKotlinContact
fun getFileSystem(): FileSystem = path.fileSystem
/** /**
* Returns if the filesystem this file * Returns if the filesystem this file