Browse Source

Updated files

master
adiao 3 years ago
parent
commit
01c9538460
  1. 2
      项目命名/项目命名格式.md

2
项目命名/项目命名格式.md

@ -189,6 +189,7 @@ collect 收集 aggregate 聚集 @@ -189,6 +189,7 @@ collect 收集 aggregate 聚集
常量是在作用域内保持不变的值,一般使用 final 进行修饰。一般分为三种,全局常量(public static final 修饰),类内常量(private static final 修饰)以及局部常量(方法内,或者参数中的常量),局部常量比较特殊,通常采用小驼峰命名即可。
```
public class HelloWorld {
/**
@ -221,6 +222,7 @@ public class HelloWorld { @@ -221,6 +222,7 @@ public class HelloWorld {
}
}
```
常量一般都有自己的业务含义,不要害怕长度过长而进行省略或者缩写。如,用户消息缓存过期时间的表示,那种方式更佳清晰,交给你来评判。

Loading…
Cancel
Save