blob: 1ac993937bcf71b28bf9b1aff127c1313246e044 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.5.0-alpha06" type="baseline" client="" dependencies="true" name="" variant="all" version="8.5.0-alpha06">
<issue
id="DefaultLocale"
message="Implicitly using the default locale is a common source of bugs: Use `toLowerCase(Locale)` instead. For strings meant to be internal use `Locale.ROOT`, otherwise `Locale.getDefault()`."
errorLine1=" connect = connect.substring(&quot;layout_constraint&quot;.length(), connect.length() - 2).replace(&quot;_to&quot;, &quot; to &quot;).toLowerCase();"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/com/android/tools/idea/common/scene/Scene.java"
line="655"
column="110"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" @SwingCoordinate public static final int ANCHOR_SIZE = scale(6);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/common/scene/target/AnchorTarget.java"
line="49"
column="58"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" @SwingCoordinate public static final int EXPANDED_SIZE = scale(400);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/common/scene/target/AnchorTarget.java"
line="50"
column="60"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" private int myThumbTipSize = JBUI.scale(THUMB_TIP_SIZE);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/editor/AnimationToolbarSliderUI.java"
line="38"
column="37"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" myThumbTipSize = JBUI.scale(THUMB_TIP_SIZE);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/editor/AnimationToolbarSliderUI.java"
line="151"
column="27"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" private final int myResizeTriggerThreshold = JBUI.scale(200);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/surface/interaction/CanvasResizeInteraction.java"
line="124"
column="53"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" public static final int GAP = scale(10);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/draw/DrawConnection.java"
line="77"
column="33"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" static final int ZIGZAG = scale(2);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/draw/DrawConnectionUtils.java"
line="41"
column="29"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" static final int CENTER_ZIGZAG = scale(3);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/draw/DrawConnectionUtils.java"
line="42"
column="36"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" public static final int MARGIN_SPACING = scale(3);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/draw/DrawConnectionUtils.java"
line="43"
column="44"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" public static final int ARROW_SIDE = scale(6);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/draw/DrawConnectionUtils.java"
line="66"
column="40"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" public static final int CONNECTION_ARROW_SIZE = scale(5);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/draw/DrawConnectionUtils.java"
line="67"
column="51"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" public static final int SMALL_ARROW_SIDE = scale(4);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/draw/DrawConnectionUtils.java"
line="68"
column="46"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" public static final int SMALL_ARROW_SIZE = scale(3);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/draw/DrawConnectionUtils.java"
line="69"
column="46"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" public static final int SIZE = JBUI.scale(8);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/scene/draw/DrawResize.java"
line="34"
column="39"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1="private val IMAGE_SIZE = scale(48)"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/assistant/ImageViewAssistant.kt"
line="51"
column="26"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.bottom = JBUI.scale(0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="210"
column="29"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.left = JBUI.scale(2);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="211"
column="27"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.right = JBUI.scale(5);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="212"
column="28"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.top = JBUI.scale(2);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="213"
column="26"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.bottom = JBUI.scale(0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="219"
column="29"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.left = JBUI.scale(0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="220"
column="27"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.right = JBUI.scale(0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="221"
column="28"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.top = JBUI.scale(0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="222"
column="26"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.left = JBUI.scale((i == 0) ? 5 : 0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="243"
column="29"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.right = JBUI.scale((i == 3) ? 5 : 0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="244"
column="30"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.bottom = JBUI.scale(7);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="248"
column="29"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.left = JBUI.scale((i == 0) ? 5 : 0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="262"
column="29"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.right = JBUI.scale((i == myHistoryButtons.length - 1) ? 5 : 0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="263"
column="30"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.left = JBUI.scale(0);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="269"
column="27"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" gc.insets.right = JBUI.scale(5);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/MarginPopup.java"
line="270"
column="28"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1="private val DEFAULT_PROPERTY_SIDE_WIDTH = JBUI.scale(280)"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/property/NlPropertiesPanelDefinition.kt"
line="27"
column="48"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" private static final int DRAG_THRESHOLD = JBUI.scale(10);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/common/scene/Scene.java"
line="97"
column="50"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" private final int TRACK_THICKNESS = JBUI.scale(5);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/WidgetConstraintPanel.java"
line="282"
column="46"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" private final int ARC_SIZE = JBUI.scale(2);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/WidgetConstraintPanel.java"
line="283"
column="39"/>
</issue>
<issue
id="JbUiStored"
message="Do not store `JBUI.scale` scaled results in fields; this will not work correctly on dynamic theme or font size changes"
errorLine1=" private final int SLIDER_LENGTH = JBUI.scale(120);"
errorLine2=" ~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/handlers/constraint/WidgetConstraintPanel.java"
line="284"
column="44"/>
</issue>
<issue
id="VisibleForTests"
message="This declaration implicitly references CommonNopTracker, which should only be accessed from tests or within private scope"
errorLine1=" val NOP_TRACKER = CommonNopTracker()"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/com/android/tools/idea/common/analytics/CommonUsageTracker.kt"
line="84"
column="5"/>
</issue>
<issue
id="VisibleForTests"
message="This method should only be accessed from tests or within private scope"
errorLine1=" screenViewProvider == NlScreenViewProvider.DEFAULT_SCREEN_MODE"
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/actions/LayoutQualifierDropdownMenu.kt"
line="85"
column="52"/>
</issue>
<issue
id="VisibleForTests"
message="This method should only be accessed from tests or within private scope"
errorLine1=" screenViewProvider == NlScreenViewProvider.DEFAULT_SCREEN_MODE"
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location
file="src/com/android/tools/idea/uibuilder/actions/LayoutQualifierDropdownMenu.kt"
line="85"
column="52"/>
</issue>
<issue
id="DiscouragedApi"
message="Use of `scheduleAtFixedRate` is strongly discouraged because it can lead to unexpected behavior when Android processes become cached (tasks may unexpectedly execute hundreds or thousands of times in quick succession when a process changes from cached to uncached); prefer using `scheduleWithFixedDelay`"
errorLine1=" executor?.scheduleAtFixedRate(onTick, 0, period.toNanos(), TimeUnit.NANOSECONDS)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/com/android/tools/idea/common/util/ControllableTicker.kt"
line="44"
column="5"/>
</issue>
</issues>