mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GitReference.equals(): use getFullName() instead of toString()
The latter may change and may contain debug information and so on.
This commit is contained in:
@@ -50,8 +50,7 @@ public abstract class GitReference implements Comparable<GitReference> {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof GitReference &&
|
||||
toString().equals(obj.toString());
|
||||
return obj instanceof GitReference && getFullName().equals(((GitReference)obj).getFullName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user