Skip to content

Commit

Permalink
chore: deprecate CSV api
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFruxz committed Dec 3, 2022
1 parent 348d088 commit a99b055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/de/fruxz/ascend/tool/data/CSV.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package de.fruxz.ascend.tool.data
* @author Fruxz
* @since 1.0
*/
@Deprecated("Ascends CSV solution is very rudimentary and should be replaced by a better solution in the future.")
object CSV {

/**
Expand All @@ -19,6 +20,7 @@ object CSV {
}
}

@Suppress("DEPRECATION") // We are currently inside the deprecated api, no need of extra compiler warnings.
fun convertToTabularData(csvContent: String) = TabularData(csvContent)

}
1 change: 1 addition & 0 deletions src/main/kotlin/de/fruxz/ascend/tool/data/TabularData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package de.fruxz.ascend.tool.data
* @author Fruxz
* @since 1.0
*/
@Deprecated("Ascends CSV solution is very rudimentary and should be replaced by a better solution in the future.")
data class TabularData(
val headers: List<String> = listOf(),
val rows: List<List<String>> = listOf(),
Expand Down

0 comments on commit a99b055

Please sign in to comment.