更改Eclipse Getters Setters语法 [英] Change Eclipse Getters Setters syntax

查看:116
本文介绍了更改Eclipse Getters Setters语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使eclipse生成GetVar1()而不是getVar1()? (有资本G)

Is it possible to make eclipse generate GetVar1() instead of getVar1() ? (with capital G)

推荐答案

我非常怀疑,因为这打破了常规的Java命名约定方法和JavaBeans属性

I very much doubt it, since that breaks both normal Java naming conventions for methods and the JavaBeans properties rules.

我会强烈地强烈地/ />建议您遵守Java命名约定。为什么要使您的代码与所有其他Java库(包括标准库)不一致?

I would strongly, strongly recommend that you abide by Java naming conventions. Why would you want to make your code look inconsistent with all the other Java libraries including the standard library?

这篇关于更改Eclipse Getters Setters语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆