Eclipse seems intelligent enough to really follow Java naming conventions

I'm very sensitive on how I know my variables when I program and the most I'm very careful with is naming boolean variables.

So I was trying to create a new variable inside of Eclipse and I'm not used to naming my boolean vars like isNew, isAllowed or isValid but instead I know them new, allowed or valid but still adhere to the Java naming convention for my methods like setNew() and isNew().

Just today though, I accidentally named one of my boolean variables "isNew". To my surprise, Eclipse was intelligent enough to detect this and named my generated accessor/mutator as setNew() and isNew() instead of setIsNew and isIsNew().

Nice. :)

Published 01-12-2009 1:36 AM by lamia
Filed under: ,