1
0
mirror of https://github.com/moparisthebest/sxf4j synced 2024-12-21 14:08:49 -05:00

Print nothing

This commit is contained in:
Travis Burtrum 2017-03-01 01:07:10 -05:00
parent a73ee4da1f
commit ac1984c9ad
3 changed files with 6 additions and 7 deletions

View File

@ -18,7 +18,7 @@ public class ClassXmlElement {
, "WARNING: INFINITE RECURSION DETECTED" , "WARNING: INFINITE RECURSION DETECTED"
}; };
public static boolean debug = false; public static final boolean debug = false;
private final String uuid; private final String uuid;
@ -293,7 +293,7 @@ public class ClassXmlElement {
else else
ret = m.invoke(container); ret = m.invoke(container);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); throw new RuntimeException(e);
} }
return ret; return ret;
} }

View File

@ -64,9 +64,9 @@ public abstract class AbstractXmlElement implements XmlElement, XmlElementFactor
constructor.setAccessible(true); constructor.setAccessible(true);
return (E) constructor.newInstance(); return (E) constructor.newInstance();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); // ignore
} catch (Error e) { } catch (Error e) {
e.printStackTrace(); // ignore
} }
return null; return null;
} }
@ -107,9 +107,8 @@ public abstract class AbstractXmlElement implements XmlElement, XmlElementFactor
writeToStream(bos); writeToStream(bos);
return new String(bos.toByteArray(), "UTF-8"); return new String(bos.toByteArray(), "UTF-8");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); throw new RuntimeException(e);
} }
return new String(bos.toByteArray());
} }
@Override @Override

View File

@ -27,7 +27,7 @@ public class W3CXmlElement extends AbstractXmlElement {
try{ try{
db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
}catch(Exception e){ }catch(Exception e){
e.printStackTrace(); throw new RuntimeException(e);
} }
if(db == null){ if(db == null){
internal = null; internal = null;