-
Notifications
You must be signed in to change notification settings - Fork 1
Adding missing @Override annotations. Some refactoring #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ | |
| */ | ||
| package git4idea; | ||
|
|
||
| import consulo.application.util.SystemInfo; | ||
| import consulo.platform.Platform; | ||
| import consulo.util.collection.HashingStrategy; | ||
| import consulo.util.lang.StringUtil; | ||
| import consulo.virtualFileSystem.util.FilePathHashingStrategy; | ||
|
|
@@ -72,7 +72,8 @@ public int hashCode() { | |
| return BRANCH_NAME_HASHING_STRATEGY.hashCode(myName); | ||
| } | ||
|
|
||
| @Override | ||
| public int compareTo(GitReference o) { | ||
| return o == null ? 1 : StringUtil.compare(getFullName(), o.getFullName(), SystemInfo.isFileSystemCaseSensitive); | ||
| return o == null ? 1 : StringUtil.compare(getFullName(), o.getFullName(), Platform.current().fs().isCaseSensitive()); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good move off the deprecated |
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
@Overrideis indented with 4 spaces, but the rest of this file is tab-indented (the@Nonnullline just above uses a tab). The same tab/space mismatch recurs on several other reformatted lines in this PR (see notes onGitSSHXmlRpcClientandSSHMain). Suggest keeping each file consistent with its existing indentation.