mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-05 10:04:48 +00:00
use cheaper hash function for speed improvement
This commit is contained in:
parent
535b3fcb74
commit
d3b4e895dc
@ -207,7 +207,7 @@ public class ControlFlowBlock {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = label.hashCode();
|
||||
result = 31 * result + (statements != null ? statements.hashCode() : 0);
|
||||
result = 31 * result + statements.size();
|
||||
result = 31 * result + (defaultSuccessor != null ? defaultSuccessor.hashCode() : 0);
|
||||
result = 31 * result + (conditionalSuccessor != null ? conditionalSuccessor.hashCode() : 0);
|
||||
result = 31 * result + (callSuccessor != null ? callSuccessor.hashCode() : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user