Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Nov 11, 2015
1 parent e639563 commit 08f5314
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -31,7 +31,7 @@ public final class UnsafeUriCharactersEncoder {
private static BitSet unsafeCharactersRfc1738;
private static BitSet unsafeCharactersHttp;
private static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C',
'D', 'E', 'F', 'a', 'b', 'c', 'd', 'e', 'f'};
'D', 'E', 'F', 'a', 'b', 'c', 'd', 'e', 'f'};

static {
unsafeCharactersRfc1738 = new BitSet(256);
Expand Down Expand Up @@ -147,7 +147,7 @@ public static String encode(String s, BitSet unsafeCharacters, boolean checkRaw)

// First check whether we actually need to encode
char chars[] = s.toCharArray();
for (int i = 0; ; ) {
for (int i = 0;;) {
// just deal with the ascii character
if (chars[i] > 0 && chars[i] < 128) {
if (unsafeCharacters.get(chars[i])) {
Expand Down

0 comments on commit 08f5314

Please # to comment.