Use Character.valueOf instead of new Character

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

Change-Id: I648d0b012f66ba9dc46a37a390986f9c61e5a19c
This commit is contained in:
Robin Stocker 2010-10-29 15:04:27 +02:00
parent 7f939ba86e
commit b52df1839a
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ else if (!pattern.startsWith("/")) {
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();
}