You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-commits@maven.apache.org by sv...@apache.org on 2021/11/27 16:53:24 UTC
svn commit: r1895377 - in /maven/website/content: developers/conventions/code.html developers/maven-idea-codestyle.xml maven-site-1.0-site.jar
Author: svn-site-role
Date: Sat Nov 27 16:53:23 2021
New Revision: 1895377
Log:
Site checkin for project Apache Maven Site
Modified:
maven/website/content/developers/conventions/code.html
maven/website/content/developers/maven-idea-codestyle.xml
maven/website/content/maven-site-1.0-site.jar
Modified: maven/website/content/developers/conventions/code.html
==============================================================================
--- maven/website/content/developers/conventions/code.html (original)
+++ maven/website/content/developers/conventions/code.html Sat Nov 27 16:53:23 2021
@@ -232,6 +232,17 @@
<li><b>Exceptions</b>: Throw meaningful exceptions to make debugging and testing easier.</li>
<li><b>Documentation</b>: Document public interfaces well, i.e. all non-trivial public and protected functions should include Javadoc that indicates what they do.</li>
<li><b>Testing</b>: All non-trivial public classes should have corresponding unit or integration tests.</li></ul></section><section>
+<h4><a name="Java_Code_Convention_-_import_layouts">Java Code Convention - import layouts</a></h4>
+<p>For consistency reasons, Java imports should be organized as:</p>
+<ul>
+<li>import <b>javax.*</b></li>
+<li>blank line</li>
+<li>import <b>java.*</b></li>
+<li>blank line</li>
+<li>import <b>all other imports</b></li>
+<li>blank line</li>
+<li>import <b>static all other imports</b></li></ul>
+<p>all imports in each group should be sorted alphabetically.</p></section><section>
<h4><a name="JavaDoc_Convention">JavaDoc Convention</a></h4>
<p>TO BE DISCUSSED</p></section></section><section>
<h3><a name="XML">XML</a></h3><section>
Modified: maven/website/content/developers/maven-idea-codestyle.xml
==============================================================================
--- maven/website/content/developers/maven-idea-codestyle.xml (original)
+++ maven/website/content/developers/maven-idea-codestyle.xml Sat Nov 27 16:53:23 2021
@@ -30,6 +30,18 @@ under the License.
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
<value />
</option>
+ <option name="IMPORT_LAYOUT_TABLE">
+ <value>
+ <package name="javax" withSubpackages="true" static="false" />
+ <emptyLine />
+ <package name="java" withSubpackages="true" static="false" />
+ <emptyLine />
+ <package name="" withSubpackages="true" static="false" />
+ <emptyLine />
+ <package name="" withSubpackages="true" static="true" />
+ </value>
+ </option>
+ <option name="JD_PRESERVE_LINE_FEEDS" value="true" />
</JavaCodeStyleSettings>
<ADDITIONAL_INDENT_OPTIONS fileType="groovy">
<option name="INDENT_SIZE" value="2" />
@@ -109,4 +121,4 @@ under the License.
<option name="TAB_SIZE" value="4" />
</indentOptions>
</codeStyleSettings>
-</code_scheme>
\ No newline at end of file
+</code_scheme>
Modified: maven/website/content/maven-site-1.0-site.jar
==============================================================================
Binary files - no diff available.