Skip to content

Commit 803174e

Browse files
committed
Remove deprecated functions from some provider classes
1 parent 6f2ddd6 commit 803174e

File tree

7 files changed

+631
-655
lines changed

7 files changed

+631
-655
lines changed

cli-bot/src/main/resources/META-INF/native-image/io.github.serpro69/cli-bot/reflect-config.json

+629-630
Large diffs are not rendered by default.

cli-bot/src/test/kotlin/io/github/serpro69/kfaker/app/cli/IntrospectorTest.kt

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class IntrospectorTest : DescribeSpec() {
3636
"BigBangTheory",
3737
"Blood",
3838
"BojackHorseman",
39-
"BojackHorseman",
4039
"Book",
4140
"BossaNova",
4241
"BreakingBad",

core/src/main/kotlin/io/github/serpro69/kfaker/Faker.kt

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class Faker @JvmOverloads constructor(internal val fakerConfig: FakerConfig = fa
3636
val beer: Beer = Beer(fakerService)
3737
val bigBangTheory: BigBangTheory = BigBangTheory(fakerService)
3838
val blood: Blood = Blood(fakerService)
39-
@Deprecated(message = "Fix #50 - typo. Will be removed in 1.8.0", level = DeprecationLevel.WARNING, replaceWith = ReplaceWith("bojackHorseman"))
40-
val bojackHoreseman: BojackHorseman = BojackHorseman(fakerService)
4139
val bojackHorseman: BojackHorseman = BojackHorseman(fakerService)
4240
val book: Book = Book(fakerService)
4341
val bossaNova: BossaNova = BossaNova(fakerService)

core/src/main/kotlin/io/github/serpro69/kfaker/FakerConfig.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class FakerConfig private constructor(
1616
companion object {
1717
@JvmStatic
1818
@Deprecated(
19-
message = "This function is deprecated and will be removed in future releases",
19+
message = "This function is deprecated and will be removed in 1.9.0",
2020
ReplaceWith("fakerConfig { }"),
2121
level = DeprecationLevel.WARNING
2222
)
@@ -53,7 +53,7 @@ class FakerConfig private constructor(
5353
}
5454

5555
@Deprecated(
56-
message = "This function is deprecated and will be removed in future releases",
56+
message = "This function is deprecated and will be removed in 1.9.0",
5757
ReplaceWith("fakerConfig { }"),
5858
level = DeprecationLevel.WARNING
5959
)

core/src/main/kotlin/io/github/serpro69/kfaker/provider/DnD.kt

-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ class DnD internal constructor(fakerService: FakerService) : AbstractFakeDataPro
1414
override val localUniqueDataProvider = LocalUniqueDataProvider<DnD>()
1515
override val unique by UniqueProviderDelegate(localUniqueDataProvider)
1616

17-
@Deprecated(
18-
message = "Deprecated since 1.5.0 due to changes in dict file. Will be removed in 1.6.0",
19-
replaceWith = ReplaceWith("races()"),
20-
level = DeprecationLevel.WARNING
21-
)
22-
fun species() = races()
23-
2417
fun alignments() = resolve("alignments")
2518
fun backgrounds() = resolve("backgrounds")
2619
fun cities() = resolve("cities")

core/src/main/kotlin/io/github/serpro69/kfaker/provider/HeroesOfTheStorm.kt

-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ class HeroesOfTheStorm internal constructor(fakerService: FakerService) : Abstra
1515
override val unique by UniqueProviderDelegate(localUniqueDataProvider)
1616

1717
fun battlegrounds() = resolve("battlegrounds")
18-
@Deprecated(
19-
message = "Deprecated since 1.5.0 due to changes in dict file. Will be removed in 1.6.0",
20-
replaceWith = ReplaceWith("classNames()"),
21-
level = DeprecationLevel.WARNING
22-
)
23-
fun classes() = classNames()
2418
fun classNames() = resolve("class_names")
2519
fun heroes() = resolve("heroes")
2620
fun quotes() = resolve("quotes")

core/src/main/kotlin/io/github/serpro69/kfaker/provider/Phish.kt

-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ class Phish internal constructor(fakerService: FakerService) : AbstractFakeDataP
1414
override val localUniqueDataProvider = LocalUniqueDataProvider<Phish>()
1515
override val unique by UniqueProviderDelegate(localUniqueDataProvider)
1616

17-
@Deprecated(
18-
message = "Deprecated since 1.5.0 due to changes in dict file. Will be removed in 1.6.0",
19-
replaceWith = ReplaceWith("songs()"),
20-
level = DeprecationLevel.WARNING
21-
)
22-
fun song() = songs()
23-
2417
fun albums() = resolve("albums")
2518
fun musicians() = resolve("musicians")
2619
fun songs() = resolve("songs")

0 commit comments

Comments
 (0)