This entry was posted on Wednesday, May 28th, 2008 at 5:36 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


[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
