summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/src/main/java/org/pablotron/luigi/Filter.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/java/src/main/java/org/pablotron/luigi/Filter.java b/java/src/main/java/org/pablotron/luigi/Filter.java
index 676c328..051ce78 100644
--- a/java/src/main/java/org/pablotron/luigi/Filter.java
+++ b/java/src/main/java/org/pablotron/luigi/Filter.java
@@ -90,8 +90,7 @@ public final class Filter {
if (b < 32 || b > 126) {
r.append(String.format("&#%d;", toUInt(b)));
} else {
- final byte bs[] = {b};
- r.append(new String(bs));
+ r.append((char) b);
}
}
}
@@ -176,8 +175,7 @@ public final class Filter {
case '.':
case '~':
// unreserved character
- final byte bs[] = {b};
- r.append(new String(bs));
+ r.append((char) b);
break;
case ' ':
r.append("+");