Results for “java constructor vs method example code python 1 site:bugs.java.com pdf”
bugs.java.com
Bug ID: JDK-4619333 stddoclet: Separate out static factory methods...
For example, "static Integer Integer.valueOf(String)" fits this pattern and is indeed a static factory. What surprised me was how extensive static factories are used in the JDK.The summary table order would make sense with the constructors first and static factory methods second.
bugs.java.com
Bug ID: JDK-4075480 Add example support in doc with @example tag
In this case, use this command line option: -tag example:a:"Example:" This takes the text from an @example tag in all (a) doc comments (field, method. constructor, class, package) and outputs it with the heading "Example