Browse Source

Class泛型消除警告

feature/x
obo 1 year ago
parent
commit
2b68c9dbf6
  1. 12
      designer-form/src/main/java/com/fr/design/widgettheme/processor/WidgetThemeCreatorPaneAcceptor.java

12
designer-form/src/main/java/com/fr/design/widgettheme/processor/WidgetThemeCreatorPaneAcceptor.java

@ -45,7 +45,7 @@ public class WidgetThemeCreatorPaneAcceptor {
/** /**
* editor相关处理类 * editor相关处理类
*/ */
private static final Set<Class> EDITOR_SET = new HashSet<>(Arrays.asList( private static final Set<Class<?>> EDITOR_SET = new HashSet<>(Arrays.asList(
TextArea.class, TextArea.class,
TextEditor.class, TextEditor.class,
NumberEditor.class, NumberEditor.class,
@ -59,7 +59,7 @@ public class WidgetThemeCreatorPaneAcceptor {
/** /**
* normal相关处理类 * normal相关处理类
*/ */
private static final Set<Class> NORMAL_SET = new HashSet<>(Arrays.asList( private static final Set<Class<?>> NORMAL_SET = new HashSet<>(Arrays.asList(
AppendRowButton.class, AppendRowButton.class,
FreeButton.class, FreeButton.class,
DeleteRowButton.class, DeleteRowButton.class,
@ -87,14 +87,14 @@ public class WidgetThemeCreatorPaneAcceptor {
extraPaneList.add(0, pane); extraPaneList.add(0, pane);
} }
private static <T> void acceptEditor(Class creator, List<BasicBeanPane<T>> extraPaneList) { private static <T> void acceptEditor(Class<?> creator, List<BasicBeanPane<T>> extraPaneList) {
boolean accept = WidgetThemeDesignerUtils.isNewComboBoxTreeEditor(creator) || EDITOR_SET.contains(creator); boolean accept = WidgetThemeDesignerUtils.isNewComboBoxTreeEditor(creator) || EDITOR_SET.contains(creator);
if (accept) { if (accept) {
insertShortCut(extraPaneList, new EditorSettingPane<>()); insertShortCut(extraPaneList, new EditorSettingPane<>());
} }
} }
private static <T> void acceptTree(Class creator, List<BasicBeanPane<T>> extraPaneList) { private static <T> void acceptTree(Class<?> creator, List<BasicBeanPane<T>> extraPaneList) {
boolean accept = creator == TreeEditor.class; boolean accept = creator == TreeEditor.class;
if (accept) { if (accept) {
insertShortCut(extraPaneList, new TreeEditorSettingPane<>()); insertShortCut(extraPaneList, new TreeEditorSettingPane<>());
@ -102,14 +102,14 @@ public class WidgetThemeCreatorPaneAcceptor {
} }
private static <T> void acceptNormal(Class creator, List<BasicBeanPane<T>> extraPaneList) { private static <T> void acceptNormal(Class<?> creator, List<BasicBeanPane<T>> extraPaneList) {
boolean accept = NORMAL_SET.contains(creator); boolean accept = NORMAL_SET.contains(creator);
if (accept) { if (accept) {
insertShortCut(extraPaneList, new NormalButtonSettingPane<>()); insertShortCut(extraPaneList, new NormalButtonSettingPane<>());
} }
} }
private static <T> void acceptButton(Class creator, List<BasicBeanPane<T>> extraPaneList) { private static <T> void acceptButton(Class<?> creator, List<BasicBeanPane<T>> extraPaneList) {
boolean accept = creator == CheckBox.class || creator == RadioGroup.class || creator == CheckBoxGroup.class; boolean accept = creator == CheckBox.class || creator == RadioGroup.class || creator == CheckBoxGroup.class;
if (accept) { if (accept) {
insertShortCut(extraPaneList, new ButtonSettingPane<>()); insertShortCut(extraPaneList, new ButtonSettingPane<>());

Loading…
Cancel
Save