更改 Eclipse Getters Setters 语法
是否可以让 eclipse 生成 GetVar1() 而不是 getVar1() ? (大写G)
Is it possible to make eclipse generate GetVar1() instead of getVar1() ? (with capital G)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我非常怀疑这一点,因为这违反了正常的 Java 方法命名约定和 JavaBeans 属性规则。
我强烈建议您遵守 Java 命名约定。为什么您想让您的代码看起来与所有其他 Java 库(包括标准库)不一致?
I very much doubt it, since that breaks both normal Java naming conventions for methods and the JavaBeans properties rules.
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 遵循 Java 命名约定来生成 getter 和 setter。
This is not possible because Eclipse follows Java naming conventions for generating getters and setters.