Browse Source

Remove deprecated FileUtils#relativize(String, String)

Use the more-clearly-named
FileUtils#relativizeNativePath(String, String)
instead, or directly call
FileUtils#relativizePath(String, String, String, boolean).

Change-Id: I9b56302c94630c75293d8cf5510e1d2f22f2b778
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.0
Matthias Sohn 7 years ago
parent
commit
5fc1705f5b
  1. 27
      org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java

27
org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java

@ -498,33 +498,6 @@ public class FileUtils {
throw new IOException(JGitText.get().cannotCreateTempDir);
}
/**
* Relativize a path
*
* @deprecated Use the more-clearly-named
* {@link org.eclipse.jgit.util.FileUtils#relativizeNativePath(String, String)}
* instead, or directly call
* {@link org.eclipse.jgit.util.FileUtils#relativizePath(String, String, String, boolean)}
*
* Expresses <code>other</code> as a relative file path from
* <code>base</code>. File-separator and case sensitivity are
* based on the current file system.
*
* See also
* {@link org.eclipse.jgit.util.FileUtils#relativizePath(String, String, String, boolean)}.
* @param base
* Base path
* @param other
* Destination path
* @return Relative path from <code>base</code> to <code>other</code>
* @since 3.7
*/
@Deprecated
public static String relativize(String base, String other) {
return relativizeNativePath(base, other);
}
/**
* Expresses <code>other</code> as a relative file path from
* <code>base</code>. File-separator and case sensitivity are based on the

Loading…
Cancel
Save