Skip to content

Commit

Permalink
Fix use of deprecated AttributeDefintion API.
Browse files Browse the repository at this point in the history
  • Loading branch information
pferraro committed Jun 12, 2017
1 parent 77f5f05 commit a7f54a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,11 @@ private static void writeAttributes(XMLExtendedStreamWriter writer, ModelNode mo
}

private static void writeAttribute(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException {
attribute.getDefinition().getAttributeMarshaller().marshallAsAttribute(attribute.getDefinition(), model, true, writer);
attribute.getDefinition().getMarshaller().marshallAsAttribute(attribute.getDefinition(), model, true, writer);
}

private static void writeElement(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException {
attribute.getDefinition().getAttributeMarshaller().marshallAsElement(attribute.getDefinition(), model, true, writer);
attribute.getDefinition().getMarshaller().marshallAsElement(attribute.getDefinition(), model, true, writer);
}

private static void writeThreadPoolElements(XMLElement element, ThreadPoolResourceDefinition pool, XMLExtendedStreamWriter writer, ModelNode container) throws XMLStreamException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ private static <A extends Attribute> void writeAttributes(XMLExtendedStreamWrite
}

private static void writeAttribute(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException {
attribute.getDefinition().getAttributeMarshaller().marshallAsAttribute(attribute.getDefinition(), model, true, writer);
attribute.getDefinition().getMarshaller().marshallAsAttribute(attribute.getDefinition(), model, true, writer);
}

private static void writeElement(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException {
attribute.getDefinition().getAttributeMarshaller().marshallAsElement(attribute.getDefinition(), model, true, writer);
attribute.getDefinition().getMarshaller().marshallAsElement(attribute.getDefinition(), model, true, writer);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private static void writeAttributes(XMLExtendedStreamWriter writer, ModelNode mo
}

private static void writeAttribute(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException {
attribute.getDefinition().getAttributeMarshaller().marshallAsAttribute(attribute.getDefinition(), model, false, writer);
attribute.getDefinition().getMarshaller().marshallAsAttribute(attribute.getDefinition(), model, false, writer);
}

private static <A extends Enum<A> & Attribute> void writeElements(XMLExtendedStreamWriter writer, ModelNode model, Class<A> attributeClass) throws XMLStreamException {
Expand All @@ -121,6 +121,6 @@ private static void writeElements(XMLExtendedStreamWriter writer, ModelNode mode
}

private static void writeElement(XMLExtendedStreamWriter writer, ModelNode model, Attribute attribute) throws XMLStreamException {
attribute.getDefinition().getAttributeMarshaller().marshallAsElement(attribute.getDefinition(), model, false, writer);
attribute.getDefinition().getMarshaller().marshallAsElement(attribute.getDefinition(), model, false, writer);
}
}

0 comments on commit a7f54a5

Please sign in to comment.