Skip to content

Commit

Permalink
make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
hamen committed Feb 4, 2025
1 parent 79ad364 commit a0169b1
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public class GfmTableStyling(

override fun toString(): String {
return "GfmTableStyling(" +
"colors=$colors, " +
"metrics=$metrics, " +
"headerBaseFontWeight=$headerBaseFontWeight" +
")"
"colors=$colors, " +
"metrics=$metrics, " +
"headerBaseFontWeight=$headerBaseFontWeight" +
")"
}

public companion object
Expand Down Expand Up @@ -96,11 +96,11 @@ public class GfmTableColors(

override fun toString(): String {
return "GfmTableColors(" +
"borderColor=$borderColor, " +
"rowBackgroundColor=$rowBackgroundColor, " +
"alternateRowBackgroundColor=$alternateRowBackgroundColor, " +
"rowBackgroundStyle=$rowBackgroundStyle" +
")"
"borderColor=$borderColor, " +
"rowBackgroundColor=$rowBackgroundColor, " +
"alternateRowBackgroundColor=$alternateRowBackgroundColor, " +
"rowBackgroundStyle=$rowBackgroundStyle" +
")"
}

public companion object
Expand Down Expand Up @@ -151,11 +151,11 @@ public class GfmTableMetrics(

override fun toString(): String {
return "GfmTableMetrics(" +
"borderWidth=$borderWidth, " +
"cellPadding=$cellPadding, " +
"defaultCellContentAlignment=$defaultCellContentAlignment, " +
"headerDefaultCellContentAlignment=$headerDefaultCellContentAlignment" +
")"
"borderWidth=$borderWidth, " +
"cellPadding=$cellPadding, " +
"defaultCellContentAlignment=$defaultCellContentAlignment, " +
"headerDefaultCellContentAlignment=$headerDefaultCellContentAlignment" +
")"
}

public companion object
Expand Down
8 changes: 8 additions & 0 deletions platform/jewel/samples/showcase/api/showcase.api
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ public final class org/jetbrains/jewel/samples/showcase/views/ComposableSingleto

public final class org/jetbrains/jewel/samples/showcase/views/KeyBinding {
public static final field $stable I
public static final field Companion Lorg/jetbrains/jewel/samples/showcase/views/KeyBinding$Companion;
public fun <init> ()V
public fun <init> (Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)V
public synthetic fun <init> (Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
Expand All @@ -365,8 +366,12 @@ public final class org/jetbrains/jewel/samples/showcase/views/KeyBinding {
public fun toString ()Ljava/lang/String;
}

public final class org/jetbrains/jewel/samples/showcase/views/KeyBinding$Companion {
}

public final class org/jetbrains/jewel/samples/showcase/views/ViewInfo {
public static final field $stable I
public static final field Companion Lorg/jetbrains/jewel/samples/showcase/views/ViewInfo$Companion;
public fun <init> (Ljava/lang/String;Lorg/jetbrains/jewel/ui/icon/IconKey;Lorg/jetbrains/jewel/samples/showcase/views/KeyBinding;Lkotlin/jvm/functions/Function2;)V
public synthetic fun <init> (Ljava/lang/String;Lorg/jetbrains/jewel/ui/icon/IconKey;Lorg/jetbrains/jewel/samples/showcase/views/KeyBinding;Lkotlin/jvm/functions/Function2;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun equals (Ljava/lang/Object;)Z
Expand All @@ -378,6 +383,9 @@ public final class org/jetbrains/jewel/samples/showcase/views/ViewInfo {
public fun toString ()Ljava/lang/String;
}

public final class org/jetbrains/jewel/samples/showcase/views/ViewInfo$Companion {
}

public final class org/jetbrains/jewel/samples/showcase/views/ViewInfoKt {
public static final fun forCurrentOs (Lorg/jetbrains/jewel/samples/showcase/views/KeyBinding;)Ljava/util/Set;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ public class ScrollbarMetrics(public val thumbCornerSize: CornerSize, public val
return result
}

override fun toString(): String = "ScrollbarMetrics(thumbCornerSize=$thumbCornerSize, minThumbLength=$minThumbLength)"
override fun toString(): String =
"ScrollbarMetrics(thumbCornerSize=$thumbCornerSize, minThumbLength=$minThumbLength)"

public companion object
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public class SplitButtonMetrics(public val dividerMetrics: DividerMetrics, publi
return result
}

override fun toString(): String = "SplitButtonMetrics(dividerMetrics=$dividerMetrics, dividerPadding=$dividerPadding)"
override fun toString(): String =
"SplitButtonMetrics(dividerMetrics=$dividerMetrics, dividerPadding=$dividerPadding)"

public companion object
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@ public class TextFieldStyle(
return result
}

override fun toString(): String {
return "TextFieldStyle(" +
"colors=$colors, " +
"metrics=$metrics, " +
"iconButtonStyle=$iconButtonStyle" +
")"
}
override fun toString(): String =
"TextFieldStyle(colors=$colors, metrics=$metrics, iconButtonStyle=$iconButtonStyle)"

public companion object
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ private class KeyBasedReplacementPainterSvgPatchHint(val map: Map<String, Color>

override fun hashCode(): Int = map.hashCode()

override fun toString(): String {
return "KeyBasedReplacementPainterSvgPatchHint(" +
"map=$map" +
")"
}
override fun toString(): String = "KeyBasedReplacementPainterSvgPatchHint(map=$map)"
}

private fun Element.patchPalette(replacementColors: Map<String, Color>) {
Expand Down

0 comments on commit a0169b1

Please sign in to comment.