Replace commons-io Charsets with StandardCharsets

org.apache.commons.io.Charsets is deprecated in favor of
java.nio.charset.StandardCharsets.
This commit is contained in:
Alexander Sulfrian
2019-06-18 19:22:11 +02:00
parent 324c8c8d44
commit 63803e8314
4 changed files with 49 additions and 41 deletions

View File

@@ -25,7 +25,6 @@ import javax.annotation.Nullable;
import com.google.common.base.Function;
import com.google.common.collect.Iterables;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.io.Charsets;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.Logger;
import org.apache.solr.common.util.ContentStreamBase;
@@ -209,7 +208,7 @@ public class FullTextContentStreams extends ContentStreamBase {
}
return inputStream == null ? null : new SequenceInputStream(
new ByteArrayInputStream("\n".getBytes(Charsets.UTF_8)), inputStream);
new ByteArrayInputStream("\n".getBytes(StandardCharsets.UTF_8)), inputStream);
}
}