Browse Source

FileNameMatcherTest: Use Character.valueOf rather than new Character

Change-Id: I9d6e20a258d34ae1d2700fbe8e6c6e3b0ba94424
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
tags/v4.6.0.201612231935-r
David Pursehouse 7 years ago
parent
commit
9a7d28019a

+ 1
- 1
org.eclipse.jgit.test/tst/org/eclipse/jgit/fnmatch/FileNameMatcherTest.java View File

@@ -69,7 +69,7 @@ public class FileNameMatcherTest {
final boolean appendCanMatchExpected)
throws InvalidPatternException {
final FileNameMatcher matcher = new FileNameMatcher(pattern,
new Character(excludedCharacter));
Character.valueOf(excludedCharacter));
matcher.append(input);
assertEquals(matchExpected, matcher.isMatch());
assertEquals(appendCanMatchExpected, matcher.canAppendMatch());

Loading…
Cancel
Save