java - Generate Getters and setters without underscore (not prefix/suffix) + eclipse -


my variable

private string category_code = null; 

my getter , setter generated

public string getcategory_code() {         return category_code;     }     public void setcategory_code(string category_code) {         this.category_code = category_code;     } 

is possible generate

public string getcategorycode() {         return category_code;     }     public void setcategorycode(string categorycode) {         this.category_code = category_code;     } 

i checked properties-->code style-->fields prefix , suffix.

or should rename variables m_categorycode? , output follows?

public string getcategorycode() {         return m_categorycode;     }     public void setcategorycode(string categorycode) {         m_categorycode = categorycode;     } 

which better?

java code tends follow camelcasestyle, not c_underscore_style. following existing standards in variety of ways (you able better read others' code , others able better read code, "others" other developers in same language). also, tooling language tends work better (case in point).


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -