mirror of
https://github.com/moparisthebest/sxf4j
synced 2024-12-21 22:18: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"
|
, "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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user