Suppress non-externalized String warnings
Change-Id: I95c61bd906bd3f7cdea9581e0ffa92ec607c6140
This commit is contained in:
parent
f67cca6cb3
commit
3301032c6a
|
@ -154,7 +154,7 @@ public RefSpec(String spec, WildcardMode mode) {
|
||||||
this.allowMismatchedWildcards = mode;
|
this.allowMismatchedWildcards = mode;
|
||||||
String s = spec;
|
String s = spec;
|
||||||
|
|
||||||
if (s.startsWith("^+") || s.startsWith("+^")) {
|
if (s.startsWith("^+") || s.startsWith("+^")) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
JGitText.get().invalidNegativeAndForce);
|
JGitText.get().invalidNegativeAndForce);
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,7 @@ public RefSpec(String spec, WildcardMode mode) {
|
||||||
s = s.substring(1);
|
s = s.substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(s.startsWith("^")) {
|
if (s.startsWith("^")) { //$NON-NLS-1$
|
||||||
negative = true;
|
negative = true;
|
||||||
s = s.substring(1);
|
s = s.substring(1);
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ public RefSpec(String spec, WildcardMode mode) {
|
||||||
* the specification is invalid.
|
* the specification is invalid.
|
||||||
*/
|
*/
|
||||||
public RefSpec(String spec) {
|
public RefSpec(String spec) {
|
||||||
this(spec, spec.startsWith("^") ? WildcardMode.ALLOW_MISMATCH
|
this(spec, spec.startsWith("^") ? WildcardMode.ALLOW_MISMATCH //$NON-NLS-1$
|
||||||
: WildcardMode.REQUIRE_MATCH);
|
: WildcardMode.REQUIRE_MATCH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue