Archiviert
13
0

Quote replacement string.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2014-02-11 13:44:56 +01:00
Ursprung f71ed90b04
Commit 4e650ec7bf

Datei anzeigen

@ -286,7 +286,7 @@ public final class Reflection {
// Assume the expanded variables are all packages, and append a dot // Assume the expanded variables are all packages, and append a dot
if (replacement.length() > 0 && matcher.end() < name.length() && name.charAt(matcher.end()) != '.') if (replacement.length() > 0 && matcher.end() < name.length() && name.charAt(matcher.end()) != '.')
replacement += "."; replacement += ".";
matcher.appendReplacement(output, replacement); matcher.appendReplacement(output, Matcher.quoteReplacement(replacement));
} }
matcher.appendTail(output); matcher.appendTail(output);
return output.toString(); return output.toString();