Earlier quoted context omitted.
While I don't disagree, curious to hear your reasoning for not doing this.
It's unnatural, confusing to read, and won't save you anyway in cases where you're comparing two variables. It's OK if your tools absolutely can't diagnose accidental if(a = b), but it should be the last resort.
mString != null && mString.equals("test")
or "test".equals(mString)
They do the same, but the second one adds hidden `defensive programming` to prevent NPE in `equals`. Saves time AND code.Intended usage of if(a=b) should be written as if((a=b)). Don't know what tool you use at work or at home, but most static code analysers will point you that. Try SonarQube at least.