From 2abb824347a079b09478b18194dfc1029c002cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=90=D0=B3=D0=B0=D1=80=D0=BA=D0=BE=D0=B2?= Date: Sun, 10 Jun 2018 09:49:25 +0300 Subject: [PATCH] Disable unnecessary duplicate attribute checking Disable unnecessary duplicate attribute checking, because it did not read the xlsx file, which nevertheless excellently opens native Excel 2016. --- src/org/apache/xerces/util/XMLAttributesImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/apache/xerces/util/XMLAttributesImpl.java b/src/org/apache/xerces/util/XMLAttributesImpl.java index 695731e375..914cfb2757 100644 --- a/src/org/apache/xerces/util/XMLAttributesImpl.java +++ b/src/org/apache/xerces/util/XMLAttributesImpl.java @@ -852,6 +852,7 @@ public void addAttributeNS(QName name, String type, String value) { * otherwise null. */ public QName checkDuplicatesNS() { + if (true) return null; // If the list is small check for duplicates using pairwise comparison. final int length = fLength; if (length <= SIZE_LIMIT) {