Skip to content

Commit

Permalink
[NOISSUE]
Browse files Browse the repository at this point in the history
I do no like this
  • Loading branch information
jj committed Aug 29, 2018
1 parent 315bad3 commit 234b35a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,16 @@ public void detach() {

}

@Transient
private transient Element dom;

@Nullable
public Element getDOM() {
return null;
return this.dom;
}

public void setDom(Element dom) {
this.dom = dom;
}

public String getNamespaceURI() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,4 @@ public List<XMLObject> getOrderedChildren() {

return Collections.unmodifiableList(children);
}

@Override
public Element getDOM() {
XMLObjectProviderRegistry registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
try {
return registry.getMarshallerFactory().getMarshaller(this).marshall(this);
} catch (MarshallingException e) {
// TODO: some sort of logging?
return null;
}
}
}

0 comments on commit 234b35a

Please sign in to comment.