Closed menggatot closed 2 years ago
Ah… I ended up making this change myself anyway, didn't see this PR l o l
I forget the exact reason why Reflection ended up being used there, but I'm pretty sure it had something to do with avoiding a crash due to missing symbols on some configurations during development.
That being said, the (prerelease) code was in a very different state at the time, and eventually I refactored the code to the point where the Reflection usage was actually no longer required (but I clearly forgot to remove the Reflection usage, ha…).
Thanks for the effort you put into your PR, though!!
I fix it by removing ReflectionUtil all together. according to this https://docs.oracle.com/javase/tutorial/reflect/ "Reflection is powerful, but should not be used indiscriminately. If it is possible to perform an operation without using reflection, then it is preferable to avoid using it" and because the output of getValue() is already a string, my guess is using ReflectionUtil is too redundant, so I remove it