diff --git a/yard-decompiler/src/main/java/io/github/liias/monkey/yard/YardDecompiler.java b/yard-decompiler/src/main/java/io/github/liias/monkey/yard/YardDecompiler.java index 46cfc53..37fd473 100644 --- a/yard-decompiler/src/main/java/io/github/liias/monkey/yard/YardDecompiler.java +++ b/yard-decompiler/src/main/java/io/github/liias/monkey/yard/YardDecompiler.java @@ -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) && @@ -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); }