src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/algorithm/HexadecimalEncodingAlgorithm.java

changeset 384
8f2986ff0235
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
380:7386eca865e1 384:8f2986ff0235
1 /* 1 /*
2 * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
86 public final Object convertFromCharacters(char[] ch, int start, int length) { 86 public final Object convertFromCharacters(char[] ch, int start, int length) {
87 if (length == 0) { 87 if (length == 0) {
88 return new byte[0]; 88 return new byte[0];
89 } 89 }
90 90
91 StringBuffer encodedValue = removeWhitespace(ch, start, length); 91 StringBuilder encodedValue = removeWhitespace(ch, start, length);
92 int encodedLength = encodedValue.length(); 92 int encodedLength = encodedValue.length();
93 if (encodedLength == 0) { 93 if (encodedLength == 0) {
94 return new byte[0]; 94 return new byte[0];
95 } 95 }
96 96

mercurial