Improve patch methods.

This commit is contained in:
Christian P. MOMON 2013-12-11 17:57:48 +01:00
parent b3b5a7f1bb
commit 9cb34c2ede

View file

@ -2127,7 +2127,7 @@ public class SQLSikevaDB implements SikevaDB {
// //
for (int tokenIndex = 0; tokenIndex < tokens.length; tokenIndex += 2) { for (int tokenIndex = 0; tokenIndex < tokens.length; tokenIndex += 2) {
// //
value = value.replace(tokens[tokenIndex], tokens[tokenIndex + 1]); value = value.replaceAll(tokens[tokenIndex], tokens[tokenIndex + 1]);
} }
// //
@ -2161,7 +2161,7 @@ public class SQLSikevaDB implements SikevaDB {
// //
for (int tokenIndex = 0; tokenIndex < tokens.length; tokenIndex += 2) { for (int tokenIndex = 0; tokenIndex < tokens.length; tokenIndex += 2) {
value = value.replace(tokens[tokenIndex], tokens[tokenIndex + 1]); value = value.replaceAll(tokens[tokenIndex], tokens[tokenIndex + 1]);
} }
// //