I have a suggestion. I think it would be interesting creating constant methods in Java.
I mean methods declared like this: public const String myMethod() { String a = "a"; a = a + "b"; return a; } So that the response of the method is forced to be assigned to a final variable. This would be ok: final String b = myMethod(); But this would throw a compilation error: String c = myMethod(); What do you think? It's just an idea.