src/java.naming/share/classes/javax/naming/NameImpl.java

Print this page
rev 10521 : 8055723[core]: Replace concat String to append in StringBuilder parameters
Contributed-by: Otavio Santana <otaviojava@java.net>

*** 168,178 **** // Handle quote occurring after typeval separator beginQuote = one ? syntaxBeginQuote1 : syntaxBeginQuote2; endQuote = one ? syntaxEndQuote1 : syntaxEndQuote2; i += syntaxTypevalSeparator.length(); ! answer.append(syntaxTypevalSeparator+beginQuote); // add back // consume string until matching quote for (i += beginQuote.length(); ((i < len) && !name.startsWith(endQuote, i)); i++) { --- 168,178 ---- // Handle quote occurring after typeval separator beginQuote = one ? syntaxBeginQuote1 : syntaxBeginQuote2; endQuote = one ? syntaxEndQuote1 : syntaxEndQuote2; i += syntaxTypevalSeparator.length(); ! answer.append(syntaxTypevalSeparator).append(beginQuote); // add back // consume string until matching quote for (i += beginQuote.length(); ((i < len) && !name.startsWith(endQuote, i)); i++) {