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
*/
@Target(
AnnotationTarget.TYPE_PARAMETER,
AnnotationTarget.VALUE_PARAMETER,
AnnotationTarget.TYPE,
AnnotationTarget.PROPERTY,
AnnotationTarget.FIELD,
AnnotationTarget.CONSTRUCTOR,
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER,
AnnotationTarget.TYPEALIAS,
)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented

View file

@ -227,7 +227,8 @@ class FileAccess {
* @return matching [Path]
* @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]
@ -247,7 +248,8 @@ class FileAccess {
* @return unformatted string path
* @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
*/
val path: @NonKotlinContact Path
@NonKotlinContact
val path: Path
@NonKotlinContact
@JvmName(name = "getJavaPath")
get
@ -276,7 +280,8 @@ class FileAccess {
*
* @since v1-alpha10
*/
private val file: @NonKotlinContact File
private val file: File
@NonKotlinContact
@JvmName(name = "getJavaFile")
get
@ -520,7 +525,8 @@ class FileAccess {
* @return filesystem
* @since v1-alpha10
*/
fun getFileSystem(): @NonKotlinContact FileSystem = path.fileSystem
@NonKotlinContact
fun getFileSystem(): FileSystem = path.fileSystem
/**
* Returns if the filesystem this file