Skip to content

Commit

Permalink
Merge pull request #153 from orionlibs/EMAIL-205--dead-code-in-EmailU…
Browse files Browse the repository at this point in the history
…tils-encodeURL

EMAIL-205: removed dead code
  • Loading branch information
garydgregory authored Dec 3, 2023
2 parents 1ae175f + 262bb84 commit 6e02180
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/apache/commons/mail/EmailUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,7 @@ static String encodeUrl(final String input)
final StringBuilder builder = new StringBuilder();
for (final byte c : input.getBytes(StandardCharsets.US_ASCII))
{
int b = c;
if (b < 0)
{
b = 256 + b;
}
int b = c & 0xff;
if (SAFE_URL.get(b))
{
builder.append((char) b);
Expand Down

0 comments on commit 6e02180

Please sign in to comment.