fix(ScalaLangDoc): ScDocTag.getAllText() -> getText()
incompatible with IntelliJ IDEA Ultimate IU-232.10300.40 due to the following problem Method not found (1 problem) Invocation of unresolved method ScDocTag.getAllText() (1 problem) Method ScalaLangDoc.appendTag(...) contains an invokeinterface instruction referencing an unresolved method ScDocTag.getAllText(). This can lead to NoSuchMethodError exception at runtime.
This commit is contained in:
@@ -67,11 +67,13 @@ public class ScalaLangDoc extends JavaLangDoc {
|
||||
@Override
|
||||
protected <T extends SettingsInfo> void appendTag(@NotNull T info, @NotNull StringBuilder tagStrBuilder,
|
||||
@NotNull PsiDocComment psiDocComment, @NotNull String name) {
|
||||
@NotNull PsiDocTag[] tags = psiDocComment.findTagsByName("@" + name);
|
||||
String key = "@" + name;
|
||||
@NotNull PsiDocTag[] tags = psiDocComment.findTagsByName(key);
|
||||
for (@NotNull PsiDocTag tag : tags) {
|
||||
if (tag instanceof ScDocTag) {
|
||||
@NotNull ScDocTag scDocTag = (ScDocTag) tag;
|
||||
String doc = scDocTag.getAllText();
|
||||
String doc = scDocTag.getText();
|
||||
doc = doc.replace(key, "");
|
||||
DocFilter.addHtml(tagStrBuilder, doc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user