fixed accidental change to byte array loop

This commit is contained in:
Juergen Hoeller 2010-08-15 21:43:24 +00:00
parent fd159246ed
commit ace7b072f1
1 changed files with 2 additions and 1 deletions

View File

@ -417,7 +417,8 @@ public abstract class UriUtils {
private static byte[] encode(byte[] source, BitSet notEncoded) {
Assert.notNull(source, "'source' must not be null");
ByteArrayOutputStream bos = new ByteArrayOutputStream(source.length * 2);
for (byte b : source) {
for (int i = 0; i < source.length; i++) {
int b = source[i];
if (b < 0) {
b += 256;
}