'泛型规范'
This commit is contained in:
parent
16c4e31c33
commit
35a2fbfd82
|
|
@ -71,6 +71,13 @@
|
|||
|
||||
-  局部非循环与下标变量,不可使用单字母命名(特殊数学含义例外,如斜截式的斜率a,常数b)
|
||||
|
||||
### 书写
|
||||
|
||||
-  涉及泛型的类,严禁不写前泛。
|
||||
|
||||
>  :```List<String> resultList = new ArrayLisy<>();```
|
||||
>  :```List resultList = new ArrayLisy<String>();Map resultList = new HashMap();```
|
||||
|
||||
## 异常处理
|
||||
|
||||
-  方法若有显式的RuntimeException异常抛出,必须使用`throws`关键字将其标识到方法上
|
||||
|
|
|
|||
Loading…
Reference in New Issue