소스 검색

Implement RepoCommand.Project.hashCode() since we override equals()

Bug: 440757
Change-Id: I16614c75b62b2fbef05419dd8667e3c50889abe4
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v3.5.0.201409071800-rc1
Matthias Sohn 10 년 전
부모
커밋
efce340474
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java 파일 보기

@@ -297,6 +297,11 @@ public class RepoCommand extends GitCommand<RevCommit> {
return false;
}

@Override
public int hashCode() {
return this.getPathWithSlash().hashCode();
}

public int compareTo(Project that) {
return this.getPathWithSlash().compareTo(that.getPathWithSlash());
}

Loading…
취소
저장