mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
more proper comment [ci skip]
This commit is contained in:
parent
4fc037ebce
commit
cf768d67bd
1 changed files with 4 additions and 9 deletions
|
|
@ -5,16 +5,11 @@ import io.delilaheve.util.ConfigOptions
|
||||||
object AnvilUseTypeUtil {
|
object AnvilUseTypeUtil {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
By stupidity of kotlin not allowing static function outside of companion object I need to do another util class only for 1 function:
|
By kotlin not having static function outside of companion object I need to do another util class only for 1 function:
|
||||||
Companion object on enum class seems to get initialized AFTER the enum itself
|
Companion object on enum class seems to get initialized AFTER the enum itself
|
||||||
that mean. if you want to call a static function on the enum class itself YOU CAN'T. you need to do this stupid thing
|
that mean. if you want to call a static function on enum construction YOU CAN'T. you need to do this stupid thing,
|
||||||
or you can make a stupid top level function OR object that even worse because of global scope pollution
|
or you can make a stupid top level function or object that at least as bad as this
|
||||||
(btw was gpt ""solution"". fortunately I do not "vibe code" so I do what I know instead of stupid AI solution & code)
|
I mean, this is still an unnecessary class that should not exist but as a class is better than a random function in my opinion
|
||||||
I mean, this is still global scope pollution bc of a USELESS class that SHOULD not exist but as a class is better than a random *ss function
|
|
||||||
|
|
||||||
sorry for the rent but this made me frustrated
|
|
||||||
|
|
||||||
Note: I still like a lot of part of kotlin compared to java but this part is one that I hate
|
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* Get config path for normal anvil use
|
* Get config path for normal anvil use
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue