summaryrefslogtreecommitdiff
path: root/doc/hacking.texinfo
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2005-03-02 19:39:06 +0000
committerMichael Koch <konqueror@gmx.de>2005-03-02 19:39:06 +0000
commit39d6be7fa661d474f905ed01a10d697964492f85 (patch)
tree0d745a7a19e03b65542f5e56f0d4c779349c5a1e /doc/hacking.texinfo
parent4f5c2bc43c6888fe126c5583a4b903c43ba2dd30 (diff)
downloadclasspath-39d6be7fa661d474f905ed01a10d697964492f85.tar.gz
2005-03-02 Michael Koch <konqueror@gmx.de>
* doc/hacking.texinfo: Improved explanation of our coding style regarding import statements.
Diffstat (limited to 'doc/hacking.texinfo')
-rw-r--r--doc/hacking.texinfo15
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/hacking.texinfo b/doc/hacking.texinfo
index f9cddd6f7..90bd86b07 100644
--- a/doc/hacking.texinfo
+++ b/doc/hacking.texinfo
@@ -501,7 +501,20 @@ conventions):
@item
If possible, generate specific imports (expand) over java.io.* type
-imports. Order by gnu, java, javax, org.
+imports. Order by gnu, java, javax, org. There must be one blank line
+between each group. The imports themselves are ordered alphabetically by
+package name. Classes and interfaces occur before sub-packages. The
+classes/interfaces are then also sorted alphabetical. Note that uppercase
+characters occur before lowercase characters.
+
+@example
+import gnu.java.awt.EmbeddedWindow;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.swing.JFrame;
+@end example
@item
Blank line after package statement, last import statement, classes,