From ee0505a5dce7ec1a39d422b750334e9376d34f8a Mon Sep 17 00:00:00 2001 From: Peter Gromov Date: Wed, 8 Jan 2020 18:47:05 +0100 Subject: [PATCH] shorter LookupElementPresentation.TextFragment.toString GitOrigin-RevId: 78455ee9debcb19719bb423b1f74c26135176506 --- .../codeInsight/lookup/LookupElementPresentation.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/analysis-api/src/com/intellij/codeInsight/lookup/LookupElementPresentation.java b/platform/analysis-api/src/com/intellij/codeInsight/lookup/LookupElementPresentation.java index c68bbbcb2ceb..be71b55143a3 100644 --- a/platform/analysis-api/src/com/intellij/codeInsight/lookup/LookupElementPresentation.java +++ b/platform/analysis-api/src/com/intellij/codeInsight/lookup/LookupElementPresentation.java @@ -253,8 +253,9 @@ public class LookupElementPresentation { public String toString() { return "TextFragment{" + "text='" + text + '\'' + - ", grayed=" + myGrayed + - ", fgColor=" + myFgColor + + (myGrayed ? ", grayed" : "") + + (myItalic ? ", italic" : "") + + (myFgColor != null ? ", fgColor=" + myFgColor : "") + '}'; }