Browse Source

GroupHead: Remove a redundant call to String.format()

Change-Id: I8f5fc09469b56d73d3838e7bcfecfd21140429eb
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
stable-4.1
Sebastian Schuberth 10 years ago
parent
commit
3d231bd95e
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/GroupHead.java

4
org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/GroupHead.java

@ -114,9 +114,9 @@ final class GroupHead extends AbstractHead {
characterClasses.add(LetterPattern.INSTANCE); characterClasses.add(LetterPattern.INSTANCE);
characterClasses.add(DigitPattern.INSTANCE); characterClasses.add(DigitPattern.INSTANCE);
} else { } else {
final String message = String.format(MessageFormat.format( final String message = MessageFormat.format(
JGitText.get().characterClassIsNotSupported, JGitText.get().characterClassIsNotSupported,
characterClass)); characterClass);
throw new InvalidPatternException(message, wholePattern); throw new InvalidPatternException(message, wholePattern);
} }

Loading…
Cancel
Save