You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2018/06/21 20:19:02 UTC
[tika] branch master updated: TIKA-2673 -- unit tests for stricter
adherence to spec via Gerard Bouchar -- fix illegal getBytes()...mea
culpa...
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/master by this push:
new 5eec28a TIKA-2673 -- unit tests for stricter adherence to spec via Gerard Bouchar -- fix illegal getBytes()...mea culpa...
5eec28a is described below
commit 5eec28ae0203820364dbcdef58335fd64aeb90ec
Author: tballison <ta...@mitre.org>
AuthorDate: Thu Jun 21 16:18:51 2018 -0400
TIKA-2673 -- unit tests for stricter adherence to spec via Gerard Bouchar -- fix illegal getBytes()...mea culpa...
---
.../test/java/org/apache/tika/parser/html/HtmlEncodingDetectorTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tika-parsers/src/test/java/org/apache/tika/parser/html/HtmlEncodingDetectorTest.java b/tika-parsers/src/test/java/org/apache/tika/parser/html/HtmlEncodingDetectorTest.java
index 40ab01c..931f5e1 100644
--- a/tika-parsers/src/test/java/org/apache/tika/parser/html/HtmlEncodingDetectorTest.java
+++ b/tika-parsers/src/test/java/org/apache/tika/parser/html/HtmlEncodingDetectorTest.java
@@ -76,7 +76,7 @@ public class HtmlEncodingDetectorTest {
@Ignore("until we do a full parse")
public void insideSpecialTag() throws IOException {
// Content inside <?, <!, and </ should be ignored
- for (byte b : "?!/".getBytes())
+ for (byte b : "?!/".getBytes(StandardCharsets.US_ASCII))
assertWindows1252(
"<" + (char) b + // start comment
"<meta charset='UTF-8'>" + // inside special tag