mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 04:55:22 +02:00
[cleanup] Improve hash code
This commit is contained in:
parent
3263fe1cc2
commit
a8cd87b8a5
1 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ public class TerminalElement extends AbstractResource {
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
if (terminalShell != null)
|
if (terminalShell != null)
|
||||||
return terminalShell.hashCode() + name.hashCode();
|
return terminalShell.hashCode() * 37 + name.hashCode();
|
||||||
return name.hashCode() ;
|
return name.hashCode() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue