From 0e6219e9e11b0b9583ae0f76f3ec0fa71f035b2e Mon Sep 17 00:00:00 2001 From: zjz1993 <1429595365@qq.com> Date: Wed, 4 Sep 2019 16:10:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E6=94=B9=E5=8A=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/ui/container/BasicBeanPane.java | 10 ------- .../ui/container/DialogActionAdapter.java | 10 ------- .../ui/editor/ValueEditorPaneFactory.java | 10 ------- .../design/work/DatabaseConnectionPane.java | 3 +-- .../com/fanruan/api/plugin/PluginKit.java | 26 ------------------- .../java/com/fanruan/api/util/GeneralKit.java | 9 ------- .../com/fanruan/api/util/GeneralKitTest.java | 25 +----------------- 7 files changed, 2 insertions(+), 91 deletions(-) delete mode 100644 src/main/java/com/fanruan/api/design/ui/container/BasicBeanPane.java delete mode 100644 src/main/java/com/fanruan/api/design/ui/container/DialogActionAdapter.java delete mode 100644 src/main/java/com/fanruan/api/design/ui/editor/ValueEditorPaneFactory.java delete mode 100644 src/main/java/com/fanruan/api/plugin/PluginKit.java diff --git a/src/main/java/com/fanruan/api/design/ui/container/BasicBeanPane.java b/src/main/java/com/fanruan/api/design/ui/container/BasicBeanPane.java deleted file mode 100644 index 9fdfdaa..0000000 --- a/src/main/java/com/fanruan/api/design/ui/container/BasicBeanPane.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.fanruan.api.design.ui.container; - -/** - * 基础的pane类 - * */ -public abstract class BasicBeanPane extends com.fr.design.beans.BasicBeanPane { - public BasicBeanPane(){ - - } -} diff --git a/src/main/java/com/fanruan/api/design/ui/container/DialogActionAdapter.java b/src/main/java/com/fanruan/api/design/ui/container/DialogActionAdapter.java deleted file mode 100644 index 7b0a02a..0000000 --- a/src/main/java/com/fanruan/api/design/ui/container/DialogActionAdapter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.fanruan.api.design.ui.container; - -/** - * 用来给dialog增加一些固定的方法 - * */ -public class DialogActionAdapter extends com.fr.design.dialog.DialogActionAdapter{ - public DialogActionAdapter(){ - - } -} diff --git a/src/main/java/com/fanruan/api/design/ui/editor/ValueEditorPaneFactory.java b/src/main/java/com/fanruan/api/design/ui/editor/ValueEditorPaneFactory.java deleted file mode 100644 index a55b66f..0000000 --- a/src/main/java/com/fanruan/api/design/ui/editor/ValueEditorPaneFactory.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.fanruan.api.design.ui.editor; - -/** - * 生成ValueEditorPane的工厂方法 - * */ -public class ValueEditorPaneFactory extends com.fr.design.editor.ValueEditorPaneFactory{ - public ValueEditorPaneFactory(){ - - } -} diff --git a/src/main/java/com/fanruan/api/design/work/DatabaseConnectionPane.java b/src/main/java/com/fanruan/api/design/work/DatabaseConnectionPane.java index 4d6d086..9d2854a 100644 --- a/src/main/java/com/fanruan/api/design/work/DatabaseConnectionPane.java +++ b/src/main/java/com/fanruan/api/design/work/DatabaseConnectionPane.java @@ -4,7 +4,6 @@ package com.fanruan.api.design.work; import com.fanruan.api.design.ui.component.UIButton; import com.fanruan.api.design.ui.component.UIComboBox; import com.fanruan.api.design.ui.component.UILabel; -import com.fanruan.api.design.ui.container.BasicBeanPane; import com.fanruan.api.log.LogKit; import com.fanruan.api.macro.EncodeConstants; import com.fanruan.api.util.ArrayKit; @@ -31,7 +30,7 @@ import java.awt.event.WindowEvent; * * @param 数据连接类型 */ -public abstract class DatabaseConnectionPane extends BasicBeanPane { +public abstract class DatabaseConnectionPane extends com.fr.design.beans.BasicBeanPane { private UILabel message; private UIButton okButton; diff --git a/src/main/java/com/fanruan/api/plugin/PluginKit.java b/src/main/java/com/fanruan/api/plugin/PluginKit.java deleted file mode 100644 index d591197..0000000 --- a/src/main/java/com/fanruan/api/plugin/PluginKit.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.fanruan.api.plugin; - -import com.fr.plugin.ExtraClassManager; -import com.fr.stable.fun.mark.Mutable; - -import java.util.Set; - -public class PluginKit { - /** - * 返回指定集合的不可变数组 - * @param string 字符串 - * @return 数组 - * */ - public Set getArray(String string) { - return ExtraClassManager.getInstance().getArray(string); - } - - /** - * 返回指定集合的不可变数组 - * @param string 字符串 - * @return 数组 - * */ - public Set getArray(String string, Mutable m) { - return ExtraClassManager.getInstance().getArray(string, m); - } -} diff --git a/src/main/java/com/fanruan/api/util/GeneralKit.java b/src/main/java/com/fanruan/api/util/GeneralKit.java index 8c3e3f6..e5df970 100644 --- a/src/main/java/com/fanruan/api/util/GeneralKit.java +++ b/src/main/java/com/fanruan/api/util/GeneralKit.java @@ -93,13 +93,4 @@ public class GeneralKit { return FRContext.getLocale(); } - /** - * 检测两个数组是否相等 - * @param array1 数组1 - * @param array2 数组2 - * @return 判断的结果 - * */ - public static boolean equals(T[] array1, T[] array2){ - return ComparatorUtils.equals(array1, array2); - } } diff --git a/src/test/java/com/fanruan/api/util/GeneralKitTest.java b/src/test/java/com/fanruan/api/util/GeneralKitTest.java index 0d4e275..23a11f9 100644 --- a/src/test/java/com/fanruan/api/util/GeneralKitTest.java +++ b/src/test/java/com/fanruan/api/util/GeneralKitTest.java @@ -2,6 +2,7 @@ package com.fanruan.api.util; import com.fanruan.api.Prepare; import com.fr.general.GeneralUtils; +import com.fr.stable.AssistUtils; import org.junit.Assert; import org.junit.Test; @@ -52,28 +53,4 @@ public class GeneralKitTest extends Prepare { public void getLocale() { Assert.assertEquals(GeneralKit.getLocale(), Locale.CHINA); } - @Test - public void equals(){ - Object objArray[] = {1,2,3}; - Integer intArray[] = {1,2,3}; - Long[] longArray = {1L,2L,3L}; - Double doubleArray[] = {1.1,2.2,3.3}; - Byte[] byteArray = {1,2,3}; - Character[] charArray = {'a', 'b', 'c'}; - Boolean booleanArray[] = {true,true,false}; - Assert.assertEquals(GeneralKit.equals(objArray, new Object[]{1,2,3}), true); - Assert.assertEquals(GeneralKit.equals(objArray, new Object[]{1,2,3,4}), false); - Assert.assertEquals(GeneralKit.equals(intArray, new Integer[]{1,2,3}), true); - Assert.assertEquals(GeneralKit.equals(intArray, new Integer[]{1,2,3,4}), false); - Assert.assertEquals(GeneralKit.equals(longArray, new Long[]{1L,2L,3L}), true); - Assert.assertEquals(GeneralKit.equals(longArray, new Long[]{1L,2L,3L,4L}), false); - Assert.assertEquals(GeneralKit.equals(doubleArray, new Double[]{1.1,2.2,3.3}), true); - Assert.assertEquals(GeneralKit.equals(doubleArray, new Double[]{1.1,2.2,3.3,4.4}), false); - Assert.assertEquals(GeneralKit.equals(byteArray, new Byte[]{1,2,3}), true); - Assert.assertEquals(GeneralKit.equals(byteArray, new Byte[]{1,2,3,4}), false); - Assert.assertEquals(GeneralKit.equals(charArray, new Character[]{'a','b','c'}), true); - Assert.assertEquals(GeneralKit.equals(charArray, new Character[]{'a','b','c','d'}), false); - Assert.assertEquals(GeneralKit.equals(booleanArray, new Boolean[]{true,true,false}), true); - Assert.assertEquals(GeneralKit.equals(booleanArray, new Boolean[]{true,true,false,false}), false); - } } \ No newline at end of file