[Java] Einfache Stylefrage!


-->

Hallo,

mal angenommen, jemand refactored st=E4ndig Codesnippet A nach B:

Beispiel 1:
A) if(object =3D=3D null) { . . . do sth
B) if(null =3D=3D object) { . . . do sth

Beispiel 2:
Es liegt vor x ist lt;fieldNamegt; oder x ist #fieldName#
A) if(x .startsWith(”lt;”)) { . . . do sth
B) if(0 =3D=3D x .indexOf(”lt;”) { . . . do sth

Beispiel 3:
A) if(hashmap .containsKey(key) { . . . do sth
[…] źródło