mirror of
https://github.com/moparisthebest/sxf4j
synced 2024-12-21 14:08:49 -05:00
Print nothing
This commit is contained in:
parent
a73ee4da1f
commit
ac1984c9ad
@ -18,7 +18,7 @@ public class ClassXmlElement {
|
||||
, "WARNING: INFINITE RECURSION DETECTED"
|
||||
};
|
||||
|
||||
public static boolean debug = false;
|
||||
public static final boolean debug = false;
|
||||
|
||||
private final String uuid;
|
||||
|
||||
@ -293,7 +293,7 @@ public class ClassXmlElement {
|
||||
else
|
||||
ret = m.invoke(container);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -64,9 +64,9 @@ public abstract class AbstractXmlElement implements XmlElement, XmlElementFactor
|
||||
constructor.setAccessible(true);
|
||||
return (E) constructor.newInstance();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
// ignore
|
||||
} catch (Error e) {
|
||||
e.printStackTrace();
|
||||
// ignore
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@ -107,9 +107,8 @@ public abstract class AbstractXmlElement implements XmlElement, XmlElementFactor
|
||||
writeToStream(bos);
|
||||
return new String(bos.toByteArray(), "UTF-8");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
return new String(bos.toByteArray());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -27,7 +27,7 @@ public class W3CXmlElement extends AbstractXmlElement {
|
||||
try{
|
||||
db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if(db == null){
|
||||
internal = null;
|
||||
|
Loading…
Reference in New Issue
Block a user