Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W
wiki-java
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 老徐
  • wiki-java
  • Wiki
  • java code specification

java code specification · Changes

Page history
ulindows deleted page: JavaCodeSpecification authored Jun 13, 2016 by 老徐's avatar 老徐
Hide whitespace changes
Inline Side-by-side
Showing with 2 additions and 1 deletion
+2 -1
  • java-code-specification.md java-code-specification.md +2 -1
  • No files found.
java-code-specification.md
View page @ eba561b8
......@@ -217,15 +217,16 @@ a * b;
* **3. 变量的名字必须用一个全部小写的单词开头。后面的单词用大写字母开头,其余都小写。**
* **4. 参数的名字必须和变量的命名规范一致。**
* **5. 数组应该总是用下面的方式来命名:**
```
byte[] buffer;
```
  而不是:
```
byte buffer[];
```
* **6. 使用有意义的参数命名,如果可能的话,使用和要赋值的字段一样的名字:**
```
setCounter(int count)
{
......
Clone repository
  • git configuration and simple use
  • Home
  • java code specification
  • maven environment configuration
  • shuidi js develope
  • ucs_project environment configuration