Calling equals on string literal

I just was tidying my code a bit and there was this piece: String saving = getValue(); if(saving != null && saving.equals(“true”)){ // do something } Then I thought of doing it the other …