Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

performance hack

Michael Peter Christend5c1f2746efc
diff --git a/source/net/yacy/kelondro/util/ByteBuffer.java b/source/net/yacy/kelondro/util/ByteBuffer.java
index bd0985a60..93ef6d7b8 100644
--- a/source/net/yacy/kelondro/util/ByteBuffer.java
+++ b/source/net/yacy/kelondro/util/ByteBuffer.java
@@ -68,7 +68,7 @@ public final class ByteBuffer extends OutputStream {
}
public ByteBuffer(final String s) {
- this.buffer = s.getBytes(UTF8.charset);
+ this.buffer = UTF8.getBytes(s);
this.length = this.buffer.length;
this.offset = 0;
}