mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +00:00
This at least removes the warnings & replaces the description fields
This commit is contained in:
parent
a0b8581ec5
commit
274469d299
@ -561,10 +561,16 @@ public class SchemaBuilder {
|
||||
}
|
||||
|
||||
private String getFieldDescription(Field r) {
|
||||
|
||||
if (r.isAnnotationPresent(Desc.class)) {
|
||||
return r.getDeclaredAnnotation(Desc.class).value();
|
||||
}
|
||||
|
||||
// suppress warnings on bukkit classes
|
||||
if (r.getDeclaringClass().getName().startsWith("org.bukkit.")){
|
||||
return "Bukkit package classes and enums have no descriptions";
|
||||
}
|
||||
|
||||
warnings.addIfMissing("Missing @Desc on field " + r.getName() + " (" + r.getType() + ") in " + r.getDeclaringClass().getCanonicalName());
|
||||
return "No Field Description";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user