Cleanup: Remove trailing whitespace
Change-Id: I7c08b60fb6afafd1874210320da3da7519632e08 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
9906f09868
commit
1052678372
|
@ -44,9 +44,9 @@
|
|||
|
||||
/**
|
||||
* Exception thrown when applying a patch fails
|
||||
*
|
||||
*
|
||||
* @since 2.0
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class PatchApplyException extends GitAPIException {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -50,9 +50,9 @@
|
|||
|
||||
/**
|
||||
* Exception thrown when applying a patch fails due to an invalid format
|
||||
*
|
||||
*
|
||||
* @since 2.0
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class PatchFormatException extends GitAPIException {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
* <p>
|
||||
* Single repository applications trying to be compatible with other Git
|
||||
* implementations are encouraged to use a model such as:
|
||||
*
|
||||
*
|
||||
* <pre>
|
||||
* new RepositoryBuilder() //
|
||||
* .setGitDir(gitDirArgument) // --git-dir if supplied, no-op if null
|
||||
|
@ -63,7 +63,7 @@
|
|||
* .findGitDir() // scan up the file system tree
|
||||
* .build()
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* @see org.eclipse.jgit.storage.file.FileRepositoryBuilder
|
||||
*/
|
||||
public class RepositoryBuilder extends
|
||||
|
|
|
@ -66,7 +66,7 @@ public abstract class SshSessionFactory {
|
|||
* <p>
|
||||
* A factory is always available. By default the factory will read from the
|
||||
* user's <code>$HOME/.ssh</code> and assume OpenSSH compatibility.
|
||||
*
|
||||
*
|
||||
* @return factory the current factory for this JVM.
|
||||
*/
|
||||
public static SshSessionFactory getInstance() {
|
||||
|
|
|
@ -120,7 +120,7 @@ public SshSessionFactory getSshSessionFactory() {
|
|||
|
||||
/**
|
||||
* Get the default SSH session
|
||||
*
|
||||
*
|
||||
* @return a remote session
|
||||
* @throws TransportException
|
||||
* in case of error with opening SSH session
|
||||
|
|
|
@ -244,11 +244,11 @@ private static boolean isUnreasonableName(final String name) {
|
|||
return true; // no absolute paths
|
||||
|
||||
if (name.startsWith("../")) //$NON-NLS-1$
|
||||
return true; // no "l../etc/passwd"
|
||||
return true; // no "l../etc/passwd"
|
||||
if (name.contains("/../")) //$NON-NLS-1$
|
||||
return true; // no "foo/../etc/passwd"
|
||||
return true; // no "foo/../etc/passwd"
|
||||
if (name.contains("/./")) //$NON-NLS-1$
|
||||
return true; // "foo/./foo" is insane to ask
|
||||
return true; // "foo/./foo" is insane to ask
|
||||
if (name.contains("//")) //$NON-NLS-1$
|
||||
return true; // double slashes is sloppy, don't use it
|
||||
|
||||
|
|
Loading…
Reference in New Issue