java - Oracle Java 代码约定

标签 java coding-style

有人知道我在哪里可以找到描述 Java 代码约定的 Oracle 文档吗?

此 URL 不再可用,因此我为此主题创建了新问题。

http://www.oracle.com/technetwork/java/codeconv-138413.html

最佳答案

一种选择是使用回程机,seems to contain the document (here's direct link to pdf version)。不过我也很想知道 Oracle 用它做了什么,他们是否打算摆脱它。

有一个 discussion on Oracle forums关于此问题已提交给 OTN 支持,但未提及任何回应。


2014 年 6 月 17 日更新:现在有 forum posting添加到网站解释以下内容:

Those Java Code Conventions were written in 1999 and have not been maintained since.

The information might not be up to date; links within the documents might not work. That is why the pages were removed. Unfortunately there are other sites that point to that document which were not updated.

To avoid confusions we have re-posted the original document –with an appropriate disclaimer about the information not being up to date- while we clean up those other sites.

Try Code Conventions for the Java Programming Language

确实,页面似乎已恢复。

关于java - Oracle Java 代码约定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22961733/

相关文章:

C++ 代码风格 - 创建对象的最佳位置

java - 我的 Storm 拓扑既不工作(不生成输出)也不失败(不生成错误或异常)

java - 关于 String 和返回对象的基本类问题

java - JFrame 正在加载音乐正在运行

types - Erlang 头文件 (.hrl) 中应该和不应该有什么?

C++异常处理困惑

java - 使用 ArrayList 内部的引用来调用方法,并更改引用对象的当前状态?

java - 将接口(interface)方法委托(delegate)给各种类

python - 在 Python 中打印带分隔符的表格的最佳方法是什么

c++ - AddRef 和函数签名