diff options
Diffstat (limited to 'org.eclipse.jgit.archive/src')
-rw-r--r-- | org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java | 6 | ||||
-rw-r--r-- | org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java index 3412476459..9a0e3040fa 100644 --- a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java +++ b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java @@ -87,11 +87,11 @@ public final class TarFormat implements ArchiveCommand.Format<ArchiveOutputStrea // TarArchiveEntry detects directories by checking // for '/' at the end of the filename. - if (path.endsWith("/") && mode != FileMode.TREE) + if (path.endsWith("/") && mode != FileMode.TREE) //$NON-NLS-1$ throw new IllegalArgumentException(MessageFormat.format( ArchiveText.get().pathDoesNotMatchMode, path, mode)); - if (!path.endsWith("/") && mode == FileMode.TREE) - path = path + "/"; + if (!path.endsWith("/") && mode == FileMode.TREE) //$NON-NLS-1$ + path = path + "/"; //$NON-NLS-1$ final TarArchiveEntry entry = new TarArchiveEntry(path); if (mode == FileMode.TREE) { diff --git a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java index e58c7e910b..988ef90f9d 100644 --- a/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java +++ b/org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java @@ -73,11 +73,11 @@ public final class ZipFormat implements ArchiveCommand.Format<ArchiveOutputStrea throws IOException { // ZipArchiveEntry detects directories by checking // for '/' at the end of the filename. - if (path.endsWith("/") && mode != FileMode.TREE) + if (path.endsWith("/") && mode != FileMode.TREE) //$NON-NLS-1$ throw new IllegalArgumentException(MessageFormat.format( ArchiveText.get().pathDoesNotMatchMode, path, mode)); - if (!path.endsWith("/") && mode == FileMode.TREE) - path = path + "/"; + if (!path.endsWith("/") && mode == FileMode.TREE) //$NON-NLS-1$ + path = path + "/"; //$NON-NLS-1$ final ZipArchiveEntry entry = new ZipArchiveEntry(path); if (mode == FileMode.TREE) { |