Browse Source

Use Character.valueOf instead of new Character

Otherwise a new Character is allocated each time instead of
using the cache.

Change-Id: I648d0b012f66ba9dc46a37a390986f9c61e5a19c
stable-0.10
Robin Stocker 14 years ago
parent
commit
b52df1839a
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java

2
org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java

@ -105,7 +105,7 @@ public class IgnoreRule {
if (pattern.contains("*") || pattern.contains("?") || pattern.contains("[")) {
try {
matcher = new FileNameMatcher(pattern, new Character('/'));
matcher = new FileNameMatcher(pattern, Character.valueOf('/'));
} catch (InvalidPatternException e) {
e.printStackTrace();
}

Loading…
Cancel
Save