summaryrefslogtreecommitdiff
path: root/plugins/github/src/org/jetbrains/plugins/github/api/GithubFullPath.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/github/src/org/jetbrains/plugins/github/api/GithubFullPath.java')
-rw-r--r--plugins/github/src/org/jetbrains/plugins/github/api/GithubFullPath.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/github/src/org/jetbrains/plugins/github/api/GithubFullPath.java b/plugins/github/src/org/jetbrains/plugins/github/api/GithubFullPath.java
index ee0134e4fbc3..1575caee25db 100644
--- a/plugins/github/src/org/jetbrains/plugins/github/api/GithubFullPath.java
+++ b/plugins/github/src/org/jetbrains/plugins/github/api/GithubFullPath.java
@@ -47,14 +47,19 @@ public class GithubFullPath {
}
@Override
+ public String toString() {
+ return "'" + getFullName() + "'";
+ }
+
+ @Override
public boolean equals(@Nullable Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GithubFullPath that = (GithubFullPath)o;
- if (!StringUtil.endsWithIgnoreCase(myRepositoryName, that.myRepositoryName)) return false;
- if (!StringUtil.endsWithIgnoreCase(myUserName, that.myUserName)) return false;
+ if (!StringUtil.equalsIgnoreCase(myRepositoryName, that.myRepositoryName)) return false;
+ if (!StringUtil.equalsIgnoreCase(myUserName, that.myUserName)) return false;
return true;
}