Skip to content

Commit b08fdf0

Browse files
authored
Merge pull request #284 from samimejri/bug-283
bug-283 Use stax-api newInstance() instead of newFactory() for Android compat…
2 parents 08eaf07 + 5d6d8d0 commit b08fdf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semantickernel-api/src/main/java/com/microsoft/semantickernel/implementation/chatcompletion/ChatXMLPromptParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private static <T> ChatPromptParseVisitor<T> getFunctionDefinitions(String promp
109109
// </function>
110110

111111
try (InputStream is = new ByteArrayInputStream(prompt.getBytes(StandardCharsets.UTF_8))) {
112-
XMLInputFactory factory = XMLInputFactory.newFactory();
112+
XMLInputFactory factory = XMLInputFactory.newInstance();
113113
XMLEventReader reader = factory.createXMLEventReader(is);
114114
FunctionDefinition functionDefinition = null;
115115
Map<String, String> parameters = new HashMap<>();

0 commit comments

Comments
 (0)