]> source.dussan.org Git - jgit.git/commitdiff
Tag som non-localizable strings with NON-NLS 74/20174/2
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 26 Dec 2013 11:30:38 +0000 (12:30 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Fri, 10 Jan 2014 13:06:50 +0000 (14:06 +0100)
Change-Id: I6882c98c2785f38241a81ba5b93892aab79690a5

org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ArchiveFormats.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/Tbz2Format.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TgzFormat.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TxzFormat.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/CmdLineParser.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java
org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateParser.java

index f0658719690f6f25851843d8d5de1a53f64e2fb6..65466a99494b3708bdcadcebd1d3ec7fa6378bff 100644 (file)
@@ -70,11 +70,11 @@ public class ArchiveFormats {
         * Not thread-safe.
         */
        public static void registerAll() {
-               register("tar", new TarFormat());
-               register("tgz", new TgzFormat());
-               register("tbz2", new Tbz2Format());
-               register("txz", new TxzFormat());
-               register("zip", new ZipFormat());
+               register("tar", new TarFormat()); //$NON-NLS-1$
+               register("tgz", new TgzFormat()); //$NON-NLS-1$
+               register("tbz2", new Tbz2Format()); //$NON-NLS-1$
+               register("txz", new TxzFormat()); //$NON-NLS-1$
+               register("zip", new ZipFormat()); //$NON-NLS-1$
        }
 
        /**
index 7e1c9cc90748e76067fba8cb3711a659c0c22e13..c552fb184456cc287d9c9570ee8aa53eb0f80c01 100644 (file)
@@ -62,8 +62,8 @@ import org.eclipse.jgit.lib.ObjectLoader;
  * Unix TAR format (ustar + some PAX extensions).
  */
 public class TarFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
-       private static final List<String> SUFFIXES =
-                       Collections.unmodifiableList(Arrays.asList(".tar"));
+       private static final List<String> SUFFIXES = Collections
+                       .unmodifiableList(Arrays.asList(".tar")); //$NON-NLS-1$
 
        public ArchiveOutputStream createArchiveOutputStream(OutputStream s) {
                TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$
index d3482d181381332028c3cd5c99205a41b867c3b8..61aa339b7cf7c8c187d33b80454b40c4754f9907 100644 (file)
@@ -58,9 +58,8 @@ import org.eclipse.jgit.lib.ObjectLoader;
  * bzip2-compressed tarball (tar.bz2) format.
  */
 public class Tbz2Format implements ArchiveCommand.Format<ArchiveOutputStream> {
-       private static final List<String> SUFFIXES =
-                       Collections.unmodifiableList(Arrays.asList(
-                               ".tar.bz2", ".tbz", ".tbz2"));
+       private static final List<String> SUFFIXES = Collections
+                       .unmodifiableList(Arrays.asList(".tar.bz2", ".tbz", ".tbz2")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 
        private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
 
index fe1350cbb0149a9549bf60ed5e9ce9d4a4e2fc18..534404fad1b2e1179da967aa66eac8940e4f1ffe 100644 (file)
@@ -58,9 +58,8 @@ import org.eclipse.jgit.lib.ObjectLoader;
  * gzip-compressed tarball (tar.gz) format.
  */
 public class TgzFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
-       private static final List<String> SUFFIXES =
-                       Collections.unmodifiableList(Arrays.asList(
-                               ".tar.gz", ".tgz"));
+       private static final List<String> SUFFIXES = Collections
+                       .unmodifiableList(Arrays.asList(".tar.gz", ".tgz")); //$NON-NLS-1$ //$NON-NLS-2$
 
        private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
 
index c09b0621a7b7139a8ef392779d27eb1005e6a03e..f0eed00fd9725c1fb07d7fb892f11d991a13eb2e 100644 (file)
@@ -58,9 +58,8 @@ import org.eclipse.jgit.lib.ObjectLoader;
  * Xz-compressed tar (tar.xz) format.
  */
 public class TxzFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
-       private static final List<String> SUFFIXES =
-                       Collections.unmodifiableList(Arrays.asList(
-                               ".tar.xz", ".txz"));
+       private static final List<String> SUFFIXES = Collections
+                       .unmodifiableList(Arrays.asList(".tar.xz", ".txz")); //$NON-NLS-1$ //$NON-NLS-2$
 
        private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat();
 
index 1a3765ec19d275e6ead9d900cdc5349ac7de4713..a2bfbeeb16e0924d743ce693c4df3fc649f55110 100644 (file)
@@ -61,8 +61,8 @@ import org.eclipse.jgit.lib.ObjectLoader;
  * PKWARE's ZIP format.
  */
 public class ZipFormat implements ArchiveCommand.Format<ArchiveOutputStream> {
-       private static final List<String> SUFFIXES =
-                       Collections.unmodifiableList(Arrays.asList(".zip"));
+       private static final List<String> SUFFIXES = Collections
+                       .unmodifiableList(Arrays.asList(".zip")); //$NON-NLS-1$
 
        public ArchiveOutputStream createArchiveOutputStream(OutputStream s) {
                return new ZipArchiveOutputStream(s);
index c36cc2cb445b3df8f5ea236e0345069553b5a459..3f77aa6687e042a42adaf62dab611c3b5552109c 100644 (file)
@@ -191,7 +191,7 @@ public class CmdLineParser extends org.kohsuke.args4j.CmdLineParser {
                @Override
                public String toString() {
                        if (metaVar() == null)
-                               return "ARG";
+                               return "ARG"; //$NON-NLS-1$
                        try {
                                Field field = CLIText.class.getField(metaVar());
                                String ret = field.get(CLIText.get()).toString();
index ed91ae22e88c868825607c59ab9732c1a8539b4e..1bafb5efc6ce22db17a698b9215a225e67a6ba3b 100644 (file)
@@ -267,7 +267,7 @@ public class ArchiveCommand extends GitCommand<OutputStream> {
        }
 
        private <T extends Closeable> OutputStream writeArchive(Format<T> fmt) {
-               final String pfx = prefix == null ? "" : prefix;
+               final String pfx = prefix == null ? "" : prefix; //$NON-NLS-1$
                final TreeWalk walk = new TreeWalk(repo);
                try {
                        final T outa = fmt.createArchiveOutputStream(out);
index 384cbb0f54d55429998fd3d8f05b0eb8fea55de3..d7ab5f882ba31724e92d91be77bdefdcf15615b6 100644 (file)
@@ -134,7 +134,7 @@ public class GitDateFormatter {
                                        Locale.US);
                        break;
                case LOCAL:
-                       dateTimeInstance = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy",
+                       dateTimeInstance = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", //$NON-NLS-1$
                                        Locale.US);
                        break;
                case RFC:
index 32859c9c58b1f48c9e35db4d66025a325f85b9de..7bc3c88c5d0bcb93fd45b4768ce2efdc9b33bd15 100644 (file)
@@ -123,7 +123,7 @@ public class GitDateParser {
                SHORT_WITH_DOTS("yyyy.MM.dd"), // //$NON-NLS-1$
                SHORT_WITH_SLASH("MM/dd/yyyy"), // //$NON-NLS-1$
                DEFAULT("EEE MMM dd HH:mm:ss yyyy Z"), // //$NON-NLS-1$
-               LOCAL("EEE MMM dd HH:mm:ss yyyy");
+               LOCAL("EEE MMM dd HH:mm:ss yyyy"); //$NON-NLS-1$
 
                String formatStr;