更改 Eclipse Getters Setters 语法

发布于 2024-10-10 04:57:09 字数 55 浏览 0 评论 0原文

是否可以让 eclipse 生成 GetVar1() 而不是 getVar1() ? (大写G)

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不弃不离 2024-10-17 04:57:09

我非常怀疑这一点,因为这违反了正常的 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?

〃安静 2024-10-17 04:57:09

这是不可能的,因为 Eclipse 遵循 Java 命名约定来生成 getter 和 setter。

This is not possible because Eclipse follows Java naming conventions for generating getters and setters.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文