Skip to content
Snippets Groups Projects
Commit c9acf455 authored by Amer Tahir's avatar Amer Tahir
Browse files

minor fixes

parent a8fead64
No related branches found
No related tags found
No related merge requests found
......@@ -62,9 +62,9 @@ public class FirewallRule implements Comparable<FirewallRule> {
*/
public int genID() {
int uid = this.hashCode();
if (uid <= 0) {
if (uid < 0) {
uid = Math.abs(uid);
uid *= 15551;
uid = uid * 15551;
}
return uid;
}
......
......@@ -5,7 +5,6 @@ import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment