mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
warning fixed
This commit is contained in:
+3
@@ -20,9 +20,11 @@ public class ComponentType {
|
|||||||
private String namePrefix;
|
private String namePrefix;
|
||||||
private String author;
|
private String author;
|
||||||
private Icon icon;
|
private Icon icon;
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
private Class<? extends IDIYComponent> instanceClass;
|
private Class<? extends IDIYComponent> instanceClass;
|
||||||
private ComponentLayer layer;
|
private ComponentLayer layer;
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public ComponentType(String name, String description, String category, String namePrefix,
|
public ComponentType(String name, String description, String category, String namePrefix,
|
||||||
String author, Icon icon, Class<? extends IDIYComponent> instanceClass,
|
String author, Icon icon, Class<? extends IDIYComponent> instanceClass,
|
||||||
ComponentLayer layer) {
|
ComponentLayer layer) {
|
||||||
@@ -61,6 +63,7 @@ public class ComponentType {
|
|||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public Class<? extends IDIYComponent> getInstanceClass() {
|
public Class<? extends IDIYComponent> getInstanceClass() {
|
||||||
return instanceClass;
|
return instanceClass;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user