Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,9 @@ private static LocalizeValue buildOneLineMismatchDescription(
);

return LocalizeValue.of("<html><body>" +
message.map((localizeManager, s) -> XmlStringUtil.escapeString(s)) +
message.map(s -> XmlStringUtil.escapeString(s)) +
" <a href=\"#assignment/" +
createMismatchedArgumentsHtmlTooltip(candidateInfo, list)
.map((localizeManager, s) -> XmlStringUtil.escapeString(s))
createMismatchedArgumentsHtmlTooltip(candidateInfo, list).map(s -> XmlStringUtil.escapeString(s))
+ "\"" + (StyleManager.get().getCurrentStyle().isDark() ? " color=\"7AB4C9\" " : "") + ">" +
DaemonLocalize.inspectionExtendedDescription() + "</a></body></html>"
);
Expand Down Expand Up @@ -853,7 +852,7 @@ else if (element != null && !resolveResult.isStaticsScopeCorrect()) {
return HighlightInfo.newHighlightInfo(highlightInfoType)
.range(elementToHighlight)
.description(description)
.escapedToolTip(description.map((localizeManager, s) -> XmlStringUtil.escapeString(s)))
.escapedToolTip(description.map(s -> XmlStringUtil.escapeString(s)))
.registerFix(QuickFixFactory.getInstance().createAccessStaticViaInstanceFix(referenceToMethod, resolveResult));
}
}
Expand All @@ -875,7 +874,7 @@ else if (element != null && !resolveResult.isStaticsScopeCorrect()) {
HighlightInfo.Builder hlBuilder = HighlightInfo.newHighlightInfo(highlightInfoType)
.range(elementToHighlight)
.description(description)
.escapedToolTip(description.map((localizeManager, s) -> XmlStringUtil.escapeString(s)));
.escapedToolTip(description.map(s -> XmlStringUtil.escapeString(s)));
registerMethodCallIntentions(hlBuilder, methodCall, list, resolveHelper);
if (element != null && !resolveResult.isStaticsScopeCorrect()) {
HighlightUtil.registerStaticProblemQuickFixAction(element, hlBuilder, referenceToMethod);
Expand Down Expand Up @@ -972,7 +971,7 @@ public static HighlightInfo.Builder checkAmbiguousMethodCallArguments(
if (candidates.length == 0) {
return null;
}
toolTip = description.map((localizeManager, s) -> XmlStringUtil.escapeString(s));
toolTip = description.map(s -> XmlStringUtil.escapeString(s));
}
HighlightInfo.Builder hlBuilder = HighlightInfo.newHighlightInfo(highlightInfoType)
.range(elementToHighlight)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public LocalizeValue getText() {
}
LocalizeValue text = JavaQuickFixLocalize.addMethodQualifierFixText(candidates.size() > 1 ? "" : candidates.get(0).getName());
if (candidates.size() > 1) {
text = text.map((localizeManager, s) -> s + "...");
text = text.map(s -> s + "");
}
return text;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public Priority getPriority() {
public LocalizeValue getText() {
LocalizeValue text = getBaseText();
if (candidates != null && candidates.size() == 1) {
text = text.map((localizeManager, s) -> s + " '" + getMemberPresentableText(candidates.get(0)) + "'");
text = text.map(s -> s + " '" + getMemberPresentableText(candidates.get(0)) + "'");
}
else {
text = text.map((localizeManager, s) -> s + "...");
text = text.map(s -> s + "");
}
return text;
}
Expand Down
Loading