Entendi Marcelo!
Esta boa prática vale também para parâmetros!
Sempre que possível declaro como final.
2014-10-01 10:12 GMT-03:00 Marcelo Alves <marcelo.alves@gmail.com>:
A concatenação de strings nesse caso ocorre em tempo de compilação, já que é constante.Ajuda se você fizer final String sql = "..." + "…" + "…" pra reforçar esse comportamento.--
You received this message because you are subscribed to a topic in the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/androidbrasil-dev/sz3YPNjj7is/unsubscribe.
To unsubscribe from this group and all its topics, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
0 comentários:
Postar um comentário