Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //To improve on style, simplicity and maintainability I would break up this function with 4 nested ifs into separate functions
- public boolean f(){
- if(A){
- z();
- }
- else{
- s();
- return false;
- }
- }
- public boolean z(){
- if(B){
- y();
- }
- else{
- t();
- return false;
- }
- }
- public boolean y(){
- if(C){
- x();
- }
- else{
- u();
- return false;
- }
- }
- public boolean x(){
- if(D){
- w();
- return true;
- }
- else{
- v();
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement