Merge pull request #1303 from jasmdk/BaseParserFix

Removing not needed "super." when calling preProcessValues()
This commit is contained in:
James Agnew 2019-05-29 21:46:33 -04:00 committed by GitHub
commit 7863393c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -378,7 +378,7 @@ public class JsonParser extends BaseParser implements IJsonLikeParser {
}
List<? extends IBase> values = nextChild.getAccessor().getValues(theElement);
values = super.preProcessValues(nextChild, theResource, values, nextChildElem, theEncodeContext);
values = preProcessValues(nextChild, theResource, values, nextChildElem, theEncodeContext);
if (values == null || values.isEmpty()) {
continue;
@ -1457,7 +1457,7 @@ public class JsonParser extends BaseParser implements IJsonLikeParser {
* Pre-process value - This is called in case the value is a reference
* since we might modify the text
*/
value = JsonParser.super.preProcessValues(myDef, theResource, Collections.singletonList(value), myChildElem, theEncodeContext).get(0);
value = preProcessValues(myDef, theResource, Collections.singletonList(value), myChildElem, theEncodeContext).get(0);
RuntimeChildUndeclaredExtensionDefinition extDef = myContext.getRuntimeChildUndeclaredExtensionDefinition();
String childName = extDef.getChildNameByDatatype(value.getClass());

View File

@ -387,7 +387,7 @@ public class XmlParser extends BaseParser /* implements IParser */ {
} else {
List<? extends IBase> values = nextChild.getAccessor().getValues(theElement);
values = super.preProcessValues(nextChild, theResource, values, nextChildElem, theEncodeContext);
values = preProcessValues(nextChild, theResource, values, nextChildElem, theEncodeContext);
if (values == null || values.isEmpty()) {
continue;