From 3301032c6a45a515c2fe4edec39a53921a7e6f07 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sun, 20 Nov 2022 20:16:28 +0100 Subject: [PATCH] Suppress non-externalized String warnings Change-Id: I95c61bd906bd3f7cdea9581e0ffa92ec607c6140 --- .../src/org/eclipse/jgit/transport/RefSpec.java | 6 +++--- 1 file 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); } -- 2.39.5