aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2022-11-20 20:16:28 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2022-11-20 20:16:28 +0100
commit3301032c6a45a515c2fe4edec39a53921a7e6f07 (patch)
treeab290215aebe967b07d1a6d1e5f1cc7e905947e7
parentf67cca6cb31d24e34a630f6a2c95cc8dca6c60af (diff)
downloadjgit-3301032c6a45a515c2fe4edec39a53921a7e6f07.tar.gz
jgit-3301032c6a45a515c2fe4edec39a53921a7e6f07.zip
Suppress non-externalized String warnings
Change-Id: I95c61bd906bd3f7cdea9581e0ffa92ec607c6140
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java
index e36eeccfb1..e9134a1a32 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java
@@ -154,7 +154,7 @@ public class RefSpec implements Serializable {
this.allowMismatchedWildcards = mode;
String s = spec;
- if (s.startsWith("^+") || s.startsWith("+^")) {
+ if (s.startsWith("^+") || s.startsWith("+^")) { //$NON-NLS-1$ //$NON-NLS-2$
throw new IllegalArgumentException(
JGitText.get().invalidNegativeAndForce);
}
@@ -164,7 +164,7 @@ public class RefSpec implements Serializable {
s = s.substring(1);
}
- if(s.startsWith("^")) {
+ if (s.startsWith("^")) { //$NON-NLS-1$
negative = true;
s = s.substring(1);
}
@@ -251,7 +251,7 @@ public class RefSpec implements Serializable {
* the specification is invalid.
*/
public RefSpec(String spec) {
- this(spec, spec.startsWith("^") ? WildcardMode.ALLOW_MISMATCH
+ this(spec, spec.startsWith("^") ? WildcardMode.ALLOW_MISMATCH //$NON-NLS-1$
: WildcardMode.REQUIRE_MATCH);
}