policeman-tools/forbidden-apis
View on GitHub ↗ ★ 374 Java
Policeman's Forbidden API Checker
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2019-12-17 · latest 2022-10-09
20082026
-
…always had to be stated explicitly. On Java, you can use the forbidden-apis build plugin ( https://github.com/policeman-tools/forbidden-apis ) to fail the build whenever a timezone or locale or charset is not specified explicitly (it…
comment by cesarb · 2022-10-09 · in Stop using utcnow and utcfromtimestamp -
…(Locale.ROOT is almost always the one you want). At work, we use the "forbidden APIs" checker ( https://github.com/policeman-tools/forbidden-apis ) to fail the CI if the variant which uses the default locale is ever used; if you really…
comment by cesarb · 2020-08-16 · in In the Turkish locale, "INFO".lower() != "info" -
We use https://github.com/policeman-tools/forbidden-apis for that.
comment by cesarb · 2019-12-17 · in Kotlin vs. Java