diff --git a/source/net/yacy/document/Condenser.java b/source/net/yacy/document/Condenser.java index 7fbe98c49..54d265c65 100644 --- a/source/net/yacy/document/Condenser.java +++ b/source/net/yacy/document/Condenser.java @@ -122,7 +122,6 @@ public final class Condenser { Map.Entry entry; if (indexText) { - assert document.getText() != null : document.dc_identifier(); createCondensement(document.getText(), meaningLib); // the phrase counter: // phrase 0 are words taken from the URL @@ -304,7 +303,7 @@ public final class Condenser { word = wordenum.nextElement().toString().toLowerCase(Locale.ENGLISH); if (this.languageIdentificator != null) this.languageIdentificator.add(word); if (word.length() < wordminsize) continue; - + // distinguish punctuation and words wordlen = word.length(); if (wordlen == 1 && SentenceReader.punctuation(word.charAt(0))) { @@ -320,7 +319,7 @@ public final class Condenser { if (last_index && (wordminsize > 2 || word.equals("of"))) comb_indexof = true; last_last = word.equals("last"); last_index = word.equals("index"); - + // store word allwordcounter++; currsentwords.add(word); diff --git a/source/net/yacy/kelondro/io/CharBuffer.java b/source/net/yacy/kelondro/io/CharBuffer.java index 85d5767ee..5c6c340ba 100644 --- a/source/net/yacy/kelondro/io/CharBuffer.java +++ b/source/net/yacy/kelondro/io/CharBuffer.java @@ -329,7 +329,7 @@ public final class CharBuffer extends Writer { } public byte[] getBytes() { - return UTF8.getBytes(new String(this.buffer, this.offset, this.length)); + return UTF8.getBytes(this.toString()); } public CharBuffer trim(final int start) { diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index 16c75c348..7f6af6cb7 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -2418,7 +2418,7 @@ public final class Switchboard extends serverSwitch final String id = UTF8.String(new DigestURI(doc.dc_identifier(), null).hash()); final String iquh = UTF8.String(in.queueEntry.url().hash()); if ( !id.equals(iquh) ) { - this.log.logWarning("doc=" + this.log.logWarning("condenseDocument consistency check doc=" + id + ":" + doc.dc_identifier()