Author: veithen
Date: Sat Oct 27 16:22:50 2018
New Revision: 1844977
URL: http://svn.apache.org/viewvc?rev=1844977&view=rev
Log:
Don't swallow exceptions.
Modified:
axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java
Modified:
axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java?rev=1844977&r1=1844976&r2=1844977&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java
(original)
+++
axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java
Sat Oct 27 16:22:50 2018
@@ -364,15 +364,11 @@ public class CodeGenerationUtility {
rootElement.appendChild(annoElement);
File file = File.createTempFile("customized",".xsd");
FileOutputStream stream = new FileOutputStream(file);
- try {
- Result result = new StreamResult(stream);
- Transformer xformer =
TransformerFactory.newInstance().newTransformer();
- xformer.transform(new DOMSource(rootElement), result);
- stream.flush();
- stream.close();
- } catch (Exception e) {
- e.printStackTrace();
- }
+ Result result = new StreamResult(stream);
+ Transformer xformer =
TransformerFactory.newInstance().newTransformer();
+ xformer.transform(new DOMSource(rootElement), result);
+ stream.flush();
+ stream.close();
InputSource ins = new InputSource(file.toURI().toString());
sc.parseSchema(ins);
file.delete();