aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.archive/src
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2014-07-15 11:22:47 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2014-09-04 11:28:03 +0200
commit0bc98f17b2b3504b1b180a605e45654ace49ef1a (patch)
tree23d21136877be8834969b56fff480ebb3beea735 /org.eclipse.jgit.archive/src
parent00c4a73fbcedf8696f573c9a749a7d4da70a832f (diff)
downloadjgit-0bc98f17b2b3504b1b180a605e45654ace49ef1a.tar.gz
jgit-0bc98f17b2b3504b1b180a605e45654ace49ef1a.zip
Eliminate warnings for non-nls strings that will never be translated
Some of these eliminations just reduces the number of warnings on lines where messages are constructed that can/will be translated. Change-Id: I6eddb39ccc8f2488741bb58540d9ec5f5665e2c4
Diffstat (limited to 'org.eclipse.jgit.archive/src')
-rw-r--r--org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java6
-rw-r--r--org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java6
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) {