File tree Expand file tree Collapse file tree
src/main/java/com/developerb/nmxmlp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import com .google .common .collect .Maps ;
2121import com .google .common .collect .Sets ;
2222import com .google .common .io .ByteSource ;
23- import com .google .common .io .Closeables ;
2423import org .w3c .dom .Document ;
2524import org .w3c .dom .DocumentType ;
2625import org .w3c .dom .Element ;
4039import javax .xml .transform .stream .StreamResult ;
4140import java .io .ByteArrayInputStream ;
4241import java .io .ByteArrayOutputStream ;
42+ import java .io .IOException ;
4343import java .io .InputStream ;
4444import java .io .OutputStream ;
4545import java .nio .charset .Charset ;
@@ -149,7 +149,10 @@ public void fatalError(SAXParseException exception) {
149149 } catch (Exception ex ) {
150150 throw new Ex ("Failed to initialize xml cursor" , ex );
151151 } finally {
152- Closeables .closeQuietly (stream );
152+ try {
153+ stream .close ();
154+ } catch (IOException ignored ) {
155+ }
153156 }
154157 }
155158
You can’t perform that action at this time.
0 commit comments