diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2022-06-23 20:32:47 +0200 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2022-06-23 20:34:35 +0200 |
commit | ba93cd36d8d642ad448ee864e28e18c6c9b8781c (patch) | |
tree | 3df5c9cc8e70f3c1f6bce59cb1e7a8051750391a /org.eclipse.jgit/src | |
parent | db4f7dffb78113a6ba7bea35f7a27b6260e31646 (diff) | |
download | jgit-ba93cd36d8d642ad448ee864e28e18c6c9b8781c.tar.gz jgit-ba93cd36d8d642ad448ee864e28e18c6c9b8781c.zip |
Fix warnings about non-externalized string literals
Four occurrences in RefSpec marked with //$NON-NLS-<n>$.
Change-Id: Ie603a58c41357562f0739445e3fe77ca87a3eb54
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java | 8 |
1 files changed, 4 insertions, 4 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..61d193593a 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefSpec.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008, 2013 Shawn O. Pearce <spearce@spearce.org> and others + * Copyright (C) 2008, 2022 Shawn O. Pearce <spearce@spearce.org> and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0 which is available at @@ -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); } |