ui: sync /community/ configuration

GitOrigin-RevId: 7b94e82e381337ff1920276eceb261c7d1dc1890
This commit is contained in:
Aleksey Pivovarov
2025-04-07 15:04:00 +00:00
committed by intellij-monorepo-bot
parent 7483bb64e7
commit 7435b83bed
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -59,7 +59,7 @@
<module name="intellij.platform.lang.impl" options="-Xlint:unchecked --add-exports java.desktop/sun.awt.image=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED" />
<module name="intellij.platform.testFramework.common" options="-Xlint:unchecked --add-exports java.desktop/sun.awt=ALL-UNNAMED" />
<module name="intellij.platform.ui.jcef" options="-Xlint:unchecked --add-exports java.desktop/sun.awt=ALL-UNNAMED --add-exports java.desktop/java.awt.peer=ALL-UNNAMED" />
<module name="intellij.platform.util.ui" options="-Xlint:unchecked --add-exports java.desktop/sun.font=ALL-UNNAMED --add-exports java.desktop/sun.awt.image=ALL-UNNAMED" />
<module name="intellij.platform.util.ui" options="-Xlint:unchecked --add-exports java.desktop/sun.font=ALL-UNNAMED --add-exports java.desktop/sun.awt.image=ALL-UNNAMED --add-exports java.desktop/sun.swing=ALL-UNNAMED" />
</option>
<option name="MAXIMUM_HEAP_SIZE" value="400" />
</component>
+9
View File
@@ -1507,6 +1507,15 @@
<constraint name="t" nameOfExprType="java\.lang\.Object\[\]" exprTypeWithinHierarchy="true" within="" contains="" />
<constraint name="e" nameOfExprType="java\.lang\.Object\[\]" exprTypeWithinHierarchy="true" negateExprType="true" within="" contains="" />
</replaceConfiguration>
<searchConfiguration name="JComponent.getGraphics() shall not be used" description="Use GraphicsUtil.safelyGetGraphics if direct drawing is necessary. Prefer not to use at all. See UIUtil.computeStringWidth to compute the text width for preferred size." suppressId="RawComponentGraphics" text="$Instance$.graphics" recursive="false" caseInsensitive="false" type="Kotlin" pattern_context="default">
<constraint name="Instance" nameOfExprType="javax\.swing\.JComponent" exprTypeWithinHierarchy="true" minCount="0" within="" contains="" />
</searchConfiguration>
<searchConfiguration name="JComponent.getGraphics() shall not be used" description="Use GraphicsUtil.safelyGetGraphics if direct drawing is necessary. Prefer not to use at all. See UIUtil.computeStringWidth to compute the text width for preferred size." suppressId="RawComponentGraphics" text="$Instance$.getGraphics()" recursive="false" caseInsensitive="false" type="Kotlin" pattern_context="default">
<constraint name="Instance" nameOfExprType="javax\.swing\.JComponent" exprTypeWithinHierarchy="true" minCount="0" within="" contains="" />
</searchConfiguration>
<searchConfiguration name="JComponent.getGraphics() shall not be used" description="Use GraphicsUtil.safelyGetGraphics if direct drawing is necessary. Prefer not to use at all. See UIUtil.computeStringWidth to compute the text width for preferred size." suppressId="RawComponentGraphics" text="$Instance$.getGraphics()" recursive="false" caseInsensitive="false" type="JAVA" pattern_context="default">
<constraint name="Instance" nameOfExprType="javax\.swing\.JComponent" exprTypeWithinHierarchy="true" minCount="0" within="" contains="" />
</searchConfiguration>
<replaceConfiguration name="Lambda can be replaced with Pair.comparingByFirst()" text="java.util.Comparator.comparing((com.intellij.openapi.util.Pair $p$) -&gt; $p$.first)" recursive="false" caseInsensitive="true" type="JAVA" pattern_context="default" reformatAccordingToStyle="true" shortenFQN="true" replacement="com.intellij.openapi.util.Pair.comparingByFirst()">
<constraint name="__context__" script="&quot;__context__.parent instanceof com.intellij.psi.PsiExpressionList&quot;" within="" contains="" />
<constraint name="p" within="" contains="" />