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相关处理类
*/
private static final Set<Class> EDITOR_SET = new HashSet<>(Arrays.asList(
private static final Set<Class<?>> EDITOR_SET = new HashSet<>(Arrays.asList(
TextArea.class,
TextEditor.class,
NumberEditor.class,
@ -59,7 +59,7 @@ public class WidgetThemeCreatorPaneAcceptor {
/**
* 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,
FreeButton.class,
DeleteRowButton.class,
@ -87,14 +87,14 @@ public class WidgetThemeCreatorPaneAcceptor {
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);
if (accept) {
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;
if (accept) {
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);
if (accept) {
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;
if (accept) {
insertShortCut(extraPaneList, new ButtonSettingPane<>());

Loading…
Cancel
Save