Update AP to allow (but warn) coerced multi-target reference conflicts

This commit is contained in:
Mumfrey committed 2017-07-03 14:43:24 +01:00
1 parent 2a64bc35b4
commit c6ce27efb0
6 files changed
+108 -10

No files matched your search

@@ -64,9 +64,9 @@ abstract class AnnotatedMixinElementHandler {
*/
abstract static class AnnotatedElement<E extends Element> {
private final E element;
protected final E element;
private final AnnotationHandle annotation;
protected final AnnotationHandle annotation;
private final String desc;
@@ -508,5 +508,14 @@ abstract class AnnotatedMixinElementHandler {
}
return stripped;
}
protected static <T extends IMapping<T>> ObfuscationData<T> stripDescriptors(ObfuscationData<T> data) {
ObfuscationData<T> stripped = new ObfuscationData<T>();
for (ObfuscationType type : data) {
T mapping = data.get(type);
stripped.put(type, mapping.transform(null));
}
return stripped;
}
}