aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2010-10-29 15:04:27 +0200
committerRobin Stocker <robin@nibor.org>2010-10-29 15:04:27 +0200
commitb52df1839a58f3398ebf1820d83b2e7282cba3e2 (patch)
tree3843a71ca1c90d9560a5756714b80fb4fd1813c1 /org.eclipse.jgit
parent7f939ba86e4c4ce379b4dc62045109a91e97dd72 (diff)
downloadjgit-b52df1839a58f3398ebf1820d83b2e7282cba3e2.tar.gz
jgit-b52df1839a58f3398ebf1820d83b2e7282cba3e2.zip
Use Character.valueOf instead of new Character
Otherwise a new Character is allocated each time instead of using the cache. Change-Id: I648d0b012f66ba9dc46a37a390986f9c61e5a19c
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java b/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
index ac3ec66eed..b43b1118ad 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
+++ b/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();
}