Improvement: Remove warning for string-targeted public classes.

This can be expensive to compute since it requires loading ClassInfos for outer classes, and it is a useless warning anyway which only worsens logspam.
This commit is contained in:
LlamaLad7 committed 2025-10-11 22:38:55 +01:00
1 parent 2c6ea1834e
commit 9f8bc5fdce
1 file changed
-3
@@ -1024,9 +1024,6 @@ class MixinInfo implements Comparable<MixinInfo>, IMixinInfo {
return null;
}
this.type.validateTarget(target.name, targetInfo);
if (target.isPrivate && targetInfo.isReallyPublic() && !this.isVirtual()) {
this.handleTargetError(String.format("@Mixin target %s is public in %s and should be specified in value", target.name, this), true);
}
return targetInfo;
}