From 8e3c693e3cc4832d1b75913ef8fcb8862d44749b Mon Sep 17 00:00:00 2001 From: Andrew Charneski Date: Sun, 14 Apr 2024 21:23:59 -0400 Subject: [PATCH] misc --- .../aicoder/ui/TemperatureControlWidgetFactory.kt | 2 +- .../com/github/simiacryptus/aicoder/util/ApxPatchUtilTest.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/github/simiacryptus/aicoder/ui/TemperatureControlWidgetFactory.kt b/src/main/kotlin/com/github/simiacryptus/aicoder/ui/TemperatureControlWidgetFactory.kt index 0553627e..6f183572 100644 --- a/src/main/kotlin/com/github/simiacryptus/aicoder/ui/TemperatureControlWidgetFactory.kt +++ b/src/main/kotlin/com/github/simiacryptus/aicoder/ui/TemperatureControlWidgetFactory.kt @@ -65,7 +65,7 @@ class TemperatureControlWidgetFactory : StatusBarWidgetFactory { return Consumer { event: MouseEvent -> val widgetComp = event.component if (widgetComp != null) { - val modePanel = Panel() + val modePanel = JPanel() modePanel.layout = VerticalLayout(0) modePanel.add(JBLabel("AI Coding Assistant")) diff --git a/src/test/kotlin/com/github/simiacryptus/aicoder/util/ApxPatchUtilTest.kt b/src/test/kotlin/com/github/simiacryptus/aicoder/util/ApxPatchUtilTest.kt index dbced010..85842250 100644 --- a/src/test/kotlin/com/github/simiacryptus/aicoder/util/ApxPatchUtilTest.kt +++ b/src/test/kotlin/com/github/simiacryptus/aicoder/util/ApxPatchUtilTest.kt @@ -1,6 +1,6 @@ package com.github.simiacryptus.aicoder.util -import com.github.simiacryptus.diff.ApxPatchUtil +import com.github.simiacryptus.diff.PatchUtil import org.junit.Assert.assertTrue import org.junit.Test @@ -70,7 +70,7 @@ class ApxPatchUtilTest { @Test fun testPatch() { - val result = ApxPatchUtil.patch(source, patch) + val result = PatchUtil.patch(source, patch) println(result) assertTrue(result.contains("for (value in values")) }