Skip to content

Commit

Permalink
Fix static analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Jan 12, 2024
1 parent d79644c commit efa7596
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions ide-laf-bridge/api/ide-laf-bridge.api
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ public final class org/jetbrains/jewel/bridge/BridgeUtilsKt {
public static final fun retrieveInsetsAsPaddingValues (Ljava/lang/String;)Landroidx/compose/foundation/layout/PaddingValues;
public static final fun retrieveIntAsDp (Ljava/lang/String;)F
public static final fun retrieveIntAsDpOrUnspecified (Ljava/lang/String;)F
public static final fun retrieveTextStyle (Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static synthetic fun retrieveTextStyle$default (Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static final fun retrieveTextStyle-_Wfy91w (Ljava/lang/String;JJZIJLkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static synthetic fun retrieveTextStyle-_Wfy91w$default (Ljava/lang/String;JJZIJLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static final fun retrieveTextStyle (Ljava/lang/String;Ljava/lang/String;)Landroidx/compose/ui/text/TextStyle;
public static synthetic fun retrieveTextStyle$default (Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Landroidx/compose/ui/text/TextStyle;
public static final fun retrieveTextStyle-WdJyH8Q (Ljava/lang/String;JJZIJ)Landroidx/compose/ui/text/TextStyle;
public static synthetic fun retrieveTextStyle-WdJyH8Q$default (Ljava/lang/String;JJZIJILjava/lang/Object;)Landroidx/compose/ui/text/TextStyle;
public static final fun toComposeColor (Ljava/awt/Color;)J
public static final fun toComposeColorOrUnspecified (Ljava/awt/Color;)J
public static final fun toDpSize (Lcom/intellij/util/ui/JBDimension;)J
public static final fun toDpSize (Ljava/awt/Dimension;)J
public static final fun toFontFamily (Ljava/awt/Font;)Landroidx/compose/ui/text/font/FontFamily;
public static final fun toPaddingValues (Lcom/intellij/util/ui/JBInsets;)Landroidx/compose/foundation/layout/PaddingValues;
public static final fun toPaddingValues (Ljava/awt/Insets;)Landroidx/compose/foundation/layout/PaddingValues;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal class SwingBridgeService(scope: CoroutineScope) {
return readThemeData()
}

private suspend fun readThemeData(): BridgeThemeData {
private fun readThemeData(): BridgeThemeData {
val themeDefinition = createBridgeThemeDefinition()
return BridgeThemeData(
themeDefinition = createBridgeThemeDefinition(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private val iconsBasePath
get() = DirProvider().dir()

@OptIn(DependsOnJBR::class)
internal suspend fun createBridgeThemeDefinition(): ThemeDefinition {
internal fun createBridgeThemeDefinition(): ThemeDefinition {
val textStyle = retrieveTextStyle("Label.font", "Label.foreground")
return createBridgeThemeDefinition(textStyle)
}
Expand All @@ -141,7 +141,7 @@ internal fun createBridgeThemeDefinition(textStyle: TextStyle): ThemeDefinition
}

@OptIn(DependsOnJBR::class)
internal suspend fun createBridgeComponentStyling(
internal fun createBridgeComponentStyling(
theme: ThemeDefinition,
) =
createBridgeComponentStyling(
Expand Down

0 comments on commit efa7596

Please sign in to comment.