Refactoring method with few boolean parameters

后端 未结 0 417
不思量自难忘°
不思量自难忘° 2021-02-11 18:29

There is a good approach to refactoring. For example, we have this method with flag:

public void process(boolean hasLicense){
        if (hasLicense){
                    


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题