1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 20:45:22 +02:00

[cleanup] Improve hash code

This commit is contained in:
Martin Oberhuber 2008-04-24 01:14:10 +00:00
parent 3263fe1cc2
commit a8cd87b8a5

View file

@ -47,7 +47,7 @@ public class TerminalElement extends AbstractResource {
public int hashCode() {
if (terminalShell != null)
return terminalShell.hashCode() + name.hashCode();
return terminalShell.hashCode() * 37 + name.hashCode();
return name.hashCode() ;
}