Browse Source

RepoProject: Fix warnings about variable hiding

Method parameter names were hiding class members of the same
name.

Change-Id: I182f2715894ac4259b09a371cb4e0eb24f52518a
Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
stable-4.2
David Pursehouse 9 years ago
parent
commit
4e5255c59a
  1. 12
      org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoProject.java

12
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoProject.java

@ -252,10 +252,10 @@ public class RepoProject implements Comparable<RepoProject> {
/** /**
* Add a bunch of copyfile configurations. * Add a bunch of copyfile configurations.
* *
* @param copyfiles * @param copyFiles
*/ */
public void addCopyFiles(Collection<CopyFile> copyfiles) { public void addCopyFiles(Collection<CopyFile> copyFiles) {
this.copyfiles.addAll(copyfiles); this.copyfiles.addAll(copyFiles);
} }
/** /**
@ -288,13 +288,13 @@ public class RepoProject implements Comparable<RepoProject> {
/** /**
* Check if this sub repo is an ancestor of the given path. * Check if this sub repo is an ancestor of the given path.
* *
* @param path * @param thatPath
* path to be checked to see if it is within this repository * path to be checked to see if it is within this repository
* @return true if this sub repo is an ancestor of the given path. * @return true if this sub repo is an ancestor of the given path.
* @since 4.2 * @since 4.2
*/ */
public boolean isAncestorOf(String path) { public boolean isAncestorOf(String thatPath) {
return path.startsWith(getPathWithSlash()); return thatPath.startsWith(getPathWithSlash());
} }
@Override @Override

Loading…
Cancel
Save