summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorRobin Stocker2010-10-29 09:04:27 (EDT)
committer Robin Stocker2010-10-29 09:04:27 (EDT)
commitb52df1839a58f3398ebf1820d83b2e7282cba3e2 (patch)
tree3843a71ca1c90d9560a5756714b80fb4fd1813c1
parent7f939ba86e4c4ce379b4dc62045109a91e97dd72 (diff)
downloadjgit-b52df1839a58f3398ebf1820d83b2e7282cba3e2.zip
jgit-b52df1839a58f3398ebf1820d83b2e7282cba3e2.tar.gz
jgit-b52df1839a58f3398ebf1820d83b2e7282cba3e2.tar.bz2
Use Character.valueOf instead of new Characterrefs/changes/21/1821/1
Otherwise a new Character is allocated each time instead of using the cache. Change-Id: I648d0b012f66ba9dc46a37a390986f9c61e5a19c
-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 ac3ec66..b43b111 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();
}