1.8K Star 6.9K Fork 3.6K

人人开源 / renren-fast

Open
!15 改写枚举类,消除if else

LiuChuang:master 人人开源:master

LiuChuang Created on: 2020-07-01 11:59

改写枚举类,将枚举与校验组关联起来,可以根据枚举类型自动确定需要采用的校验组,消除代码中的ifelse,使代码更容易维护。
之后如果有新增的云存储类型,只需要添加枚举即可不需要改动源有的处理逻辑。

0 comments, 1 participants

Check whether the system can automatically merge this Pull Request...
The Pull Request cannot be automatically merged.
The Pull Request cannot be automatically merged.
Gitee trying to handle conflicts...
Gitee handled conflicts timeout, please fetch to the local handling
The current branch merge status has been updated, continue to operate after refreshing the page
The Pull Request can be automatically merged.
Merging Pull Request. Wait for a moment, the page will refresh automatically.
Java
1
https://gitee.com/renrenio/renren-fast.git
git@gitee.com:renrenio/renren-fast.git
renrenio
renren-fast
renren-fast

Search