Browse Source

fix #I2AOQW

Looly 5 years ago
parent
commit
b85430ee80

+ 1 - 2
hutool-json/src/test/java/cn/hutool/json/JSONUtilTest.java

@@ -170,5 +170,4 @@ public class JSONUtilTest {
 				"    \"test\": \"\\\\地库地库\",\n" +
 				"    \"test\": \"\\\\地库地库\",\n" +
 				"}");
 				"}");
 	}
 	}
-}
-
+}

+ 2 - 1
hutool-poi/src/main/java/cn/hutool/poi/excel/sax/SheetRidReader.java

@@ -88,7 +88,8 @@ public class SheetRidReader extends DefaultHandler {
 			String rid = null;
 			String rid = null;
 			String name = null;
 			String name = null;
 			for (int i = 0; i < length; i++) {
 			for (int i = 0; i < length; i++) {
-				switch (attributes.getLocalName(i)) {
+				final String attrName = attributes.getQName(i);
+				switch (attrName) {
 					case SHEET_ID_ATTR:
 					case SHEET_ID_ATTR:
 						sheetId = attributes.getValue(i);
 						sheetId = attributes.getValue(i);
 						break;
 						break;