Hello, Is there a way to evaluate at compil time `...
# compiler
s
Hello, Is there a way to evaluate at compil time
toCharArray()
used on a string literal to avoid having a String made in the JVM string pool ? Ty
y
I think that's something that you really shouldn't be worried about. A minifier (like Proguard or R8) might be able to do that btw, and using minifiers is a good idea, but there's no need to worry about these things unless there's an issue you can point directly at.
s
The minimifier doesn't seem to do that. I would like to avoid the use of the string pool for some constant string to not have them directly visible in the pool. It's just to add an extra annoying layer, we have product targeted a lot by malicious behaviour.
And I wanted to avoid extra process to keep our source clear