Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 279 Bytes

others.md

File metadata and controls

25 lines (19 loc) · 279 Bytes

Some other rules

Here some other rules

1. Use Short IF

Bad:

public boolean isEmulator(){
    if(someThing){
       return true;  
    }else{
       return false;
    }
}

Good:

public boolean isEmulator(){
   return someThing ? true : false;
}