mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-15 17:05:09 +01:00
cleanup & suppress unused warnings
This commit is contained in:
@@ -67,8 +67,6 @@ public abstract class MidnightConfig {
|
|||||||
this.dataType = getUnderlyingType(field);
|
this.dataType = getUnderlyingType(field);
|
||||||
this.entry = field.getAnnotation(Entry.class);
|
this.entry = field.getAnnotation(Entry.class);
|
||||||
this.comment = field.getAnnotation(Comment.class);
|
this.comment = field.getAnnotation(Comment.class);
|
||||||
// TODO: use multiple annotations
|
|
||||||
// this.condition = field.getAnnotation(Condition.class);
|
|
||||||
this.conditions = field.getAnnotationsByType(Condition.class);
|
this.conditions = field.getAnnotationsByType(Condition.class);
|
||||||
} else {
|
} else {
|
||||||
this.fieldName = ""; this.dataType = null;
|
this.fieldName = ""; this.dataType = null;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import java.util.List;
|
|||||||
|
|
||||||
/** Every option in a MidnightConfig class has to be public and static, so we can access it from other classes.
|
/** Every option in a MidnightConfig class has to be public and static, so we can access it from other classes.
|
||||||
* The config class also has to extend MidnightConfig*/
|
* The config class also has to extend MidnightConfig*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public class MidnightConfigExample extends MidnightConfig {
|
public class MidnightConfigExample extends MidnightConfig {
|
||||||
public static final String TEXT = "text";
|
public static final String TEXT = "text";
|
||||||
public static final String NUMBERS = "numbers";
|
public static final String NUMBERS = "numbers";
|
||||||
|
|||||||
Reference in New Issue
Block a user