cleanup & suppress unused warnings

This commit is contained in:
Jaffe2718
2025-04-03 11:19:03 +08:00
parent 170363ef35
commit f4d1183270
2 changed files with 1 additions and 3 deletions

View File

@@ -67,8 +67,6 @@ public abstract class MidnightConfig {
this.dataType = getUnderlyingType(field);
this.entry = field.getAnnotation(Entry.class);
this.comment = field.getAnnotation(Comment.class);
// TODO: use multiple annotations
// this.condition = field.getAnnotation(Condition.class);
this.conditions = field.getAnnotationsByType(Condition.class);
} else {
this.fieldName = ""; this.dataType = null;

View File

@@ -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.
* The config class also has to extend MidnightConfig*/
@SuppressWarnings("unused")
public class MidnightConfigExample extends MidnightConfig {
public static final String TEXT = "text";
public static final String NUMBERS = "numbers";