mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-22 01:32:12 +00:00
Make AP emit similar warnings to transformer for up/downgraded methods
This commit is contained in:
1 parent
366473c1af
commit
faf581b977
14 files changed
+172
-24
No files matched your search
+5
-1
@@ -55,9 +55,13 @@ class AnnotatedMixinElementHandlerOverwrite extends AnnotatedMixinElementHandler
|
||||
super(ap, mixin);
|
||||
}
|
||||
|
||||
public void registerMerge(ExecutableElement method) {
|
||||
this.validateTargetMethod(method, null, new AliasedElementName(method, AnnotationHandle.MISSING), "overwrite", true, true);
|
||||
}
|
||||
|
||||
public void registerOverwrite(AnnotatedElementOverwrite elem) {
|
||||
AliasedElementName name = new AliasedElementName(elem.getElement(), elem.getAnnotation());
|
||||
this.validateTargetMethod(elem.getElement(), elem.getAnnotation(), name, "@Overwrite");
|
||||
this.validateTargetMethod(elem.getElement(), elem.getAnnotation(), name, "@Overwrite", true, false);
|
||||
this.checkConstraints(elem.getElement(), elem.getAnnotation());
|
||||
|
||||
if (!this.mixin.remap()) {
|
||||
|
||||
Reference in new issue
Block a user