how to override compareTo method
<p>here is my compareTo method, but im still getting "missing return statement" warning.
can anyone tell me what is wrong with my code?</p>

<pre><code>    public int compareTo(Flows other) {
    if(this.srcAddr.equals(other.srcAddr)){
        if(this.dstAddr.equals(other.dstAddr)){
                 if(this.srcPort.equals(other.srcPort)){
                     if(this.dstPort.equals(other.dstPort)){
                         if(this.protocol.equals(other.protocol)){
                             return 0;
                         }
                     }
                 }
         }
 }
}
</code></pre>
