Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
issue #7 Fix parsing documentation (SDK 2.3.1)
Browse files Browse the repository at this point in the history
There might be more places where only direct child is wanted
not deeper level descendants, but no errors for 2.3.1 anymore.
  • Loading branch information
liias committed Jul 23, 2017
1 parent 03b7c03 commit e3e4546
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private void addMethod(SdkModuleOrClass moduleOrClass, Element methodEl) {

Elements tagsEl = methodEl.select(".tags");

for (Element methodParamEl : tagsEl.select("ul.param li")) {
for (Element methodParamEl : tagsEl.select("ul.param > li")) {
SdkMethod.SdkMethodParameter param = parseParam(methodParamEl);
String paramName = param.getName();
if (!validParamNames.contains(paramName) &&
Expand All @@ -360,7 +360,7 @@ private void addMethod(SdkModuleOrClass moduleOrClass, Element methodEl) {
}
}

for (Element paramOptionEl : optionsList.select("li")) {
for (Element paramOptionEl : optionsList.select("> li")) {
SdkMethod.SdkMethodParameterOption option = parseParamOption(optionsParameterName, paramOptionEl);
sdkMethod.addOption(option);
}
Expand Down

0 comments on commit e3e4546

Please sign in to comment.