mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
more supression
This commit is contained in:
parent
274469d299
commit
6991fa39cc
@ -553,6 +553,10 @@ public class SchemaBuilder {
|
|||||||
return "object";
|
return "object";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (c.getPackageName().startsWith("org.bukkit.")){
|
||||||
|
return "object";
|
||||||
|
}
|
||||||
|
|
||||||
if (!c.isAnnotationPresent(Desc.class)) {
|
if (!c.isAnnotationPresent(Desc.class)) {
|
||||||
warnings.addIfMissing("Unsupported Type: " + c.getCanonicalName() + " Did you forget @Desc?");
|
warnings.addIfMissing("Unsupported Type: " + c.getCanonicalName() + " Did you forget @Desc?");
|
||||||
}
|
}
|
||||||
@ -580,6 +584,11 @@ public class SchemaBuilder {
|
|||||||
return r.getDeclaredAnnotation(Desc.class).value();
|
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";
|
||||||
|
}
|
||||||
|
|
||||||
if (!r.isPrimitive() && !r.equals(KList.class) && !r.equals(KMap.class) && r.getCanonicalName().startsWith("com.volmit.")) {
|
if (!r.isPrimitive() && !r.equals(KList.class) && !r.equals(KMap.class) && r.getCanonicalName().startsWith("com.volmit.")) {
|
||||||
warnings.addIfMissing("Missing @Desc on " + r.getSimpleName() + " in " + r.getDeclaringClass().getCanonicalName());
|
warnings.addIfMissing("Missing @Desc on " + r.getSimpleName() + " in " + r.getDeclaringClass().getCanonicalName());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user