We have a scenario in which several threads call a static method like the following one:
public static boolean isEmpty(final String s) {
return s == null || s.length() < 1;
}
Could it cause a problem of inconsistence if 100 threads call it?
The method does not access any shared state. Thus, no -- it will not cause any problems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With