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:
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() {
|
||||
if (terminalShell != null)
|
||||
return terminalShell.hashCode() + name.hashCode();
|
||||
return terminalShell.hashCode() * 37 + name.hashCode();
|
||||
return name.hashCode() ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue